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.72 for libXcomposite 0.4.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
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 case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues
283 $0: about your system, including any error possibly output
284 $0: before this message. Then install a modern shell, or
285 $0: manually run the script under such a shell if you do
286 $0: have one."
287 fi
288 exit 1
289 fi ;;
290 esac
291 fi
292 fi
293 SHELL=${CONFIG_SHELL-/bin/sh}
294 export SHELL
295 # Unset more variables known to interfere with behavior of common tools.
296 CLICOLOR_FORCE= GREP_OPTIONS=
297 unset CLICOLOR_FORCE GREP_OPTIONS
298
299 ## --------------------- ##
300 ## M4sh Shell Functions. ##
301 ## --------------------- ##
302 # as_fn_unset VAR
303 # ---------------
304 # Portably unset VAR.
305 as_fn_unset ()
306 {
307 { eval $1=; unset $1;}
308 }
309 as_unset=as_fn_unset
310
311
312 # as_fn_set_status STATUS
313 # -----------------------
314 # Set $? to STATUS, without forking.
315 as_fn_set_status ()
316 {
317 return $1
318 } # as_fn_set_status
319
320 # as_fn_exit STATUS
321 # -----------------
322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 as_fn_exit ()
324 {
325 set +e
326 as_fn_set_status $1
327 exit $1
328 } # as_fn_exit
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else case e in #(
398 e) as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 } ;;
402 esac
403 fi # as_fn_append
404
405 # as_fn_arith ARG...
406 # ------------------
407 # Perform arithmetic evaluation on the ARGs, and store the result in the
408 # global $as_val. Take advantage of shells that can avoid forks. The arguments
409 # must be portable across $(()) and expr.
410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411 then :
412 eval 'as_fn_arith ()
413 {
414 as_val=$(( $* ))
415 }'
416 else case e in #(
417 e) as_fn_arith ()
418 {
419 as_val=`expr "$@" || test $? -eq 1`
420 } ;;
421 esac
422 fi # as_fn_arith
423
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 t clear
498 :clear
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560 # In both cases, we have to default to 'cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588 # Sed expression to map a string onto a valid variable name.
589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 as_awk_strverscmp='
595 # Use only awk features that work with 7th edition Unix awk (1978).
596 # My, what an old awk you have, Mr. Solaris!
597 END {
598 while (length(v1) && length(v2)) {
599 # Set d1 to be the next thing to compare from v1, and likewise for d2.
600 # Normally this is a single character, but if v1 and v2 contain digits,
601 # compare them as integers and fractions as strverscmp does.
602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
603 # Split v1 and v2 into their leading digit string components d1 and d2,
604 # and advance v1 and v2 past the leading digit strings.
605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
609 if (d1 ~ /^0/) {
610 if (d2 ~ /^0/) {
611 # Compare two fractions.
612 while (d1 ~ /^0/ && d2 ~ /^0/) {
613 d1 = substr(d1, 2); len1--
614 d2 = substr(d2, 2); len2--
615 }
616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
617 # The two components differ in length, and the common prefix
618 # contains only leading zeros. Consider the longer to be less.
619 d1 = -len1
620 d2 = -len2
621 } else {
622 # Otherwise, compare as strings.
623 d1 = "x" d1
624 d2 = "x" d2
625 }
626 } else {
627 # A fraction is less than an integer.
628 exit 1
629 }
630 } else {
631 if (d2 ~ /^0/) {
632 # An integer is greater than a fraction.
633 exit 2
634 } else {
635 # Compare two integers.
636 d1 += 0
637 d2 += 0
638 }
639 }
640 } else {
641 # The normal case, without worrying about digits.
642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
644 }
645 if (d1 < d2) exit 1
646 if (d1 > d2) exit 2
647 }
648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
649 # which mishandles some comparisons of empty strings to integers.
650 if (length(v2)) exit 1
651 if (length(v1)) exit 2
652 }
653 '
654
655 test -n "$DJDIR" || exec 7<&0 </dev/null
656 exec 6>&1
657
658 # Name of the host.
659 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
660 # so uname gets run too.
661 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
662
663 #
664 # Initializations.
665 #
666 ac_default_prefix=/usr/local
667 ac_clean_files=
668 ac_config_libobj_dir=.
669 LIBOBJS=
670 cross_compiling=no
671 subdirs=
672 MFLAGS=
673 MAKEFLAGS=
674
675 # Identity of this package.
676 PACKAGE_NAME='libXcomposite'
677 PACKAGE_TARNAME='libXcomposite'
678 PACKAGE_VERSION='0.4.7'
679 PACKAGE_STRING='libXcomposite 0.4.7'
680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues'
681 PACKAGE_URL=''
682
683 ac_unique_file="Makefile.am"
684 # Factoring default headers for most tests.
685 ac_includes_default="\
686 #include <stddef.h>
687 #ifdef HAVE_STDIO_H
688 # include <stdio.h>
689 #endif
690 #ifdef HAVE_STDLIB_H
691 # include <stdlib.h>
692 #endif
693 #ifdef HAVE_STRING_H
694 # include <string.h>
695 #endif
696 #ifdef HAVE_INTTYPES_H
697 # include <inttypes.h>
698 #endif
699 #ifdef HAVE_STDINT_H
700 # include <stdint.h>
701 #endif
702 #ifdef HAVE_STRINGS_H
703 # include <strings.h>
704 #endif
705 #ifdef HAVE_SYS_TYPES_H
706 # include <sys/types.h>
707 #endif
708 #ifdef HAVE_SYS_STAT_H
709 # include <sys/stat.h>
710 #endif
711 #ifdef HAVE_UNISTD_H
712 # include <unistd.h>
713 #endif"
714
715 ac_header_c_list=
716 ac_subst_vars='am__EXEEXT_FALSE
717 am__EXEEXT_TRUE
718 LTLIBOBJS
719 LIBOBJS
720 XFIXES_LIBS
721 XFIXES_CFLAGS
722 XCOMPOSITE_LIBS
723 XCOMPOSITE_CFLAGS
724 COMPOSITEEXT_VERSION
725 INSTALL_MANPAGES_FALSE
726 INSTALL_MANPAGES_TRUE
727 HAVE_XMLTO_FALSE
728 HAVE_XMLTO_TRUE
729 HAVE_XMLTO_TEXT_FALSE
730 HAVE_XMLTO_TEXT_TRUE
731 XMLTO
732 MAN_SUBSTS
733 XORG_MAN_PAGE
734 ADMIN_MAN_DIR
735 DRIVER_MAN_DIR
736 MISC_MAN_DIR
737 FILE_MAN_DIR
738 LIB_MAN_DIR
739 APP_MAN_DIR
740 ADMIN_MAN_SUFFIX
741 DRIVER_MAN_SUFFIX
742 MISC_MAN_SUFFIX
743 FILE_MAN_SUFFIX
744 LIB_MAN_SUFFIX
745 APP_MAN_SUFFIX
746 INSTALL_CMD
747 PKG_CONFIG_LIBDIR
748 PKG_CONFIG_PATH
749 PKG_CONFIG
750 CHANGELOG_CMD
751 STRICT_CFLAGS
752 CWARNFLAGS
753 BASE_CFLAGS
754 LT_SYS_LIBRARY_PATH
755 OTOOL64
756 OTOOL
757 LIPO
758 NMEDIT
759 DSYMUTIL
760 MANIFEST_TOOL
761 RANLIB
762 ac_ct_AR
763 AR
764 DLLTOOL
765 OBJDUMP
766 FILECMD
767 LN_S
768 NM
769 ac_ct_DUMPBIN
770 DUMPBIN
771 LD
772 FGREP
773 EGREP
774 GREP
775 SED
776 am__fastdepCC_FALSE
777 am__fastdepCC_TRUE
778 CCDEPMODE
779 am__nodep
780 AMDEPBACKSLASH
781 AMDEP_FALSE
782 AMDEP_TRUE
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 LIBTOOL
801 am__xargs_n
802 am__rm_f_notfound
803 AM_BACKSLASH
804 AM_DEFAULT_VERBOSITY
805 AM_DEFAULT_V
806 AM_V
807 CSCOPE
808 ETAGS
809 CTAGS
810 am__untar
811 am__tar
812 AMTAR
813 am__leading_dot
814 SET_MAKE
815 AWK
816 mkdir_p
817 MKDIR_P
818 INSTALL_STRIP_PROGRAM
819 STRIP
820 install_sh
821 MAKEINFO
822 AUTOHEADER
823 AUTOMAKE
824 AUTOCONF
825 ACLOCAL
826 VERSION
827 PACKAGE
828 CYGPATH_W
829 am__isrc
830 INSTALL_DATA
831 INSTALL_SCRIPT
832 INSTALL_PROGRAM
833 target_alias
834 host_alias
835 build_alias
836 LIBS
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 DEFS
841 mandir
842 localedir
843 libdir
844 psdir
845 pdfdir
846 dvidir
847 htmldir
848 infodir
849 docdir
850 oldincludedir
851 includedir
852 runstatedir
853 localstatedir
854 sharedstatedir
855 sysconfdir
856 datadir
857 datarootdir
858 libexecdir
859 sbindir
860 bindir
861 program_transform_name
862 prefix
863 exec_prefix
864 PACKAGE_URL
865 PACKAGE_BUGREPORT
866 PACKAGE_STRING
867 PACKAGE_VERSION
868 PACKAGE_TARNAME
869 PACKAGE_NAME
870 PATH_SEPARATOR
871 SHELL
872 am__quote'
873 ac_subst_files=''
874 ac_user_opts='
875 enable_option_checking
876 enable_silent_rules
877 enable_shared
878 enable_static
879 enable_pic
880 with_pic
881 enable_fast_install
882 enable_aix_soname
883 with_aix_soname
884 enable_dependency_tracking
885 with_gnu_ld
886 with_sysroot
887 enable_libtool_lock
888 enable_selective_werror
889 enable_strict_compilation
890 with_xmlto
891 '
892 ac_precious_vars='build_alias
893 host_alias
894 target_alias
895 CC
896 CFLAGS
897 LDFLAGS
898 LIBS
899 CPPFLAGS
900 LT_SYS_LIBRARY_PATH
901 PKG_CONFIG
902 PKG_CONFIG_PATH
903 PKG_CONFIG_LIBDIR
904 XMLTO
905 XCOMPOSITE_CFLAGS
906 XCOMPOSITE_LIBS
907 XFIXES_CFLAGS
908 XFIXES_LIBS'
909
910
911 # Initialize some variables set by options.
912 ac_init_help=
913 ac_init_version=false
914 ac_unrecognized_opts=
915 ac_unrecognized_sep=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
918 cache_file=/dev/null
919 exec_prefix=NONE
920 no_create=
921 no_recursion=
922 prefix=NONE
923 program_prefix=NONE
924 program_suffix=NONE
925 program_transform_name=s,x,x,
926 silent=
927 site=
928 srcdir=
929 verbose=
930 x_includes=NONE
931 x_libraries=NONE
932
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir='${exec_prefix}/bin'
940 sbindir='${exec_prefix}/sbin'
941 libexecdir='${exec_prefix}/libexec'
942 datarootdir='${prefix}/share'
943 datadir='${datarootdir}'
944 sysconfdir='${prefix}/etc'
945 sharedstatedir='${prefix}/com'
946 localstatedir='${prefix}/var'
947 runstatedir='${localstatedir}/run'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
969 fi
970
971 case $ac_option in
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
975 esac
976
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 bindir=$ac_optarg ;;
985
986 -build | --build | --buil | --bui | --bu)
987 ac_prev=build_alias ;;
988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
989 build_alias=$ac_optarg ;;
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
1000
1001 -datadir | --datadir | --datadi | --datad)
1002 ac_prev=datadir ;;
1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1004 datadir=$ac_optarg ;;
1005
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
1013 -disable-* | --disable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: '$ac_useropt'"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022 "enable_$ac_useropt"
1023 "*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
1028
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1033
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
1038
1039 -enable-* | --enable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: '$ac_useropt'"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
1054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
1062 exec_prefix=$ac_optarg ;;
1063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
1074
1075 -host | --host | --hos | --ho)
1076 ac_prev=host_alias ;;
1077 -host=* | --host=* | --hos=* | --ho=*)
1078 host_alias=$ac_optarg ;;
1079
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
1091 includedir=$ac_optarg ;;
1092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1096 infodir=$ac_optarg ;;
1097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1101 libdir=$ac_optarg ;;
1102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
1108 libexecdir=$ac_optarg ;;
1109
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
1116 | --localstate | --localstat | --localsta | --localst | --locals)
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1120 localstatedir=$ac_optarg ;;
1121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1125 mandir=$ac_optarg ;;
1126
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1132 | --no-cr | --no-c | -n)
1133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1146 oldincludedir=$ac_optarg ;;
1147
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1151 prefix=$ac_optarg ;;
1152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1158 program_prefix=$ac_optarg ;;
1159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1165 program_suffix=$ac_optarg ;;
1166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
1182 program_transform_name=$ac_optarg ;;
1183
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
1198 -runstatedir | --runstatedir | --runstatedi | --runstated \
1199 | --runstate | --runstat | --runsta | --runst | --runs \
1200 | --run | --ru | --r)
1201 ac_prev=runstatedir ;;
1202 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1203 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1204 | --run=* | --ru=* | --r=*)
1205 runstatedir=$ac_optarg ;;
1206
1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 ac_prev=sbindir ;;
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 | --sbi=* | --sb=*)
1211 sbindir=$ac_optarg ;;
1212
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1216 | --sha | --sh)
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 | --sha=* | --sh=*)
1222 sharedstatedir=$ac_optarg ;;
1223
1224 -site | --site | --sit)
1225 ac_prev=site ;;
1226 -site=* | --site=* | --sit=*)
1227 site=$ac_optarg ;;
1228
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 ac_prev=srcdir ;;
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1232 srcdir=$ac_optarg ;;
1233
1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1239 sysconfdir=$ac_optarg ;;
1240
1241 -target | --target | --targe | --targ | --tar | --ta | --t)
1242 ac_prev=target_alias ;;
1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1244 target_alias=$ac_optarg ;;
1245
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 verbose=yes ;;
1248
1249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
1251
1252 -with-* | --with-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: '$ac_useropt'"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=\$ac_optarg ;;
1267
1268 -without-* | --without-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid package name: '$ac_useropt'"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
1283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1301
1302 -*) as_fn_error $? "unrecognized option: '$ac_option'
1303 Try '$0 --help' for more information"
1304 ;;
1305
1306 *=*)
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 case $ac_envvar in #(
1310 '' | [0-9]* | *[!_$as_cr_alnum]* )
1311 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1312 esac
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1315
1316 *)
1317 # FIXME: should be removed in autoconf 3.0.
1318 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322 ;;
1323
1324 esac
1325 done
1326
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 as_fn_error $? "missing argument to $ac_option"
1330 fi
1331
1332 if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1334 no) ;;
1335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1338 fi
1339
1340 # Check all directory arguments for consistency.
1341 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir runstatedir
1345 do
1346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
1358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1359 done
1360
1361 # There might be people who depend on the old broken behavior: '$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1364 build=$build_alias
1365 host=$host_alias
1366 target=$target_alias
1367
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375 fi
1376
1377 ac_tool_prefix=
1378 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380 test "$silent" = yes && exec 6>/dev/null
1381
1382
1383 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di=`ls -di .` &&
1385 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 as_fn_error $? "working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 printf "%s\n" X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
1418 srcdir=$ac_confdir
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 srcdir=..
1421 fi
1422 else
1423 ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 fi
1429 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1430 ac_abs_confdir=`(
1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1456 cat <<_ACEOF
1457 'configure' configures libXcomposite 0.4.7 to adapt to many kinds of systems.
1458
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1463
1464 Defaults for the options are specified in brackets.
1465
1466 Configuration:
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print 'checking ...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for '--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or '..']
1476
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 [PREFIX]
1482
1483 By default, 'make install' will install all the files in
1484 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than '$ac_default_prefix' using '--prefix',
1486 for instance '--prefix=\$HOME'.
1487
1488 For better control, use the options below.
1489
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcomposite]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1511 _ACEOF
1512
1513 cat <<\_ACEOF
1514
1515 Program names:
1516 --program-prefix=PREFIX prepend PREFIX to installed program names
1517 --program-suffix=SUFFIX append SUFFIX to installed program names
1518 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1519
1520 System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF
1524 fi
1525
1526 if test -n "$ac_init_help"; then
1527 case $ac_init_help in
1528 short | recursive ) echo "Configuration of libXcomposite 0.4.7:";;
1529 esac
1530 cat <<\_ACEOF
1531
1532 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1536 --enable-silent-rules less verbose build output (undo: "make V=1")
1537 --disable-silent-rules verbose build output (undo: "make V=0")
1538 --enable-shared[=PKGS] build shared libraries [default=yes]
1539 --enable-static[=PKGS] build static libraries [default=yes]
1540 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1541 both]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
1544 --enable-aix-soname=aix|svr4|both
1545 shared library versioning (aka "SONAME") variant to
1546 provide on AIX, [default=aix].
1547 --enable-dependency-tracking
1548 do not reject slow dependency extractors
1549 --disable-dependency-tracking
1550 speeds up one-time build
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --disable-selective-werror
1553 Turn off selective compiler errors. (default:
1554 enabled)
1555 --enable-strict-compilation
1556 Enable all warnings from compiler and make them
1557 errors (default: disabled)
1558
1559 Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1564 compiler's sysroot if not specified).
1565 --with-xmlto Use xmlto to regenerate documentation (default:
1566 auto)
1567
1568 Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
1576 LT_SYS_LIBRARY_PATH
1577 User-defined run-time library search path.
1578 PKG_CONFIG path to pkg-config utility
1579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
1583 XMLTO Path to xmlto command
1584 XCOMPOSITE_CFLAGS
1585 C compiler flags for XCOMPOSITE, overriding pkg-config
1586 XCOMPOSITE_LIBS
1587 linker flags for XCOMPOSITE, overriding pkg-config
1588 XFIXES_CFLAGS
1589 C compiler flags for XFIXES, overriding pkg-config
1590 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1591
1592 Use these variables to override the choices made by 'configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for configure.gnu first; this name is used for a wrapper for
1642 # Metaconfig's "Configure" on case-insensitive file systems.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 libXcomposite configure 0.4.7
1660 generated by GNU Autoconf 2.72
1661
1662 Copyright (C) 2023 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1667 fi
1668
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1672
1673 # ac_fn_c_try_compile LINENO
1674 # --------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext
1699 then :
1700 ac_retval=0
1701 else case e in #(
1702 e) printf "%s\n" "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1 ;;
1706 esac
1707 fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_compile
1712
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_link ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 printf "%s\n" "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest$ac_exeext && {
1739 test "$cross_compiling" = yes ||
1740 test -x conftest$ac_exeext
1741 }
1742 then :
1743 ac_retval=0
1744 else case e in #(
1745 e) printf "%s\n" "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1 ;;
1749 esac
1750 fi
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_link
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 printf %s "checking for $2... " >&6; }
1770 if eval test \${$3+y}
1771 then :
1772 printf %s "(cached) " >&6
1773 else case e in #(
1774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"
1780 then :
1781 eval "$3=yes"
1782 else case e in #(
1783 e) eval "$3=no" ;;
1784 esac
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1787 esac
1788 fi
1789 eval ac_res=\$$3
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_header_compile
1795
1796 # ac_fn_c_check_func LINENO FUNC VAR
1797 # ----------------------------------
1798 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1799 ac_fn_c_check_func ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 printf %s "checking for $2... " >&6; }
1804 if eval test \${$3+y}
1805 then :
1806 printf %s "(cached) " >&6
1807 else case e in #(
1808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1812 #define $2 innocuous_$2
1813
1814 /* System header to define __stub macros and hopefully few prototypes,
1815 which can conflict with char $2 (void); below. */
1816
1817 #include <limits.h>
1818 #undef $2
1819
1820 /* Override any GCC internal prototype to avoid an error.
1821 Use char because int might match the return type of a GCC
1822 builtin and then its argument prototype would still apply. */
1823 #ifdef __cplusplus
1824 extern "C"
1825 #endif
1826 char $2 (void);
1827 /* The GNU C library defines this for functions which it implements
1828 to always fail with ENOSYS. Some functions are actually named
1829 something starting with __ and the normal name is an alias. */
1830 #if defined __stub_$2 || defined __stub___$2
1831 choke me
1832 #endif
1833
1834 int
1835 main (void)
1836 {
1837 return $2 ();
1838 ;
1839 return 0;
1840 }
1841 _ACEOF
1842 if ac_fn_c_try_link "$LINENO"
1843 then :
1844 eval "$3=yes"
1845 else case e in #(
1846 e) eval "$3=no" ;;
1847 esac
1848 fi
1849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1850 conftest$ac_exeext conftest.$ac_ext ;;
1851 esac
1852 fi
1853 eval ac_res=\$$3
1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 printf "%s\n" "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857
1858 } # ac_fn_c_check_func
1859
1860 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1861 # ------------------------------------------------------------------
1862 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1863 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1864 ac_fn_check_decl ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 as_decl_name=`echo $2|sed 's/ *(.*//'`
1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1869 printf %s "checking whether $as_decl_name is declared... " >&6; }
1870 if eval test \${$3+y}
1871 then :
1872 printf %s "(cached) " >&6
1873 else case e in #(
1874 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1875 eval ac_save_FLAGS=\$$6
1876 as_fn_append $6 " $5"
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 $4
1880 int
1881 main (void)
1882 {
1883 #ifndef $as_decl_name
1884 #ifdef __cplusplus
1885 (void) $as_decl_use;
1886 #else
1887 (void) $as_decl_name;
1888 #endif
1889 #endif
1890
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"
1896 then :
1897 eval "$3=yes"
1898 else case e in #(
1899 e) eval "$3=no" ;;
1900 esac
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1903 eval $6=\$ac_save_FLAGS
1904 ;;
1905 esac
1906 fi
1907 eval ac_res=\$$3
1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 printf "%s\n" "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_check_decl
1913 ac_configure_args_raw=
1914 for ac_arg
1915 do
1916 case $ac_arg in
1917 *\'*)
1918 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 esac
1920 as_fn_append ac_configure_args_raw " '$ac_arg'"
1921 done
1922
1923 case $ac_configure_args_raw in
1924 *$as_nl*)
1925 ac_safe_unquote= ;;
1926 *)
1927 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1928 ac_unsafe_a="$ac_unsafe_z#~"
1929 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1930 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1931 esac
1932
1933 cat >config.log <<_ACEOF
1934 This file contains any messages produced by compilers while
1935 running configure, to aid debugging if configure makes a mistake.
1936
1937 It was created by libXcomposite $as_me 0.4.7, which was
1938 generated by GNU Autoconf 2.72. Invocation command line was
1939
1940 $ $0$ac_configure_args_raw
1941
1942 _ACEOF
1943 exec 5>>config.log
1944 {
1945 cat <<_ASUNAME
1946 ## --------- ##
1947 ## Platform. ##
1948 ## --------- ##
1949
1950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
1956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1958
1959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1966
1967 _ASUNAME
1968
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 case $as_dir in #(((
1974 '') as_dir=./ ;;
1975 */) ;;
1976 *) as_dir=$as_dir/ ;;
1977 esac
1978 printf "%s\n" "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 2)
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
2034 as_fn_append ac_configure_args " '$ac_arg'"
2035 ;;
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Sanitize IFS.
2049 IFS=" "" $as_nl"
2050 # Save into config.log some information that might help in debugging.
2051 {
2052 echo
2053
2054 printf "%s\n" "## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##"
2057 echo
2058 # The following way of writing the cache mishandles newlines in values,
2059 (
2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in #(
2063 *${as_nl}*)
2064 case $ac_var in #(
2065 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067 esac
2068 case $ac_var in #(
2069 _ | IFS | as_nl) ;; #(
2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071 *) { eval $ac_var=; unset $ac_var;} ;;
2072 esac ;;
2073 esac
2074 done
2075 (set) 2>&1 |
2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077 *${as_nl}ac_space=\ *)
2078 sed -n \
2079 "s/'\''/'\''\\\\'\'''\''/g;
2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081 ;; #(
2082 *)
2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084 ;;
2085 esac |
2086 sort
2087 )
2088 echo
2089
2090 printf "%s\n" "## ----------------- ##
2091 ## Output variables. ##
2092 ## ----------------- ##"
2093 echo
2094 for ac_var in $ac_subst_vars
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 printf "%s\n" "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103
2104 if test -n "$ac_subst_files"; then
2105 printf "%s\n" "## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##"
2108 echo
2109 for ac_var in $ac_subst_files
2110 do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 printf "%s\n" "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2118 fi
2119
2120 if test -s confdefs.h; then
2121 printf "%s\n" "## ----------- ##
2122 ## confdefs.h. ##
2123 ## ----------- ##"
2124 echo
2125 cat confdefs.h
2126 echo
2127 fi
2128 test "$ac_signal" != 0 &&
2129 printf "%s\n" "$as_me: caught signal $ac_signal"
2130 printf "%s\n" "$as_me: exit $exit_status"
2131 } >&5
2132 rm -f core *.core core.conftest.* &&
2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134 exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 printf "%s\n" "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2149
2150 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2151
2152 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2153
2154 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2155
2156 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_files="$CONFIG_SITE"
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2167 else
2168 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2169 fi
2170
2171 for ac_site_file in $ac_site_files
2172 do
2173 case $ac_site_file in #(
2174 */*) :
2175 ;; #(
2176 *) :
2177 ac_site_file=./$ac_site_file ;;
2178 esac
2179 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2185 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2186 as_fn_error $? "failed to load site script $ac_site_file
2187 See 'config.log' for more details" "$LINENO" 5; }
2188 fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2207
2208 # Test code for whether the C compiler supports C89 (global declarations)
2209 ac_c_conftest_c89_globals='
2210 /* Does the compiler advertise C89 conformance?
2211 Do not test the value of __STDC__, because some compilers set it to 0
2212 while being otherwise adequately conformant. */
2213 #if !defined __STDC__
2214 # error "Compiler does not advertise C89 conformance"
2215 #endif
2216
2217 #include <stddef.h>
2218 #include <stdarg.h>
2219 struct stat;
2220 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2221 struct buf { int x; };
2222 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2223 static char *e (char **p, int i)
2224 {
2225 return p[i];
2226 }
2227 static char *f (char * (*g) (char **, int), char **p, ...)
2228 {
2229 char *s;
2230 va_list v;
2231 va_start (v,p);
2232 s = g (p, va_arg (v,int));
2233 va_end (v);
2234 return s;
2235 }
2236
2237 /* C89 style stringification. */
2238 #define noexpand_stringify(a) #a
2239 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2240
2241 /* C89 style token pasting. Exercises some of the corner cases that
2242 e.g. old MSVC gets wrong, but not very hard. */
2243 #define noexpand_concat(a,b) a##b
2244 #define expand_concat(a,b) noexpand_concat(a,b)
2245 extern int vA;
2246 extern int vbee;
2247 #define aye A
2248 #define bee B
2249 int *pvA = &expand_concat(v,aye);
2250 int *pvbee = &noexpand_concat(v,bee);
2251
2252 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2253 function prototypes and stuff, but not \xHH hex character constants.
2254 These do not provoke an error unfortunately, instead are silently treated
2255 as an "x". The following induces an error, until -std is added to get
2256 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2257 array size at least. It is necessary to write \x00 == 0 to get something
2258 that is true only with -std. */
2259 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2260
2261 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2262 inside strings and character constants. */
2263 #define FOO(x) '\''x'\''
2264 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2265
2266 int test (int i, double x);
2267 struct s1 {int (*f) (int a);};
2268 struct s2 {int (*f) (double a);};
2269 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2270 int, int);'
2271
2272 # Test code for whether the C compiler supports C89 (body of main).
2273 ac_c_conftest_c89_main='
2274 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2275 '
2276
2277 # Test code for whether the C compiler supports C99 (global declarations)
2278 ac_c_conftest_c99_globals='
2279 /* Does the compiler advertise C99 conformance? */
2280 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2281 # error "Compiler does not advertise C99 conformance"
2282 #endif
2283
2284 // See if C++-style comments work.
2285
2286 #include <stdbool.h>
2287 extern int puts (const char *);
2288 extern int printf (const char *, ...);
2289 extern int dprintf (int, const char *, ...);
2290 extern void *malloc (size_t);
2291 extern void free (void *);
2292
2293 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2294 // dprintf is used instead of fprintf to avoid needing to declare
2295 // FILE and stderr.
2296 #define debug(...) dprintf (2, __VA_ARGS__)
2297 #define showlist(...) puts (#__VA_ARGS__)
2298 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2299 static void
2300 test_varargs_macros (void)
2301 {
2302 int x = 1234;
2303 int y = 5678;
2304 debug ("Flag");
2305 debug ("X = %d\n", x);
2306 showlist (The first, second, and third items.);
2307 report (x>y, "x is %d but y is %d", x, y);
2308 }
2309
2310 // Check long long types.
2311 #define BIG64 18446744073709551615ull
2312 #define BIG32 4294967295ul
2313 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2314 #if !BIG_OK
2315 #error "your preprocessor is broken"
2316 #endif
2317 #if BIG_OK
2318 #else
2319 #error "your preprocessor is broken"
2320 #endif
2321 static long long int bignum = -9223372036854775807LL;
2322 static unsigned long long int ubignum = BIG64;
2323
2324 struct incomplete_array
2325 {
2326 int datasize;
2327 double data[];
2328 };
2329
2330 struct named_init {
2331 int number;
2332 const wchar_t *name;
2333 double average;
2334 };
2335
2336 typedef const char *ccp;
2337
2338 static inline int
2339 test_restrict (ccp restrict text)
2340 {
2341 // Iterate through items via the restricted pointer.
2342 // Also check for declarations in for loops.
2343 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2344 continue;
2345 return 0;
2346 }
2347
2348 // Check varargs and va_copy.
2349 static bool
2350 test_varargs (const char *format, ...)
2351 {
2352 va_list args;
2353 va_start (args, format);
2354 va_list args_copy;
2355 va_copy (args_copy, args);
2356
2357 const char *str = "";
2358 int number = 0;
2359 float fnumber = 0;
2360
2361 while (*format)
2362 {
2363 switch (*format++)
2364 {
2365 case '\''s'\'': // string
2366 str = va_arg (args_copy, const char *);
2367 break;
2368 case '\''d'\'': // int
2369 number = va_arg (args_copy, int);
2370 break;
2371 case '\''f'\'': // float
2372 fnumber = va_arg (args_copy, double);
2373 break;
2374 default:
2375 break;
2376 }
2377 }
2378 va_end (args_copy);
2379 va_end (args);
2380
2381 return *str && number && fnumber;
2382 }
2383 '
2384
2385 # Test code for whether the C compiler supports C99 (body of main).
2386 ac_c_conftest_c99_main='
2387 // Check bool.
2388 _Bool success = false;
2389 success |= (argc != 0);
2390
2391 // Check restrict.
2392 if (test_restrict ("String literal") == 0)
2393 success = true;
2394 char *restrict newvar = "Another string";
2395
2396 // Check varargs.
2397 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2398 test_varargs_macros ();
2399
2400 // Check flexible array members.
2401 struct incomplete_array *ia =
2402 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2403 ia->datasize = 10;
2404 for (int i = 0; i < ia->datasize; ++i)
2405 ia->data[i] = i * 1.234;
2406 // Work around memory leak warnings.
2407 free (ia);
2408
2409 // Check named initializers.
2410 struct named_init ni = {
2411 .number = 34,
2412 .name = L"Test wide string",
2413 .average = 543.34343,
2414 };
2415
2416 ni.number = 58;
2417
2418 int dynamic_array[ni.number];
2419 dynamic_array[0] = argv[0][0];
2420 dynamic_array[ni.number - 1] = 543;
2421
2422 // work around unused variable warnings
2423 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2424 || dynamic_array[ni.number - 1] != 543);
2425 '
2426
2427 # Test code for whether the C compiler supports C11 (global declarations)
2428 ac_c_conftest_c11_globals='
2429 /* Does the compiler advertise C11 conformance? */
2430 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2431 # error "Compiler does not advertise C11 conformance"
2432 #endif
2433
2434 // Check _Alignas.
2435 char _Alignas (double) aligned_as_double;
2436 char _Alignas (0) no_special_alignment;
2437 extern char aligned_as_int;
2438 char _Alignas (0) _Alignas (int) aligned_as_int;
2439
2440 // Check _Alignof.
2441 enum
2442 {
2443 int_alignment = _Alignof (int),
2444 int_array_alignment = _Alignof (int[100]),
2445 char_alignment = _Alignof (char)
2446 };
2447 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2448
2449 // Check _Noreturn.
2450 int _Noreturn does_not_return (void) { for (;;) continue; }
2451
2452 // Check _Static_assert.
2453 struct test_static_assert
2454 {
2455 int x;
2456 _Static_assert (sizeof (int) <= sizeof (long int),
2457 "_Static_assert does not work in struct");
2458 long int y;
2459 };
2460
2461 // Check UTF-8 literals.
2462 #define u8 syntax error!
2463 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2464
2465 // Check duplicate typedefs.
2466 typedef long *long_ptr;
2467 typedef long int *long_ptr;
2468 typedef long_ptr long_ptr;
2469
2470 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2471 struct anonymous
2472 {
2473 union {
2474 struct { int i; int j; };
2475 struct { int k; long int l; } w;
2476 };
2477 int m;
2478 } v1;
2479 '
2480
2481 # Test code for whether the C compiler supports C11 (body of main).
2482 ac_c_conftest_c11_main='
2483 _Static_assert ((offsetof (struct anonymous, i)
2484 == offsetof (struct anonymous, w.k)),
2485 "Anonymous union alignment botch");
2486 v1.i = 2;
2487 v1.w.k = 5;
2488 ok |= v1.i != 5;
2489 '
2490
2491 # Test code for whether the C compiler supports C11 (complete).
2492 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2493 ${ac_c_conftest_c99_globals}
2494 ${ac_c_conftest_c11_globals}
2495
2496 int
2497 main (int argc, char **argv)
2498 {
2499 int ok = 0;
2500 ${ac_c_conftest_c89_main}
2501 ${ac_c_conftest_c99_main}
2502 ${ac_c_conftest_c11_main}
2503 return ok;
2504 }
2505 "
2506
2507 # Test code for whether the C compiler supports C99 (complete).
2508 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2509 ${ac_c_conftest_c99_globals}
2510
2511 int
2512 main (int argc, char **argv)
2513 {
2514 int ok = 0;
2515 ${ac_c_conftest_c89_main}
2516 ${ac_c_conftest_c99_main}
2517 return ok;
2518 }
2519 "
2520
2521 # Test code for whether the C compiler supports C89 (complete).
2522 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2523
2524 int
2525 main (int argc, char **argv)
2526 {
2527 int ok = 0;
2528 ${ac_c_conftest_c89_main}
2529 return ok;
2530 }
2531 "
2532
2533 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2534 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2535 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2536 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2537 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2538 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2539 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2540 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2541 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2542
2543 # Auxiliary files required by this configure script.
2544 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2545
2546 # Locations in which to look for auxiliary files.
2547 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2548
2549 # Search for a directory containing all of the required auxiliary files,
2550 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2551 # If we don't find one directory that contains all the files we need,
2552 # we report the set of missing files from the *first* directory in
2553 # $ac_aux_dir_candidates and give up.
2554 ac_missing_aux_files=""
2555 ac_first_candidate=:
2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 as_found=false
2559 for as_dir in $ac_aux_dir_candidates
2560 do
2561 IFS=$as_save_IFS
2562 case $as_dir in #(((
2563 '') as_dir=./ ;;
2564 */) ;;
2565 *) as_dir=$as_dir/ ;;
2566 esac
2567 as_found=:
2568
2569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2570 ac_aux_dir_found=yes
2571 ac_install_sh=
2572 for ac_aux in $ac_aux_files
2573 do
2574 # As a special case, if "install-sh" is required, that requirement
2575 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2576 # and $ac_install_sh is set appropriately for whichever one is found.
2577 if test x"$ac_aux" = x"install-sh"
2578 then
2579 if test -f "${as_dir}install-sh"; then
2580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2581 ac_install_sh="${as_dir}install-sh -c"
2582 elif test -f "${as_dir}install.sh"; then
2583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2584 ac_install_sh="${as_dir}install.sh -c"
2585 elif test -f "${as_dir}shtool"; then
2586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2587 ac_install_sh="${as_dir}shtool install -c"
2588 else
2589 ac_aux_dir_found=no
2590 if $ac_first_candidate; then
2591 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2592 else
2593 break
2594 fi
2595 fi
2596 else
2597 if test -f "${as_dir}${ac_aux}"; then
2598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2599 else
2600 ac_aux_dir_found=no
2601 if $ac_first_candidate; then
2602 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2603 else
2604 break
2605 fi
2606 fi
2607 fi
2608 done
2609 if test "$ac_aux_dir_found" = yes; then
2610 ac_aux_dir="$as_dir"
2611 break
2612 fi
2613 ac_first_candidate=false
2614
2615 as_found=false
2616 done
2617 IFS=$as_save_IFS
2618 if $as_found
2619 then :
2620
2621 else case e in #(
2622 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2623 esac
2624 fi
2625
2626
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 if test -f "${ac_aux_dir}config.guess"; then
2632 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2633 fi
2634 if test -f "${ac_aux_dir}config.sub"; then
2635 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2636 fi
2637 if test -f "$ac_aux_dir/configure"; then
2638 ac_configure="$SHELL ${ac_aux_dir}configure"
2639 fi
2640
2641 # Check that the precious variables saved in the cache have kept the same
2642 # value.
2643 ac_cache_corrupted=false
2644 for ac_var in $ac_precious_vars; do
2645 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646 eval ac_new_set=\$ac_env_${ac_var}_set
2647 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648 eval ac_new_val=\$ac_env_${ac_var}_value
2649 case $ac_old_set,$ac_new_set in
2650 set,)
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2652 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2654 ,set)
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2656 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2657 ac_cache_corrupted=: ;;
2658 ,);;
2659 *)
2660 if test "x$ac_old_val" != "x$ac_new_val"; then
2661 # differences in whitespace do not lead to failure.
2662 ac_old_val_w=`echo x $ac_old_val`
2663 ac_new_val_w=`echo x $ac_new_val`
2664 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2666 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2667 ac_cache_corrupted=:
2668 else
2669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2670 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2671 eval $ac_var=\$ac_old_val
2672 fi
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2674 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2676 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2677 fi;;
2678 esac
2679 # Pass precious variables to config.status.
2680 if test "$ac_new_set" = set; then
2681 case $ac_new_val in
2682 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683 *) ac_arg=$ac_var=$ac_new_val ;;
2684 esac
2685 case " $ac_configure_args " in
2686 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2687 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688 esac
2689 fi
2690 done
2691 if $ac_cache_corrupted; then
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2693 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2696 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2697 and start over" "$LINENO" 5
2698 fi
2699 ## -------------------- ##
2700 ## Main body of script. ##
2701 ## -------------------- ##
2702
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708
2709
2710
2711 ac_config_headers="$ac_config_headers config.h"
2712
2713
2714
2715 # Initialize Automake
2716 am__api_version='1.18'
2717
2718
2719
2720 # Find a good install program. We prefer a C program (faster),
2721 # so one script is as good as another. But avoid the broken or
2722 # incompatible versions:
2723 # SysV /etc/install, /usr/sbin/install
2724 # SunOS /usr/etc/install
2725 # IRIX /sbin/install
2726 # AIX /bin/install
2727 # AmigaOS /C/install, which installs bootblocks on floppy discs
2728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2731 # OS/2's system install, which has a completely different semantic
2732 # ./install, which can be erroneously created by make from ./install.sh.
2733 # Reject install programs that cannot install multiple files.
2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2735 printf %s "checking for a BSD-compatible install... " >&6; }
2736 if test -z "$INSTALL"; then
2737 if test ${ac_cv_path_install+y}
2738 then :
2739 printf %s "(cached) " >&6
2740 else case e in #(
2741 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 case $as_dir in #(((
2746 '') as_dir=./ ;;
2747 */) ;;
2748 *) as_dir=$as_dir/ ;;
2749 esac
2750 # Account for fact that we put trailing slashes in our PATH walk.
2751 case $as_dir in #((
2752 ./ | /[cC]/* | \
2753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2754 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2755 /usr/ucb/* ) ;;
2756 *)
2757 # OSF1 and SCO ODT 3.0 have their own names for install.
2758 # Don't use installbsd from OSF since it installs stuff as root
2759 # by default.
2760 for ac_prog in ginstall scoinst install; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2763 if test $ac_prog = install &&
2764 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2765 # AIX install. It has an incompatible calling convention.
2766 :
2767 elif test $ac_prog = install &&
2768 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2769 # program-specific install script used by HP pwplus--don't use.
2770 :
2771 else
2772 rm -rf conftest.one conftest.two conftest.dir
2773 echo one > conftest.one
2774 echo two > conftest.two
2775 mkdir conftest.dir
2776 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2777 test -s conftest.one && test -s conftest.two &&
2778 test -s conftest.dir/conftest.one &&
2779 test -s conftest.dir/conftest.two
2780 then
2781 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2782 break 3
2783 fi
2784 fi
2785 fi
2786 done
2787 done
2788 ;;
2789 esac
2790
2791 done
2792 IFS=$as_save_IFS
2793
2794 rm -rf conftest.one conftest.two conftest.dir
2795 ;;
2796 esac
2797 fi
2798 if test ${ac_cv_path_install+y}; then
2799 INSTALL=$ac_cv_path_install
2800 else
2801 # As a last resort, use the slow shell script. Don't cache a
2802 # value for INSTALL within a source directory, because that will
2803 # break other packages using the cache if that directory is
2804 # removed, or if the value is a relative name.
2805 INSTALL=$ac_install_sh
2806 fi
2807 fi
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2809 printf "%s\n" "$INSTALL" >&6; }
2810
2811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2812 # It thinks the first close brace ends the variable substitution.
2813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2814
2815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2816
2817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2818
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2820 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2821 if test ${am_cv_sleep_fractional_seconds+y}
2822 then :
2823 printf %s "(cached) " >&6
2824 else case e in #(
2825 e) if sleep 0.001 2>/dev/null
2826 then :
2827 am_cv_sleep_fractional_seconds=yes
2828 else case e in #(
2829 e) am_cv_sleep_fractional_seconds=no ;;
2830 esac
2831 fi
2832 ;;
2833 esac
2834 fi
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2836 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2837
2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2839 printf %s "checking filesystem timestamp resolution... " >&6; }
2840 if test ${am_cv_filesystem_timestamp_resolution+y}
2841 then :
2842 printf %s "(cached) " >&6
2843 else case e in #(
2844 e) # Default to the worst case.
2845 am_cv_filesystem_timestamp_resolution=2
2846
2847 # Only try to go finer than 1 sec if sleep can do it.
2848 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2849 # - 1 sec is not much of a win compared to 2 sec, and
2850 # - it takes 2 seconds to perform the test whether 1 sec works.
2851 #
2852 # Instead, just use the default 2s on platforms that have 1s resolution,
2853 # accept the extra 1s delay when using $sleep in the Automake tests, in
2854 # exchange for not incurring the 2s delay for running the test for all
2855 # packages.
2856 #
2857 am_try_resolutions=
2858 if test "$am_cv_sleep_fractional_seconds" = yes; then
2859 # Even a millisecond often causes a bunch of false positives,
2860 # so just try a hundredth of a second. The time saved between .001 and
2861 # .01 is not terribly consequential.
2862 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2863 fi
2864
2865 # In order to catch current-generation FAT out, we must *modify* files
2866 # that already exist; the *creation* timestamp is finer. Use names
2867 # that make ls -t sort them differently when they have equal
2868 # timestamps than when they have distinct timestamps, keeping
2869 # in mind that ls -t prints the *newest* file first.
2870 rm -f conftest.ts?
2871 : > conftest.ts1
2872 : > conftest.ts2
2873 : > conftest.ts3
2874
2875 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2876 # clobber the current shell's arguments. (Outer-level square brackets
2877 # are removed by m4; they're present so that m4 does not expand
2878 # <dollar><star>; be careful, easy to get confused.)
2879 if (
2880 set X `ls -t conftest.ts[12]` &&
2881 {
2882 test "$*" != "X conftest.ts1 conftest.ts2" ||
2883 test "$*" != "X conftest.ts2 conftest.ts1";
2884 }
2885 ); then :; else
2886 # If neither matched, then we have a broken ls. This can happen
2887 # if, for instance, CONFIG_SHELL is bash and it inherits a
2888 # broken ls alias from the environment. This has actually
2889 # happened. Such a system could not be considered "sane".
2890 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2891 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2892 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2893 as_fn_error $? "ls -t produces unexpected output.
2894 Make sure there is not a broken ls alias in your environment.
2895 See 'config.log' for more details" "$LINENO" 5; }
2896 fi
2897
2898 for am_try_res in $am_try_resolutions; do
2899 # Any one fine-grained sleep might happen to cross the boundary
2900 # between two values of a coarser actual resolution, but if we do
2901 # two fine-grained sleeps in a row, at least one of them will fall
2902 # entirely within a coarse interval.
2903 echo alpha > conftest.ts1
2904 sleep $am_try_res
2905 echo beta > conftest.ts2
2906 sleep $am_try_res
2907 echo gamma > conftest.ts3
2908
2909 # We assume that 'ls -t' will make use of high-resolution
2910 # timestamps if the operating system supports them at all.
2911 if (set X `ls -t conftest.ts?` &&
2912 test "$2" = conftest.ts3 &&
2913 test "$3" = conftest.ts2 &&
2914 test "$4" = conftest.ts1); then
2915 #
2916 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2917 # because we don't need to test make.
2918 make_ok=true
2919 if test $am_try_res != 1; then
2920 # But if we've succeeded so far with a subsecond resolution, we
2921 # have one more thing to check: make. It can happen that
2922 # everything else supports the subsecond mtimes, but make doesn't;
2923 # notably on macOS, which ships make 3.81 from 2006 (the last one
2924 # released under GPLv2). https://bugs.gnu.org/68808
2925 #
2926 # We test $MAKE if it is defined in the environment, else "make".
2927 # It might get overridden later, but our hope is that in practice
2928 # it does not matter: it is the system "make" which is (by far)
2929 # the most likely to be broken, whereas if the user overrides it,
2930 # probably they did so with a better, or at least not worse, make.
2931 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2932 #
2933 # Create a Makefile (real tab character here):
2934 rm -f conftest.mk
2935 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2936 echo ' touch conftest.ts2' >>conftest.mk
2937 #
2938 # Now, running
2939 # touch conftest.ts1; touch conftest.ts2; make
2940 # should touch ts1 because ts2 is newer. This could happen by luck,
2941 # but most often, it will fail if make's support is insufficient. So
2942 # test for several consecutive successes.
2943 #
2944 # (We reuse conftest.ts[12] because we still want to modify existing
2945 # files, not create new ones, per above.)
2946 n=0
2947 make=${MAKE-make}
2948 until test $n -eq 3; do
2949 echo one > conftest.ts1
2950 sleep $am_try_res
2951 echo two > conftest.ts2 # ts2 should now be newer than ts1
2952 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2953 make_ok=false
2954 break # out of $n loop
2955 fi
2956 n=`expr $n + 1`
2957 done
2958 fi
2959 #
2960 if $make_ok; then
2961 # Everything we know to check worked out, so call this resolution good.
2962 am_cv_filesystem_timestamp_resolution=$am_try_res
2963 break # out of $am_try_res loop
2964 fi
2965 # Otherwise, we'll go on to check the next resolution.
2966 fi
2967 done
2968 rm -f conftest.ts?
2969 # (end _am_filesystem_timestamp_resolution)
2970 ;;
2971 esac
2972 fi
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2974 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2975
2976 # This check should not be cached, as it may vary across builds of
2977 # different projects.
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2979 printf %s "checking whether build environment is sane... " >&6; }
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2982 am_lf='
2983 '
2984 case `pwd` in
2985 *[\\\"\#\$\&\'\`$am_lf]*)
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 printf "%s\n" "no" >&6; }
2988 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2989 esac
2990 case $srcdir in
2991 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 printf "%s\n" "no" >&6; }
2994 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2995 esac
2996
2997 # Do 'set' in a subshell so we don't clobber the current shell's
2998 # arguments. Must try -L first in case configure is actually a
2999 # symlink; some systems play weird games with the mod time of symlinks
3000 # (eg FreeBSD returns the mod time of the symlink's containing
3001 # directory).
3002 am_build_env_is_sane=no
3003 am_has_slept=no
3004 rm -f conftest.file
3005 for am_try in 1 2; do
3006 echo "timestamp, slept: $am_has_slept" > conftest.file
3007 if (
3008 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3009 if test "$*" = "X"; then
3010 # -L didn't work.
3011 set X `ls -t "$srcdir/configure" conftest.file`
3012 fi
3013 test "$2" = conftest.file
3014 ); then
3015 am_build_env_is_sane=yes
3016 break
3017 fi
3018 # Just in case.
3019 sleep "$am_cv_filesystem_timestamp_resolution"
3020 am_has_slept=yes
3021 done
3022
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3024 printf "%s\n" "$am_build_env_is_sane" >&6; }
3025 if test "$am_build_env_is_sane" = no; then
3026 as_fn_error $? "newly created file is older than distributed files!
3027 Check your system clock" "$LINENO" 5
3028 fi
3029
3030 # If we didn't sleep, we still need to ensure time stamps of config.status and
3031 # generated files are strictly newer.
3032 am_sleep_pid=
3033 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3034 then :
3035
3036 else case e in #(
3037 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3038 am_sleep_pid=$!
3039 ;;
3040 esac
3041 fi
3042
3043 rm -f conftest.file
3044
3045 test "$program_prefix" != NONE &&
3046 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3047 # Use a double $ so make ignores it.
3048 test "$program_suffix" != NONE &&
3049 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3050 # Double any \ or $.
3051 # By default was 's,x,x', remove it if useless.
3052 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3053 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3054
3055
3056 # Expand $ac_aux_dir to an absolute path.
3057 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3058
3059
3060 if test x"${MISSING+set}" != xset; then
3061 MISSING="\${SHELL} '$am_aux_dir/missing'"
3062 fi
3063 # Use eval to expand $SHELL
3064 if eval "$MISSING --is-lightweight"; then
3065 am_missing_run="$MISSING "
3066 else
3067 am_missing_run=
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3069 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3070 fi
3071
3072 if test x"${install_sh+set}" != xset; then
3073 case $am_aux_dir in
3074 *\ * | *\ *)
3075 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3076 *)
3077 install_sh="\${SHELL} $am_aux_dir/install-sh"
3078 esac
3079 fi
3080
3081 # Installed binaries are usually stripped using 'strip' when the user
3082 # run "make install-strip". However 'strip' might not be the right
3083 # tool to use in cross-compilation environments, therefore Automake
3084 # will honor the 'STRIP' environment variable to overrule this program.
3085 if test "$cross_compiling" != no; then
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}strip; ac_word=$2
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 printf %s "checking for $ac_word... " >&6; }
3091 if test ${ac_cv_prog_STRIP+y}
3092 then :
3093 printf %s "(cached) " >&6
3094 else case e in #(
3095 e) if test -n "$STRIP"; then
3096 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 case $as_dir in #(((
3103 '') as_dir=./ ;;
3104 */) ;;
3105 *) as_dir=$as_dir/ ;;
3106 esac
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi ;;
3118 esac
3119 fi
3120 STRIP=$ac_cv_prog_STRIP
3121 if test -n "$STRIP"; then
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3123 printf "%s\n" "$STRIP" >&6; }
3124 else
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 printf "%s\n" "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$ac_cv_prog_STRIP"; then
3132 ac_ct_STRIP=$STRIP
3133 # Extract the first word of "strip", so it can be a program name with args.
3134 set dummy strip; ac_word=$2
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 printf %s "checking for $ac_word... " >&6; }
3137 if test ${ac_cv_prog_ac_ct_STRIP+y}
3138 then :
3139 printf %s "(cached) " >&6
3140 else case e in #(
3141 e) if test -n "$ac_ct_STRIP"; then
3142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 case $as_dir in #(((
3149 '') as_dir=./ ;;
3150 */) ;;
3151 *) as_dir=$as_dir/ ;;
3152 esac
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_STRIP="strip"
3156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi ;;
3164 esac
3165 fi
3166 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3167 if test -n "$ac_ct_STRIP"; then
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3169 printf "%s\n" "$ac_ct_STRIP" >&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_STRIP" = x; then
3176 STRIP=":"
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 STRIP=$ac_ct_STRIP
3185 fi
3186 else
3187 STRIP="$ac_cv_prog_STRIP"
3188 fi
3189
3190 fi
3191 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3192
3193
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3195 printf %s "checking for a race-free mkdir -p... " >&6; }
3196 if test -z "$MKDIR_P"; then
3197 if test ${ac_cv_path_mkdir+y}
3198 then :
3199 printf %s "(cached) " >&6
3200 else case e in #(
3201 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3203 do
3204 IFS=$as_save_IFS
3205 case $as_dir in #(((
3206 '') as_dir=./ ;;
3207 */) ;;
3208 *) as_dir=$as_dir/ ;;
3209 esac
3210 for ac_prog in mkdir gmkdir; do
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3213 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3214 'mkdir ('*'coreutils) '* | \
3215 *'BusyBox '* | \
3216 'mkdir (fileutils) '4.1*)
3217 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3218 break 3;;
3219 esac
3220 done
3221 done
3222 done
3223 IFS=$as_save_IFS
3224 ;;
3225 esac
3226 fi
3227
3228 test -d ./--version && rmdir ./--version
3229 if test ${ac_cv_path_mkdir+y}; then
3230 MKDIR_P="$ac_cv_path_mkdir -p"
3231 else
3232 # As a last resort, use plain mkdir -p,
3233 # in the hope it doesn't have the bugs of ancient mkdir.
3234 MKDIR_P='mkdir -p'
3235 fi
3236 fi
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3238 printf "%s\n" "$MKDIR_P" >&6; }
3239
3240 for ac_prog in gawk mawk nawk awk
3241 do
3242 # Extract the first word of "$ac_prog", so it can be a program name with args.
3243 set dummy $ac_prog; ac_word=$2
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 printf %s "checking for $ac_word... " >&6; }
3246 if test ${ac_cv_prog_AWK+y}
3247 then :
3248 printf %s "(cached) " >&6
3249 else case e in #(
3250 e) if test -n "$AWK"; then
3251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 case $as_dir in #(((
3258 '') as_dir=./ ;;
3259 */) ;;
3260 *) as_dir=$as_dir/ ;;
3261 esac
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_AWK="$ac_prog"
3265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi ;;
3273 esac
3274 fi
3275 AWK=$ac_cv_prog_AWK
3276 if test -n "$AWK"; then
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3278 printf "%s\n" "$AWK" >&6; }
3279 else
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 printf "%s\n" "no" >&6; }
3282 fi
3283
3284
3285 test -n "$AWK" && break
3286 done
3287
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3289 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3290 set x ${MAKE-make}
3291 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3292 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3293 then :
3294 printf %s "(cached) " >&6
3295 else case e in #(
3296 e) cat >conftest.make <<\_ACEOF
3297 SHELL = /bin/sh
3298 all:
3299 @echo '@@@%%%=$(MAKE)=@@@%%%'
3300 _ACEOF
3301 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3302 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3303 *@@@%%%=?*=@@@%%%*)
3304 eval ac_cv_prog_make_${ac_make}_set=yes;;
3305 *)
3306 eval ac_cv_prog_make_${ac_make}_set=no;;
3307 esac
3308 rm -f conftest.make ;;
3309 esac
3310 fi
3311 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 printf "%s\n" "yes" >&6; }
3314 SET_MAKE=
3315 else
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 printf "%s\n" "no" >&6; }
3318 SET_MAKE="MAKE=${MAKE-make}"
3319 fi
3320
3321 rm -rf .tst 2>/dev/null
3322 mkdir .tst 2>/dev/null
3323 if test -d .tst; then
3324 am__leading_dot=.
3325 else
3326 am__leading_dot=_
3327 fi
3328 rmdir .tst 2>/dev/null
3329
3330 AM_DEFAULT_VERBOSITY=1
3331 # Check whether --enable-silent-rules was given.
3332 if test ${enable_silent_rules+y}
3333 then :
3334 enableval=$enable_silent_rules;
3335 fi
3336
3337 am_make=${MAKE-make}
3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3339 printf %s "checking whether $am_make supports nested variables... " >&6; }
3340 if test ${am_cv_make_support_nested_variables+y}
3341 then :
3342 printf %s "(cached) " >&6
3343 else case e in #(
3344 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3345 BAR0=false
3346 BAR1=true
3347 V=1
3348 am__doit:
3349 @$(TRUE)
3350 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3351 am_cv_make_support_nested_variables=yes
3352 else
3353 am_cv_make_support_nested_variables=no
3354 fi ;;
3355 esac
3356 fi
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3358 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3359 AM_BACKSLASH='\'
3360
3361 am__rm_f_notfound=
3362 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3363 then :
3364
3365 else case e in #(
3366 e) am__rm_f_notfound='""' ;;
3367 esac
3368 fi
3369
3370
3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3372 printf %s "checking xargs -n works... " >&6; }
3373 if test ${am_cv_xargs_n_works+y}
3374 then :
3375 printf %s "(cached) " >&6
3376 else case e in #(
3377 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3378 3"
3379 then :
3380 am_cv_xargs_n_works=yes
3381 else case e in #(
3382 e) am_cv_xargs_n_works=no ;;
3383 esac
3384 fi ;;
3385 esac
3386 fi
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3388 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3389 if test "$am_cv_xargs_n_works" = yes
3390 then :
3391 am__xargs_n='xargs -n'
3392 else case e in #(
3393 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3394 ;;
3395 esac
3396 fi
3397
3398 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3399 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3400 # is not polluted with repeated "-I."
3401 am__isrc=' -I$(srcdir)'
3402 # test to see if srcdir already configured
3403 if test -f $srcdir/config.status; then
3404 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3405 fi
3406 fi
3407
3408 # test whether we have cygpath
3409 if test -z "$CYGPATH_W"; then
3410 if (cygpath --version) >/dev/null 2>/dev/null; then
3411 CYGPATH_W='cygpath -w'
3412 else
3413 CYGPATH_W=echo
3414 fi
3415 fi
3416
3417
3418 # Define the identity of the package.
3419 PACKAGE='libXcomposite'
3420 VERSION='0.4.7'
3421
3422
3423 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3424
3425
3426 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3427
3428 # Some tools Automake needs.
3429
3430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3431
3432
3433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3434
3435
3436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3437
3438
3439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3440
3441
3442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3443
3444 # For better backward compatibility. To be removed once Automake 1.9.x
3445 # dies out for good. For more background, see:
3446 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3447 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3448 mkdir_p='$(MKDIR_P)'
3449
3450 # We need awk for the "check" target (and possibly the TAP driver). The
3451 # system "awk" is bad on some platforms.
3452 # Always define AMTAR for backward compatibility. Yes, it's still used
3453 # in the wild :-( We should find a proper way to deprecate it ...
3454 AMTAR='$${TAR-tar}'
3455
3456
3457 # We'll loop over all known methods to create a tar archive until one works.
3458 _am_tools='gnutar plaintar pax cpio none'
3459
3460 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3461 # There is notably a 21 bits limit for the UID and the GID. In fact,
3462 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3463 # and bug#13588).
3464 am_max_uid=2097151 # 2^21 - 1
3465 am_max_gid=$am_max_uid
3466 # The $UID and $GID variables are not portable, so we need to resort
3467 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3468 # below are definitely unexpected, so allow the users to see them
3469 # (that is, avoid stderr redirection).
3470 am_uid=`id -u || echo unknown`
3471 am_gid=`id -g || echo unknown`
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3473 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3474 if test x$am_uid = xunknown; then
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3476 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3477 elif test $am_uid -le $am_max_uid; then
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 printf "%s\n" "yes" >&6; }
3480 else
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 printf "%s\n" "no" >&6; }
3483 _am_tools=none
3484 fi
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3486 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3487 if test x$gm_gid = xunknown; then
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3489 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3490 elif test $am_gid -le $am_max_gid; then
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 printf "%s\n" "yes" >&6; }
3493 else
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 printf "%s\n" "no" >&6; }
3496 _am_tools=none
3497 fi
3498
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3500 printf %s "checking how to create a ustar tar archive... " >&6; }
3501
3502 # Go ahead even if we have the value already cached. We do so because we
3503 # need to set the values for the 'am__tar' and 'am__untar' variables.
3504 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3505
3506 for _am_tool in $_am_tools; do
3507 case $_am_tool in
3508 gnutar)
3509 for _am_tar in tar gnutar gtar; do
3510 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3511 ($_am_tar --version) >&5 2>&5
3512 ac_status=$?
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && break
3515 done
3516 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3517 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3518 am__untar="$_am_tar -xf -"
3519 ;;
3520 plaintar)
3521 # Must skip GNU tar: if it does not support --format= it doesn't create
3522 # ustar tarball either.
3523 (tar --version) >/dev/null 2>&1 && continue
3524 am__tar='tar chf - "$$tardir"'
3525 am__tar_='tar chf - "$tardir"'
3526 am__untar='tar xf -'
3527 ;;
3528 pax)
3529 am__tar='pax -L -x ustar -w "$$tardir"'
3530 am__tar_='pax -L -x ustar -w "$tardir"'
3531 am__untar='pax -r'
3532 ;;
3533 cpio)
3534 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3535 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3536 am__untar='cpio -i -H ustar -d'
3537 ;;
3538 none)
3539 am__tar=false
3540 am__tar_=false
3541 am__untar=false
3542 ;;
3543 esac
3544
3545 # If the value was cached, stop now. We just wanted to have am__tar
3546 # and am__untar set.
3547 test -n "${am_cv_prog_tar_ustar}" && break
3548
3549 # tar/untar a dummy directory, and stop if the command works.
3550 rm -rf conftest.dir
3551 mkdir conftest.dir
3552 echo GrepMe > conftest.dir/file
3553 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3554 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }
3558 rm -rf conftest.dir
3559 if test -s conftest.tar; then
3560 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3561 ($am__untar <conftest.tar) >&5 2>&5
3562 ac_status=$?
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }
3565 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3566 (cat conftest.dir/file) >&5 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }
3570 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3571 fi
3572 done
3573 rm -rf conftest.dir
3574
3575 if test ${am_cv_prog_tar_ustar+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else case e in #(
3579 e) am_cv_prog_tar_ustar=$_am_tool ;;
3580 esac
3581 fi
3582
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3584 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3585
3586
3587
3588
3589
3590 # Variables for tags utilities; see am/tags.am
3591 if test -z "$CTAGS"; then
3592 CTAGS=ctags
3593 fi
3594
3595 if test -z "$ETAGS"; then
3596 ETAGS=etags
3597 fi
3598
3599 if test -z "$CSCOPE"; then
3600 CSCOPE=cscope
3601 fi
3602
3603
3604
3605
3606
3607
3608
3609
3610 # Initialize libtool
3611 case `pwd` in
3612 *\ * | *\ *)
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3614 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3615 esac
3616
3617
3618
3619 macro_version='2.5.4'
3620 macro_revision='2.5.4'
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635 ltmain=$ac_aux_dir/ltmain.sh
3636
3637
3638
3639 # Make sure we can run config.sub.
3640 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3641 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3642
3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3644 printf %s "checking build system type... " >&6; }
3645 if test ${ac_cv_build+y}
3646 then :
3647 printf %s "(cached) " >&6
3648 else case e in #(
3649 e) ac_build_alias=$build_alias
3650 test "x$ac_build_alias" = x &&
3651 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3652 test "x$ac_build_alias" = x &&
3653 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3654 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3655 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3656 ;;
3657 esac
3658 fi
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3660 printf "%s\n" "$ac_cv_build" >&6; }
3661 case $ac_cv_build in
3662 *-*-*) ;;
3663 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3664 esac
3665 build=$ac_cv_build
3666 ac_save_IFS=$IFS; IFS='-'
3667 set x $ac_cv_build
3668 shift
3669 build_cpu=$1
3670 build_vendor=$2
3671 shift; shift
3672 # Remember, the first character of IFS is used to create $*,
3673 # except with old shells:
3674 build_os=$*
3675 IFS=$ac_save_IFS
3676 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3677
3678
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3680 printf %s "checking host system type... " >&6; }
3681 if test ${ac_cv_host+y}
3682 then :
3683 printf %s "(cached) " >&6
3684 else case e in #(
3685 e) if test "x$host_alias" = x; then
3686 ac_cv_host=$ac_cv_build
3687 else
3688 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3689 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3690 fi
3691 ;;
3692 esac
3693 fi
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3695 printf "%s\n" "$ac_cv_host" >&6; }
3696 case $ac_cv_host in
3697 *-*-*) ;;
3698 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3699 esac
3700 host=$ac_cv_host
3701 ac_save_IFS=$IFS; IFS='-'
3702 set x $ac_cv_host
3703 shift
3704 host_cpu=$1
3705 host_vendor=$2
3706 shift; shift
3707 # Remember, the first character of IFS is used to create $*,
3708 # except with old shells:
3709 host_os=$*
3710 IFS=$ac_save_IFS
3711 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3712
3713
3714 # Backslashify metacharacters that are still active within
3715 # double-quoted strings.
3716 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3717
3718 # Same as above, but do not quote variable references.
3719 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3720
3721 # Sed substitution to delay expansion of an escaped shell variable in a
3722 # double_quote_subst'ed string.
3723 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3724
3725 # Sed substitution to delay expansion of an escaped single quote.
3726 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3727
3728 # Sed substitution to avoid accidental globbing in evaled expressions
3729 no_glob_subst='s/\*/\\\*/g'
3730
3731 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3732 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3733 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3734
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3736 printf %s "checking how to print strings... " >&6; }
3737 # Test print first, because it will be a builtin if present.
3738 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3739 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3740 ECHO='print -r --'
3741 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3742 ECHO='printf %s\n'
3743 else
3744 # Use this function as a fallback that always works.
3745 func_fallback_echo ()
3746 {
3747 eval 'cat <<_LTECHO_EOF
3748 $1
3749 _LTECHO_EOF'
3750 }
3751 ECHO='func_fallback_echo'
3752 fi
3753
3754 # func_echo_all arg...
3755 # Invoke $ECHO with all args, space-separated.
3756 func_echo_all ()
3757 {
3758 $ECHO ""
3759 }
3760
3761 case $ECHO in
3762 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3763 printf "%s\n" "printf" >&6; } ;;
3764 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3765 printf "%s\n" "print -r" >&6; } ;;
3766 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3767 printf "%s\n" "cat" >&6; } ;;
3768 esac
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792 DEPDIR="${am__leading_dot}deps"
3793
3794 ac_config_commands="$ac_config_commands depfiles"
3795
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3797 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3798 cat > confinc.mk << 'END'
3799 am__doit:
3800 @echo this is the am__doit target >confinc.out
3801 .PHONY: am__doit
3802 END
3803 am__include="#"
3804 am__quote=
3805 # BSD make does it like this.
3806 echo '.include "confinc.mk" # ignored' > confmf.BSD
3807 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3808 echo 'include confinc.mk # ignored' > confmf.GNU
3809 _am_result=no
3810 for s in GNU BSD; do
3811 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3812 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }
3816 case $?:`cat confinc.out 2>/dev/null` in #(
3817 '0:this is the am__doit target') :
3818 case $s in #(
3819 BSD) :
3820 am__include='.include' am__quote='"' ;; #(
3821 *) :
3822 am__include='include' am__quote='' ;;
3823 esac ;; #(
3824 *) :
3825 ;;
3826 esac
3827 if test "$am__include" != "#"; then
3828 _am_result="yes ($s style)"
3829 break
3830 fi
3831 done
3832 rm -f confinc.* confmf.*
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3834 printf "%s\n" "${_am_result}" >&6; }
3835
3836 # Check whether --enable-dependency-tracking was given.
3837 if test ${enable_dependency_tracking+y}
3838 then :
3839 enableval=$enable_dependency_tracking;
3840 fi
3841
3842 if test "x$enable_dependency_tracking" != xno; then
3843 am_depcomp="$ac_aux_dir/depcomp"
3844 AMDEPBACKSLASH='\'
3845 am__nodep='_no'
3846 fi
3847 if test "x$enable_dependency_tracking" != xno; then
3848 AMDEP_TRUE=
3849 AMDEP_FALSE='#'
3850 else
3851 AMDEP_TRUE='#'
3852 AMDEP_FALSE=
3853 fi
3854
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861 if test -n "$ac_tool_prefix"; then
3862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3863 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 printf %s "checking for $ac_word... " >&6; }
3866 if test ${ac_cv_prog_CC+y}
3867 then :
3868 printf %s "(cached) " >&6
3869 else case e in #(
3870 e) if test -n "$CC"; then
3871 ac_cv_prog_CC="$CC" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3875 do
3876 IFS=$as_save_IFS
3877 case $as_dir in #(((
3878 '') as_dir=./ ;;
3879 */) ;;
3880 *) as_dir=$as_dir/ ;;
3881 esac
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi ;;
3893 esac
3894 fi
3895 CC=$ac_cv_prog_CC
3896 if test -n "$CC"; then
3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 printf "%s\n" "$CC" >&6; }
3899 else
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 printf "%s\n" "no" >&6; }
3902 fi
3903
3904
3905 fi
3906 if test -z "$ac_cv_prog_CC"; then
3907 ac_ct_CC=$CC
3908 # Extract the first word of "gcc", so it can be a program name with args.
3909 set dummy gcc; ac_word=$2
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 printf %s "checking for $ac_word... " >&6; }
3912 if test ${ac_cv_prog_ac_ct_CC+y}
3913 then :
3914 printf %s "(cached) " >&6
3915 else case e in #(
3916 e) if test -n "$ac_ct_CC"; then
3917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3921 do
3922 IFS=$as_save_IFS
3923 case $as_dir in #(((
3924 '') as_dir=./ ;;
3925 */) ;;
3926 *) as_dir=$as_dir/ ;;
3927 esac
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_ac_ct_CC="gcc"
3931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934 done
3935 done
3936 IFS=$as_save_IFS
3937
3938 fi ;;
3939 esac
3940 fi
3941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3942 if test -n "$ac_ct_CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3944 printf "%s\n" "$ac_ct_CC" >&6; }
3945 else
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3948 fi
3949
3950 if test "x$ac_ct_CC" = x; then
3951 CC=""
3952 else
3953 case $cross_compiling:$ac_tool_warned in
3954 yes:)
3955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3957 ac_tool_warned=yes ;;
3958 esac
3959 CC=$ac_ct_CC
3960 fi
3961 else
3962 CC="$ac_cv_prog_CC"
3963 fi
3964
3965 if test -z "$CC"; then
3966 if test -n "$ac_tool_prefix"; then
3967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3968 set dummy ${ac_tool_prefix}cc; ac_word=$2
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_CC+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else case e in #(
3975 e) if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981 IFS=$as_save_IFS
3982 case $as_dir in #(((
3983 '') as_dir=./ ;;
3984 */) ;;
3985 *) as_dir=$as_dir/ ;;
3986 esac
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}cc"
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi ;;
3998 esac
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 printf "%s\n" "$CC" >&6; }
4004 else
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4007 fi
4008
4009
4010 fi
4011 fi
4012 if test -z "$CC"; then
4013 # Extract the first word of "cc", so it can be a program name with args.
4014 set dummy cc; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_prog_CC+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else case e in #(
4021 e) if test -n "$CC"; then
4022 ac_cv_prog_CC="$CC" # Let the user override the test.
4023 else
4024 ac_prog_rejected=no
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4037 ac_prog_rejected=yes
4038 continue
4039 fi
4040 ac_cv_prog_CC="cc"
4041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044 done
4045 done
4046 IFS=$as_save_IFS
4047
4048 if test $ac_prog_rejected = yes; then
4049 # We found a bogon in the path, so make sure we never use it.
4050 set dummy $ac_cv_prog_CC
4051 shift
4052 if test $# != 0; then
4053 # We chose a different compiler from the bogus one.
4054 # However, it has the same basename, so the bogon will be chosen
4055 # first if we set CC to just the basename; use the full file name.
4056 shift
4057 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4058 fi
4059 fi
4060 fi ;;
4061 esac
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 printf "%s\n" "$CC" >&6; }
4067 else
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 printf "%s\n" "no" >&6; }
4070 fi
4071
4072
4073 fi
4074 if test -z "$CC"; then
4075 if test -n "$ac_tool_prefix"; then
4076 for ac_prog in cl.exe
4077 do
4078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 printf %s "checking for $ac_word... " >&6; }
4082 if test ${ac_cv_prog_CC+y}
4083 then :
4084 printf %s "(cached) " >&6
4085 else case e in #(
4086 e) if test -n "$CC"; then
4087 ac_cv_prog_CC="$CC" # Let the user override the test.
4088 else
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 for as_dir in $PATH
4091 do
4092 IFS=$as_save_IFS
4093 case $as_dir in #(((
4094 '') as_dir=./ ;;
4095 */) ;;
4096 *) as_dir=$as_dir/ ;;
4097 esac
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4102 break 2
4103 fi
4104 done
4105 done
4106 IFS=$as_save_IFS
4107
4108 fi ;;
4109 esac
4110 fi
4111 CC=$ac_cv_prog_CC
4112 if test -n "$CC"; then
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114 printf "%s\n" "$CC" >&6; }
4115 else
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 printf "%s\n" "no" >&6; }
4118 fi
4119
4120
4121 test -n "$CC" && break
4122 done
4123 fi
4124 if test -z "$CC"; then
4125 ac_ct_CC=$CC
4126 for ac_prog in cl.exe
4127 do
4128 # Extract the first word of "$ac_prog", so it can be a program name with args.
4129 set dummy $ac_prog; ac_word=$2
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 printf %s "checking for $ac_word... " >&6; }
4132 if test ${ac_cv_prog_ac_ct_CC+y}
4133 then :
4134 printf %s "(cached) " >&6
4135 else case e in #(
4136 e) if test -n "$ac_ct_CC"; then
4137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 case $as_dir in #(((
4144 '') as_dir=./ ;;
4145 */) ;;
4146 *) as_dir=$as_dir/ ;;
4147 esac
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_ac_ct_CC="$ac_prog"
4151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4152 break 2
4153 fi
4154 done
4155 done
4156 IFS=$as_save_IFS
4157
4158 fi ;;
4159 esac
4160 fi
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 printf "%s\n" "$ac_ct_CC" >&6; }
4165 else
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 printf "%s\n" "no" >&6; }
4168 fi
4169
4170
4171 test -n "$ac_ct_CC" && break
4172 done
4173
4174 if test "x$ac_ct_CC" = x; then
4175 CC=""
4176 else
4177 case $cross_compiling:$ac_tool_warned in
4178 yes:)
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4180 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4181 ac_tool_warned=yes ;;
4182 esac
4183 CC=$ac_ct_CC
4184 fi
4185 fi
4186
4187 fi
4188 if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}clang; ac_word=$2
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 printf %s "checking for $ac_word... " >&6; }
4194 if test ${ac_cv_prog_CC+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else case e in #(
4198 e) if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 case $as_dir in #(((
4206 '') as_dir=./ ;;
4207 */) ;;
4208 *) as_dir=$as_dir/ ;;
4209 esac
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_CC="${ac_tool_prefix}clang"
4213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4214 break 2
4215 fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220 fi ;;
4221 esac
4222 fi
4223 CC=$ac_cv_prog_CC
4224 if test -n "$CC"; then
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 printf "%s\n" "$CC" >&6; }
4227 else
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 printf "%s\n" "no" >&6; }
4230 fi
4231
4232
4233 fi
4234 if test -z "$ac_cv_prog_CC"; then
4235 ac_ct_CC=$CC
4236 # Extract the first word of "clang", so it can be a program name with args.
4237 set dummy clang; ac_word=$2
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 printf %s "checking for $ac_word... " >&6; }
4240 if test ${ac_cv_prog_ac_ct_CC+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else case e in #(
4244 e) if test -n "$ac_ct_CC"; then
4245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250 IFS=$as_save_IFS
4251 case $as_dir in #(((
4252 '') as_dir=./ ;;
4253 */) ;;
4254 *) as_dir=$as_dir/ ;;
4255 esac
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC="clang"
4259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi ;;
4267 esac
4268 fi
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 printf "%s\n" "$ac_ct_CC" >&6; }
4273 else
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 printf "%s\n" "no" >&6; }
4276 fi
4277
4278 if test "x$ac_ct_CC" = x; then
4279 CC=""
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CC=$ac_ct_CC
4288 fi
4289 else
4290 CC="$ac_cv_prog_CC"
4291 fi
4292
4293 fi
4294
4295
4296 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4297 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4298 as_fn_error $? "no acceptable C compiler found in \$PATH
4299 See 'config.log' for more details" "$LINENO" 5; }
4300
4301 # Provide some information about the compiler.
4302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4303 set X $ac_compile
4304 ac_compiler=$2
4305 for ac_option in --version -v -V -qversion -version; do
4306 { { ac_try="$ac_compiler $ac_option >&5"
4307 case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 printf "%s\n" "$ac_try_echo"; } >&5
4313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4314 ac_status=$?
4315 if test -s conftest.err; then
4316 sed '10a\
4317 ... rest of stderr output deleted ...
4318 10q' conftest.err >conftest.er1
4319 cat conftest.er1 >&5
4320 fi
4321 rm -f conftest.er1 conftest.err
4322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }
4324 done
4325
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328
4329 int
4330 main (void)
4331 {
4332
4333 ;
4334 return 0;
4335 }
4336 _ACEOF
4337 ac_clean_files_save=$ac_clean_files
4338 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4339 # Try to create an executable without -o first, disregard a.out.
4340 # It will help us diagnose broken compilers, and finding out an intuition
4341 # of exeext.
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4343 printf %s "checking whether the C compiler works... " >&6; }
4344 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4345
4346 # The possible output files:
4347 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4348
4349 ac_rmfiles=
4350 for ac_file in $ac_files
4351 do
4352 case $ac_file in
4353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4354 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4355 esac
4356 done
4357 rm -f $ac_rmfiles
4358
4359 if { { ac_try="$ac_link_default"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 printf "%s\n" "$ac_try_echo"; } >&5
4366 (eval "$ac_link_default") 2>&5
4367 ac_status=$?
4368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369 test $ac_status = 0; }
4370 then :
4371 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4372 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4373 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4374 # so that the user can short-circuit this test for compilers unknown to
4375 # Autoconf.
4376 for ac_file in $ac_files ''
4377 do
4378 test -f "$ac_file" || continue
4379 case $ac_file in
4380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4381 ;;
4382 [ab].out )
4383 # We found the default executable, but exeext='' is most
4384 # certainly right.
4385 break;;
4386 *.* )
4387 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4388 then :; else
4389 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 fi
4391 # We set ac_cv_exeext here because the later test for it is not
4392 # safe: cross compilers may not add the suffix if given an '-o'
4393 # argument, so we may need to know it at that point already.
4394 # Even if this section looks crufty: it has the advantage of
4395 # actually working.
4396 break;;
4397 * )
4398 break;;
4399 esac
4400 done
4401 test "$ac_cv_exeext" = no && ac_cv_exeext=
4402
4403 else case e in #(
4404 e) ac_file='' ;;
4405 esac
4406 fi
4407 if test -z "$ac_file"
4408 then :
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 printf "%s\n" "no" >&6; }
4411 printf "%s\n" "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.$ac_ext >&5
4413
4414 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4415 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4416 as_fn_error 77 "C compiler cannot create executables
4417 See 'config.log' for more details" "$LINENO" 5; }
4418 else case e in #(
4419 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 printf "%s\n" "yes" >&6; } ;;
4421 esac
4422 fi
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4424 printf %s "checking for C compiler default output file name... " >&6; }
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4426 printf "%s\n" "$ac_file" >&6; }
4427 ac_exeext=$ac_cv_exeext
4428
4429 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4430 ac_clean_files=$ac_clean_files_save
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4432 printf %s "checking for suffix of executables... " >&6; }
4433 if { { ac_try="$ac_link"
4434 case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 printf "%s\n" "$ac_try_echo"; } >&5
4440 (eval "$ac_link") 2>&5
4441 ac_status=$?
4442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }
4444 then :
4445 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4446 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4447 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4448 # 'rm'.
4449 for ac_file in conftest.exe conftest conftest.*; do
4450 test -f "$ac_file" || continue
4451 case $ac_file in
4452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4453 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4454 break;;
4455 * ) break;;
4456 esac
4457 done
4458 else case e in #(
4459 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4461 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4462 See 'config.log' for more details" "$LINENO" 5; } ;;
4463 esac
4464 fi
4465 rm -f conftest conftest$ac_cv_exeext
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4467 printf "%s\n" "$ac_cv_exeext" >&6; }
4468
4469 rm -f conftest.$ac_ext
4470 EXEEXT=$ac_cv_exeext
4471 ac_exeext=$EXEEXT
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 #include <stdio.h>
4475 int
4476 main (void)
4477 {
4478 FILE *f = fopen ("conftest.out", "w");
4479 if (!f)
4480 return 1;
4481 return ferror (f) || fclose (f) != 0;
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 ac_clean_files="$ac_clean_files conftest.out"
4488 # Check that the compiler produces executables we can run. If not, either
4489 # the compiler is broken, or we cross compile.
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4491 printf %s "checking whether we are cross compiling... " >&6; }
4492 if test "$cross_compiling" != yes; then
4493 { { ac_try="$ac_link"
4494 case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 printf "%s\n" "$ac_try_echo"; } >&5
4500 (eval "$ac_link") 2>&5
4501 ac_status=$?
4502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }
4504 if { ac_try='./conftest$ac_cv_exeext'
4505 { { case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 printf "%s\n" "$ac_try_echo"; } >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }; }; then
4515 cross_compiling=no
4516 else
4517 if test "$cross_compiling" = maybe; then
4518 cross_compiling=yes
4519 else
4520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4521 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4522 as_fn_error 77 "cannot run C compiled programs.
4523 If you meant to cross compile, use '--host'.
4524 See 'config.log' for more details" "$LINENO" 5; }
4525 fi
4526 fi
4527 fi
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4529 printf "%s\n" "$cross_compiling" >&6; }
4530
4531 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4532 conftest.o conftest.obj conftest.out
4533 ac_clean_files=$ac_clean_files_save
4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4535 printf %s "checking for suffix of object files... " >&6; }
4536 if test ${ac_cv_objext+y}
4537 then :
4538 printf %s "(cached) " >&6
4539 else case e in #(
4540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 int
4544 main (void)
4545 {
4546
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest.o conftest.obj
4552 if { { ac_try="$ac_compile"
4553 case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 printf "%s\n" "$ac_try_echo"; } >&5
4559 (eval "$ac_compile") 2>&5
4560 ac_status=$?
4561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }
4563 then :
4564 for ac_file in conftest.o conftest.obj conftest.*; do
4565 test -f "$ac_file" || continue;
4566 case $ac_file in
4567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4568 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4569 break;;
4570 esac
4571 done
4572 else case e in #(
4573 e) printf "%s\n" "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4575
4576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4577 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4578 as_fn_error $? "cannot compute suffix of object files: cannot compile
4579 See 'config.log' for more details" "$LINENO" 5; } ;;
4580 esac
4581 fi
4582 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4583 esac
4584 fi
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4586 printf "%s\n" "$ac_cv_objext" >&6; }
4587 OBJEXT=$ac_cv_objext
4588 ac_objext=$OBJEXT
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4590 printf %s "checking whether the compiler supports GNU C... " >&6; }
4591 if test ${ac_cv_c_compiler_gnu+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else case e in #(
4595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main (void)
4600 {
4601 #ifndef __GNUC__
4602 choke me
4603 #endif
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"
4610 then :
4611 ac_compiler_gnu=yes
4612 else case e in #(
4613 e) ac_compiler_gnu=no ;;
4614 esac
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4618 ;;
4619 esac
4620 fi
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4622 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625 if test $ac_compiler_gnu = yes; then
4626 GCC=yes
4627 else
4628 GCC=
4629 fi
4630 ac_test_CFLAGS=${CFLAGS+y}
4631 ac_save_CFLAGS=$CFLAGS
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4633 printf %s "checking whether $CC accepts -g... " >&6; }
4634 if test ${ac_cv_prog_cc_g+y}
4635 then :
4636 printf %s "(cached) " >&6
4637 else case e in #(
4638 e) ac_save_c_werror_flag=$ac_c_werror_flag
4639 ac_c_werror_flag=yes
4640 ac_cv_prog_cc_g=no
4641 CFLAGS="-g"
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644
4645 int
4646 main (void)
4647 {
4648
4649 ;
4650 return 0;
4651 }
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"
4654 then :
4655 ac_cv_prog_cc_g=yes
4656 else case e in #(
4657 e) CFLAGS=""
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660
4661 int
4662 main (void)
4663 {
4664
4665 ;
4666 return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"
4670 then :
4671
4672 else case e in #(
4673 e) ac_c_werror_flag=$ac_save_c_werror_flag
4674 CFLAGS="-g"
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677
4678 int
4679 main (void)
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_compile "$LINENO"
4687 then :
4688 ac_cv_prog_cc_g=yes
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4691 esac
4692 fi
4693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4694 esac
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4697 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4698 esac
4699 fi
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4701 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4702 if test $ac_test_CFLAGS; then
4703 CFLAGS=$ac_save_CFLAGS
4704 elif test $ac_cv_prog_cc_g = yes; then
4705 if test "$GCC" = yes; then
4706 CFLAGS="-g -O2"
4707 else
4708 CFLAGS="-g"
4709 fi
4710 else
4711 if test "$GCC" = yes; then
4712 CFLAGS="-O2"
4713 else
4714 CFLAGS=
4715 fi
4716 fi
4717 ac_prog_cc_stdc=no
4718 if test x$ac_prog_cc_stdc = xno
4719 then :
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4721 printf %s "checking for $CC option to enable C11 features... " >&6; }
4722 if test ${ac_cv_prog_cc_c11+y}
4723 then :
4724 printf %s "(cached) " >&6
4725 else case e in #(
4726 e) ac_cv_prog_cc_c11=no
4727 ac_save_CC=$CC
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 $ac_c_conftest_c11_program
4731 _ACEOF
4732 for ac_arg in '' -std=gnu11
4733 do
4734 CC="$ac_save_CC $ac_arg"
4735 if ac_fn_c_try_compile "$LINENO"
4736 then :
4737 ac_cv_prog_cc_c11=$ac_arg
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.beam
4740 test "x$ac_cv_prog_cc_c11" != "xno" && break
4741 done
4742 rm -f conftest.$ac_ext
4743 CC=$ac_save_CC ;;
4744 esac
4745 fi
4746
4747 if test "x$ac_cv_prog_cc_c11" = xno
4748 then :
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750 printf "%s\n" "unsupported" >&6; }
4751 else case e in #(
4752 e) if test "x$ac_cv_prog_cc_c11" = x
4753 then :
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4755 printf "%s\n" "none needed" >&6; }
4756 else case e in #(
4757 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4758 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4759 CC="$CC $ac_cv_prog_cc_c11" ;;
4760 esac
4761 fi
4762 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4763 ac_prog_cc_stdc=c11 ;;
4764 esac
4765 fi
4766 fi
4767 if test x$ac_prog_cc_stdc = xno
4768 then :
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4770 printf %s "checking for $CC option to enable C99 features... " >&6; }
4771 if test ${ac_cv_prog_cc_c99+y}
4772 then :
4773 printf %s "(cached) " >&6
4774 else case e in #(
4775 e) ac_cv_prog_cc_c99=no
4776 ac_save_CC=$CC
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 $ac_c_conftest_c99_program
4780 _ACEOF
4781 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4782 do
4783 CC="$ac_save_CC $ac_arg"
4784 if ac_fn_c_try_compile "$LINENO"
4785 then :
4786 ac_cv_prog_cc_c99=$ac_arg
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.beam
4789 test "x$ac_cv_prog_cc_c99" != "xno" && break
4790 done
4791 rm -f conftest.$ac_ext
4792 CC=$ac_save_CC ;;
4793 esac
4794 fi
4795
4796 if test "x$ac_cv_prog_cc_c99" = xno
4797 then :
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4799 printf "%s\n" "unsupported" >&6; }
4800 else case e in #(
4801 e) if test "x$ac_cv_prog_cc_c99" = x
4802 then :
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4804 printf "%s\n" "none needed" >&6; }
4805 else case e in #(
4806 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4807 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4808 CC="$CC $ac_cv_prog_cc_c99" ;;
4809 esac
4810 fi
4811 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4812 ac_prog_cc_stdc=c99 ;;
4813 esac
4814 fi
4815 fi
4816 if test x$ac_prog_cc_stdc = xno
4817 then :
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4819 printf %s "checking for $CC option to enable C89 features... " >&6; }
4820 if test ${ac_cv_prog_cc_c89+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else case e in #(
4824 e) ac_cv_prog_cc_c89=no
4825 ac_save_CC=$CC
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 $ac_c_conftest_c89_program
4829 _ACEOF
4830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4831 do
4832 CC="$ac_save_CC $ac_arg"
4833 if ac_fn_c_try_compile "$LINENO"
4834 then :
4835 ac_cv_prog_cc_c89=$ac_arg
4836 fi
4837 rm -f core conftest.err conftest.$ac_objext conftest.beam
4838 test "x$ac_cv_prog_cc_c89" != "xno" && break
4839 done
4840 rm -f conftest.$ac_ext
4841 CC=$ac_save_CC ;;
4842 esac
4843 fi
4844
4845 if test "x$ac_cv_prog_cc_c89" = xno
4846 then :
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4848 printf "%s\n" "unsupported" >&6; }
4849 else case e in #(
4850 e) if test "x$ac_cv_prog_cc_c89" = x
4851 then :
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853 printf "%s\n" "none needed" >&6; }
4854 else case e in #(
4855 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4856 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4857 CC="$CC $ac_cv_prog_cc_c89" ;;
4858 esac
4859 fi
4860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4861 ac_prog_cc_stdc=c89 ;;
4862 esac
4863 fi
4864 fi
4865
4866 ac_ext=c
4867 ac_cpp='$CPP $CPPFLAGS'
4868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
4872
4873 ac_ext=c
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4879 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4880 if test ${am_cv_prog_cc_c_o+y}
4881 then :
4882 printf %s "(cached) " >&6
4883 else case e in #(
4884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886
4887 int
4888 main (void)
4889 {
4890
4891 ;
4892 return 0;
4893 }
4894 _ACEOF
4895 # Make sure it works both with $CC and with simple cc.
4896 # Following AC_PROG_CC_C_O, we do the test twice because some
4897 # compilers refuse to overwrite an existing .o file with -o,
4898 # though they will create one.
4899 am_cv_prog_cc_c_o=yes
4900 for am_i in 1 2; do
4901 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4902 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4903 ac_status=$?
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } \
4906 && test -f conftest2.$ac_objext; then
4907 : OK
4908 else
4909 am_cv_prog_cc_c_o=no
4910 break
4911 fi
4912 done
4913 # aligned with autoconf, so not including core; see bug#72225.
4914 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4915 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4916 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4917 unset am_i ;;
4918 esac
4919 fi
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4921 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4922 if test "$am_cv_prog_cc_c_o" != yes; then
4923 # Losing compiler, so override with the script.
4924 # FIXME: It is wrong to rewrite CC.
4925 # But if we don't then we get into trouble of one sort or another.
4926 # A longer-term fix would be to have automake use am__CC in this case,
4927 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4928 CC="$am_aux_dir/compile $CC"
4929 fi
4930 ac_ext=c
4931 ac_cpp='$CPP $CPPFLAGS'
4932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4935
4936
4937 depcc="$CC" am_compiler_list=
4938
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4940 printf %s "checking dependency style of $depcc... " >&6; }
4941 if test ${am_cv_CC_dependencies_compiler_type+y}
4942 then :
4943 printf %s "(cached) " >&6
4944 else case e in #(
4945 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4946 # We make a subdir and do the tests there. Otherwise we can end up
4947 # making bogus files that we don't know about and never remove. For
4948 # instance it was reported that on HP-UX the gcc test will end up
4949 # making a dummy file named 'D' -- because '-MD' means "put the output
4950 # in D".
4951 rm -rf conftest.dir
4952 mkdir conftest.dir
4953 # Copy depcomp to subdir because otherwise we won't find it if we're
4954 # using a relative directory.
4955 cp "$am_depcomp" conftest.dir
4956 cd conftest.dir
4957 # We will build objects and dependencies in a subdirectory because
4958 # it helps to detect inapplicable dependency modes. For instance
4959 # both Tru64's cc and ICC support -MD to output dependencies as a
4960 # side effect of compilation, but ICC will put the dependencies in
4961 # the current directory while Tru64 will put them in the object
4962 # directory.
4963 mkdir sub
4964
4965 am_cv_CC_dependencies_compiler_type=none
4966 if test "$am_compiler_list" = ""; then
4967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 fi
4969 am__universal=false
4970 case " $depcc " in #(
4971 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4972 esac
4973
4974 for depmode in $am_compiler_list; do
4975 # Setup a source with many dependencies, because some compilers
4976 # like to wrap large dependency lists on column 80 (with \), and
4977 # we should not choose a depcomp mode which is confused by this.
4978 #
4979 # We need to recreate these files for each test, as the compiler may
4980 # overwrite some of them when testing with obscure command lines.
4981 # This happens at least with the AIX C compiler.
4982 : > sub/conftest.c
4983 for i in 1 2 3 4 5 6; do
4984 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4985 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4986 # Solaris 10 /bin/sh.
4987 echo '/* dummy */' > sub/conftst$i.h
4988 done
4989 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4990
4991 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4992 # mode. It turns out that the SunPro C++ compiler does not properly
4993 # handle '-M -o', and we need to detect this. Also, some Intel
4994 # versions had trouble with output in subdirs.
4995 am__obj=sub/conftest.${OBJEXT-o}
4996 am__minus_obj="-o $am__obj"
4997 case $depmode in
4998 gcc)
4999 # This depmode causes a compiler race in universal mode.
5000 test "$am__universal" = false || continue
5001 ;;
5002 nosideeffect)
5003 # After this tag, mechanisms are not by side-effect, so they'll
5004 # only be used when explicitly requested.
5005 if test "x$enable_dependency_tracking" = xyes; then
5006 continue
5007 else
5008 break
5009 fi
5010 ;;
5011 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5012 # This compiler won't grok '-c -o', but also, the minuso test has
5013 # not run yet. These depmodes are late enough in the game, and
5014 # so weak that their functioning should not be impacted.
5015 am__obj=conftest.${OBJEXT-o}
5016 am__minus_obj=
5017 ;;
5018 none) break ;;
5019 esac
5020 if depmode=$depmode \
5021 source=sub/conftest.c object=$am__obj \
5022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5023 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5024 >/dev/null 2>conftest.err &&
5025 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5027 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5029 # icc doesn't choke on unknown options, it will just issue warnings
5030 # or remarks (even with -Werror). So we grep stderr for any message
5031 # that says an option was ignored or not supported.
5032 # When given -MP, icc 7.0 and 7.1 complain thus:
5033 # icc: Command line warning: ignoring option '-M'; no argument required
5034 # The diagnosis changed in icc 8.0:
5035 # icc: Command line remark: option '-MP' not supported
5036 if (grep 'ignoring option' conftest.err ||
5037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5038 am_cv_CC_dependencies_compiler_type=$depmode
5039 break
5040 fi
5041 fi
5042 done
5043
5044 cd ..
5045 rm -rf conftest.dir
5046 else
5047 am_cv_CC_dependencies_compiler_type=none
5048 fi
5049 ;;
5050 esac
5051 fi
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5053 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5055
5056 if
5057 test "x$enable_dependency_tracking" != xno \
5058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5059 am__fastdepCC_TRUE=
5060 am__fastdepCC_FALSE='#'
5061 else
5062 am__fastdepCC_TRUE='#'
5063 am__fastdepCC_FALSE=
5064 fi
5065
5066
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5068 printf %s "checking for a sed that does not truncate output... " >&6; }
5069 if test ${ac_cv_path_SED+y}
5070 then :
5071 printf %s "(cached) " >&6
5072 else case e in #(
5073 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5074 for ac_i in 1 2 3 4 5 6 7; do
5075 ac_script="$ac_script$as_nl$ac_script"
5076 done
5077 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5078 { ac_script=; unset ac_script;}
5079 if test -z "$SED"; then
5080 ac_path_SED_found=false
5081 # Loop through the user's path and test for each of PROGNAME-LIST
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 case $as_dir in #(((
5087 '') as_dir=./ ;;
5088 */) ;;
5089 *) as_dir=$as_dir/ ;;
5090 esac
5091 for ac_prog in sed gsed
5092 do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5095 as_fn_executable_p "$ac_path_SED" || continue
5096 # Check for GNU ac_path_SED and select it if it is found.
5097 # Check for GNU $ac_path_SED
5098 case `"$ac_path_SED" --version 2>&1` in #(
5099 *GNU*)
5100 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5101 #(
5102 *)
5103 ac_count=0
5104 printf %s 0123456789 >"conftest.in"
5105 while :
5106 do
5107 cat "conftest.in" "conftest.in" >"conftest.tmp"
5108 mv "conftest.tmp" "conftest.in"
5109 cp "conftest.in" "conftest.nl"
5110 printf "%s\n" '' >> "conftest.nl"
5111 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113 as_fn_arith $ac_count + 1 && ac_count=$as_val
5114 if test $ac_count -gt ${ac_path_SED_max-0}; then
5115 # Best one so far, save it but keep looking for a better one
5116 ac_cv_path_SED="$ac_path_SED"
5117 ac_path_SED_max=$ac_count
5118 fi
5119 # 10*(2^10) chars as input seems more than enough
5120 test $ac_count -gt 10 && break
5121 done
5122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5124
5125 $ac_path_SED_found && break 3
5126 done
5127 done
5128 done
5129 IFS=$as_save_IFS
5130 if test -z "$ac_cv_path_SED"; then
5131 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5132 fi
5133 else
5134 ac_cv_path_SED=$SED
5135 fi
5136 ;;
5137 esac
5138 fi
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5140 printf "%s\n" "$ac_cv_path_SED" >&6; }
5141 SED="$ac_cv_path_SED"
5142 rm -f conftest.sed
5143
5144 test -z "$SED" && SED=sed
5145 Xsed="$SED -e 1s/^X//"
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5158 printf %s "checking for grep that handles long lines and -e... " >&6; }
5159 if test ${ac_cv_path_GREP+y}
5160 then :
5161 printf %s "(cached) " >&6
5162 else case e in #(
5163 e) if test -z "$GREP"; then
5164 ac_path_GREP_found=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 do
5169 IFS=$as_save_IFS
5170 case $as_dir in #(((
5171 '') as_dir=./ ;;
5172 */) ;;
5173 *) as_dir=$as_dir/ ;;
5174 esac
5175 for ac_prog in grep ggrep
5176 do
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5179 as_fn_executable_p "$ac_path_GREP" || continue
5180 # Check for GNU ac_path_GREP and select it if it is found.
5181 # Check for GNU $ac_path_GREP
5182 case `"$ac_path_GREP" --version 2>&1` in #(
5183 *GNU*)
5184 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5185 #(
5186 *)
5187 ac_count=0
5188 printf %s 0123456789 >"conftest.in"
5189 while :
5190 do
5191 cat "conftest.in" "conftest.in" >"conftest.tmp"
5192 mv "conftest.tmp" "conftest.in"
5193 cp "conftest.in" "conftest.nl"
5194 printf "%s\n" 'GREP' >> "conftest.nl"
5195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5197 as_fn_arith $ac_count + 1 && ac_count=$as_val
5198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5199 # Best one so far, save it but keep looking for a better one
5200 ac_cv_path_GREP="$ac_path_GREP"
5201 ac_path_GREP_max=$ac_count
5202 fi
5203 # 10*(2^10) chars as input seems more than enough
5204 test $ac_count -gt 10 && break
5205 done
5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 esac
5208
5209 $ac_path_GREP_found && break 3
5210 done
5211 done
5212 done
5213 IFS=$as_save_IFS
5214 if test -z "$ac_cv_path_GREP"; then
5215 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5216 fi
5217 else
5218 ac_cv_path_GREP=$GREP
5219 fi
5220 ;;
5221 esac
5222 fi
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5224 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5225 GREP="$ac_cv_path_GREP"
5226
5227
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5229 printf %s "checking for egrep... " >&6; }
5230 if test ${ac_cv_path_EGREP+y}
5231 then :
5232 printf %s "(cached) " >&6
5233 else case e in #(
5234 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5235 then ac_cv_path_EGREP="$GREP -E"
5236 else
5237 if test -z "$EGREP"; then
5238 ac_path_EGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242 do
5243 IFS=$as_save_IFS
5244 case $as_dir in #(((
5245 '') as_dir=./ ;;
5246 */) ;;
5247 *) as_dir=$as_dir/ ;;
5248 esac
5249 for ac_prog in egrep
5250 do
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5253 as_fn_executable_p "$ac_path_EGREP" || continue
5254 # Check for GNU ac_path_EGREP and select it if it is found.
5255 # Check for GNU $ac_path_EGREP
5256 case `"$ac_path_EGREP" --version 2>&1` in #(
5257 *GNU*)
5258 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5259 #(
5260 *)
5261 ac_count=0
5262 printf %s 0123456789 >"conftest.in"
5263 while :
5264 do
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 printf "%s\n" 'EGREP' >> "conftest.nl"
5269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 as_fn_arith $ac_count + 1 && ac_count=$as_val
5272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_EGREP="$ac_path_EGREP"
5275 ac_path_EGREP_max=$ac_count
5276 fi
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5279 done
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 esac
5282
5283 $ac_path_EGREP_found && break 3
5284 done
5285 done
5286 done
5287 IFS=$as_save_IFS
5288 if test -z "$ac_cv_path_EGREP"; then
5289 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5290 fi
5291 else
5292 ac_cv_path_EGREP=$EGREP
5293 fi
5294
5295 fi ;;
5296 esac
5297 fi
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5299 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5300 EGREP="$ac_cv_path_EGREP"
5301
5302 EGREP_TRADITIONAL=$EGREP
5303 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5304
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5306 printf %s "checking for fgrep... " >&6; }
5307 if test ${ac_cv_path_FGREP+y}
5308 then :
5309 printf %s "(cached) " >&6
5310 else case e in #(
5311 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5312 then ac_cv_path_FGREP="$GREP -F"
5313 else
5314 if test -z "$FGREP"; then
5315 ac_path_FGREP_found=false
5316 # Loop through the user's path and test for each of PROGNAME-LIST
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319 do
5320 IFS=$as_save_IFS
5321 case $as_dir in #(((
5322 '') as_dir=./ ;;
5323 */) ;;
5324 *) as_dir=$as_dir/ ;;
5325 esac
5326 for ac_prog in fgrep
5327 do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5330 as_fn_executable_p "$ac_path_FGREP" || continue
5331 # Check for GNU ac_path_FGREP and select it if it is found.
5332 # Check for GNU $ac_path_FGREP
5333 case `"$ac_path_FGREP" --version 2>&1` in #(
5334 *GNU*)
5335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5336 #(
5337 *)
5338 ac_count=0
5339 printf %s 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 printf "%s\n" 'FGREP' >> "conftest.nl"
5346 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_FGREP="$ac_path_FGREP"
5352 ac_path_FGREP_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360 $ac_path_FGREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_FGREP"; then
5366 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368 else
5369 ac_cv_path_FGREP=$FGREP
5370 fi
5371
5372 fi ;;
5373 esac
5374 fi
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5376 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5377 FGREP="$ac_cv_path_FGREP"
5378
5379
5380 test -z "$GREP" && GREP=grep
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 # Check whether --with-gnu-ld was given.
5401 if test ${with_gnu_ld+y}
5402 then :
5403 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5404 else case e in #(
5405 e) with_gnu_ld=no ;;
5406 esac
5407 fi
5408
5409 ac_prog=ld
5410 if test yes = "$GCC"; then
5411 # Check if gcc -print-prog-name=ld gives a path.
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5413 printf %s "checking for ld used by $CC... " >&6; }
5414 case $host in
5415 *-*-mingw* | *-*-windows*)
5416 # gcc leaves a trailing carriage return, which upsets mingw
5417 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5418 *)
5419 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5420 esac
5421 case $ac_prog in
5422 # Accept absolute paths.
5423 [\\/]* | ?:[\\/]*)
5424 re_direlt='/[^/][^/]*/\.\./'
5425 # Canonicalize the pathname of ld
5426 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5427 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5428 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5429 done
5430 test -z "$LD" && LD=$ac_prog
5431 ;;
5432 "")
5433 # If it fails, then pretend we aren't using GCC.
5434 ac_prog=ld
5435 ;;
5436 *)
5437 # If it is relative, then search for the first ld in PATH.
5438 with_gnu_ld=unknown
5439 ;;
5440 esac
5441 elif test yes = "$with_gnu_ld"; then
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5443 printf %s "checking for GNU ld... " >&6; }
5444 else
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5446 printf %s "checking for non-GNU ld... " >&6; }
5447 fi
5448 if test ${lt_cv_path_LD+y}
5449 then :
5450 printf %s "(cached) " >&6
5451 else case e in #(
5452 e) if test -z "$LD"; then
5453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5454 for ac_dir in $PATH; do
5455 IFS=$lt_save_ifs
5456 test -z "$ac_dir" && ac_dir=.
5457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5458 lt_cv_path_LD=$ac_dir/$ac_prog
5459 # Check to see if the program is GNU ld. I'd rather use --version,
5460 # but apparently some variants of GNU ld only accept -v.
5461 # Break only if it was the GNU/non-GNU ld that we prefer.
5462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5463 *GNU* | *'with BFD'*)
5464 test no != "$with_gnu_ld" && break
5465 ;;
5466 *)
5467 test yes != "$with_gnu_ld" && break
5468 ;;
5469 esac
5470 fi
5471 done
5472 IFS=$lt_save_ifs
5473 else
5474 lt_cv_path_LD=$LD # Let the user override the test with a path.
5475 fi ;;
5476 esac
5477 fi
5478
5479 LD=$lt_cv_path_LD
5480 if test -n "$LD"; then
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5482 printf "%s\n" "$LD" >&6; }
5483 else
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 printf "%s\n" "no" >&6; }
5486 fi
5487 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5489 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5490 if test ${lt_cv_prog_gnu_ld+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else case e in #(
5494 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5495 case `$LD -v 2>&1 </dev/null` in
5496 *GNU* | *'with BFD'*)
5497 lt_cv_prog_gnu_ld=yes
5498 ;;
5499 *)
5500 lt_cv_prog_gnu_ld=no
5501 ;;
5502 esac ;;
5503 esac
5504 fi
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5506 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5507 with_gnu_ld=$lt_cv_prog_gnu_ld
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5518 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5519 if test ${lt_cv_path_NM+y}
5520 then :
5521 printf %s "(cached) " >&6
5522 else case e in #(
5523 e) if test -n "$NM"; then
5524 # Let the user override the test.
5525 lt_cv_path_NM=$NM
5526 else
5527 lt_nm_to_check=${ac_tool_prefix}nm
5528 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5529 lt_nm_to_check="$lt_nm_to_check nm"
5530 fi
5531 for lt_tmp_nm in $lt_nm_to_check; do
5532 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5533 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5534 IFS=$lt_save_ifs
5535 test -z "$ac_dir" && ac_dir=.
5536 tmp_nm=$ac_dir/$lt_tmp_nm
5537 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5538 # Check to see if the nm accepts a BSD-compat flag.
5539 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5540 # nm: unknown option "B" ignored
5541 # Tru64's nm complains that /dev/null is an invalid object file
5542 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5543 case $build_os in
5544 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5545 *) lt_bad_file=/dev/null ;;
5546 esac
5547 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5548 *$lt_bad_file* | *'Invalid file or object type'*)
5549 lt_cv_path_NM="$tmp_nm -B"
5550 break 2
5551 ;;
5552 *)
5553 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5554 */dev/null*)
5555 lt_cv_path_NM="$tmp_nm -p"
5556 break 2
5557 ;;
5558 *)
5559 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5560 continue # so that we can try to find one that supports BSD flags
5561 ;;
5562 esac
5563 ;;
5564 esac
5565 fi
5566 done
5567 IFS=$lt_save_ifs
5568 done
5569 : ${lt_cv_path_NM=no}
5570 fi ;;
5571 esac
5572 fi
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5574 printf "%s\n" "$lt_cv_path_NM" >&6; }
5575 if test no != "$lt_cv_path_NM"; then
5576 NM=$lt_cv_path_NM
5577 else
5578 # Didn't find any BSD compatible name lister, look for dumpbin.
5579 if test -n "$DUMPBIN"; then :
5580 # Let the user override the test.
5581 else
5582 if test -n "$ac_tool_prefix"; then
5583 for ac_prog in dumpbin "link -dump"
5584 do
5585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 printf %s "checking for $ac_word... " >&6; }
5589 if test ${ac_cv_prog_DUMPBIN+y}
5590 then :
5591 printf %s "(cached) " >&6
5592 else case e in #(
5593 e) if test -n "$DUMPBIN"; then
5594 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599 IFS=$as_save_IFS
5600 case $as_dir in #(((
5601 '') as_dir=./ ;;
5602 */) ;;
5603 *) as_dir=$as_dir/ ;;
5604 esac
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5614
5615 fi ;;
5616 esac
5617 fi
5618 DUMPBIN=$ac_cv_prog_DUMPBIN
5619 if test -n "$DUMPBIN"; then
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5621 printf "%s\n" "$DUMPBIN" >&6; }
5622 else
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 printf "%s\n" "no" >&6; }
5625 fi
5626
5627
5628 test -n "$DUMPBIN" && break
5629 done
5630 fi
5631 if test -z "$DUMPBIN"; then
5632 ac_ct_DUMPBIN=$DUMPBIN
5633 for ac_prog in dumpbin "link -dump"
5634 do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 printf %s "checking for $ac_word... " >&6; }
5639 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else case e in #(
5643 e) if test -n "$ac_ct_DUMPBIN"; then
5644 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649 IFS=$as_save_IFS
5650 case $as_dir in #(((
5651 '') as_dir=./ ;;
5652 */) ;;
5653 *) as_dir=$as_dir/ ;;
5654 esac
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661 done
5662 done
5663 IFS=$as_save_IFS
5664
5665 fi ;;
5666 esac
5667 fi
5668 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5669 if test -n "$ac_ct_DUMPBIN"; then
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5671 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5672 else
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 printf "%s\n" "no" >&6; }
5675 fi
5676
5677
5678 test -n "$ac_ct_DUMPBIN" && break
5679 done
5680
5681 if test "x$ac_ct_DUMPBIN" = x; then
5682 DUMPBIN=":"
5683 else
5684 case $cross_compiling:$ac_tool_warned in
5685 yes:)
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688 ac_tool_warned=yes ;;
5689 esac
5690 DUMPBIN=$ac_ct_DUMPBIN
5691 fi
5692 fi
5693
5694 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5695 *COFF*)
5696 DUMPBIN="$DUMPBIN -symbols -headers"
5697 ;;
5698 *)
5699 DUMPBIN=:
5700 ;;
5701 esac
5702 fi
5703
5704 if test : != "$DUMPBIN"; then
5705 NM=$DUMPBIN
5706 fi
5707 fi
5708 test -z "$NM" && NM=nm
5709
5710
5711
5712
5713
5714
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5716 printf %s "checking the name lister ($NM) interface... " >&6; }
5717 if test ${lt_cv_nm_interface+y}
5718 then :
5719 printf %s "(cached) " >&6
5720 else case e in #(
5721 e) lt_cv_nm_interface="BSD nm"
5722 echo "int some_variable = 0;" > conftest.$ac_ext
5723 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5724 (eval "$ac_compile" 2>conftest.err)
5725 cat conftest.err >&5
5726 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5727 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5728 cat conftest.err >&5
5729 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5730 cat conftest.out >&5
5731 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5732 lt_cv_nm_interface="MS dumpbin"
5733 fi
5734 rm -f conftest* ;;
5735 esac
5736 fi
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5738 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5739
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5741 printf %s "checking whether ln -s works... " >&6; }
5742 LN_S=$as_ln_s
5743 if test "$LN_S" = "ln -s"; then
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5745 printf "%s\n" "yes" >&6; }
5746 else
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5748 printf "%s\n" "no, using $LN_S" >&6; }
5749 fi
5750
5751 # find the maximum length of command line arguments
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5753 printf %s "checking the maximum length of command line arguments... " >&6; }
5754 if test ${lt_cv_sys_max_cmd_len+y}
5755 then :
5756 printf %s "(cached) " >&6
5757 else case e in #(
5758 e) i=0
5759 teststring=ABCD
5760
5761 case $build_os in
5762 msdosdjgpp*)
5763 # On DJGPP, this test can blow up pretty badly due to problems in libc
5764 # (any single argument exceeding 2000 bytes causes a buffer overrun
5765 # during glob expansion). Even if it were fixed, the result of this
5766 # check would be larger than it should be.
5767 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5768 ;;
5769
5770 gnu* | ironclad*)
5771 # Under GNU Hurd and Ironclad, this test is not required because there
5772 # is no limit to the length of command line arguments.
5773 # Libtool will interpret -1 as no limit whatsoever
5774 lt_cv_sys_max_cmd_len=-1;
5775 ;;
5776
5777 cygwin* | mingw* | windows* | cegcc*)
5778 # On Win9x/ME, this test blows up -- it succeeds, but takes
5779 # about 5 minutes as the teststring grows exponentially.
5780 # Worse, since 9x/ME are not pre-emptively multitasking,
5781 # you end up with a "frozen" computer, even though with patience
5782 # the test eventually succeeds (with a max line length of 256k).
5783 # Instead, let's just punt: use the minimum linelength reported by
5784 # all of the supported platforms: 8192 (on NT/2K/XP).
5785 lt_cv_sys_max_cmd_len=8192;
5786 ;;
5787
5788 mint*)
5789 # On MiNT this can take a long time and run out of memory.
5790 lt_cv_sys_max_cmd_len=8192;
5791 ;;
5792
5793 amigaos*)
5794 # On AmigaOS with pdksh, this test takes hours, literally.
5795 # So we just punt and use a minimum line length of 8192.
5796 lt_cv_sys_max_cmd_len=8192;
5797 ;;
5798
5799 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5800 # This has been around since 386BSD, at least. Likely further.
5801 if test -x /sbin/sysctl; then
5802 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5803 elif test -x /usr/sbin/sysctl; then
5804 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5805 else
5806 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5807 fi
5808 # And add a safety zone
5809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5811 ;;
5812
5813 interix*)
5814 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5815 lt_cv_sys_max_cmd_len=196608
5816 ;;
5817
5818 os2*)
5819 # The test takes a long time on OS/2.
5820 lt_cv_sys_max_cmd_len=8192
5821 ;;
5822
5823 osf*)
5824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5826 # nice to cause kernel panics so lets avoid the loop below.
5827 # First set a reasonable default.
5828 lt_cv_sys_max_cmd_len=16384
5829 #
5830 if test -x /sbin/sysconfig; then
5831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5833 esac
5834 fi
5835 ;;
5836 sco3.2v5*)
5837 lt_cv_sys_max_cmd_len=102400
5838 ;;
5839 sysv5* | sco5v6* | sysv4.2uw2*)
5840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5841 if test -n "$kargmax"; then
5842 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5843 else
5844 lt_cv_sys_max_cmd_len=32768
5845 fi
5846 ;;
5847 *)
5848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5849 if test -n "$lt_cv_sys_max_cmd_len" && \
5850 test undefined != "$lt_cv_sys_max_cmd_len"; then
5851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5853 else
5854 # Make teststring a little bigger before we do anything with it.
5855 # a 1K string should be a reasonable start.
5856 for i in 1 2 3 4 5 6 7 8; do
5857 teststring=$teststring$teststring
5858 done
5859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5860 # If test is not a shell built-in, we'll probably end up computing a
5861 # maximum length that is only half of the actual maximum length, but
5862 # we can't tell.
5863 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5864 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5865 test 17 != "$i" # 1/2 MB should be enough
5866 do
5867 i=`expr $i + 1`
5868 teststring=$teststring$teststring
5869 done
5870 # Only check the string length outside the loop.
5871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5872 teststring=
5873 # Add a significant safety factor because C++ compilers can tack on
5874 # massive amounts of additional arguments before passing them to the
5875 # linker. It appears as though 1/2 is a usable value.
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5877 fi
5878 ;;
5879 esac
5880 ;;
5881 esac
5882 fi
5883
5884 if test -n "$lt_cv_sys_max_cmd_len"; then
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5886 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5887 else
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5889 printf "%s\n" "none" >&6; }
5890 fi
5891 max_cmd_len=$lt_cv_sys_max_cmd_len
5892
5893
5894
5895
5896
5897
5898 : ${CP="cp -f"}
5899 : ${MV="mv -f"}
5900 : ${RM="rm -f"}
5901
5902 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5903 lt_unset=unset
5904 else
5905 lt_unset=false
5906 fi
5907
5908
5909
5910
5911
5912 # test EBCDIC or ASCII
5913 case `echo X|tr X '\101'` in
5914 A) # ASCII based system
5915 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5916 lt_SP2NL='tr \040 \012'
5917 lt_NL2SP='tr \015\012 \040\040'
5918 ;;
5919 *) # EBCDIC based system
5920 lt_SP2NL='tr \100 \n'
5921 lt_NL2SP='tr \r\n \100\100'
5922 ;;
5923 esac
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5934 printf %s "checking how to convert $build file names to $host format... " >&6; }
5935 if test ${lt_cv_to_host_file_cmd+y}
5936 then :
5937 printf %s "(cached) " >&6
5938 else case e in #(
5939 e) case $host in
5940 *-*-mingw* )
5941 case $build in
5942 *-*-mingw* | *-*-windows* ) # actually msys
5943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5944 ;;
5945 *-*-cygwin* )
5946 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5947 ;;
5948 * ) # otherwise, assume *nix
5949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5950 ;;
5951 esac
5952 ;;
5953 *-*-cygwin* )
5954 case $build in
5955 *-*-mingw* | *-*-windows* ) # actually msys
5956 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5957 ;;
5958 *-*-cygwin* )
5959 lt_cv_to_host_file_cmd=func_convert_file_noop
5960 ;;
5961 * ) # otherwise, assume *nix
5962 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5963 ;;
5964 esac
5965 ;;
5966 * ) # unhandled hosts (and "normal" native builds)
5967 lt_cv_to_host_file_cmd=func_convert_file_noop
5968 ;;
5969 esac
5970 ;;
5971 esac
5972 fi
5973
5974 to_host_file_cmd=$lt_cv_to_host_file_cmd
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5976 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5977
5978
5979
5980
5981
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5983 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5984 if test ${lt_cv_to_tool_file_cmd+y}
5985 then :
5986 printf %s "(cached) " >&6
5987 else case e in #(
5988 e) #assume ordinary cross tools, or native build.
5989 lt_cv_to_tool_file_cmd=func_convert_file_noop
5990 case $host in
5991 *-*-mingw* | *-*-windows* )
5992 case $build in
5993 *-*-mingw* | *-*-windows* ) # actually msys
5994 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5995 ;;
5996 esac
5997 ;;
5998 esac
5999 ;;
6000 esac
6001 fi
6002
6003 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6005 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6006
6007
6008
6009
6010
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6012 printf %s "checking for $LD option to reload object files... " >&6; }
6013 if test ${lt_cv_ld_reload_flag+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else case e in #(
6017 e) lt_cv_ld_reload_flag='-r' ;;
6018 esac
6019 fi
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6021 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6022 reload_flag=$lt_cv_ld_reload_flag
6023 case $reload_flag in
6024 "" | " "*) ;;
6025 *) reload_flag=" $reload_flag" ;;
6026 esac
6027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6028 case $host_os in
6029 cygwin* | mingw* | windows* | pw32* | cegcc*)
6030 if test yes != "$GCC"; then
6031 reload_cmds=false
6032 fi
6033 ;;
6034 darwin*)
6035 if test yes = "$GCC"; then
6036 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6037 else
6038 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6039 fi
6040 ;;
6041 esac
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051 # Extract the first word of "file", so it can be a program name with args.
6052 set dummy file; ac_word=$2
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 printf %s "checking for $ac_word... " >&6; }
6055 if test ${ac_cv_prog_FILECMD+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else case e in #(
6059 e) if test -n "$FILECMD"; then
6060 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 case $as_dir in #(((
6067 '') as_dir=./ ;;
6068 */) ;;
6069 *) as_dir=$as_dir/ ;;
6070 esac
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_FILECMD="file"
6074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6075 break 2
6076 fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6082 fi ;;
6083 esac
6084 fi
6085 FILECMD=$ac_cv_prog_FILECMD
6086 if test -n "$FILECMD"; then
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6088 printf "%s\n" "$FILECMD" >&6; }
6089 else
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 printf "%s\n" "no" >&6; }
6092 fi
6093
6094
6095
6096
6097
6098
6099
6100
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 printf %s "checking for $ac_word... " >&6; }
6106 if test ${ac_cv_prog_OBJDUMP+y}
6107 then :
6108 printf %s "(cached) " >&6
6109 else case e in #(
6110 e) if test -n "$OBJDUMP"; then
6111 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116 IFS=$as_save_IFS
6117 case $as_dir in #(((
6118 '') as_dir=./ ;;
6119 */) ;;
6120 *) as_dir=$as_dir/ ;;
6121 esac
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi ;;
6133 esac
6134 fi
6135 OBJDUMP=$ac_cv_prog_OBJDUMP
6136 if test -n "$OBJDUMP"; then
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6138 printf "%s\n" "$OBJDUMP" >&6; }
6139 else
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 printf "%s\n" "no" >&6; }
6142 fi
6143
6144
6145 fi
6146 if test -z "$ac_cv_prog_OBJDUMP"; then
6147 ac_ct_OBJDUMP=$OBJDUMP
6148 # Extract the first word of "objdump", so it can be a program name with args.
6149 set dummy objdump; ac_word=$2
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 printf %s "checking for $ac_word... " >&6; }
6152 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else case e in #(
6156 e) if test -n "$ac_ct_OBJDUMP"; then
6157 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 case $as_dir in #(((
6164 '') as_dir=./ ;;
6165 */) ;;
6166 *) as_dir=$as_dir/ ;;
6167 esac
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi ;;
6179 esac
6180 fi
6181 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6182 if test -n "$ac_ct_OBJDUMP"; then
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6184 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6185 else
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 printf "%s\n" "no" >&6; }
6188 fi
6189
6190 if test "x$ac_ct_OBJDUMP" = x; then
6191 OBJDUMP="false"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 OBJDUMP=$ac_ct_OBJDUMP
6200 fi
6201 else
6202 OBJDUMP="$ac_cv_prog_OBJDUMP"
6203 fi
6204
6205 test -z "$OBJDUMP" && OBJDUMP=objdump
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6216 printf %s "checking how to recognize dependent libraries... " >&6; }
6217 if test ${lt_cv_deplibs_check_method+y}
6218 then :
6219 printf %s "(cached) " >&6
6220 else case e in #(
6221 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6222 lt_cv_file_magic_test_file=
6223 lt_cv_deplibs_check_method='unknown'
6224 # Need to set the preceding variable on all platforms that support
6225 # interlibrary dependencies.
6226 # 'none' -- dependencies not supported.
6227 # 'unknown' -- same as none, but documents that we really don't know.
6228 # 'pass_all' -- all dependencies passed with no checks.
6229 # 'file_magic [[regex]]' -- check by looking for files in library path
6230 # that responds to the $file_magic_cmd with a given extended regex.
6231 # If you have 'file' or equivalent on your system and you're not sure
6232 # whether 'pass_all' will *always* work, you probably want this one.
6233
6234 case $host_os in
6235 aix[4-9]*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 beos*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 bsdi[45]*)
6244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6245 lt_cv_file_magic_cmd='$FILECMD -L'
6246 lt_cv_file_magic_test_file=/shlib/libc.so
6247 ;;
6248
6249 cygwin*)
6250 # func_win32_libid is a shell function defined in ltmain.sh
6251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6252 lt_cv_file_magic_cmd='func_win32_libid'
6253 ;;
6254
6255 mingw* | windows* | pw32*)
6256 # Base MSYS/MinGW do not provide the 'file' command needed by
6257 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6258 # unless we find 'file', for example because we are cross-compiling.
6259 if ( file / ) >/dev/null 2>&1; then
6260 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6261 lt_cv_file_magic_cmd='func_win32_libid'
6262 else
6263 # Keep this pattern in sync with the one in func_win32_libid.
6264 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6265 lt_cv_file_magic_cmd='$OBJDUMP -f'
6266 fi
6267 ;;
6268
6269 cegcc*)
6270 # use the weaker test based on 'objdump'. See mingw*.
6271 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6272 lt_cv_file_magic_cmd='$OBJDUMP -f'
6273 ;;
6274
6275 darwin* | rhapsody*)
6276 lt_cv_deplibs_check_method=pass_all
6277 ;;
6278
6279 freebsd* | dragonfly* | midnightbsd*)
6280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6281 case $host_cpu in
6282 i*86 )
6283 # Not sure whether the presence of OpenBSD here was a mistake.
6284 # Let's accept both of them until this is cleared up.
6285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6286 lt_cv_file_magic_cmd=$FILECMD
6287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6288 ;;
6289 esac
6290 else
6291 lt_cv_deplibs_check_method=pass_all
6292 fi
6293 ;;
6294
6295 haiku*)
6296 lt_cv_deplibs_check_method=pass_all
6297 ;;
6298
6299 hpux10.20* | hpux11*)
6300 lt_cv_file_magic_cmd=$FILECMD
6301 case $host_cpu in
6302 ia64*)
6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6305 ;;
6306 hppa*64*)
6307 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]'
6308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6309 ;;
6310 *)
6311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6312 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6313 ;;
6314 esac
6315 ;;
6316
6317 interix[3-9]*)
6318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6320 ;;
6321
6322 irix5* | irix6* | nonstopux*)
6323 case $LD in
6324 *-32|*"-32 ") libmagic=32-bit;;
6325 *-n32|*"-n32 ") libmagic=N32;;
6326 *-64|*"-64 ") libmagic=64-bit;;
6327 *) libmagic=never-match;;
6328 esac
6329 lt_cv_deplibs_check_method=pass_all
6330 ;;
6331
6332 # This must be glibc/ELF.
6333 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336
6337 *-mlibc)
6338 lt_cv_deplibs_check_method=pass_all
6339 ;;
6340
6341 netbsd* | netbsdelf*-gnu)
6342 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6344 else
6345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6346 fi
6347 ;;
6348
6349 newos6*)
6350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6351 lt_cv_file_magic_cmd=$FILECMD
6352 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6353 ;;
6354
6355 *nto* | *qnx*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
6358
6359 openbsd*)
6360 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6362 else
6363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6364 fi
6365 ;;
6366
6367 osf3* | osf4* | osf5*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371 rdos*)
6372 lt_cv_deplibs_check_method=pass_all
6373 ;;
6374
6375 serenity*)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378
6379 solaris*)
6380 lt_cv_deplibs_check_method=pass_all
6381 ;;
6382
6383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6384 lt_cv_deplibs_check_method=pass_all
6385 ;;
6386
6387 sysv4 | sysv4.3*)
6388 case $host_vendor in
6389 motorola)
6390 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]'
6391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6392 ;;
6393 ncr)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396 sequent)
6397 lt_cv_file_magic_cmd='/bin/file'
6398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6399 ;;
6400 sni)
6401 lt_cv_file_magic_cmd='/bin/file'
6402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6403 lt_cv_file_magic_test_file=/lib/libc.so
6404 ;;
6405 siemens)
6406 lt_cv_deplibs_check_method=pass_all
6407 ;;
6408 pc)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411 esac
6412 ;;
6413
6414 tpf*)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417 os2*)
6418 lt_cv_deplibs_check_method=pass_all
6419 ;;
6420 esac
6421 ;;
6422 esac
6423 fi
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6426
6427 file_magic_glob=
6428 want_nocaseglob=no
6429 if test "$build" = "$host"; then
6430 case $host_os in
6431 mingw* | windows* | pw32*)
6432 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6433 want_nocaseglob=yes
6434 else
6435 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6436 fi
6437 ;;
6438 esac
6439 fi
6440
6441 file_magic_cmd=$lt_cv_file_magic_cmd
6442 deplibs_check_method=$lt_cv_deplibs_check_method
6443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 printf %s "checking for $ac_word... " >&6; }
6471 if test ${ac_cv_prog_DLLTOOL+y}
6472 then :
6473 printf %s "(cached) " >&6
6474 else case e in #(
6475 e) if test -n "$DLLTOOL"; then
6476 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481 IFS=$as_save_IFS
6482 case $as_dir in #(((
6483 '') as_dir=./ ;;
6484 */) ;;
6485 *) as_dir=$as_dir/ ;;
6486 esac
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6491 break 2
6492 fi
6493 done
6494 done
6495 IFS=$as_save_IFS
6496
6497 fi ;;
6498 esac
6499 fi
6500 DLLTOOL=$ac_cv_prog_DLLTOOL
6501 if test -n "$DLLTOOL"; then
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6503 printf "%s\n" "$DLLTOOL" >&6; }
6504 else
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 printf "%s\n" "no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_DLLTOOL"; then
6512 ac_ct_DLLTOOL=$DLLTOOL
6513 # Extract the first word of "dlltool", so it can be a program name with args.
6514 set dummy dlltool; ac_word=$2
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 printf %s "checking for $ac_word... " >&6; }
6517 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6518 then :
6519 printf %s "(cached) " >&6
6520 else case e in #(
6521 e) if test -n "$ac_ct_DLLTOOL"; then
6522 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527 IFS=$as_save_IFS
6528 case $as_dir in #(((
6529 '') as_dir=./ ;;
6530 */) ;;
6531 *) as_dir=$as_dir/ ;;
6532 esac
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi ;;
6544 esac
6545 fi
6546 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6547 if test -n "$ac_ct_DLLTOOL"; then
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6549 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6550 else
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 printf "%s\n" "no" >&6; }
6553 fi
6554
6555 if test "x$ac_ct_DLLTOOL" = x; then
6556 DLLTOOL="false"
6557 else
6558 case $cross_compiling:$ac_tool_warned in
6559 yes:)
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562 ac_tool_warned=yes ;;
6563 esac
6564 DLLTOOL=$ac_ct_DLLTOOL
6565 fi
6566 else
6567 DLLTOOL="$ac_cv_prog_DLLTOOL"
6568 fi
6569
6570 test -z "$DLLTOOL" && DLLTOOL=dlltool
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6582 printf %s "checking how to associate runtime and link libraries... " >&6; }
6583 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6584 then :
6585 printf %s "(cached) " >&6
6586 else case e in #(
6587 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6588
6589 case $host_os in
6590 cygwin* | mingw* | windows* | pw32* | cegcc*)
6591 # two different shell functions defined in ltmain.sh;
6592 # decide which one to use based on capabilities of $DLLTOOL
6593 case `$DLLTOOL --help 2>&1` in
6594 *--identify-strict*)
6595 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6596 ;;
6597 *)
6598 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6599 ;;
6600 esac
6601 ;;
6602 *)
6603 # fallback: assume linklib IS sharedlib
6604 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6605 ;;
6606 esac
6607 ;;
6608 esac
6609 fi
6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6611 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6612 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6613 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6614
6615
6616
6617
6618
6619
6620
6621
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 printf %s "checking for $ac_word... " >&6; }
6627 if test ${ac_cv_prog_RANLIB+y}
6628 then :
6629 printf %s "(cached) " >&6
6630 else case e in #(
6631 e) if test -n "$RANLIB"; then
6632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637 IFS=$as_save_IFS
6638 case $as_dir in #(((
6639 '') as_dir=./ ;;
6640 */) ;;
6641 *) as_dir=$as_dir/ ;;
6642 esac
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6645 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6647 break 2
6648 fi
6649 done
6650 done
6651 IFS=$as_save_IFS
6652
6653 fi ;;
6654 esac
6655 fi
6656 RANLIB=$ac_cv_prog_RANLIB
6657 if test -n "$RANLIB"; then
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6659 printf "%s\n" "$RANLIB" >&6; }
6660 else
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 printf "%s\n" "no" >&6; }
6663 fi
6664
6665
6666 fi
6667 if test -z "$ac_cv_prog_RANLIB"; then
6668 ac_ct_RANLIB=$RANLIB
6669 # Extract the first word of "ranlib", so it can be a program name with args.
6670 set dummy ranlib; ac_word=$2
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 printf %s "checking for $ac_word... " >&6; }
6673 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6674 then :
6675 printf %s "(cached) " >&6
6676 else case e in #(
6677 e) if test -n "$ac_ct_RANLIB"; then
6678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 case $as_dir in #(((
6685 '') as_dir=./ ;;
6686 */) ;;
6687 *) as_dir=$as_dir/ ;;
6688 esac
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_RANLIB="ranlib"
6692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi ;;
6700 esac
6701 fi
6702 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6703 if test -n "$ac_ct_RANLIB"; then
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6705 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6706 else
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 printf "%s\n" "no" >&6; }
6709 fi
6710
6711 if test "x$ac_ct_RANLIB" = x; then
6712 RANLIB=":"
6713 else
6714 case $cross_compiling:$ac_tool_warned in
6715 yes:)
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720 RANLIB=$ac_ct_RANLIB
6721 fi
6722 else
6723 RANLIB="$ac_cv_prog_RANLIB"
6724 fi
6725
6726 if test -n "$ac_tool_prefix"; then
6727 for ac_prog in ar
6728 do
6729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 printf %s "checking for $ac_word... " >&6; }
6733 if test ${ac_cv_prog_AR+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) if test -n "$AR"; then
6738 ac_cv_prog_AR="$AR" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 case $as_dir in #(((
6745 '') as_dir=./ ;;
6746 */) ;;
6747 *) as_dir=$as_dir/ ;;
6748 esac
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6751 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi ;;
6760 esac
6761 fi
6762 AR=$ac_cv_prog_AR
6763 if test -n "$AR"; then
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6765 printf "%s\n" "$AR" >&6; }
6766 else
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 printf "%s\n" "no" >&6; }
6769 fi
6770
6771
6772 test -n "$AR" && break
6773 done
6774 fi
6775 if test -z "$AR"; then
6776 ac_ct_AR=$AR
6777 for ac_prog in ar
6778 do
6779 # Extract the first word of "$ac_prog", so it can be a program name with args.
6780 set dummy $ac_prog; ac_word=$2
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 printf %s "checking for $ac_word... " >&6; }
6783 if test ${ac_cv_prog_ac_ct_AR+y}
6784 then :
6785 printf %s "(cached) " >&6
6786 else case e in #(
6787 e) if test -n "$ac_ct_AR"; then
6788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793 IFS=$as_save_IFS
6794 case $as_dir in #(((
6795 '') as_dir=./ ;;
6796 */) ;;
6797 *) as_dir=$as_dir/ ;;
6798 esac
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6801 ac_cv_prog_ac_ct_AR="$ac_prog"
6802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805 done
6806 done
6807 IFS=$as_save_IFS
6808
6809 fi ;;
6810 esac
6811 fi
6812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6813 if test -n "$ac_ct_AR"; then
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6815 printf "%s\n" "$ac_ct_AR" >&6; }
6816 else
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 printf "%s\n" "no" >&6; }
6819 fi
6820
6821
6822 test -n "$ac_ct_AR" && break
6823 done
6824
6825 if test "x$ac_ct_AR" = x; then
6826 AR="false"
6827 else
6828 case $cross_compiling:$ac_tool_warned in
6829 yes:)
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6832 ac_tool_warned=yes ;;
6833 esac
6834 AR=$ac_ct_AR
6835 fi
6836 fi
6837
6838 : ${AR=ar}
6839
6840
6841
6842
6843
6844
6845 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6846 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6847 # higher priority because that's what people were doing historically (setting
6848 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6849 # variable obsoleted/removed.
6850
6851 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6852 lt_ar_flags=$AR_FLAGS
6853
6854
6855
6856
6857
6858
6859 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6860 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6861
6862
6863
6864
6865
6866
6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6868 printf %s "checking for archiver @FILE support... " >&6; }
6869 if test ${lt_cv_ar_at_file+y}
6870 then :
6871 printf %s "(cached) " >&6
6872 else case e in #(
6873 e) lt_cv_ar_at_file=no
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6876
6877 int
6878 main (void)
6879 {
6880
6881 ;
6882 return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_compile "$LINENO"
6886 then :
6887 echo conftest.$ac_objext > conftest.lst
6888 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6890 (eval $lt_ar_try) 2>&5
6891 ac_status=$?
6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }
6894 if test 0 -eq "$ac_status"; then
6895 # Ensure the archiver fails upon bogus file names.
6896 rm -f conftest.$ac_objext libconftest.a
6897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6898 (eval $lt_ar_try) 2>&5
6899 ac_status=$?
6900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }
6902 if test 0 -ne "$ac_status"; then
6903 lt_cv_ar_at_file=@
6904 fi
6905 fi
6906 rm -f conftest.* libconftest.a
6907
6908 fi
6909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6910 ;;
6911 esac
6912 fi
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6914 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6915
6916 if test no = "$lt_cv_ar_at_file"; then
6917 archiver_list_spec=
6918 else
6919 archiver_list_spec=$lt_cv_ar_at_file
6920 fi
6921
6922
6923
6924
6925
6926
6927
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}strip; ac_word=$2
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 printf %s "checking for $ac_word... " >&6; }
6933 if test ${ac_cv_prog_STRIP+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else case e in #(
6937 e) if test -n "$STRIP"; then
6938 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943 IFS=$as_save_IFS
6944 case $as_dir in #(((
6945 '') as_dir=./ ;;
6946 */) ;;
6947 *) as_dir=$as_dir/ ;;
6948 esac
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6953 break 2
6954 fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959 fi ;;
6960 esac
6961 fi
6962 STRIP=$ac_cv_prog_STRIP
6963 if test -n "$STRIP"; then
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6965 printf "%s\n" "$STRIP" >&6; }
6966 else
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968 printf "%s\n" "no" >&6; }
6969 fi
6970
6971
6972 fi
6973 if test -z "$ac_cv_prog_STRIP"; then
6974 ac_ct_STRIP=$STRIP
6975 # Extract the first word of "strip", so it can be a program name with args.
6976 set dummy strip; ac_word=$2
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 printf %s "checking for $ac_word... " >&6; }
6979 if test ${ac_cv_prog_ac_ct_STRIP+y}
6980 then :
6981 printf %s "(cached) " >&6
6982 else case e in #(
6983 e) if test -n "$ac_ct_STRIP"; then
6984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 case $as_dir in #(((
6991 '') as_dir=./ ;;
6992 */) ;;
6993 *) as_dir=$as_dir/ ;;
6994 esac
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_ac_ct_STRIP="strip"
6998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi ;;
7006 esac
7007 fi
7008 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7009 if test -n "$ac_ct_STRIP"; then
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7011 printf "%s\n" "$ac_ct_STRIP" >&6; }
7012 else
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 printf "%s\n" "no" >&6; }
7015 fi
7016
7017 if test "x$ac_ct_STRIP" = x; then
7018 STRIP=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 STRIP=$ac_ct_STRIP
7027 fi
7028 else
7029 STRIP="$ac_cv_prog_STRIP"
7030 fi
7031
7032 test -z "$STRIP" && STRIP=:
7033
7034
7035
7036
7037
7038
7039
7040 test -z "$RANLIB" && RANLIB=:
7041
7042
7043
7044
7045
7046
7047 # Determine commands to create old-style static archives.
7048 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7049 old_postinstall_cmds='chmod 644 $oldlib'
7050 old_postuninstall_cmds=
7051
7052 if test -n "$RANLIB"; then
7053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7054 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7055 fi
7056
7057 case $host_os in
7058 darwin*)
7059 lock_old_archive_extraction=yes ;;
7060 *)
7061 lock_old_archive_extraction=no ;;
7062 esac
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 # If no C compiler was specified, use CC.
7103 LTCC=${LTCC-"$CC"}
7104
7105 # If no C compiler flags were specified, use CFLAGS.
7106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7107
7108 # Allow CC to be a program name with arguments.
7109 compiler=$CC
7110
7111
7112 # Check for command to grab the raw symbol name followed by C symbol from nm.
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7114 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7115 if test ${lt_cv_sys_global_symbol_pipe+y}
7116 then :
7117 printf %s "(cached) " >&6
7118 else case e in #(
7119 e)
7120 # These are sane defaults that work on at least a few old systems.
7121 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7122
7123 # Character class describing NM global symbol codes.
7124 symcode='[BCDEGRST]'
7125
7126 # Regexp to match symbols that can be accessed directly from C.
7127 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7128
7129 # Define system-specific variables.
7130 case $host_os in
7131 aix*)
7132 symcode='[BCDT]'
7133 ;;
7134 cygwin* | mingw* | windows* | pw32* | cegcc*)
7135 symcode='[ABCDGISTW]'
7136 ;;
7137 hpux*)
7138 if test ia64 = "$host_cpu"; then
7139 symcode='[ABCDEGRST]'
7140 fi
7141 ;;
7142 irix* | nonstopux*)
7143 symcode='[BCDEGRST]'
7144 ;;
7145 osf*)
7146 symcode='[BCDEGQRST]'
7147 ;;
7148 solaris*)
7149 symcode='[BCDRT]'
7150 ;;
7151 sco3.2v5*)
7152 symcode='[DT]'
7153 ;;
7154 sysv4.2uw2*)
7155 symcode='[DT]'
7156 ;;
7157 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7158 symcode='[ABDT]'
7159 ;;
7160 sysv4)
7161 symcode='[DFNSTU]'
7162 ;;
7163 esac
7164
7165 # If we're using GNU nm, then use its standard symbol codes.
7166 case `$NM -V 2>&1` in
7167 *GNU* | *'with BFD'*)
7168 symcode='[ABCDGIRSTW]' ;;
7169 esac
7170
7171 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7172 # Gets list of data symbols to import.
7173 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7174 # Adjust the below global symbol transforms to fixup imported variables.
7175 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7176 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7177 lt_c_name_lib_hook="\
7178 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7179 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7180 else
7181 # Disable hooks by default.
7182 lt_cv_sys_global_symbol_to_import=
7183 lt_cdecl_hook=
7184 lt_c_name_hook=
7185 lt_c_name_lib_hook=
7186 fi
7187
7188 # Transform an extracted symbol line into a proper C declaration.
7189 # Some systems (esp. on ia64) link data and code symbols differently,
7190 # so use this general approach.
7191 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7192 $lt_cdecl_hook\
7193 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7194 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7195
7196 # Transform an extracted symbol line into symbol name and symbol address
7197 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7198 $lt_c_name_hook\
7199 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7200 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7201
7202 # Transform an extracted symbol line into symbol name with lib prefix and
7203 # symbol address.
7204 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7205 $lt_c_name_lib_hook\
7206 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7207 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7208 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7209
7210 # Handle CRLF in mingw tool chain
7211 opt_cr=
7212 case $build_os in
7213 mingw* | windows*)
7214 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7215 ;;
7216 esac
7217
7218 # Try without a prefix underscore, then with it.
7219 for ac_symprfx in "" "_"; do
7220
7221 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7222 symxfrm="\\1 $ac_symprfx\\2 \\2"
7223
7224 # Write the raw and C identifiers.
7225 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7226 # Fake it for dumpbin and say T for any non-static function,
7227 # D for any global variable and I for any imported variable.
7228 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7229 # which start with @ or ?.
7230 lt_cv_sys_global_symbol_pipe="$AWK '"\
7231 " {last_section=section; section=\$ 3};"\
7232 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7233 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7234 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7235 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7236 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7237 " \$ 0!~/External *\|/{next};"\
7238 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7239 " {if(hide[section]) next};"\
7240 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7241 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7242 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7243 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7244 " ' prfx=^$ac_symprfx"
7245 else
7246 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7247 fi
7248 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7249
7250 # Check to see that the pipe works correctly.
7251 pipe_works=no
7252
7253 rm -f conftest*
7254 cat > conftest.$ac_ext <<_LT_EOF
7255 #ifdef __cplusplus
7256 extern "C" {
7257 #endif
7258 char nm_test_var;
7259 void nm_test_func(void);
7260 void nm_test_func(void){}
7261 #ifdef __cplusplus
7262 }
7263 #endif
7264 int main(void){nm_test_var='a';nm_test_func();return(0);}
7265 _LT_EOF
7266
7267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7268 (eval $ac_compile) 2>&5
7269 ac_status=$?
7270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7271 test $ac_status = 0; }; then
7272 # Now try to grab the symbols.
7273 nlist=conftest.nm
7274 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7275 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7276 # Try sorting and uniquifying the output.
7277 if sort "$nlist" | uniq > "$nlist"T; then
7278 mv -f "$nlist"T "$nlist"
7279 else
7280 rm -f "$nlist"T
7281 fi
7282
7283 # Make sure that we snagged all the symbols we need.
7284 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7285 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7286 cat <<_LT_EOF > conftest.$ac_ext
7287 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7288 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7289 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7290 relocations are performed -- see ld's documentation on pseudo-relocs. */
7291 # define LT_DLSYM_CONST
7292 #elif defined __osf__
7293 /* This system does not cope well with relocations in const data. */
7294 # define LT_DLSYM_CONST
7295 #else
7296 # define LT_DLSYM_CONST const
7297 #endif
7298
7299 #ifdef __cplusplus
7300 extern "C" {
7301 #endif
7302
7303 _LT_EOF
7304 # Now generate the symbol file.
7305 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7306
7307 cat <<_LT_EOF >> conftest.$ac_ext
7308
7309 /* The mapping between symbol names and symbols. */
7310 LT_DLSYM_CONST struct {
7311 const char *name;
7312 void *address;
7313 }
7314 lt__PROGRAM__LTX_preloaded_symbols[] =
7315 {
7316 { "@PROGRAM@", (void *) 0 },
7317 _LT_EOF
7318 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7319 cat <<\_LT_EOF >> conftest.$ac_ext
7320 {0, (void *) 0}
7321 };
7322
7323 /* This works around a problem in FreeBSD linker */
7324 #ifdef FREEBSD_WORKAROUND
7325 static const void *lt_preloaded_setup() {
7326 return lt__PROGRAM__LTX_preloaded_symbols;
7327 }
7328 #endif
7329
7330 #ifdef __cplusplus
7331 }
7332 #endif
7333 _LT_EOF
7334 # Now try linking the two files.
7335 mv conftest.$ac_objext conftstm.$ac_objext
7336 lt_globsym_save_LIBS=$LIBS
7337 lt_globsym_save_CFLAGS=$CFLAGS
7338 LIBS=conftstm.$ac_objext
7339 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7341 (eval $ac_link) 2>&5
7342 ac_status=$?
7343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7345 pipe_works=yes
7346 fi
7347 LIBS=$lt_globsym_save_LIBS
7348 CFLAGS=$lt_globsym_save_CFLAGS
7349 else
7350 echo "cannot find nm_test_func in $nlist" >&5
7351 fi
7352 else
7353 echo "cannot find nm_test_var in $nlist" >&5
7354 fi
7355 else
7356 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7357 fi
7358 else
7359 echo "$progname: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 fi
7362 rm -rf conftest* conftst*
7363
7364 # Do not use the global_symbol_pipe unless it works.
7365 if test yes = "$pipe_works"; then
7366 break
7367 else
7368 lt_cv_sys_global_symbol_pipe=
7369 fi
7370 done
7371 ;;
7372 esac
7373 fi
7374
7375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7376 lt_cv_sys_global_symbol_to_cdecl=
7377 fi
7378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7380 printf "%s\n" "failed" >&6; }
7381 else
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7383 printf "%s\n" "ok" >&6; }
7384 fi
7385
7386 # Response file support.
7387 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7388 nm_file_list_spec='@'
7389 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7390 nm_file_list_spec='@'
7391 fi
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7430 printf %s "checking for sysroot... " >&6; }
7431
7432 # Check whether --with-sysroot was given.
7433 if test ${with_sysroot+y}
7434 then :
7435 withval=$with_sysroot;
7436 else case e in #(
7437 e) with_sysroot=no ;;
7438 esac
7439 fi
7440
7441
7442 lt_sysroot=
7443 case $with_sysroot in #(
7444 yes)
7445 if test yes = "$GCC"; then
7446 # Trim trailing / since we'll always append absolute paths and we want
7447 # to avoid //, if only for less confusing output for the user.
7448 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7449 fi
7450 ;; #(
7451 /*)
7452 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7453 ;; #(
7454 no|'')
7455 ;; #(
7456 *)
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7458 printf "%s\n" "$with_sysroot" >&6; }
7459 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7460 ;;
7461 esac
7462
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7464 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7465
7466
7467
7468
7469
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7471 printf %s "checking for a working dd... " >&6; }
7472 if test ${ac_cv_path_lt_DD+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else case e in #(
7476 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7477 cat conftest.i conftest.i >conftest2.i
7478 : ${lt_DD:=$DD}
7479 if test -z "$lt_DD"; then
7480 ac_path_lt_DD_found=false
7481 # Loop through the user's path and test for each of PROGNAME-LIST
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485 IFS=$as_save_IFS
7486 case $as_dir in #(((
7487 '') as_dir=./ ;;
7488 */) ;;
7489 *) as_dir=$as_dir/ ;;
7490 esac
7491 for ac_prog in dd
7492 do
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7495 as_fn_executable_p "$ac_path_lt_DD" || continue
7496 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7497 cmp -s conftest.i conftest.out \
7498 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7499 fi
7500 $ac_path_lt_DD_found && break 3
7501 done
7502 done
7503 done
7504 IFS=$as_save_IFS
7505 if test -z "$ac_cv_path_lt_DD"; then
7506 :
7507 fi
7508 else
7509 ac_cv_path_lt_DD=$lt_DD
7510 fi
7511
7512 rm -f conftest.i conftest2.i conftest.out ;;
7513 esac
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7516 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7517
7518
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7520 printf %s "checking how to truncate binary pipes... " >&6; }
7521 if test ${lt_cv_truncate_bin+y}
7522 then :
7523 printf %s "(cached) " >&6
7524 else case e in #(
7525 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7526 cat conftest.i conftest.i >conftest2.i
7527 lt_cv_truncate_bin=
7528 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7529 cmp -s conftest.i conftest.out \
7530 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7531 fi
7532 rm -f conftest.i conftest2.i conftest.out
7533 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7534 esac
7535 fi
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7537 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7538
7539
7540
7541
7542
7543
7544
7545 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7546 func_cc_basename ()
7547 {
7548 for cc_temp in $*""; do
7549 case $cc_temp in
7550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7552 \-*) ;;
7553 *) break;;
7554 esac
7555 done
7556 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7557 }
7558
7559 # Check whether --enable-libtool-lock was given.
7560 if test ${enable_libtool_lock+y}
7561 then :
7562 enableval=$enable_libtool_lock;
7563 fi
7564
7565 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7566
7567 # Some flags need to be propagated to the compiler or linker for good
7568 # libtool support.
7569 case $host in
7570 ia64-*-hpux*)
7571 # Find out what ABI is being produced by ac_compile, and set mode
7572 # options accordingly.
7573 echo 'int i;' > conftest.$ac_ext
7574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7575 (eval $ac_compile) 2>&5
7576 ac_status=$?
7577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7578 test $ac_status = 0; }; then
7579 case `$FILECMD conftest.$ac_objext` in
7580 *ELF-32*)
7581 HPUX_IA64_MODE=32
7582 ;;
7583 *ELF-64*)
7584 HPUX_IA64_MODE=64
7585 ;;
7586 esac
7587 fi
7588 rm -rf conftest*
7589 ;;
7590 *-*-irix6*)
7591 # Find out what ABI is being produced by ac_compile, and set linker
7592 # options accordingly.
7593 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7595 (eval $ac_compile) 2>&5
7596 ac_status=$?
7597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7598 test $ac_status = 0; }; then
7599 if test yes = "$lt_cv_prog_gnu_ld"; then
7600 case `$FILECMD conftest.$ac_objext` in
7601 *32-bit*)
7602 LD="${LD-ld} -melf32bsmip"
7603 ;;
7604 *N32*)
7605 LD="${LD-ld} -melf32bmipn32"
7606 ;;
7607 *64-bit*)
7608 LD="${LD-ld} -melf64bmip"
7609 ;;
7610 esac
7611 else
7612 case `$FILECMD conftest.$ac_objext` in
7613 *32-bit*)
7614 LD="${LD-ld} -32"
7615 ;;
7616 *N32*)
7617 LD="${LD-ld} -n32"
7618 ;;
7619 *64-bit*)
7620 LD="${LD-ld} -64"
7621 ;;
7622 esac
7623 fi
7624 fi
7625 rm -rf conftest*
7626 ;;
7627
7628 mips64*-*linux*)
7629 # Find out what ABI is being produced by ac_compile, and set linker
7630 # options accordingly.
7631 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7633 (eval $ac_compile) 2>&5
7634 ac_status=$?
7635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; }; then
7637 emul=elf
7638 case `$FILECMD conftest.$ac_objext` in
7639 *32-bit*)
7640 emul="${emul}32"
7641 ;;
7642 *64-bit*)
7643 emul="${emul}64"
7644 ;;
7645 esac
7646 case `$FILECMD conftest.$ac_objext` in
7647 *MSB*)
7648 emul="${emul}btsmip"
7649 ;;
7650 *LSB*)
7651 emul="${emul}ltsmip"
7652 ;;
7653 esac
7654 case `$FILECMD conftest.$ac_objext` in
7655 *N32*)
7656 emul="${emul}n32"
7657 ;;
7658 esac
7659 LD="${LD-ld} -m $emul"
7660 fi
7661 rm -rf conftest*
7662 ;;
7663
7664 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7665 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7666 # Find out what ABI is being produced by ac_compile, and set linker
7667 # options accordingly. Note that the listed cases only cover the
7668 # situations where additional linker options are needed (such as when
7669 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7670 # vice versa); the common cases where no linker options are needed do
7671 # not appear in the list.
7672 echo 'int i;' > conftest.$ac_ext
7673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7674 (eval $ac_compile) 2>&5
7675 ac_status=$?
7676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }; then
7678 case `$FILECMD conftest.o` in
7679 *32-bit*)
7680 case $host in
7681 x86_64-*kfreebsd*-gnu)
7682 LD="${LD-ld} -m elf_i386_fbsd"
7683 ;;
7684 x86_64-*linux*|x86_64-gnu*)
7685 case `$FILECMD conftest.o` in
7686 *x86-64*)
7687 LD="${LD-ld} -m elf32_x86_64"
7688 ;;
7689 *)
7690 LD="${LD-ld} -m elf_i386"
7691 ;;
7692 esac
7693 ;;
7694 powerpc64le-*linux*)
7695 LD="${LD-ld} -m elf32lppclinux"
7696 ;;
7697 powerpc64-*linux*)
7698 LD="${LD-ld} -m elf32ppclinux"
7699 ;;
7700 s390x-*linux*)
7701 LD="${LD-ld} -m elf_s390"
7702 ;;
7703 sparc64-*linux*)
7704 LD="${LD-ld} -m elf32_sparc"
7705 ;;
7706 esac
7707 ;;
7708 *64-bit*)
7709 case $host in
7710 x86_64-*kfreebsd*-gnu)
7711 LD="${LD-ld} -m elf_x86_64_fbsd"
7712 ;;
7713 x86_64-*linux*|x86_64-gnu*)
7714 LD="${LD-ld} -m elf_x86_64"
7715 ;;
7716 powerpcle-*linux*)
7717 LD="${LD-ld} -m elf64lppc"
7718 ;;
7719 powerpc-*linux*)
7720 LD="${LD-ld} -m elf64ppc"
7721 ;;
7722 s390*-*linux*|s390*-*tpf*)
7723 LD="${LD-ld} -m elf64_s390"
7724 ;;
7725 sparc*-*linux*)
7726 LD="${LD-ld} -m elf64_sparc"
7727 ;;
7728 esac
7729 ;;
7730 esac
7731 fi
7732 rm -rf conftest*
7733 ;;
7734
7735 *-*-sco3.2v5*)
7736 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7737 SAVE_CFLAGS=$CFLAGS
7738 CFLAGS="$CFLAGS -belf"
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7740 printf %s "checking whether the C compiler needs -belf... " >&6; }
7741 if test ${lt_cv_cc_needs_belf+y}
7742 then :
7743 printf %s "(cached) " >&6
7744 else case e in #(
7745 e) ac_ext=c
7746 ac_cpp='$CPP $CPPFLAGS'
7747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753
7754 int
7755 main (void)
7756 {
7757
7758 ;
7759 return 0;
7760 }
7761 _ACEOF
7762 if ac_fn_c_try_link "$LINENO"
7763 then :
7764 lt_cv_cc_needs_belf=yes
7765 else case e in #(
7766 e) lt_cv_cc_needs_belf=no ;;
7767 esac
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7770 conftest$ac_exeext conftest.$ac_ext
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776 ;;
7777 esac
7778 fi
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7780 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7781 if test yes != "$lt_cv_cc_needs_belf"; then
7782 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7783 CFLAGS=$SAVE_CFLAGS
7784 fi
7785 ;;
7786 *-*solaris*)
7787 # Find out what ABI is being produced by ac_compile, and set linker
7788 # options accordingly.
7789 echo 'int i;' > conftest.$ac_ext
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 case `$FILECMD conftest.o` in
7796 *64-bit*)
7797 case $lt_cv_prog_gnu_ld in
7798 yes*)
7799 case $host in
7800 i?86-*-solaris*|x86_64-*-solaris*)
7801 LD="${LD-ld} -m elf_x86_64"
7802 ;;
7803 sparc*-*-solaris*)
7804 LD="${LD-ld} -m elf64_sparc"
7805 ;;
7806 esac
7807 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7808 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7809 LD=${LD-ld}_sol2
7810 fi
7811 ;;
7812 *)
7813 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7814 LD="${LD-ld} -64"
7815 fi
7816 ;;
7817 esac
7818 ;;
7819 esac
7820 fi
7821 rm -rf conftest*
7822 ;;
7823 esac
7824
7825 need_locks=$enable_libtool_lock
7826
7827 if test -n "$ac_tool_prefix"; then
7828 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7829 set dummy ${ac_tool_prefix}mt; ac_word=$2
7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 printf %s "checking for $ac_word... " >&6; }
7832 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7833 then :
7834 printf %s "(cached) " >&6
7835 else case e in #(
7836 e) if test -n "$MANIFEST_TOOL"; then
7837 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 case $as_dir in #(((
7844 '') as_dir=./ ;;
7845 */) ;;
7846 *) as_dir=$as_dir/ ;;
7847 esac
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi ;;
7859 esac
7860 fi
7861 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7862 if test -n "$MANIFEST_TOOL"; then
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7864 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7865 else
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 printf "%s\n" "no" >&6; }
7868 fi
7869
7870
7871 fi
7872 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7873 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7874 # Extract the first word of "mt", so it can be a program name with args.
7875 set dummy mt; ac_word=$2
7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 printf %s "checking for $ac_word... " >&6; }
7878 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7879 then :
7880 printf %s "(cached) " >&6
7881 else case e in #(
7882 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7883 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888 IFS=$as_save_IFS
7889 case $as_dir in #(((
7890 '') as_dir=./ ;;
7891 */) ;;
7892 *) as_dir=$as_dir/ ;;
7893 esac
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi ;;
7905 esac
7906 fi
7907 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7908 if test -n "$ac_ct_MANIFEST_TOOL"; then
7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7910 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7911 else
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 printf "%s\n" "no" >&6; }
7914 fi
7915
7916 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7917 MANIFEST_TOOL=":"
7918 else
7919 case $cross_compiling:$ac_tool_warned in
7920 yes:)
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923 ac_tool_warned=yes ;;
7924 esac
7925 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7926 fi
7927 else
7928 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7929 fi
7930
7931 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7933 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7934 if test ${lt_cv_path_manifest_tool+y}
7935 then :
7936 printf %s "(cached) " >&6
7937 else case e in #(
7938 e) lt_cv_path_manifest_tool=no
7939 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7940 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7941 cat conftest.err >&5
7942 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7943 lt_cv_path_manifest_tool=yes
7944 fi
7945 rm -f conftest* ;;
7946 esac
7947 fi
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7949 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7950 if test yes != "$lt_cv_path_manifest_tool"; then
7951 MANIFEST_TOOL=:
7952 fi
7953
7954
7955
7956
7957
7958
7959 case $host_os in
7960 rhapsody* | darwin*)
7961 if test -n "$ac_tool_prefix"; then
7962 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7963 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 printf %s "checking for $ac_word... " >&6; }
7966 if test ${ac_cv_prog_DSYMUTIL+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else case e in #(
7970 e) if test -n "$DSYMUTIL"; then
7971 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7972 else
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 for as_dir in $PATH
7975 do
7976 IFS=$as_save_IFS
7977 case $as_dir in #(((
7978 '') as_dir=./ ;;
7979 */) ;;
7980 *) as_dir=$as_dir/ ;;
7981 esac
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi ;;
7993 esac
7994 fi
7995 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7996 if test -n "$DSYMUTIL"; then
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7998 printf "%s\n" "$DSYMUTIL" >&6; }
7999 else
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 printf "%s\n" "no" >&6; }
8002 fi
8003
8004
8005 fi
8006 if test -z "$ac_cv_prog_DSYMUTIL"; then
8007 ac_ct_DSYMUTIL=$DSYMUTIL
8008 # Extract the first word of "dsymutil", so it can be a program name with args.
8009 set dummy dsymutil; ac_word=$2
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 printf %s "checking for $ac_word... " >&6; }
8012 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else case e in #(
8016 e) if test -n "$ac_ct_DSYMUTIL"; then
8017 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 case $as_dir in #(((
8024 '') as_dir=./ ;;
8025 */) ;;
8026 *) as_dir=$as_dir/ ;;
8027 esac
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi ;;
8039 esac
8040 fi
8041 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8042 if test -n "$ac_ct_DSYMUTIL"; then
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8044 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8045 else
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 printf "%s\n" "no" >&6; }
8048 fi
8049
8050 if test "x$ac_ct_DSYMUTIL" = x; then
8051 DSYMUTIL=":"
8052 else
8053 case $cross_compiling:$ac_tool_warned in
8054 yes:)
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8057 ac_tool_warned=yes ;;
8058 esac
8059 DSYMUTIL=$ac_ct_DSYMUTIL
8060 fi
8061 else
8062 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8063 fi
8064
8065 if test -n "$ac_tool_prefix"; then
8066 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8067 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 printf %s "checking for $ac_word... " >&6; }
8070 if test ${ac_cv_prog_NMEDIT+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else case e in #(
8074 e) if test -n "$NMEDIT"; then
8075 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 case $as_dir in #(((
8082 '') as_dir=./ ;;
8083 */) ;;
8084 *) as_dir=$as_dir/ ;;
8085 esac
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi ;;
8097 esac
8098 fi
8099 NMEDIT=$ac_cv_prog_NMEDIT
8100 if test -n "$NMEDIT"; then
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8102 printf "%s\n" "$NMEDIT" >&6; }
8103 else
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 printf "%s\n" "no" >&6; }
8106 fi
8107
8108
8109 fi
8110 if test -z "$ac_cv_prog_NMEDIT"; then
8111 ac_ct_NMEDIT=$NMEDIT
8112 # Extract the first word of "nmedit", so it can be a program name with args.
8113 set dummy nmedit; ac_word=$2
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 printf %s "checking for $ac_word... " >&6; }
8116 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8117 then :
8118 printf %s "(cached) " >&6
8119 else case e in #(
8120 e) if test -n "$ac_ct_NMEDIT"; then
8121 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126 IFS=$as_save_IFS
8127 case $as_dir in #(((
8128 '') as_dir=./ ;;
8129 */) ;;
8130 *) as_dir=$as_dir/ ;;
8131 esac
8132 for ac_exec_ext in '' $ac_executable_extensions; do
8133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8134 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8136 break 2
8137 fi
8138 done
8139 done
8140 IFS=$as_save_IFS
8141
8142 fi ;;
8143 esac
8144 fi
8145 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8146 if test -n "$ac_ct_NMEDIT"; then
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8148 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8149 else
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 printf "%s\n" "no" >&6; }
8152 fi
8153
8154 if test "x$ac_ct_NMEDIT" = x; then
8155 NMEDIT=":"
8156 else
8157 case $cross_compiling:$ac_tool_warned in
8158 yes:)
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161 ac_tool_warned=yes ;;
8162 esac
8163 NMEDIT=$ac_ct_NMEDIT
8164 fi
8165 else
8166 NMEDIT="$ac_cv_prog_NMEDIT"
8167 fi
8168
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 printf %s "checking for $ac_word... " >&6; }
8174 if test ${ac_cv_prog_LIPO+y}
8175 then :
8176 printf %s "(cached) " >&6
8177 else case e in #(
8178 e) if test -n "$LIPO"; then
8179 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8183 do
8184 IFS=$as_save_IFS
8185 case $as_dir in #(((
8186 '') as_dir=./ ;;
8187 */) ;;
8188 *) as_dir=$as_dir/ ;;
8189 esac
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8194 break 2
8195 fi
8196 done
8197 done
8198 IFS=$as_save_IFS
8199
8200 fi ;;
8201 esac
8202 fi
8203 LIPO=$ac_cv_prog_LIPO
8204 if test -n "$LIPO"; then
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8206 printf "%s\n" "$LIPO" >&6; }
8207 else
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 printf "%s\n" "no" >&6; }
8210 fi
8211
8212
8213 fi
8214 if test -z "$ac_cv_prog_LIPO"; then
8215 ac_ct_LIPO=$LIPO
8216 # Extract the first word of "lipo", so it can be a program name with args.
8217 set dummy lipo; ac_word=$2
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 printf %s "checking for $ac_word... " >&6; }
8220 if test ${ac_cv_prog_ac_ct_LIPO+y}
8221 then :
8222 printf %s "(cached) " >&6
8223 else case e in #(
8224 e) if test -n "$ac_ct_LIPO"; then
8225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8226 else
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in $PATH
8229 do
8230 IFS=$as_save_IFS
8231 case $as_dir in #(((
8232 '') as_dir=./ ;;
8233 */) ;;
8234 *) as_dir=$as_dir/ ;;
8235 esac
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_ac_ct_LIPO="lipo"
8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8240 break 2
8241 fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi ;;
8247 esac
8248 fi
8249 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8250 if test -n "$ac_ct_LIPO"; then
8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8252 printf "%s\n" "$ac_ct_LIPO" >&6; }
8253 else
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 printf "%s\n" "no" >&6; }
8256 fi
8257
8258 if test "x$ac_ct_LIPO" = x; then
8259 LIPO=":"
8260 else
8261 case $cross_compiling:$ac_tool_warned in
8262 yes:)
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267 LIPO=$ac_ct_LIPO
8268 fi
8269 else
8270 LIPO="$ac_cv_prog_LIPO"
8271 fi
8272
8273 if test -n "$ac_tool_prefix"; then
8274 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool; ac_word=$2
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 printf %s "checking for $ac_word... " >&6; }
8278 if test ${ac_cv_prog_OTOOL+y}
8279 then :
8280 printf %s "(cached) " >&6
8281 else case e in #(
8282 e) if test -n "$OTOOL"; then
8283 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288 IFS=$as_save_IFS
8289 case $as_dir in #(((
8290 '') as_dir=./ ;;
8291 */) ;;
8292 *) as_dir=$as_dir/ ;;
8293 esac
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8296 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8298 break 2
8299 fi
8300 done
8301 done
8302 IFS=$as_save_IFS
8303
8304 fi ;;
8305 esac
8306 fi
8307 OTOOL=$ac_cv_prog_OTOOL
8308 if test -n "$OTOOL"; then
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8310 printf "%s\n" "$OTOOL" >&6; }
8311 else
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 printf "%s\n" "no" >&6; }
8314 fi
8315
8316
8317 fi
8318 if test -z "$ac_cv_prog_OTOOL"; then
8319 ac_ct_OTOOL=$OTOOL
8320 # Extract the first word of "otool", so it can be a program name with args.
8321 set dummy otool; ac_word=$2
8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 printf %s "checking for $ac_word... " >&6; }
8324 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8325 then :
8326 printf %s "(cached) " >&6
8327 else case e in #(
8328 e) if test -n "$ac_ct_OTOOL"; then
8329 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8330 else
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332 for as_dir in $PATH
8333 do
8334 IFS=$as_save_IFS
8335 case $as_dir in #(((
8336 '') as_dir=./ ;;
8337 */) ;;
8338 *) as_dir=$as_dir/ ;;
8339 esac
8340 for ac_exec_ext in '' $ac_executable_extensions; do
8341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_ac_ct_OTOOL="otool"
8343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8344 break 2
8345 fi
8346 done
8347 done
8348 IFS=$as_save_IFS
8349
8350 fi ;;
8351 esac
8352 fi
8353 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8354 if test -n "$ac_ct_OTOOL"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8356 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8360 fi
8361
8362 if test "x$ac_ct_OTOOL" = x; then
8363 OTOOL=":"
8364 else
8365 case $cross_compiling:$ac_tool_warned in
8366 yes:)
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8368 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8369 ac_tool_warned=yes ;;
8370 esac
8371 OTOOL=$ac_ct_OTOOL
8372 fi
8373 else
8374 OTOOL="$ac_cv_prog_OTOOL"
8375 fi
8376
8377 if test -n "$ac_tool_prefix"; then
8378 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8379 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 printf %s "checking for $ac_word... " >&6; }
8382 if test ${ac_cv_prog_OTOOL64+y}
8383 then :
8384 printf %s "(cached) " >&6
8385 else case e in #(
8386 e) if test -n "$OTOOL64"; then
8387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 case $as_dir in #(((
8394 '') as_dir=./ ;;
8395 */) ;;
8396 *) as_dir=$as_dir/ ;;
8397 esac
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8400 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8402 break 2
8403 fi
8404 done
8405 done
8406 IFS=$as_save_IFS
8407
8408 fi ;;
8409 esac
8410 fi
8411 OTOOL64=$ac_cv_prog_OTOOL64
8412 if test -n "$OTOOL64"; then
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8414 printf "%s\n" "$OTOOL64" >&6; }
8415 else
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 printf "%s\n" "no" >&6; }
8418 fi
8419
8420
8421 fi
8422 if test -z "$ac_cv_prog_OTOOL64"; then
8423 ac_ct_OTOOL64=$OTOOL64
8424 # Extract the first word of "otool64", so it can be a program name with args.
8425 set dummy otool64; ac_word=$2
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 printf %s "checking for $ac_word... " >&6; }
8428 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8429 then :
8430 printf %s "(cached) " >&6
8431 else case e in #(
8432 e) if test -n "$ac_ct_OTOOL64"; then
8433 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438 IFS=$as_save_IFS
8439 case $as_dir in #(((
8440 '') as_dir=./ ;;
8441 */) ;;
8442 *) as_dir=$as_dir/ ;;
8443 esac
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8446 ac_cv_prog_ac_ct_OTOOL64="otool64"
8447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453
8454 fi ;;
8455 esac
8456 fi
8457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8458 if test -n "$ac_ct_OTOOL64"; then
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8460 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8461 else
8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 printf "%s\n" "no" >&6; }
8464 fi
8465
8466 if test "x$ac_ct_OTOOL64" = x; then
8467 OTOOL64=":"
8468 else
8469 case $cross_compiling:$ac_tool_warned in
8470 yes:)
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8473 ac_tool_warned=yes ;;
8474 esac
8475 OTOOL64=$ac_ct_OTOOL64
8476 fi
8477 else
8478 OTOOL64="$ac_cv_prog_OTOOL64"
8479 fi
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8508 printf %s "checking for -single_module linker flag... " >&6; }
8509 if test ${lt_cv_apple_cc_single_mod+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else case e in #(
8513 e) lt_cv_apple_cc_single_mod=no
8514 if test -z "$LT_MULTI_MODULE"; then
8515 # By default we will add the -single_module flag. You can override
8516 # by either setting the environment variable LT_MULTI_MODULE
8517 # non-empty at configure time, or by adding -multi_module to the
8518 # link flags.
8519 rm -rf libconftest.dylib*
8520 echo "int foo(void){return 1;}" > conftest.c
8521 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8522 -dynamiclib -Wl,-single_module conftest.c" >&5
8523 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8524 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8525 _lt_result=$?
8526 # If there is a non-empty error log, and "single_module"
8527 # appears in it, assume the flag caused a linker warning
8528 if test -s conftest.err && $GREP single_module conftest.err; then
8529 cat conftest.err >&5
8530 # Otherwise, if the output was created with a 0 exit code from
8531 # the compiler, it worked.
8532 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8533 lt_cv_apple_cc_single_mod=yes
8534 else
8535 cat conftest.err >&5
8536 fi
8537 rm -rf libconftest.dylib*
8538 rm -f conftest.*
8539 fi ;;
8540 esac
8541 fi
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8543 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8544
8545 # Feature test to disable chained fixups since it is not
8546 # compatible with '-undefined dynamic_lookup'
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8548 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8549 if test ${lt_cv_support_no_fixup_chains+y}
8550 then :
8551 printf %s "(cached) " >&6
8552 else case e in #(
8553 e) save_LDFLAGS=$LDFLAGS
8554 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557
8558 int
8559 main (void)
8560 {
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_link "$LINENO"
8567 then :
8568 lt_cv_support_no_fixup_chains=yes
8569 else case e in #(
8570 e) lt_cv_support_no_fixup_chains=no
8571 ;;
8572 esac
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LDFLAGS=$save_LDFLAGS
8577
8578 ;;
8579 esac
8580 fi
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8582 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8583
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8585 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8586 if test ${lt_cv_ld_exported_symbols_list+y}
8587 then :
8588 printf %s "(cached) " >&6
8589 else case e in #(
8590 e) lt_cv_ld_exported_symbols_list=no
8591 save_LDFLAGS=$LDFLAGS
8592 echo "_main" > conftest.sym
8593 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596
8597 int
8598 main (void)
8599 {
8600
8601 ;
8602 return 0;
8603 }
8604 _ACEOF
8605 if ac_fn_c_try_link "$LINENO"
8606 then :
8607 lt_cv_ld_exported_symbols_list=yes
8608 else case e in #(
8609 e) lt_cv_ld_exported_symbols_list=no ;;
8610 esac
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8613 conftest$ac_exeext conftest.$ac_ext
8614 LDFLAGS=$save_LDFLAGS
8615 ;;
8616 esac
8617 fi
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8619 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8620
8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8622 printf %s "checking for -force_load linker flag... " >&6; }
8623 if test ${lt_cv_ld_force_load+y}
8624 then :
8625 printf %s "(cached) " >&6
8626 else case e in #(
8627 e) lt_cv_ld_force_load=no
8628 cat > conftest.c << _LT_EOF
8629 int forced_loaded() { return 2;}
8630 _LT_EOF
8631 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8632 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8633 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8634 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8635 echo "$RANLIB libconftest.a" >&5
8636 $RANLIB libconftest.a 2>&5
8637 cat > conftest.c << _LT_EOF
8638 int main(void) { return 0;}
8639 _LT_EOF
8640 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8641 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8642 _lt_result=$?
8643 if test -s conftest.err && $GREP force_load conftest.err; then
8644 cat conftest.err >&5
8645 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8646 lt_cv_ld_force_load=yes
8647 else
8648 cat conftest.err >&5
8649 fi
8650 rm -f conftest.err libconftest.a conftest conftest.c
8651 rm -rf conftest.dSYM
8652 ;;
8653 esac
8654 fi
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8656 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8657 case $host_os in
8658 rhapsody* | darwin1.[012])
8659 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8660 darwin1.*)
8661 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8662 darwin*)
8663 case $MACOSX_DEPLOYMENT_TARGET,$host in
8664 10.[012],*|,*powerpc*-darwin[5-8]*)
8665 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8666 *)
8667 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8668 if test yes = "$lt_cv_support_no_fixup_chains"; then
8669 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8670 fi
8671 ;;
8672 esac
8673 ;;
8674 esac
8675 if test yes = "$lt_cv_apple_cc_single_mod"; then
8676 _lt_dar_single_mod='$single_module'
8677 fi
8678 _lt_dar_needs_single_mod=no
8679 case $host_os in
8680 rhapsody* | darwin1.*)
8681 _lt_dar_needs_single_mod=yes ;;
8682 darwin*)
8683 # When targeting Mac OS X 10.4 (darwin 8) or later,
8684 # -single_module is the default and -multi_module is unsupported.
8685 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8686 # target any OS version that needs -single_module.
8687 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8688 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8689 _lt_dar_needs_single_mod=yes ;;
8690 esac
8691 ;;
8692 esac
8693 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8694 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8695 else
8696 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8697 fi
8698 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8699 _lt_dsymutil='~$DSYMUTIL $lib || :'
8700 else
8701 _lt_dsymutil=
8702 fi
8703 ;;
8704 esac
8705
8706 # func_munge_path_list VARIABLE PATH
8707 # -----------------------------------
8708 # VARIABLE is name of variable containing _space_ separated list of
8709 # directories to be munged by the contents of PATH, which is string
8710 # having a format:
8711 # "DIR[:DIR]:"
8712 # string "DIR[ DIR]" will be prepended to VARIABLE
8713 # ":DIR[:DIR]"
8714 # string "DIR[ DIR]" will be appended to VARIABLE
8715 # "DIRP[:DIRP]::[DIRA:]DIRA"
8716 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8717 # "DIRA[ DIRA]" will be appended to VARIABLE
8718 # "DIR[:DIR]"
8719 # VARIABLE will be replaced by "DIR[ DIR]"
8720 func_munge_path_list ()
8721 {
8722 case x$2 in
8723 x)
8724 ;;
8725 *:)
8726 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8727 ;;
8728 x:*)
8729 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8730 ;;
8731 *::*)
8732 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8733 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8734 ;;
8735 *)
8736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8737 ;;
8738 esac
8739 }
8740
8741 ac_header= ac_cache=
8742 for ac_item in $ac_header_c_list
8743 do
8744 if test $ac_cache; then
8745 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8746 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8747 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8748 fi
8749 ac_header= ac_cache=
8750 elif test $ac_header; then
8751 ac_cache=$ac_item
8752 else
8753 ac_header=$ac_item
8754 fi
8755 done
8756
8757
8758
8759
8760
8761
8762
8763
8764 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8765 then :
8766
8767 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8768
8769 fi
8770 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8771 "
8772 if test "x$ac_cv_header_dlfcn_h" = xyes
8773 then :
8774 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8775
8776 fi
8777
8778
8779
8780
8781
8782 # Set options
8783
8784
8785
8786 enable_dlopen=no
8787
8788
8789 enable_win32_dll=no
8790
8791
8792 # Check whether --enable-shared was given.
8793 if test ${enable_shared+y}
8794 then :
8795 enableval=$enable_shared; p=${PACKAGE-default}
8796 case $enableval in
8797 yes) enable_shared=yes ;;
8798 no) enable_shared=no ;;
8799 *)
8800 enable_shared=no
8801 # Look at the argument we got. We use all the common list separators.
8802 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8803 for pkg in $enableval; do
8804 IFS=$lt_save_ifs
8805 if test "X$pkg" = "X$p"; then
8806 enable_shared=yes
8807 fi
8808 done
8809 IFS=$lt_save_ifs
8810 ;;
8811 esac
8812 else case e in #(
8813 e) enable_shared=yes ;;
8814 esac
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825 # Check whether --enable-static was given.
8826 if test ${enable_static+y}
8827 then :
8828 enableval=$enable_static; p=${PACKAGE-default}
8829 case $enableval in
8830 yes) enable_static=yes ;;
8831 no) enable_static=no ;;
8832 *)
8833 enable_static=no
8834 # Look at the argument we got. We use all the common list separators.
8835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8836 for pkg in $enableval; do
8837 IFS=$lt_save_ifs
8838 if test "X$pkg" = "X$p"; then
8839 enable_static=yes
8840 fi
8841 done
8842 IFS=$lt_save_ifs
8843 ;;
8844 esac
8845 else case e in #(
8846 e) enable_static=yes ;;
8847 esac
8848 fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858 # Check whether --enable-pic was given.
8859 if test ${enable_pic+y}
8860 then :
8861 enableval=$enable_pic; lt_p=${PACKAGE-default}
8862 case $enableval in
8863 yes|no) pic_mode=$enableval ;;
8864 *)
8865 pic_mode=default
8866 # Look at the argument we got. We use all the common list separators.
8867 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8868 for lt_pkg in $enableval; do
8869 IFS=$lt_save_ifs
8870 if test "X$lt_pkg" = "X$lt_p"; then
8871 pic_mode=yes
8872 fi
8873 done
8874 IFS=$lt_save_ifs
8875 ;;
8876 esac
8877 else case e in #(
8878 e) # Check whether --with-pic was given.
8879 if test ${with_pic+y}
8880 then :
8881 withval=$with_pic; lt_p=${PACKAGE-default}
8882 case $withval in
8883 yes|no) pic_mode=$withval ;;
8884 *)
8885 pic_mode=default
8886 # Look at the argument we got. We use all the common list separators.
8887 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8888 for lt_pkg in $withval; do
8889 IFS=$lt_save_ifs
8890 if test "X$lt_pkg" = "X$lt_p"; then
8891 pic_mode=yes
8892 fi
8893 done
8894 IFS=$lt_save_ifs
8895 ;;
8896 esac
8897 else case e in #(
8898 e) pic_mode=default ;;
8899 esac
8900 fi
8901
8902 ;;
8903 esac
8904 fi
8905
8906
8907
8908
8909
8910
8911
8912
8913 # Check whether --enable-fast-install was given.
8914 if test ${enable_fast_install+y}
8915 then :
8916 enableval=$enable_fast_install; p=${PACKAGE-default}
8917 case $enableval in
8918 yes) enable_fast_install=yes ;;
8919 no) enable_fast_install=no ;;
8920 *)
8921 enable_fast_install=no
8922 # Look at the argument we got. We use all the common list separators.
8923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8924 for pkg in $enableval; do
8925 IFS=$lt_save_ifs
8926 if test "X$pkg" = "X$p"; then
8927 enable_fast_install=yes
8928 fi
8929 done
8930 IFS=$lt_save_ifs
8931 ;;
8932 esac
8933 else case e in #(
8934 e) enable_fast_install=yes ;;
8935 esac
8936 fi
8937
8938
8939
8940
8941
8942
8943
8944
8945 shared_archive_member_spec=
8946 case $host,$enable_shared in
8947 power*-*-aix[5-9]*,yes)
8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8949 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8950 # Check whether --enable-aix-soname was given.
8951 if test ${enable_aix_soname+y}
8952 then :
8953 enableval=$enable_aix_soname; case $enableval in
8954 aix|svr4|both)
8955 ;;
8956 *)
8957 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8958 ;;
8959 esac
8960 lt_cv_with_aix_soname=$enable_aix_soname
8961 else case e in #(
8962 e) # Check whether --with-aix-soname was given.
8963 if test ${with_aix_soname+y}
8964 then :
8965 withval=$with_aix_soname; case $withval in
8966 aix|svr4|both)
8967 ;;
8968 *)
8969 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8970 ;;
8971 esac
8972 lt_cv_with_aix_soname=$with_aix_soname
8973 else case e in #(
8974 e) if test ${lt_cv_with_aix_soname+y}
8975 then :
8976 printf %s "(cached) " >&6
8977 else case e in #(
8978 e) lt_cv_with_aix_soname=aix ;;
8979 esac
8980 fi
8981 ;;
8982 esac
8983 fi
8984
8985 enable_aix_soname=$lt_cv_with_aix_soname ;;
8986 esac
8987 fi
8988
8989 with_aix_soname=$enable_aix_soname
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8991 printf "%s\n" "$with_aix_soname" >&6; }
8992 if test aix != "$with_aix_soname"; then
8993 # For the AIX way of multilib, we name the shared archive member
8994 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8995 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8996 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8997 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8998 if test 64 = "${OBJECT_MODE-32}"; then
8999 shared_archive_member_spec=shr_64
9000 else
9001 shared_archive_member_spec=shr
9002 fi
9003 fi
9004 ;;
9005 *)
9006 with_aix_soname=aix
9007 ;;
9008 esac
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 # This can be used to rebuild libtool when needed
9020 LIBTOOL_DEPS=$ltmain
9021
9022 # Always use our own libtool.
9023 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054 test -z "$LN_S" && LN_S="ln -s"
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069 if test -n "${ZSH_VERSION+set}"; then
9070 setopt NO_GLOB_SUBST
9071 fi
9072
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9074 printf %s "checking for objdir... " >&6; }
9075 if test ${lt_cv_objdir+y}
9076 then :
9077 printf %s "(cached) " >&6
9078 else case e in #(
9079 e) rm -f .libs 2>/dev/null
9080 mkdir .libs 2>/dev/null
9081 if test -d .libs; then
9082 lt_cv_objdir=.libs
9083 else
9084 # MS-DOS does not allow filenames that begin with a dot.
9085 lt_cv_objdir=_libs
9086 fi
9087 rmdir .libs 2>/dev/null ;;
9088 esac
9089 fi
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9091 printf "%s\n" "$lt_cv_objdir" >&6; }
9092 objdir=$lt_cv_objdir
9093
9094
9095
9096
9097
9098 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9099
9100
9101
9102
9103 case $host_os in
9104 aix3*)
9105 # AIX sometimes has problems with the GCC collect2 program. For some
9106 # reason, if we set the COLLECT_NAMES environment variable, the problems
9107 # vanish in a puff of smoke.
9108 if test set != "${COLLECT_NAMES+set}"; then
9109 COLLECT_NAMES=
9110 export COLLECT_NAMES
9111 fi
9112 ;;
9113 esac
9114
9115 # Global variables:
9116 ofile=libtool
9117 can_build_shared=yes
9118
9119 # All known linkers require a '.a' archive for static linking (except MSVC and
9120 # ICC, which need '.lib').
9121 libext=a
9122
9123 with_gnu_ld=$lt_cv_prog_gnu_ld
9124
9125 old_CC=$CC
9126 old_CFLAGS=$CFLAGS
9127
9128 # Set sane defaults for various variables
9129 test -z "$CC" && CC=cc
9130 test -z "$LTCC" && LTCC=$CC
9131 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9132 test -z "$LD" && LD=ld
9133 test -z "$ac_objext" && ac_objext=o
9134
9135 func_cc_basename $compiler
9136 cc_basename=$func_cc_basename_result
9137
9138
9139 # Only perform the check for file, if the check method requires it
9140 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9141 case $deplibs_check_method in
9142 file_magic*)
9143 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9145 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9146 if test ${lt_cv_path_MAGIC_CMD+y}
9147 then :
9148 printf %s "(cached) " >&6
9149 else case e in #(
9150 e) case $MAGIC_CMD in
9151 [\\/*] | ?:[\\/]*)
9152 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9153 ;;
9154 *)
9155 lt_save_MAGIC_CMD=$MAGIC_CMD
9156 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9158 for ac_dir in $ac_dummy; do
9159 IFS=$lt_save_ifs
9160 test -z "$ac_dir" && ac_dir=.
9161 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9162 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9163 if test -n "$file_magic_test_file"; then
9164 case $deplibs_check_method in
9165 "file_magic "*)
9166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9167 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9169 $EGREP "$file_magic_regex" > /dev/null; then
9170 :
9171 else
9172 cat <<_LT_EOF 1>&2
9173
9174 *** Warning: the command libtool uses to detect shared libraries,
9175 *** $file_magic_cmd, produces output that libtool cannot recognize.
9176 *** The result is that libtool may fail to recognize shared libraries
9177 *** as such. This will affect the creation of libtool libraries that
9178 *** depend on shared libraries, but programs linked with such libtool
9179 *** libraries will work regardless of this problem. Nevertheless, you
9180 *** may want to report the problem to your system manager and/or to
9181 *** bug-libtool@gnu.org
9182
9183 _LT_EOF
9184 fi ;;
9185 esac
9186 fi
9187 break
9188 fi
9189 done
9190 IFS=$lt_save_ifs
9191 MAGIC_CMD=$lt_save_MAGIC_CMD
9192 ;;
9193 esac ;;
9194 esac
9195 fi
9196
9197 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9198 if test -n "$MAGIC_CMD"; then
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9200 printf "%s\n" "$MAGIC_CMD" >&6; }
9201 else
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 printf "%s\n" "no" >&6; }
9204 fi
9205
9206
9207
9208
9209
9210 if test -z "$lt_cv_path_MAGIC_CMD"; then
9211 if test -n "$ac_tool_prefix"; then
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9213 printf %s "checking for file... " >&6; }
9214 if test ${lt_cv_path_MAGIC_CMD+y}
9215 then :
9216 printf %s "(cached) " >&6
9217 else case e in #(
9218 e) case $MAGIC_CMD in
9219 [\\/*] | ?:[\\/]*)
9220 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9221 ;;
9222 *)
9223 lt_save_MAGIC_CMD=$MAGIC_CMD
9224 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9226 for ac_dir in $ac_dummy; do
9227 IFS=$lt_save_ifs
9228 test -z "$ac_dir" && ac_dir=.
9229 if test -f "$ac_dir/file"; then
9230 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9231 if test -n "$file_magic_test_file"; then
9232 case $deplibs_check_method in
9233 "file_magic "*)
9234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9235 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9237 $EGREP "$file_magic_regex" > /dev/null; then
9238 :
9239 else
9240 cat <<_LT_EOF 1>&2
9241
9242 *** Warning: the command libtool uses to detect shared libraries,
9243 *** $file_magic_cmd, produces output that libtool cannot recognize.
9244 *** The result is that libtool may fail to recognize shared libraries
9245 *** as such. This will affect the creation of libtool libraries that
9246 *** depend on shared libraries, but programs linked with such libtool
9247 *** libraries will work regardless of this problem. Nevertheless, you
9248 *** may want to report the problem to your system manager and/or to
9249 *** bug-libtool@gnu.org
9250
9251 _LT_EOF
9252 fi ;;
9253 esac
9254 fi
9255 break
9256 fi
9257 done
9258 IFS=$lt_save_ifs
9259 MAGIC_CMD=$lt_save_MAGIC_CMD
9260 ;;
9261 esac ;;
9262 esac
9263 fi
9264
9265 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9266 if test -n "$MAGIC_CMD"; then
9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9268 printf "%s\n" "$MAGIC_CMD" >&6; }
9269 else
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 printf "%s\n" "no" >&6; }
9272 fi
9273
9274
9275 else
9276 MAGIC_CMD=:
9277 fi
9278 fi
9279
9280 fi
9281 ;;
9282 esac
9283
9284 # Use C for the default configuration in the libtool script
9285
9286 lt_save_CC=$CC
9287 ac_ext=c
9288 ac_cpp='$CPP $CPPFLAGS'
9289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9292
9293
9294 # Source file extension for C test sources.
9295 ac_ext=c
9296
9297 # Object file extension for compiled C test sources.
9298 objext=o
9299 objext=$objext
9300
9301 # Code to be used in simple compile tests
9302 lt_simple_compile_test_code="int some_variable = 0;"
9303
9304 # Code to be used in simple link tests
9305 lt_simple_link_test_code='int main(void){return(0);}'
9306
9307
9308
9309
9310
9311
9312
9313 # If no C compiler was specified, use CC.
9314 LTCC=${LTCC-"$CC"}
9315
9316 # If no C compiler flags were specified, use CFLAGS.
9317 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9318
9319 # Allow CC to be a program name with arguments.
9320 compiler=$CC
9321
9322 # Save the default compiler, since it gets overwritten when the other
9323 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9324 compiler_DEFAULT=$CC
9325
9326 # save warnings/boilerplate of simple test code
9327 ac_outfile=conftest.$ac_objext
9328 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9329 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9330 _lt_compiler_boilerplate=`cat conftest.err`
9331 $RM conftest*
9332
9333 ac_outfile=conftest.$ac_objext
9334 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9335 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9336 _lt_linker_boilerplate=`cat conftest.err`
9337 $RM -r conftest*
9338
9339
9340 ## CAVEAT EMPTOR:
9341 ## There is no encapsulation within the following macros, do not change
9342 ## the running order or otherwise move them around unless you know exactly
9343 ## what you are doing...
9344 if test -n "$compiler"; then
9345
9346 lt_prog_compiler_no_builtin_flag=
9347
9348 if test yes = "$GCC"; then
9349 case $cc_basename in
9350 nvcc*)
9351 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9352 *)
9353 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9354 esac
9355
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9357 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9358 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else case e in #(
9362 e) lt_cv_prog_compiler_rtti_exceptions=no
9363 ac_outfile=conftest.$ac_objext
9364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9365 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9366 # Insert the option either (1) after the last *FLAGS variable, or
9367 # (2) before a word containing "conftest.", or (3) at the end.
9368 # Note that $ac_compile itself does not contain backslashes and begins
9369 # with a dollar sign (not a hyphen), so the echo should work correctly.
9370 # The option is referenced via a variable to avoid confusing sed.
9371 lt_compile=`echo "$ac_compile" | $SED \
9372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9374 -e 's:$: $lt_compiler_flag:'`
9375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9376 (eval "$lt_compile" 2>conftest.err)
9377 ac_status=$?
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 if (exit $ac_status) && test -s "$ac_outfile"; then
9381 # The compiler can only warn and ignore the option if not recognized
9382 # So say no if there are warnings other than the usual output.
9383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9386 lt_cv_prog_compiler_rtti_exceptions=yes
9387 fi
9388 fi
9389 $RM conftest*
9390 ;;
9391 esac
9392 fi
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9394 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9395
9396 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9397 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9398 else
9399 :
9400 fi
9401
9402 fi
9403
9404
9405
9406
9407
9408
9409 lt_prog_compiler_wl=
9410 lt_prog_compiler_pic=
9411 lt_prog_compiler_static=
9412
9413
9414 if test yes = "$GCC"; then
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_static='-static'
9417
9418 case $host_os in
9419 aix*)
9420 # All AIX code is PIC.
9421 if test ia64 = "$host_cpu"; then
9422 # AIX 5 now supports IA64 processor
9423 lt_prog_compiler_static='-Bstatic'
9424 fi
9425 lt_prog_compiler_pic='-fPIC'
9426 ;;
9427
9428 amigaos*)
9429 case $host_cpu in
9430 powerpc)
9431 # see comment about AmigaOS4 .so support
9432 lt_prog_compiler_pic='-fPIC'
9433 ;;
9434 m68k)
9435 # FIXME: we need at least 68020 code to build shared libraries, but
9436 # adding the '-m68020' flag to GCC prevents building anything better,
9437 # like '-m68040'.
9438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9439 ;;
9440 esac
9441 ;;
9442
9443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9444 # PIC is the default for these OSes.
9445 ;;
9446
9447 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9448 # This hack is so that the source file can tell whether it is being
9449 # built for inclusion in a dll (and should export symbols for example).
9450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9451 # (--disable-auto-import) libraries
9452 lt_prog_compiler_pic='-DDLL_EXPORT'
9453 case $host_os in
9454 os2*)
9455 lt_prog_compiler_static='$wl-static'
9456 ;;
9457 esac
9458 ;;
9459
9460 darwin* | rhapsody*)
9461 # PIC is the default on this platform
9462 # Common symbols not allowed in MH_DYLIB files
9463 lt_prog_compiler_pic='-fno-common'
9464 ;;
9465
9466 haiku*)
9467 # PIC is the default for Haiku.
9468 # The "-static" flag exists, but is broken.
9469 lt_prog_compiler_static=
9470 ;;
9471
9472 hpux*)
9473 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9474 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9475 # sets the default TLS model and affects inlining.
9476 case $host_cpu in
9477 hppa*64*)
9478 # +Z the default
9479 ;;
9480 *)
9481 lt_prog_compiler_pic='-fPIC'
9482 ;;
9483 esac
9484 ;;
9485
9486 interix[3-9]*)
9487 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9488 # Instead, we relocate shared libraries at runtime.
9489 ;;
9490
9491 msdosdjgpp*)
9492 # Just because we use GCC doesn't mean we suddenly get shared libraries
9493 # on systems that don't support them.
9494 lt_prog_compiler_can_build_shared=no
9495 enable_shared=no
9496 ;;
9497
9498 *nto* | *qnx*)
9499 # QNX uses GNU C++, but need to define -shared option too, otherwise
9500 # it will coredump.
9501 lt_prog_compiler_pic='-fPIC -shared'
9502 ;;
9503
9504 sysv4*MP*)
9505 if test -d /usr/nec; then
9506 lt_prog_compiler_pic=-Kconform_pic
9507 fi
9508 ;;
9509
9510 *)
9511 lt_prog_compiler_pic='-fPIC'
9512 ;;
9513 esac
9514
9515 case $cc_basename in
9516 nvcc*) # Cuda Compiler Driver 2.2
9517 lt_prog_compiler_wl='-Xlinker '
9518 if test -n "$lt_prog_compiler_pic"; then
9519 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9520 fi
9521 ;;
9522 esac
9523 else
9524 # PORTME Check for flag to pass linker flags through the system compiler.
9525 case $host_os in
9526 aix*)
9527 lt_prog_compiler_wl='-Wl,'
9528 if test ia64 = "$host_cpu"; then
9529 # AIX 5 now supports IA64 processor
9530 lt_prog_compiler_static='-Bstatic'
9531 else
9532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9533 fi
9534 ;;
9535
9536 darwin* | rhapsody*)
9537 # PIC is the default on this platform
9538 # Common symbols not allowed in MH_DYLIB files
9539 lt_prog_compiler_pic='-fno-common'
9540 case $cc_basename in
9541 nagfor*)
9542 # NAG Fortran compiler
9543 lt_prog_compiler_wl='-Wl,-Wl,,'
9544 lt_prog_compiler_pic='-PIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 ;;
9547 esac
9548 ;;
9549
9550 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9551 # This hack is so that the source file can tell whether it is being
9552 # built for inclusion in a dll (and should export symbols for example).
9553 lt_prog_compiler_pic='-DDLL_EXPORT'
9554 case $host_os in
9555 os2*)
9556 lt_prog_compiler_static='$wl-static'
9557 ;;
9558 esac
9559 ;;
9560
9561 hpux9* | hpux10* | hpux11*)
9562 lt_prog_compiler_wl='-Wl,'
9563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9564 # not for PA HP-UX.
9565 case $host_cpu in
9566 hppa*64*|ia64*)
9567 # +Z the default
9568 ;;
9569 *)
9570 lt_prog_compiler_pic='+Z'
9571 ;;
9572 esac
9573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9574 lt_prog_compiler_static='$wl-a ${wl}archive'
9575 ;;
9576
9577 irix5* | irix6* | nonstopux*)
9578 lt_prog_compiler_wl='-Wl,'
9579 # PIC (with -KPIC) is the default.
9580 lt_prog_compiler_static='-non_shared'
9581 ;;
9582
9583 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9584 case $cc_basename in
9585 # old Intel for x86_64, which still supported -KPIC.
9586 ecc*)
9587 lt_prog_compiler_wl='-Wl,'
9588 lt_prog_compiler_pic='-KPIC'
9589 lt_prog_compiler_static='-static'
9590 ;;
9591 *flang* | ftn | f18* | f95*)
9592 # Flang compiler.
9593 lt_prog_compiler_wl='-Wl,'
9594 lt_prog_compiler_pic='-fPIC'
9595 lt_prog_compiler_static='-static'
9596 ;;
9597 # icc used to be incompatible with GCC.
9598 # ICC 10 doesn't accept -KPIC any more.
9599 icc* | ifort*)
9600 lt_prog_compiler_wl='-Wl,'
9601 lt_prog_compiler_pic='-fPIC'
9602 lt_prog_compiler_static='-static'
9603 ;;
9604 # Lahey Fortran 8.1.
9605 lf95*)
9606 lt_prog_compiler_wl='-Wl,'
9607 lt_prog_compiler_pic='--shared'
9608 lt_prog_compiler_static='--static'
9609 ;;
9610 nagfor*)
9611 # NAG Fortran compiler
9612 lt_prog_compiler_wl='-Wl,-Wl,,'
9613 lt_prog_compiler_pic='-PIC'
9614 lt_prog_compiler_static='-Bstatic'
9615 ;;
9616 tcc*)
9617 # Fabrice Bellard et al's Tiny C Compiler
9618 lt_prog_compiler_wl='-Wl,'
9619 lt_prog_compiler_pic='-fPIC'
9620 lt_prog_compiler_static='-static'
9621 ;;
9622 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9623 # Portland Group compilers (*not* the Pentium gcc compiler,
9624 # which looks to be a dead project)
9625 lt_prog_compiler_wl='-Wl,'
9626 lt_prog_compiler_pic='-fpic'
9627 lt_prog_compiler_static='-Bstatic'
9628 ;;
9629 ccc*)
9630 lt_prog_compiler_wl='-Wl,'
9631 # All Alpha code is PIC.
9632 lt_prog_compiler_static='-non_shared'
9633 ;;
9634 xl* | bgxl* | bgf* | mpixl*)
9635 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_pic='-qpic'
9638 lt_prog_compiler_static='-qstaticlink'
9639 ;;
9640 *)
9641 case `$CC -V 2>&1 | $SED 5q` in
9642 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9643 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9644 lt_prog_compiler_pic='-KPIC'
9645 lt_prog_compiler_static='-Bstatic'
9646 lt_prog_compiler_wl=''
9647 ;;
9648 *Sun\ F* | *Sun*Fortran*)
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_wl='-Qoption ld '
9652 ;;
9653 *Sun\ C*)
9654 # Sun C 5.9
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl='-Wl,'
9658 ;;
9659 *Intel*\ [CF]*Compiler*)
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_pic='-fPIC'
9662 lt_prog_compiler_static='-static'
9663 ;;
9664 *Portland\ Group*)
9665 lt_prog_compiler_wl='-Wl,'
9666 lt_prog_compiler_pic='-fpic'
9667 lt_prog_compiler_static='-Bstatic'
9668 ;;
9669 esac
9670 ;;
9671 esac
9672 ;;
9673
9674 newsos6)
9675 lt_prog_compiler_pic='-KPIC'
9676 lt_prog_compiler_static='-Bstatic'
9677 ;;
9678
9679 *-mlibc)
9680 lt_prog_compiler_wl='-Wl,'
9681 lt_prog_compiler_pic='-fPIC'
9682 lt_prog_compiler_static='-static'
9683 ;;
9684
9685 *nto* | *qnx*)
9686 # QNX uses GNU C++, but need to define -shared option too, otherwise
9687 # it will coredump.
9688 lt_prog_compiler_pic='-fPIC -shared'
9689 ;;
9690
9691 osf3* | osf4* | osf5*)
9692 lt_prog_compiler_wl='-Wl,'
9693 # All OSF/1 code is PIC.
9694 lt_prog_compiler_static='-non_shared'
9695 ;;
9696
9697 rdos*)
9698 lt_prog_compiler_static='-non_shared'
9699 ;;
9700
9701 serenity*)
9702 ;;
9703
9704 solaris*)
9705 lt_prog_compiler_pic='-KPIC'
9706 lt_prog_compiler_static='-Bstatic'
9707 case $cc_basename in
9708 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9709 lt_prog_compiler_wl='-Qoption ld ';;
9710 *)
9711 lt_prog_compiler_wl='-Wl,';;
9712 esac
9713 ;;
9714
9715 sunos4*)
9716 lt_prog_compiler_wl='-Qoption ld '
9717 lt_prog_compiler_pic='-PIC'
9718 lt_prog_compiler_static='-Bstatic'
9719 ;;
9720
9721 sysv4 | sysv4.2uw2* | sysv4.3*)
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-KPIC'
9724 lt_prog_compiler_static='-Bstatic'
9725 ;;
9726
9727 sysv4*MP*)
9728 if test -d /usr/nec; then
9729 lt_prog_compiler_pic='-Kconform_pic'
9730 lt_prog_compiler_static='-Bstatic'
9731 fi
9732 ;;
9733
9734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9735 lt_prog_compiler_wl='-Wl,'
9736 lt_prog_compiler_pic='-KPIC'
9737 lt_prog_compiler_static='-Bstatic'
9738 ;;
9739
9740 unicos*)
9741 lt_prog_compiler_wl='-Wl,'
9742 lt_prog_compiler_can_build_shared=no
9743 ;;
9744
9745 uts4*)
9746 lt_prog_compiler_pic='-pic'
9747 lt_prog_compiler_static='-Bstatic'
9748 ;;
9749
9750 *)
9751 lt_prog_compiler_can_build_shared=no
9752 ;;
9753 esac
9754 fi
9755
9756 case $host_os in
9757 # For platforms that do not support PIC, -DPIC is meaningless:
9758 *djgpp*)
9759 lt_prog_compiler_pic=
9760 ;;
9761 *)
9762 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9763 ;;
9764 esac
9765
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9767 printf %s "checking for $compiler option to produce PIC... " >&6; }
9768 if test ${lt_cv_prog_compiler_pic+y}
9769 then :
9770 printf %s "(cached) " >&6
9771 else case e in #(
9772 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9773 esac
9774 fi
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9776 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9777 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9778
9779 #
9780 # Check to make sure the PIC flag actually works.
9781 #
9782 if test -n "$lt_prog_compiler_pic"; then
9783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9784 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9785 if test ${lt_cv_prog_compiler_pic_works+y}
9786 then :
9787 printf %s "(cached) " >&6
9788 else case e in #(
9789 e) lt_cv_prog_compiler_pic_works=no
9790 ac_outfile=conftest.$ac_objext
9791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9792 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9793 # Insert the option either (1) after the last *FLAGS variable, or
9794 # (2) before a word containing "conftest.", or (3) at the end.
9795 # Note that $ac_compile itself does not contain backslashes and begins
9796 # with a dollar sign (not a hyphen), so the echo should work correctly.
9797 # The option is referenced via a variable to avoid confusing sed.
9798 lt_compile=`echo "$ac_compile" | $SED \
9799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9801 -e 's:$: $lt_compiler_flag:'`
9802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9803 (eval "$lt_compile" 2>conftest.err)
9804 ac_status=$?
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 if (exit $ac_status) && test -s "$ac_outfile"; then
9808 # The compiler can only warn and ignore the option if not recognized
9809 # So say no if there are warnings other than the usual output.
9810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9813 lt_cv_prog_compiler_pic_works=yes
9814 fi
9815 fi
9816 $RM conftest*
9817 ;;
9818 esac
9819 fi
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9821 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9822
9823 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9824 case $lt_prog_compiler_pic in
9825 "" | " "*) ;;
9826 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9827 esac
9828 else
9829 lt_prog_compiler_pic=
9830 lt_prog_compiler_can_build_shared=no
9831 fi
9832
9833 fi
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845 #
9846 # Check to make sure the static flag actually works.
9847 #
9848 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9850 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9851 if test ${lt_cv_prog_compiler_static_works+y}
9852 then :
9853 printf %s "(cached) " >&6
9854 else case e in #(
9855 e) lt_cv_prog_compiler_static_works=no
9856 save_LDFLAGS=$LDFLAGS
9857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9860 # The linker can only warn and ignore the option if not recognized
9861 # So say no if there are warnings
9862 if test -s conftest.err; then
9863 # Append any errors to the config.log.
9864 cat conftest.err 1>&5
9865 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9867 if diff conftest.exp conftest.er2 >/dev/null; then
9868 lt_cv_prog_compiler_static_works=yes
9869 fi
9870 else
9871 lt_cv_prog_compiler_static_works=yes
9872 fi
9873 fi
9874 $RM -r conftest*
9875 LDFLAGS=$save_LDFLAGS
9876 ;;
9877 esac
9878 fi
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9880 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9881
9882 if test yes = "$lt_cv_prog_compiler_static_works"; then
9883 :
9884 else
9885 lt_prog_compiler_static=
9886 fi
9887
9888
9889
9890
9891
9892
9893
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9895 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9896 if test ${lt_cv_prog_compiler_c_o+y}
9897 then :
9898 printf %s "(cached) " >&6
9899 else case e in #(
9900 e) lt_cv_prog_compiler_c_o=no
9901 $RM -r conftest 2>/dev/null
9902 mkdir conftest
9903 cd conftest
9904 mkdir out
9905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9906
9907 lt_compiler_flag="-o out/conftest2.$ac_objext"
9908 # Insert the option either (1) after the last *FLAGS variable, or
9909 # (2) before a word containing "conftest.", or (3) at the end.
9910 # Note that $ac_compile itself does not contain backslashes and begins
9911 # with a dollar sign (not a hyphen), so the echo should work correctly.
9912 lt_compile=`echo "$ac_compile" | $SED \
9913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9915 -e 's:$: $lt_compiler_flag:'`
9916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9917 (eval "$lt_compile" 2>out/conftest.err)
9918 ac_status=$?
9919 cat out/conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9922 then
9923 # The compiler can only warn and ignore the option if not recognized
9924 # So say no if there are warnings
9925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9928 lt_cv_prog_compiler_c_o=yes
9929 fi
9930 fi
9931 chmod u+w . 2>&5
9932 $RM conftest*
9933 # SGI C++ compiler will create directory out/ii_files/ for
9934 # template instantiation
9935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9936 $RM out/* && rmdir out
9937 cd ..
9938 $RM -r conftest
9939 $RM conftest*
9940 ;;
9941 esac
9942 fi
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9944 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9945
9946
9947
9948
9949
9950
9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9952 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9953 if test ${lt_cv_prog_compiler_c_o+y}
9954 then :
9955 printf %s "(cached) " >&6
9956 else case e in #(
9957 e) lt_cv_prog_compiler_c_o=no
9958 $RM -r conftest 2>/dev/null
9959 mkdir conftest
9960 cd conftest
9961 mkdir out
9962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9963
9964 lt_compiler_flag="-o out/conftest2.$ac_objext"
9965 # Insert the option either (1) after the last *FLAGS variable, or
9966 # (2) before a word containing "conftest.", or (3) at the end.
9967 # Note that $ac_compile itself does not contain backslashes and begins
9968 # with a dollar sign (not a hyphen), so the echo should work correctly.
9969 lt_compile=`echo "$ac_compile" | $SED \
9970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9972 -e 's:$: $lt_compiler_flag:'`
9973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9974 (eval "$lt_compile" 2>out/conftest.err)
9975 ac_status=$?
9976 cat out/conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9979 then
9980 # The compiler can only warn and ignore the option if not recognized
9981 # So say no if there are warnings
9982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9985 lt_cv_prog_compiler_c_o=yes
9986 fi
9987 fi
9988 chmod u+w . 2>&5
9989 $RM conftest*
9990 # SGI C++ compiler will create directory out/ii_files/ for
9991 # template instantiation
9992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9993 $RM out/* && rmdir out
9994 cd ..
9995 $RM -r conftest
9996 $RM conftest*
9997 ;;
9998 esac
9999 fi
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10001 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10002
10003
10004
10005
10006 hard_links=nottested
10007 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10008 # do not overwrite the value of need_locks provided by the user
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10010 printf %s "checking if we can lock with hard links... " >&6; }
10011 hard_links=yes
10012 $RM conftest*
10013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10014 touch conftest.a
10015 ln conftest.a conftest.b 2>&5 || hard_links=no
10016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10018 printf "%s\n" "$hard_links" >&6; }
10019 if test no = "$hard_links"; then
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10021 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10022 need_locks=warn
10023 fi
10024 else
10025 need_locks=no
10026 fi
10027
10028
10029
10030
10031
10032
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10034 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10035
10036 runpath_var=
10037 allow_undefined_flag=
10038 always_export_symbols=no
10039 archive_cmds=
10040 archive_expsym_cmds=
10041 compiler_needs_object=no
10042 enable_shared_with_static_runtimes=no
10043 export_dynamic_flag_spec=
10044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10045 hardcode_automatic=no
10046 hardcode_direct=no
10047 hardcode_direct_absolute=no
10048 hardcode_libdir_flag_spec=
10049 hardcode_libdir_separator=
10050 hardcode_minus_L=no
10051 hardcode_shlibpath_var=unsupported
10052 inherit_rpath=no
10053 link_all_deplibs=unknown
10054 module_cmds=
10055 module_expsym_cmds=
10056 old_archive_from_new_cmds=
10057 old_archive_from_expsyms_cmds=
10058 thread_safe_flag_spec=
10059 whole_archive_flag_spec=
10060 # include_expsyms should be a list of space-separated symbols to be *always*
10061 # included in the symbol list
10062 include_expsyms=
10063 # exclude_expsyms can be an extended regexp of symbols to exclude
10064 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10065 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10066 # as well as any symbol that contains 'd'.
10067 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10068 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10069 # platforms (ab)use it in PIC code, but their linkers get confused if
10070 # the symbol is explicitly referenced. Since portable code cannot
10071 # rely on this symbol name, it's probably fine to never include it in
10072 # preloaded symbol tables.
10073 # Exclude shared library initialization/finalization symbols.
10074 extract_expsyms_cmds=
10075
10076 case $host_os in
10077 cygwin* | mingw* | windows* | pw32* | cegcc*)
10078 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10079 # When not using gcc, we currently assume that we are using
10080 # Microsoft Visual C++ or Intel C++ Compiler.
10081 if test yes != "$GCC"; then
10082 with_gnu_ld=no
10083 fi
10084 ;;
10085 interix*)
10086 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10087 with_gnu_ld=yes
10088 ;;
10089 esac
10090
10091 ld_shlibs=yes
10092
10093 # On some targets, GNU ld is compatible enough with the native linker
10094 # that we're better off using the native interface for both.
10095 lt_use_gnu_ld_interface=no
10096 if test yes = "$with_gnu_ld"; then
10097 case $host_os in
10098 aix*)
10099 # The AIX port of GNU ld has always aspired to compatibility
10100 # with the native linker. However, as the warning in the GNU ld
10101 # block says, versions before 2.19.5* couldn't really create working
10102 # shared libraries, regardless of the interface used.
10103 case `$LD -v 2>&1` in
10104 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10105 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10106 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10107 *)
10108 lt_use_gnu_ld_interface=yes
10109 ;;
10110 esac
10111 ;;
10112 *)
10113 lt_use_gnu_ld_interface=yes
10114 ;;
10115 esac
10116 fi
10117
10118 if test yes = "$lt_use_gnu_ld_interface"; then
10119 # If archive_cmds runs LD, not CC, wlarc should be empty
10120 wlarc='$wl'
10121
10122 # Set some defaults for GNU ld with shared library support. These
10123 # are reset later if shared libraries are not supported. Putting them
10124 # here allows them to be overridden if necessary.
10125 runpath_var=LD_RUN_PATH
10126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10127 export_dynamic_flag_spec='$wl--export-dynamic'
10128 # ancient GNU ld didn't support --whole-archive et. al.
10129 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10130 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10131 else
10132 whole_archive_flag_spec=
10133 fi
10134 supports_anon_versioning=no
10135 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10136 *GNU\ gold*) supports_anon_versioning=yes ;;
10137 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10138 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10139 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10140 *\ 2.11.*) ;; # other 2.11 versions
10141 *) supports_anon_versioning=yes ;;
10142 esac
10143
10144 # See if GNU ld supports shared libraries.
10145 case $host_os in
10146 aix[3-9]*)
10147 # On AIX/PPC, the GNU linker is very broken
10148 if test ia64 != "$host_cpu"; then
10149 ld_shlibs=no
10150 cat <<_LT_EOF 1>&2
10151
10152 *** Warning: the GNU linker, at least up to release 2.19, is reported
10153 *** to be unable to reliably create shared libraries on AIX.
10154 *** Therefore, libtool is disabling shared libraries support. If you
10155 *** really care for shared libraries, you may want to install binutils
10156 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10157 *** You will then need to restart the configuration process.
10158
10159 _LT_EOF
10160 fi
10161 ;;
10162
10163 amigaos*)
10164 case $host_cpu in
10165 powerpc)
10166 # see comment about AmigaOS4 .so support
10167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10168 archive_expsym_cmds=''
10169 ;;
10170 m68k)
10171 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)'
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_minus_L=yes
10174 ;;
10175 esac
10176 ;;
10177
10178 beos*)
10179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10180 allow_undefined_flag=unsupported
10181 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10182 # support --undefined. This deserves some investigation. FIXME
10183 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10184 else
10185 ld_shlibs=no
10186 fi
10187 ;;
10188
10189 cygwin* | mingw* | windows* | pw32* | cegcc*)
10190 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10191 # as there is no search path for DLLs.
10192 hardcode_libdir_flag_spec='-L$libdir'
10193 export_dynamic_flag_spec='$wl--export-all-symbols'
10194 allow_undefined_flag=unsupported
10195 always_export_symbols=no
10196 enable_shared_with_static_runtimes=yes
10197 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'
10198 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10199 file_list_spec='@'
10200
10201 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10203 # If the export-symbols file already is a .def file, use it as
10204 # is; otherwise, prepend EXPORTS...
10205 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10206 cp $export_symbols $output_objdir/$soname.def;
10207 else
10208 echo EXPORTS > $output_objdir/$soname.def;
10209 cat $export_symbols >> $output_objdir/$soname.def;
10210 fi~
10211 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10212 else
10213 ld_shlibs=no
10214 fi
10215 ;;
10216
10217 haiku*)
10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10219 link_all_deplibs=no
10220 ;;
10221
10222 os2*)
10223 hardcode_libdir_flag_spec='-L$libdir'
10224 hardcode_minus_L=yes
10225 allow_undefined_flag=unsupported
10226 shrext_cmds=.dll
10227 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10228 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10229 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10230 $ECHO EXPORTS >> $output_objdir/$libname.def~
10231 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10232 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10233 emximp -o $lib $output_objdir/$libname.def'
10234 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10235 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10236 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10237 $ECHO EXPORTS >> $output_objdir/$libname.def~
10238 prefix_cmds="$SED"~
10239 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10240 prefix_cmds="$prefix_cmds -e 1d";
10241 fi~
10242 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10243 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10244 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10245 emximp -o $lib $output_objdir/$libname.def'
10246 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10247 enable_shared_with_static_runtimes=yes
10248 file_list_spec='@'
10249 ;;
10250
10251 interix[3-9]*)
10252 hardcode_direct=no
10253 hardcode_shlibpath_var=no
10254 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10255 export_dynamic_flag_spec='$wl-E'
10256 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10257 # Instead, shared libraries are loaded at an image base (0x10000000 by
10258 # default) and relocated if they conflict, which is a slow very memory
10259 # consuming and fragmenting process. To avoid this, we pick a random,
10260 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10261 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10262 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10263 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'
10264 ;;
10265
10266 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10267 tmp_diet=no
10268 if test linux-dietlibc = "$host_os"; then
10269 case $cc_basename in
10270 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10271 esac
10272 fi
10273 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10274 && test no = "$tmp_diet"
10275 then
10276 tmp_addflag=' $pic_flag'
10277 tmp_sharedflag='-shared'
10278 case $cc_basename,$host_cpu in
10279 pgcc*) # Portland Group C compiler
10280 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'
10281 tmp_addflag=' $pic_flag'
10282 ;;
10283 pgf77* | pgf90* | pgf95* | pgfortran*)
10284 # Portland Group f77 and f90 compilers
10285 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'
10286 tmp_addflag=' $pic_flag -Mnomain' ;;
10287 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10288 tmp_addflag=' -i_dynamic' ;;
10289 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10290 tmp_addflag=' -i_dynamic -nofor_main' ;;
10291 ifc* | ifort*) # Intel Fortran compiler
10292 tmp_addflag=' -nofor_main' ;;
10293 lf95*) # Lahey Fortran 8.1
10294 whole_archive_flag_spec=
10295 tmp_sharedflag='--shared' ;;
10296 nagfor*) # NAGFOR 5.3
10297 tmp_sharedflag='-Wl,-shared' ;;
10298 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10299 tmp_sharedflag='-qmkshrobj'
10300 tmp_addflag= ;;
10301 nvcc*) # Cuda Compiler Driver 2.2
10302 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'
10303 compiler_needs_object=yes
10304 ;;
10305 esac
10306 case `$CC -V 2>&1 | $SED 5q` in
10307 *Sun\ C*) # Sun C 5.9
10308 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'
10309 compiler_needs_object=yes
10310 tmp_sharedflag='-G' ;;
10311 *Sun\ F*) # Sun Fortran 8.3
10312 tmp_sharedflag='-G' ;;
10313 esac
10314 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10315
10316 if test yes = "$supports_anon_versioning"; then
10317 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10318 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10319 echo "local: *; };" >> $output_objdir/$libname.ver~
10320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10321 fi
10322
10323 case $cc_basename in
10324 tcc*)
10325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10326 export_dynamic_flag_spec='-rdynamic'
10327 ;;
10328 xlf* | bgf* | bgxlf* | mpixlf*)
10329 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10330 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10331 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10332 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10333 if test yes = "$supports_anon_versioning"; then
10334 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10335 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10336 echo "local: *; };" >> $output_objdir/$libname.ver~
10337 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10338 fi
10339 ;;
10340 esac
10341 else
10342 ld_shlibs=no
10343 fi
10344 ;;
10345
10346 *-mlibc)
10347 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10348 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10349 ;;
10350
10351 netbsd* | netbsdelf*-gnu)
10352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10354 wlarc=
10355 else
10356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10357 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10358 fi
10359 ;;
10360
10361 solaris*)
10362 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10363 ld_shlibs=no
10364 cat <<_LT_EOF 1>&2
10365
10366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10367 *** create shared libraries on Solaris systems. Therefore, libtool
10368 *** is disabling shared libraries support. We urge you to upgrade GNU
10369 *** binutils to release 2.9.1 or newer. Another option is to modify
10370 *** your PATH or compiler configuration so that the native linker is
10371 *** used, and then restart.
10372
10373 _LT_EOF
10374 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10377 else
10378 ld_shlibs=no
10379 fi
10380 ;;
10381
10382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10383 case `$LD -v 2>&1` in
10384 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10385 ld_shlibs=no
10386 cat <<_LT_EOF 1>&2
10387
10388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10389 *** reliably create shared libraries on SCO systems. Therefore, libtool
10390 *** is disabling shared libraries support. We urge you to upgrade GNU
10391 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10392 *** your PATH or compiler configuration so that the native linker is
10393 *** used, and then restart.
10394
10395 _LT_EOF
10396 ;;
10397 *)
10398 # For security reasons, it is highly recommended that you always
10399 # use absolute paths for naming shared libraries, and exclude the
10400 # DT_RUNPATH tag from executables and libraries. But doing so
10401 # requires that you compile everything twice, which is a pain.
10402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10403 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10405 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10406 else
10407 ld_shlibs=no
10408 fi
10409 ;;
10410 esac
10411 ;;
10412
10413 sunos4*)
10414 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10415 wlarc=
10416 hardcode_direct=yes
10417 hardcode_shlibpath_var=no
10418 ;;
10419
10420 *)
10421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10423 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10424 else
10425 ld_shlibs=no
10426 fi
10427 ;;
10428 esac
10429
10430 if test no = "$ld_shlibs"; then
10431 runpath_var=
10432 hardcode_libdir_flag_spec=
10433 export_dynamic_flag_spec=
10434 whole_archive_flag_spec=
10435 fi
10436 else
10437 # PORTME fill in a description of your system's linker (not GNU ld)
10438 case $host_os in
10439 aix3*)
10440 allow_undefined_flag=unsupported
10441 always_export_symbols=yes
10442 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'
10443 # Note: this linker hardcodes the directories in LIBPATH if there
10444 # are no directories specified by -L.
10445 hardcode_minus_L=yes
10446 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10447 # Neither direct hardcoding nor static linking is supported with a
10448 # broken collect2.
10449 hardcode_direct=unsupported
10450 fi
10451 ;;
10452
10453 aix[4-9]*)
10454 if test ia64 = "$host_cpu"; then
10455 # On IA64, the linker does run time linking by default, so we don't
10456 # have to do anything special.
10457 aix_use_runtimelinking=no
10458 exp_sym_flag='-Bexport'
10459 no_entry_flag=
10460 else
10461 # If we're using GNU nm, then we don't want the "-C" option.
10462 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10463 # Without the "-l" option, or with the "-B" option, AIX nm treats
10464 # weak defined symbols like other global defined symbols, whereas
10465 # GNU nm marks them as "W".
10466 # While the 'weak' keyword is ignored in the Export File, we need
10467 # it in the Import File for the 'aix-soname' feature, so we have
10468 # to replace the "-B" option with "-P" for AIX nm.
10469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10470 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'
10471 else
10472 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'
10473 fi
10474 aix_use_runtimelinking=no
10475
10476 # Test if we are trying to use run time linking or normal
10477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10478 # have runtime linking enabled, and use it for executables.
10479 # For shared libraries, we enable/disable runtime linking
10480 # depending on the kind of the shared library created -
10481 # when "with_aix_soname,aix_use_runtimelinking" is:
10482 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10483 # "aix,yes" lib.so shared, rtl:yes, for executables
10484 # lib.a static archive
10485 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10486 # lib.a(lib.so.V) shared, rtl:no, for executables
10487 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10488 # lib.a(lib.so.V) shared, rtl:no
10489 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10490 # lib.a static archive
10491 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10492 for ld_flag in $LDFLAGS; do
10493 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10494 aix_use_runtimelinking=yes
10495 break
10496 fi
10497 done
10498 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10499 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10500 # so we don't have lib.a shared libs to link our executables.
10501 # We have to force runtime linking in this case.
10502 aix_use_runtimelinking=yes
10503 LDFLAGS="$LDFLAGS -Wl,-brtl"
10504 fi
10505 ;;
10506 esac
10507
10508 exp_sym_flag='-bexport'
10509 no_entry_flag='-bnoentry'
10510 fi
10511
10512 # When large executables or shared objects are built, AIX ld can
10513 # have problems creating the table of contents. If linking a library
10514 # or program results in "error TOC overflow" add -mminimal-toc to
10515 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10517
10518 archive_cmds=''
10519 hardcode_direct=yes
10520 hardcode_direct_absolute=yes
10521 hardcode_libdir_separator=':'
10522 link_all_deplibs=yes
10523 file_list_spec='$wl-f,'
10524 case $with_aix_soname,$aix_use_runtimelinking in
10525 aix,*) ;; # traditional, no import file
10526 svr4,* | *,yes) # use import file
10527 # The Import File defines what to hardcode.
10528 hardcode_direct=no
10529 hardcode_direct_absolute=no
10530 ;;
10531 esac
10532
10533 if test yes = "$GCC"; then
10534 case $host_os in aix4.[012]|aix4.[012].*)
10535 # We only want to do this on AIX 4.2 and lower, the check
10536 # below for broken collect2 doesn't work under 4.3+
10537 collect2name=`$CC -print-prog-name=collect2`
10538 if test -f "$collect2name" &&
10539 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10540 then
10541 # We have reworked collect2
10542 :
10543 else
10544 # We have old collect2
10545 hardcode_direct=unsupported
10546 # It fails to find uninstalled libraries when the uninstalled
10547 # path is not listed in the libpath. Setting hardcode_minus_L
10548 # to unsupported forces relinking
10549 hardcode_minus_L=yes
10550 hardcode_libdir_flag_spec='-L$libdir'
10551 hardcode_libdir_separator=
10552 fi
10553 ;;
10554 esac
10555 shared_flag='-shared'
10556 if test yes = "$aix_use_runtimelinking"; then
10557 shared_flag="$shared_flag "'$wl-G'
10558 fi
10559 # Need to ensure runtime linking is disabled for the traditional
10560 # shared library, or the linker may eventually find shared libraries
10561 # /with/ Import File - we do not want to mix them.
10562 shared_flag_aix='-shared'
10563 shared_flag_svr4='-shared $wl-G'
10564 else
10565 # not using gcc
10566 if test ia64 = "$host_cpu"; then
10567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10568 # chokes on -Wl,-G. The following line is correct:
10569 shared_flag='-G'
10570 else
10571 if test yes = "$aix_use_runtimelinking"; then
10572 shared_flag='$wl-G'
10573 else
10574 shared_flag='$wl-bM:SRE'
10575 fi
10576 shared_flag_aix='$wl-bM:SRE'
10577 shared_flag_svr4='$wl-G'
10578 fi
10579 fi
10580
10581 export_dynamic_flag_spec='$wl-bexpall'
10582 # It seems that -bexpall does not export symbols beginning with
10583 # underscore (_), so it is better to generate a list of symbols to export.
10584 always_export_symbols=yes
10585 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10586 # Warning - without using the other runtime loading flags (-brtl),
10587 # -berok will link without error, but may produce a broken library.
10588 allow_undefined_flag='-berok'
10589 # Determine the default libpath from the value encoded in an
10590 # empty executable.
10591 if test set = "${lt_cv_aix_libpath+set}"; then
10592 aix_libpath=$lt_cv_aix_libpath
10593 else
10594 if test ${lt_cv_aix_libpath_+y}
10595 then :
10596 printf %s "(cached) " >&6
10597 else case e in #(
10598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10600
10601 int
10602 main (void)
10603 {
10604
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"
10610 then :
10611
10612 lt_aix_libpath_sed='
10613 /Import File Strings/,/^$/ {
10614 /^0/ {
10615 s/^0 *\([^ ]*\) *$/\1/
10616 p
10617 }
10618 }'
10619 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10620 # Check for a 64-bit object if we didn't find anything.
10621 if test -z "$lt_cv_aix_libpath_"; then
10622 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10623 fi
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10626 conftest$ac_exeext conftest.$ac_ext
10627 if test -z "$lt_cv_aix_libpath_"; then
10628 lt_cv_aix_libpath_=/usr/lib:/lib
10629 fi
10630 ;;
10631 esac
10632 fi
10633
10634 aix_libpath=$lt_cv_aix_libpath_
10635 fi
10636
10637 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10638 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
10639 else
10640 if test ia64 = "$host_cpu"; then
10641 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10642 allow_undefined_flag="-z nodefs"
10643 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"
10644 else
10645 # Determine the default libpath from the value encoded in an
10646 # empty executable.
10647 if test set = "${lt_cv_aix_libpath+set}"; then
10648 aix_libpath=$lt_cv_aix_libpath
10649 else
10650 if test ${lt_cv_aix_libpath_+y}
10651 then :
10652 printf %s "(cached) " >&6
10653 else case e in #(
10654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656
10657 int
10658 main (void)
10659 {
10660
10661 ;
10662 return 0;
10663 }
10664 _ACEOF
10665 if ac_fn_c_try_link "$LINENO"
10666 then :
10667
10668 lt_aix_libpath_sed='
10669 /Import File Strings/,/^$/ {
10670 /^0/ {
10671 s/^0 *\([^ ]*\) *$/\1/
10672 p
10673 }
10674 }'
10675 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10676 # Check for a 64-bit object if we didn't find anything.
10677 if test -z "$lt_cv_aix_libpath_"; then
10678 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10679 fi
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10682 conftest$ac_exeext conftest.$ac_ext
10683 if test -z "$lt_cv_aix_libpath_"; then
10684 lt_cv_aix_libpath_=/usr/lib:/lib
10685 fi
10686 ;;
10687 esac
10688 fi
10689
10690 aix_libpath=$lt_cv_aix_libpath_
10691 fi
10692
10693 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10694 # Warning - without using the other run time loading flags,
10695 # -berok will link without error, but may produce a broken library.
10696 no_undefined_flag=' $wl-bernotok'
10697 allow_undefined_flag=' $wl-berok'
10698 if test yes = "$with_gnu_ld"; then
10699 # We only use this code for GNU lds that support --whole-archive.
10700 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10701 else
10702 # Exported symbols can be pulled into shared objects from archives
10703 whole_archive_flag_spec='$convenience'
10704 fi
10705 archive_cmds_need_lc=yes
10706 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10707 # -brtl affects multiple linker settings, -berok does not and is overridden later
10708 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10709 if test svr4 != "$with_aix_soname"; then
10710 # This is similar to how AIX traditionally builds its shared libraries.
10711 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'
10712 fi
10713 if test aix != "$with_aix_soname"; then
10714 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'
10715 else
10716 # used by -dlpreopen to get the symbols
10717 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10718 fi
10719 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10720 fi
10721 fi
10722 ;;
10723
10724 amigaos*)
10725 case $host_cpu in
10726 powerpc)
10727 # see comment about AmigaOS4 .so support
10728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10729 archive_expsym_cmds=''
10730 ;;
10731 m68k)
10732 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)'
10733 hardcode_libdir_flag_spec='-L$libdir'
10734 hardcode_minus_L=yes
10735 ;;
10736 esac
10737 ;;
10738
10739 bsdi[45]*)
10740 export_dynamic_flag_spec=-rdynamic
10741 ;;
10742
10743 cygwin* | mingw* | windows* | pw32* | cegcc*)
10744 # When not using gcc, we currently assume that we are using
10745 # Microsoft Visual C++ or Intel C++ Compiler.
10746 # hardcode_libdir_flag_spec is actually meaningless, as there is
10747 # no search path for DLLs.
10748 case $cc_basename in
10749 cl* | icl*)
10750 # Native MSVC or ICC
10751 hardcode_libdir_flag_spec=' '
10752 allow_undefined_flag=unsupported
10753 always_export_symbols=yes
10754 file_list_spec='@'
10755 # Tell ltmain to make .lib files, not .a files.
10756 libext=lib
10757 # Tell ltmain to make .dll files, not .so files.
10758 shrext_cmds=.dll
10759 # FIXME: Setting linknames here is a bad hack.
10760 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10761 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10762 cp "$export_symbols" "$output_objdir/$soname.def";
10763 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10764 else
10765 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10766 fi~
10767 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10768 linknames='
10769 # The linker will not automatically build a static lib if we build a DLL.
10770 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10771 enable_shared_with_static_runtimes=yes
10772 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10773 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10774 # Don't use ranlib
10775 old_postinstall_cmds='chmod 644 $oldlib'
10776 postlink_cmds='lt_outputfile="@OUTPUT@"~
10777 lt_tool_outputfile="@TOOL_OUTPUT@"~
10778 case $lt_outputfile in
10779 *.exe|*.EXE) ;;
10780 *)
10781 lt_outputfile=$lt_outputfile.exe
10782 lt_tool_outputfile=$lt_tool_outputfile.exe
10783 ;;
10784 esac~
10785 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10786 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10787 $RM "$lt_outputfile.manifest";
10788 fi'
10789 ;;
10790 *)
10791 # Assume MSVC and ICC wrapper
10792 hardcode_libdir_flag_spec=' '
10793 allow_undefined_flag=unsupported
10794 # Tell ltmain to make .lib files, not .a files.
10795 libext=lib
10796 # Tell ltmain to make .dll files, not .so files.
10797 shrext_cmds=.dll
10798 # FIXME: Setting linknames here is a bad hack.
10799 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10800 # The linker will automatically build a .lib file if we build a DLL.
10801 old_archive_from_new_cmds='true'
10802 # FIXME: Should let the user specify the lib program.
10803 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10804 enable_shared_with_static_runtimes=yes
10805 ;;
10806 esac
10807 ;;
10808
10809 darwin* | rhapsody*)
10810
10811
10812 archive_cmds_need_lc=no
10813 hardcode_direct=no
10814 hardcode_automatic=yes
10815 hardcode_shlibpath_var=unsupported
10816 if test yes = "$lt_cv_ld_force_load"; then
10817 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\"`'
10818
10819 else
10820 whole_archive_flag_spec=''
10821 fi
10822 link_all_deplibs=yes
10823 allow_undefined_flag=$_lt_dar_allow_undefined
10824 case $cc_basename in
10825 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10826 *) _lt_dar_can_shared=$GCC ;;
10827 esac
10828 if test yes = "$_lt_dar_can_shared"; then
10829 output_verbose_link_cmd=func_echo_all
10830 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10831 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10832 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"
10833 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"
10834
10835 else
10836 ld_shlibs=no
10837 fi
10838
10839 ;;
10840
10841 dgux*)
10842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10843 hardcode_libdir_flag_spec='-L$libdir'
10844 hardcode_shlibpath_var=no
10845 ;;
10846
10847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10848 # support. Future versions do this automatically, but an explicit c++rt0.o
10849 # does not break anything, and helps significantly (at the cost of a little
10850 # extra space).
10851 freebsd2.2*)
10852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10853 hardcode_libdir_flag_spec='-R$libdir'
10854 hardcode_direct=yes
10855 hardcode_shlibpath_var=no
10856 ;;
10857
10858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10859 freebsd2.*)
10860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10861 hardcode_direct=yes
10862 hardcode_minus_L=yes
10863 hardcode_shlibpath_var=no
10864 ;;
10865
10866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10867 freebsd* | dragonfly* | midnightbsd*)
10868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10869 hardcode_libdir_flag_spec='-R$libdir'
10870 hardcode_direct=yes
10871 hardcode_shlibpath_var=no
10872 ;;
10873
10874 hpux9*)
10875 if test yes = "$GCC"; then
10876 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'
10877 else
10878 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'
10879 fi
10880 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10881 hardcode_libdir_separator=:
10882 hardcode_direct=yes
10883
10884 # hardcode_minus_L: Not really in the search PATH,
10885 # but as the default location of the library.
10886 hardcode_minus_L=yes
10887 export_dynamic_flag_spec='$wl-E'
10888 ;;
10889
10890 hpux10*)
10891 if test yes,no = "$GCC,$with_gnu_ld"; then
10892 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10893 else
10894 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10895 fi
10896 if test no = "$with_gnu_ld"; then
10897 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10898 hardcode_libdir_separator=:
10899 hardcode_direct=yes
10900 hardcode_direct_absolute=yes
10901 export_dynamic_flag_spec='$wl-E'
10902 # hardcode_minus_L: Not really in the search PATH,
10903 # but as the default location of the library.
10904 hardcode_minus_L=yes
10905 fi
10906 ;;
10907
10908 hpux11*)
10909 if test yes,no = "$GCC,$with_gnu_ld"; then
10910 case $host_cpu in
10911 hppa*64*)
10912 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10913 ;;
10914 ia64*)
10915 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10916 ;;
10917 *)
10918 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10919 ;;
10920 esac
10921 else
10922 case $host_cpu in
10923 hppa*64*)
10924 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10925 ;;
10926 ia64*)
10927 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10928 ;;
10929 *)
10930
10931 # Older versions of the 11.00 compiler do not understand -b yet
10932 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10934 printf %s "checking if $CC understands -b... " >&6; }
10935 if test ${lt_cv_prog_compiler__b+y}
10936 then :
10937 printf %s "(cached) " >&6
10938 else case e in #(
10939 e) lt_cv_prog_compiler__b=no
10940 save_LDFLAGS=$LDFLAGS
10941 LDFLAGS="$LDFLAGS -b"
10942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10944 # The linker can only warn and ignore the option if not recognized
10945 # So say no if there are warnings
10946 if test -s conftest.err; then
10947 # Append any errors to the config.log.
10948 cat conftest.err 1>&5
10949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10951 if diff conftest.exp conftest.er2 >/dev/null; then
10952 lt_cv_prog_compiler__b=yes
10953 fi
10954 else
10955 lt_cv_prog_compiler__b=yes
10956 fi
10957 fi
10958 $RM -r conftest*
10959 LDFLAGS=$save_LDFLAGS
10960 ;;
10961 esac
10962 fi
10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10964 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10965
10966 if test yes = "$lt_cv_prog_compiler__b"; then
10967 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10968 else
10969 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10970 fi
10971
10972 ;;
10973 esac
10974 fi
10975 if test no = "$with_gnu_ld"; then
10976 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10977 hardcode_libdir_separator=:
10978
10979 case $host_cpu in
10980 hppa*64*|ia64*)
10981 hardcode_direct=no
10982 hardcode_shlibpath_var=no
10983 ;;
10984 *)
10985 hardcode_direct=yes
10986 hardcode_direct_absolute=yes
10987 export_dynamic_flag_spec='$wl-E'
10988
10989 # hardcode_minus_L: Not really in the search PATH,
10990 # but as the default location of the library.
10991 hardcode_minus_L=yes
10992 ;;
10993 esac
10994 fi
10995 ;;
10996
10997 irix5* | irix6* | nonstopux*)
10998 if test yes = "$GCC"; then
10999 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'
11000 # Try to use the -exported_symbol ld option, if it does not
11001 # work, assume that -exports_file does not work either and
11002 # implicitly export all symbols.
11003 # This should be the same for all languages, so no per-tag cache variable.
11004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11005 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11006 if test ${lt_cv_irix_exported_symbol+y}
11007 then :
11008 printf %s "(cached) " >&6
11009 else case e in #(
11010 e) save_LDFLAGS=$LDFLAGS
11011 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11014 int foo (void) { return 0; }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"
11017 then :
11018 lt_cv_irix_exported_symbol=yes
11019 else case e in #(
11020 e) lt_cv_irix_exported_symbol=no ;;
11021 esac
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LDFLAGS=$save_LDFLAGS ;;
11026 esac
11027 fi
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11029 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11030 if test yes = "$lt_cv_irix_exported_symbol"; then
11031 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'
11032 fi
11033 else
11034 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'
11035 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'
11036 fi
11037 archive_cmds_need_lc='no'
11038 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11039 hardcode_libdir_separator=:
11040 inherit_rpath=yes
11041 link_all_deplibs=yes
11042 ;;
11043
11044 linux*)
11045 case $cc_basename in
11046 tcc*)
11047 # Fabrice Bellard et al's Tiny C Compiler
11048 ld_shlibs=yes
11049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11050 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11051 ;;
11052 esac
11053 ;;
11054
11055 *-mlibc)
11056 ;;
11057
11058 netbsd* | netbsdelf*-gnu)
11059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11061 else
11062 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11063 fi
11064 hardcode_libdir_flag_spec='-R$libdir'
11065 hardcode_direct=yes
11066 hardcode_shlibpath_var=no
11067 ;;
11068
11069 newsos6)
11070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11071 hardcode_direct=yes
11072 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11073 hardcode_libdir_separator=:
11074 hardcode_shlibpath_var=no
11075 ;;
11076
11077 *nto* | *qnx*)
11078 ;;
11079
11080 openbsd*)
11081 if test -f /usr/libexec/ld.so; then
11082 hardcode_direct=yes
11083 hardcode_shlibpath_var=no
11084 hardcode_direct_absolute=yes
11085 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11087 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11088 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11089 export_dynamic_flag_spec='$wl-E'
11090 else
11091 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11092 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11093 fi
11094 else
11095 ld_shlibs=no
11096 fi
11097 ;;
11098
11099 os2*)
11100 hardcode_libdir_flag_spec='-L$libdir'
11101 hardcode_minus_L=yes
11102 allow_undefined_flag=unsupported
11103 shrext_cmds=.dll
11104 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11105 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11106 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11107 $ECHO EXPORTS >> $output_objdir/$libname.def~
11108 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11109 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11110 emximp -o $lib $output_objdir/$libname.def'
11111 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11114 $ECHO EXPORTS >> $output_objdir/$libname.def~
11115 prefix_cmds="$SED"~
11116 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11117 prefix_cmds="$prefix_cmds -e 1d";
11118 fi~
11119 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11120 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11121 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11122 emximp -o $lib $output_objdir/$libname.def'
11123 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11124 enable_shared_with_static_runtimes=yes
11125 file_list_spec='@'
11126 ;;
11127
11128 osf3*)
11129 if test yes = "$GCC"; then
11130 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11131 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'
11132 else
11133 allow_undefined_flag=' -expect_unresolved \*'
11134 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'
11135 fi
11136 archive_cmds_need_lc='no'
11137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11138 hardcode_libdir_separator=:
11139 ;;
11140
11141 osf4* | osf5*) # as osf3* with the addition of -msym flag
11142 if test yes = "$GCC"; then
11143 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11144 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'
11145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11146 else
11147 allow_undefined_flag=' -expect_unresolved \*'
11148 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'
11149 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~
11150 $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'
11151
11152 # Both c and cxx compiler support -rpath directly
11153 hardcode_libdir_flag_spec='-rpath $libdir'
11154 fi
11155 archive_cmds_need_lc='no'
11156 hardcode_libdir_separator=:
11157 ;;
11158
11159 serenity*)
11160 ;;
11161
11162 solaris*)
11163 no_undefined_flag=' -z defs'
11164 if test yes = "$GCC"; then
11165 wlarc='$wl'
11166 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11168 $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'
11169 else
11170 case `$CC -V 2>&1` in
11171 *"Compilers 5.0"*)
11172 wlarc=''
11173 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11175 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11176 ;;
11177 *)
11178 wlarc='$wl'
11179 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11181 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11182 ;;
11183 esac
11184 fi
11185 hardcode_libdir_flag_spec='-R$libdir'
11186 hardcode_shlibpath_var=no
11187 case $host_os in
11188 solaris2.[0-5] | solaris2.[0-5].*) ;;
11189 *)
11190 # The compiler driver will combine and reorder linker options,
11191 # but understands '-z linker_flag'. GCC discards it without '$wl',
11192 # but is careful enough not to reorder.
11193 # Supported since Solaris 2.6 (maybe 2.5.1?)
11194 if test yes = "$GCC"; then
11195 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11196 else
11197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11198 fi
11199 ;;
11200 esac
11201 link_all_deplibs=yes
11202 ;;
11203
11204 sunos4*)
11205 if test sequent = "$host_vendor"; then
11206 # Use $CC to link under sequent, because it throws in some extra .o
11207 # files that make .init and .fini sections work.
11208 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11209 else
11210 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11211 fi
11212 hardcode_libdir_flag_spec='-L$libdir'
11213 hardcode_direct=yes
11214 hardcode_minus_L=yes
11215 hardcode_shlibpath_var=no
11216 ;;
11217
11218 sysv4)
11219 case $host_vendor in
11220 sni)
11221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222 hardcode_direct=yes # is this really true???
11223 ;;
11224 siemens)
11225 ## LD is ld it makes a PLAMLIB
11226 ## CC just makes a GrossModule.
11227 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11228 reload_cmds='$CC -r -o $output$reload_objs'
11229 hardcode_direct=no
11230 ;;
11231 motorola)
11232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11233 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11234 ;;
11235 esac
11236 runpath_var='LD_RUN_PATH'
11237 hardcode_shlibpath_var=no
11238 ;;
11239
11240 sysv4.3*)
11241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11242 hardcode_shlibpath_var=no
11243 export_dynamic_flag_spec='-Bexport'
11244 ;;
11245
11246 sysv4*MP*)
11247 if test -d /usr/nec; then
11248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11249 hardcode_shlibpath_var=no
11250 runpath_var=LD_RUN_PATH
11251 hardcode_runpath_var=yes
11252 ld_shlibs=yes
11253 fi
11254 ;;
11255
11256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11257 no_undefined_flag='$wl-z,text'
11258 archive_cmds_need_lc=no
11259 hardcode_shlibpath_var=no
11260 runpath_var='LD_RUN_PATH'
11261
11262 if test yes = "$GCC"; then
11263 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11264 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 else
11266 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11267 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 fi
11269 ;;
11270
11271 sysv5* | sco3.2v5* | sco5v6*)
11272 # Note: We CANNOT use -z defs as we might desire, because we do not
11273 # link with -lc, and that would cause any symbols used from libc to
11274 # always be unresolved, which means just about no library would
11275 # ever link correctly. If we're not using GNU ld we use -z text
11276 # though, which does catch some bad symbols but isn't as heavy-handed
11277 # as -z defs.
11278 no_undefined_flag='$wl-z,text'
11279 allow_undefined_flag='$wl-z,nodefs'
11280 archive_cmds_need_lc=no
11281 hardcode_shlibpath_var=no
11282 hardcode_libdir_flag_spec='$wl-R,$libdir'
11283 hardcode_libdir_separator=':'
11284 link_all_deplibs=yes
11285 export_dynamic_flag_spec='$wl-Bexport'
11286 runpath_var='LD_RUN_PATH'
11287
11288 if test yes = "$GCC"; then
11289 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11290 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 else
11292 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 fi
11295 ;;
11296
11297 uts4*)
11298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11299 hardcode_libdir_flag_spec='-L$libdir'
11300 hardcode_shlibpath_var=no
11301 ;;
11302
11303 *)
11304 ld_shlibs=no
11305 ;;
11306 esac
11307
11308 if test sni = "$host_vendor"; then
11309 case $host in
11310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11311 export_dynamic_flag_spec='$wl-Blargedynsym'
11312 ;;
11313 esac
11314 fi
11315 fi
11316
11317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11318 printf "%s\n" "$ld_shlibs" >&6; }
11319 test no = "$ld_shlibs" && can_build_shared=no
11320
11321 with_gnu_ld=$with_gnu_ld
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 #
11338 # Do we need to explicitly link libc?
11339 #
11340 case "x$archive_cmds_need_lc" in
11341 x|xyes)
11342 # Assume -lc should be added
11343 archive_cmds_need_lc=yes
11344
11345 if test yes,yes = "$GCC,$enable_shared"; then
11346 case $archive_cmds in
11347 *'~'*)
11348 # FIXME: we may have to deal with multi-command sequences.
11349 ;;
11350 '$CC '*)
11351 # Test whether the compiler implicitly links with -lc since on some
11352 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11353 # to ld, don't add -lc before -lgcc.
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11355 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11356 if test ${lt_cv_archive_cmds_need_lc+y}
11357 then :
11358 printf %s "(cached) " >&6
11359 else case e in #(
11360 e) $RM conftest*
11361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11362
11363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11364 (eval $ac_compile) 2>&5
11365 ac_status=$?
11366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367 test $ac_status = 0; } 2>conftest.err; then
11368 soname=conftest
11369 lib=conftest
11370 libobjs=conftest.$ac_objext
11371 deplibs=
11372 wl=$lt_prog_compiler_wl
11373 pic_flag=$lt_prog_compiler_pic
11374 compiler_flags=-v
11375 linker_flags=-v
11376 verstring=
11377 output_objdir=.
11378 libname=conftest
11379 lt_save_allow_undefined_flag=$allow_undefined_flag
11380 allow_undefined_flag=
11381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11382 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11383 ac_status=$?
11384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11385 test $ac_status = 0; }
11386 then
11387 lt_cv_archive_cmds_need_lc=no
11388 else
11389 lt_cv_archive_cmds_need_lc=yes
11390 fi
11391 allow_undefined_flag=$lt_save_allow_undefined_flag
11392 else
11393 cat conftest.err 1>&5
11394 fi
11395 $RM conftest*
11396 ;;
11397 esac
11398 fi
11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11400 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11402 ;;
11403 esac
11404 fi
11405 ;;
11406 esac
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11560 printf %s "checking dynamic linker characteristics... " >&6; }
11561
11562 if test yes = "$GCC"; then
11563 case $host_os in
11564 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11565 *) lt_awk_arg='/^libraries:/' ;;
11566 esac
11567 case $host_os in
11568 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11569 *) lt_sed_strip_eq='s|=/|/|g' ;;
11570 esac
11571 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11572 case $lt_search_path_spec in
11573 *\;*)
11574 # if the path contains ";" then we assume it to be the separator
11575 # otherwise default to the standard path separator (i.e. ":") - it is
11576 # assumed that no part of a normal pathname contains ";" but that should
11577 # okay in the real world where ";" in dirpaths is itself problematic.
11578 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11579 ;;
11580 *)
11581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11582 ;;
11583 esac
11584 # Ok, now we have the path, separated by spaces, we can step through it
11585 # and add multilib dir if necessary...
11586 lt_tmp_lt_search_path_spec=
11587 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11588 # ...but if some path component already ends with the multilib dir we assume
11589 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11590 case "$lt_multi_os_dir; $lt_search_path_spec " in
11591 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11592 lt_multi_os_dir=
11593 ;;
11594 esac
11595 for lt_sys_path in $lt_search_path_spec; do
11596 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11598 elif test -n "$lt_multi_os_dir"; then
11599 test -d "$lt_sys_path" && \
11600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11601 fi
11602 done
11603 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11604 BEGIN {RS = " "; FS = "/|\n";} {
11605 lt_foo = "";
11606 lt_count = 0;
11607 for (lt_i = NF; lt_i > 0; lt_i--) {
11608 if ($lt_i != "" && $lt_i != ".") {
11609 if ($lt_i == "..") {
11610 lt_count++;
11611 } else {
11612 if (lt_count == 0) {
11613 lt_foo = "/" $lt_i lt_foo;
11614 } else {
11615 lt_count--;
11616 }
11617 }
11618 }
11619 }
11620 if (lt_foo != "") { lt_freq[lt_foo]++; }
11621 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11622 }'`
11623 # AWK program above erroneously prepends '/' to C:/dos/paths
11624 # for these hosts.
11625 case $host_os in
11626 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11627 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11628 esac
11629 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11630 else
11631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11632 fi
11633 library_names_spec=
11634 libname_spec='lib$name'
11635 soname_spec=
11636 shrext_cmds=.so
11637 postinstall_cmds=
11638 postuninstall_cmds=
11639 finish_cmds=
11640 finish_eval=
11641 shlibpath_var=
11642 shlibpath_overrides_runpath=unknown
11643 version_type=none
11644 dynamic_linker="$host_os ld.so"
11645 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11646 need_lib_prefix=unknown
11647 hardcode_into_libs=no
11648
11649 # when you set need_version to no, make sure it does not cause -set_version
11650 # flags to be left without arguments
11651 need_version=unknown
11652
11653
11654
11655 case $host_os in
11656 aix3*)
11657 version_type=linux # correct to gnu/linux during the next big refactor
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11659 shlibpath_var=LIBPATH
11660
11661 # AIX 3 has no versioning support, so we append a major version to the name.
11662 soname_spec='$libname$release$shared_ext$major'
11663 ;;
11664
11665 aix[4-9]*)
11666 version_type=linux # correct to gnu/linux during the next big refactor
11667 need_lib_prefix=no
11668 need_version=no
11669 hardcode_into_libs=yes
11670 if test ia64 = "$host_cpu"; then
11671 # AIX 5 supports IA64
11672 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 else
11675 # With GCC up to 2.95.x, collect2 would create an import file
11676 # for dependence libraries. The import file would start with
11677 # the line '#! .'. This would cause the generated library to
11678 # depend on '.', always an invalid library. This was fixed in
11679 # development snapshots of GCC prior to 3.0.
11680 case $host_os in
11681 aix4 | aix4.[01] | aix4.[01].*)
11682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11683 echo ' yes '
11684 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11685 :
11686 else
11687 can_build_shared=no
11688 fi
11689 ;;
11690 esac
11691 # Using Import Files as archive members, it is possible to support
11692 # filename-based versioning of shared library archives on AIX. While
11693 # this would work for both with and without runtime linking, it will
11694 # prevent static linking of such archives. So we do filename-based
11695 # shared library versioning with .so extension only, which is used
11696 # when both runtime linking and shared linking is enabled.
11697 # Unfortunately, runtime linking may impact performance, so we do
11698 # not want this to be the default eventually. Also, we use the
11699 # versioned .so libs for executables only if there is the -brtl
11700 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11701 # To allow for filename-based versioning support, we need to create
11702 # libNAME.so.V as an archive file, containing:
11703 # *) an Import File, referring to the versioned filename of the
11704 # archive as well as the shared archive member, telling the
11705 # bitwidth (32 or 64) of that shared object, and providing the
11706 # list of exported symbols of that shared object, eventually
11707 # decorated with the 'weak' keyword
11708 # *) the shared object with the F_LOADONLY flag set, to really avoid
11709 # it being seen by the linker.
11710 # At run time we better use the real file rather than another symlink,
11711 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11712
11713 case $with_aix_soname,$aix_use_runtimelinking in
11714 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11715 # soname into executable. Probably we can add versioning support to
11716 # collect2, so additional links can be useful in future.
11717 aix,yes) # traditional libtool
11718 dynamic_linker='AIX unversionable lib.so'
11719 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11720 # instead of lib<name>.a to let people know that these are not
11721 # typical AIX shared libraries.
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723 ;;
11724 aix,no) # traditional AIX only
11725 dynamic_linker='AIX lib.a(lib.so.V)'
11726 # We preserve .a as extension for shared libraries through AIX4.2
11727 # and later when we are not doing run time linking.
11728 library_names_spec='$libname$release.a $libname.a'
11729 soname_spec='$libname$release$shared_ext$major'
11730 ;;
11731 svr4,*) # full svr4 only
11732 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11733 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11734 # We do not specify a path in Import Files, so LIBPATH fires.
11735 shlibpath_overrides_runpath=yes
11736 ;;
11737 *,yes) # both, prefer svr4
11738 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11739 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11740 # unpreferred sharedlib libNAME.a needs extra handling
11741 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"'
11742 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"'
11743 # We do not specify a path in Import Files, so LIBPATH fires.
11744 shlibpath_overrides_runpath=yes
11745 ;;
11746 *,no) # both, prefer aix
11747 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11748 library_names_spec='$libname$release.a $libname.a'
11749 soname_spec='$libname$release$shared_ext$major'
11750 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11751 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)'
11752 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"'
11753 ;;
11754 esac
11755 shlibpath_var=LIBPATH
11756 fi
11757 ;;
11758
11759 amigaos*)
11760 case $host_cpu in
11761 powerpc)
11762 # Since July 2007 AmigaOS4 officially supports .so libraries.
11763 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765 ;;
11766 m68k)
11767 library_names_spec='$libname.ixlibrary $libname.a'
11768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11769 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'
11770 ;;
11771 esac
11772 ;;
11773
11774 beos*)
11775 library_names_spec='$libname$shared_ext'
11776 dynamic_linker="$host_os ld.so"
11777 shlibpath_var=LIBRARY_PATH
11778 ;;
11779
11780 bsdi[45]*)
11781 version_type=linux # correct to gnu/linux during the next big refactor
11782 need_version=no
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11784 soname_spec='$libname$release$shared_ext$major'
11785 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11786 shlibpath_var=LD_LIBRARY_PATH
11787 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11788 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11789 # the default ld.so.conf also contains /usr/contrib/lib and
11790 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11791 # libtool to hard-code these into programs
11792 ;;
11793
11794 cygwin* | mingw* | windows* | pw32* | cegcc*)
11795 version_type=windows
11796 shrext_cmds=.dll
11797 need_version=no
11798 need_lib_prefix=no
11799
11800 case $GCC,$cc_basename in
11801 yes,*)
11802 # gcc
11803 library_names_spec='$libname.dll.a'
11804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11805 # If user builds GCC with multilib enabled,
11806 # it should just install on $(libdir)
11807 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11808 if test xyes = x"$multilib"; then
11809 postinstall_cmds='base_file=`basename \$file`~
11810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11811 dldir=$destdir/`dirname \$dlpath`~
11812 $install_prog $dir/$dlname $destdir/$dlname~
11813 chmod a+x $destdir/$dlname~
11814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11815 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11816 fi'
11817 else
11818 postinstall_cmds='base_file=`basename \$file`~
11819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11820 dldir=$destdir/`dirname \$dlpath`~
11821 test -d \$dldir || mkdir -p \$dldir~
11822 $install_prog $dir/$dlname \$dldir/$dlname~
11823 chmod a+x \$dldir/$dlname~
11824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11825 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11826 fi'
11827 fi
11828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11829 dlpath=$dir/\$dldll~
11830 $RM \$dlpath'
11831 shlibpath_overrides_runpath=yes
11832
11833 case $host_os in
11834 cygwin*)
11835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11836 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11837
11838 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11839 ;;
11840 mingw* | windows* | cegcc*)
11841 # MinGW DLLs use traditional 'lib' prefix
11842 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11843 ;;
11844 pw32*)
11845 # pw32 DLLs use 'pw' prefix rather than 'lib'
11846 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11847 ;;
11848 esac
11849 dynamic_linker='Win32 ld.exe'
11850 ;;
11851
11852 *,cl* | *,icl*)
11853 # Native MSVC or ICC
11854 libname_spec='$name'
11855 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11856 library_names_spec='$libname.dll.lib'
11857
11858 case $build_os in
11859 mingw* | windows*)
11860 sys_lib_search_path_spec=
11861 lt_save_ifs=$IFS
11862 IFS=';'
11863 for lt_path in $LIB
11864 do
11865 IFS=$lt_save_ifs
11866 # Let DOS variable expansion print the short 8.3 style file name.
11867 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11868 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11869 done
11870 IFS=$lt_save_ifs
11871 # Convert to MSYS style.
11872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11873 ;;
11874 cygwin*)
11875 # Convert to unix form, then to dos form, then back to unix form
11876 # but this time dos style (no spaces!) so that the unix form looks
11877 # like /cygdrive/c/PROGRA~1:/cygdr...
11878 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11879 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11880 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11881 ;;
11882 *)
11883 sys_lib_search_path_spec=$LIB
11884 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11885 # It is most probably a Windows format PATH.
11886 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11887 else
11888 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11889 fi
11890 # FIXME: find the short name or the path components, as spaces are
11891 # common. (e.g. "Program Files" -> "PROGRA~1")
11892 ;;
11893 esac
11894
11895 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11896 postinstall_cmds='base_file=`basename \$file`~
11897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11898 dldir=$destdir/`dirname \$dlpath`~
11899 test -d \$dldir || mkdir -p \$dldir~
11900 $install_prog $dir/$dlname \$dldir/$dlname'
11901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11902 dlpath=$dir/\$dldll~
11903 $RM \$dlpath'
11904 shlibpath_overrides_runpath=yes
11905 dynamic_linker='Win32 link.exe'
11906 ;;
11907
11908 *)
11909 # Assume MSVC and ICC wrapper
11910 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11911 dynamic_linker='Win32 ld.exe'
11912 ;;
11913 esac
11914 # FIXME: first we should search . and the directory the executable is in
11915 shlibpath_var=PATH
11916 ;;
11917
11918 darwin* | rhapsody*)
11919 dynamic_linker="$host_os dyld"
11920 version_type=darwin
11921 need_lib_prefix=no
11922 need_version=no
11923 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11924 soname_spec='$libname$release$major$shared_ext'
11925 shlibpath_overrides_runpath=yes
11926 shlibpath_var=DYLD_LIBRARY_PATH
11927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11928
11929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11931 ;;
11932
11933 dgux*)
11934 version_type=linux # correct to gnu/linux during the next big refactor
11935 need_lib_prefix=no
11936 need_version=no
11937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11938 soname_spec='$libname$release$shared_ext$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11940 ;;
11941
11942 freebsd* | dragonfly* | midnightbsd*)
11943 # DragonFly does not have aout. When/if they implement a new
11944 # versioning mechanism, adjust this.
11945 if test -x /usr/bin/objformat; then
11946 objformat=`/usr/bin/objformat`
11947 else
11948 case $host_os in
11949 freebsd[23].*) objformat=aout ;;
11950 *) objformat=elf ;;
11951 esac
11952 fi
11953 version_type=freebsd-$objformat
11954 case $version_type in
11955 freebsd-elf*)
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957 soname_spec='$libname$release$shared_ext$major'
11958 need_version=no
11959 need_lib_prefix=no
11960 ;;
11961 freebsd-*)
11962 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11963 need_version=yes
11964 ;;
11965 esac
11966 case $host_cpu in
11967 powerpc64)
11968 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11969 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 int test_pointer_size[sizeof (void *) - 5];
11973
11974 _ACEOF
11975 if ac_fn_c_try_compile "$LINENO"
11976 then :
11977 shlibpath_var=LD_LIBRARY_PATH
11978 else case e in #(
11979 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11980 esac
11981 fi
11982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11983 ;;
11984 *)
11985 shlibpath_var=LD_LIBRARY_PATH
11986 ;;
11987 esac
11988 case $host_os in
11989 freebsd2.*)
11990 shlibpath_overrides_runpath=yes
11991 ;;
11992 freebsd3.[01]* | freebsdelf3.[01]*)
11993 shlibpath_overrides_runpath=yes
11994 hardcode_into_libs=yes
11995 ;;
11996 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11997 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11998 shlibpath_overrides_runpath=no
11999 hardcode_into_libs=yes
12000 ;;
12001 *) # from 4.6 on, and DragonFly
12002 shlibpath_overrides_runpath=yes
12003 hardcode_into_libs=yes
12004 ;;
12005 esac
12006 ;;
12007
12008 haiku*)
12009 version_type=linux # correct to gnu/linux during the next big refactor
12010 need_lib_prefix=no
12011 need_version=no
12012 dynamic_linker="$host_os runtime_loader"
12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014 soname_spec='$libname$release$shared_ext$major'
12015 shlibpath_var=LIBRARY_PATH
12016 shlibpath_overrides_runpath=no
12017 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12018 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12019 hardcode_into_libs=no
12020 ;;
12021
12022 hpux9* | hpux10* | hpux11*)
12023 # Give a soname corresponding to the major version so that dld.sl refuses to
12024 # link against other versions.
12025 version_type=sunos
12026 need_lib_prefix=no
12027 need_version=no
12028 case $host_cpu in
12029 ia64*)
12030 shrext_cmds='.so'
12031 hardcode_into_libs=yes
12032 dynamic_linker="$host_os dld.so"
12033 shlibpath_var=LD_LIBRARY_PATH
12034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12036 soname_spec='$libname$release$shared_ext$major'
12037 if test 32 = "$HPUX_IA64_MODE"; then
12038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12039 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12040 else
12041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12042 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12043 fi
12044 ;;
12045 hppa*64*)
12046 shrext_cmds='.sl'
12047 hardcode_into_libs=yes
12048 dynamic_linker="$host_os dld.sl"
12049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12052 soname_spec='$libname$release$shared_ext$major'
12053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12055 ;;
12056 *)
12057 shrext_cmds='.sl'
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=SHLIB_PATH
12060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062 soname_spec='$libname$release$shared_ext$major'
12063 ;;
12064 esac
12065 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12066 postinstall_cmds='chmod 555 $lib'
12067 # or fails outright, so override atomically:
12068 install_override_mode=555
12069 ;;
12070
12071 interix[3-9]*)
12072 version_type=linux # correct to gnu/linux during the next big refactor
12073 need_lib_prefix=no
12074 need_version=no
12075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12076 soname_spec='$libname$release$shared_ext$major'
12077 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 shlibpath_overrides_runpath=no
12080 hardcode_into_libs=yes
12081 ;;
12082
12083 irix5* | irix6* | nonstopux*)
12084 case $host_os in
12085 nonstopux*) version_type=nonstopux ;;
12086 *)
12087 if test yes = "$lt_cv_prog_gnu_ld"; then
12088 version_type=linux # correct to gnu/linux during the next big refactor
12089 else
12090 version_type=irix
12091 fi ;;
12092 esac
12093 need_lib_prefix=no
12094 need_version=no
12095 soname_spec='$libname$release$shared_ext$major'
12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12097 case $host_os in
12098 irix5* | nonstopux*)
12099 libsuff= shlibsuff=
12100 ;;
12101 *)
12102 case $LD in # libtool.m4 will add one of these switches to LD
12103 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12104 libsuff= shlibsuff= libmagic=32-bit;;
12105 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12106 libsuff=32 shlibsuff=N32 libmagic=N32;;
12107 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12108 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12109 *) libsuff= shlibsuff= libmagic=never-match;;
12110 esac
12111 ;;
12112 esac
12113 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12114 shlibpath_overrides_runpath=no
12115 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12116 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12117 hardcode_into_libs=yes
12118 ;;
12119
12120 # No shared lib support for Linux oldld, aout, or coff.
12121 linux*oldld* | linux*aout* | linux*coff*)
12122 dynamic_linker=no
12123 ;;
12124
12125 linux*android*)
12126 version_type=none # Android doesn't support versioned libraries.
12127 need_lib_prefix=no
12128 need_version=no
12129 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12130 soname_spec='$libname$release$shared_ext'
12131 finish_cmds=
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=yes
12134
12135 # This implies no fast_install, which is unacceptable.
12136 # Some rework will be needed to allow for fast_install
12137 # before this can be enabled.
12138 hardcode_into_libs=yes
12139
12140 dynamic_linker='Android linker'
12141 # -rpath works at least for libraries that are not overridden by
12142 # libraries installed in system locations.
12143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12144 ;;
12145
12146 # This must be glibc/ELF.
12147 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12148 version_type=linux # correct to gnu/linux during the next big refactor
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12152 soname_spec='$libname$release$shared_ext$major'
12153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156
12157 # Some binutils ld are patched to set DT_RUNPATH
12158 if test ${lt_cv_shlibpath_overrides_runpath+y}
12159 then :
12160 printf %s "(cached) " >&6
12161 else case e in #(
12162 e) lt_cv_shlibpath_overrides_runpath=no
12163 save_LDFLAGS=$LDFLAGS
12164 save_libdir=$libdir
12165 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12166 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169
12170 int
12171 main (void)
12172 {
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"
12179 then :
12180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12181 then :
12182 lt_cv_shlibpath_overrides_runpath=yes
12183 fi
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LDFLAGS=$save_LDFLAGS
12188 libdir=$save_libdir
12189 ;;
12190 esac
12191 fi
12192
12193 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12194
12195 # This implies no fast_install, which is unacceptable.
12196 # Some rework will be needed to allow for fast_install
12197 # before this can be enabled.
12198 hardcode_into_libs=yes
12199
12200 # Ideally, we could use ldconfig to report *all* directories which are
12201 # searched for libraries, however this is still not possible. Aside from not
12202 # being certain /sbin/ldconfig is available, command
12203 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12204 # even though it is searched at run-time. Try to do the best guess by
12205 # appending ld.so.conf contents (and includes) to the search path.
12206 if test -f /etc/ld.so.conf; then
12207 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' ' '`
12208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12209 fi
12210
12211 # We used to test for /lib/ld.so.1 and disable shared libraries on
12212 # powerpc, because MkLinux only supported shared libraries with the
12213 # GNU dynamic linker. Since this was broken with cross compilers,
12214 # most powerpc-linux boxes support dynamic linking these days and
12215 # people can always --disable-shared, the test was removed, and we
12216 # assume the GNU/Linux dynamic linker is in use.
12217 dynamic_linker='GNU/Linux ld.so'
12218 ;;
12219
12220 netbsdelf*-gnu)
12221 version_type=linux
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12225 soname_spec='$libname$release$shared_ext$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=no
12228 hardcode_into_libs=yes
12229 dynamic_linker='NetBSD ld.elf_so'
12230 ;;
12231
12232 netbsd*)
12233 version_type=sunos
12234 need_lib_prefix=no
12235 need_version=no
12236 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239 dynamic_linker='NetBSD (a.out) ld.so'
12240 else
12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12242 soname_spec='$libname$release$shared_ext$major'
12243 dynamic_linker='NetBSD ld.elf_so'
12244 fi
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 hardcode_into_libs=yes
12248 ;;
12249
12250 *-mlibc)
12251 version_type=linux # correct to gnu/linux during the next big refactor
12252 need_lib_prefix=no
12253 need_version=no
12254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12255 soname_spec='$libname$release$shared_ext$major'
12256 dynamic_linker='mlibc ld.so'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259 hardcode_into_libs=yes
12260 ;;
12261
12262 newsos6)
12263 version_type=linux # correct to gnu/linux during the next big refactor
12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=yes
12267 ;;
12268
12269 *nto* | *qnx*)
12270 version_type=qnx
12271 need_lib_prefix=no
12272 need_version=no
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 soname_spec='$libname$release$shared_ext$major'
12275 shlibpath_var=LD_LIBRARY_PATH
12276 shlibpath_overrides_runpath=no
12277 hardcode_into_libs=yes
12278 dynamic_linker='ldqnx.so'
12279 ;;
12280
12281 openbsd*)
12282 version_type=sunos
12283 sys_lib_dlsearch_path_spec=/usr/lib
12284 need_lib_prefix=no
12285 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12286 need_version=no
12287 else
12288 need_version=yes
12289 fi
12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12292 shlibpath_var=LD_LIBRARY_PATH
12293 shlibpath_overrides_runpath=yes
12294 ;;
12295
12296 os2*)
12297 libname_spec='$name'
12298 version_type=windows
12299 shrext_cmds=.dll
12300 need_version=no
12301 need_lib_prefix=no
12302 # OS/2 can only load a DLL with a base name of 8 characters or less.
12303 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12304 v=$($ECHO $release$versuffix | tr -d .-);
12305 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12306 $ECHO $n$v`$shared_ext'
12307 library_names_spec='${libname}_dll.$libext'
12308 dynamic_linker='OS/2 ld.exe'
12309 shlibpath_var=BEGINLIBPATH
12310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12312 postinstall_cmds='base_file=`basename \$file`~
12313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12314 dldir=$destdir/`dirname \$dlpath`~
12315 test -d \$dldir || mkdir -p \$dldir~
12316 $install_prog $dir/$dlname \$dldir/$dlname~
12317 chmod a+x \$dldir/$dlname~
12318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12320 fi'
12321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12322 dlpath=$dir/\$dldll~
12323 $RM \$dlpath'
12324 ;;
12325
12326 osf3* | osf4* | osf5*)
12327 version_type=osf
12328 need_lib_prefix=no
12329 need_version=no
12330 soname_spec='$libname$release$shared_ext$major'
12331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12335 ;;
12336
12337 rdos*)
12338 dynamic_linker=no
12339 ;;
12340
12341 serenity*)
12342 version_type=linux # correct to gnu/linux during the next big refactor
12343 need_lib_prefix=no
12344 need_version=no
12345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12346 soname_spec='$libname$release$shared_ext$major'
12347 shlibpath_var=LD_LIBRARY_PATH
12348 shlibpath_overrides_runpath=no
12349 dynamic_linker='SerenityOS LibELF'
12350 ;;
12351
12352 solaris*)
12353 version_type=linux # correct to gnu/linux during the next big refactor
12354 need_lib_prefix=no
12355 need_version=no
12356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12357 soname_spec='$libname$release$shared_ext$major'
12358 shlibpath_var=LD_LIBRARY_PATH
12359 shlibpath_overrides_runpath=yes
12360 hardcode_into_libs=yes
12361 # ldd complains unless libraries are executable
12362 postinstall_cmds='chmod +x $lib'
12363 ;;
12364
12365 sunos4*)
12366 version_type=sunos
12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath=yes
12371 if test yes = "$with_gnu_ld"; then
12372 need_lib_prefix=no
12373 fi
12374 need_version=yes
12375 ;;
12376
12377 sysv4 | sysv4.3*)
12378 version_type=linux # correct to gnu/linux during the next big refactor
12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12380 soname_spec='$libname$release$shared_ext$major'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 case $host_vendor in
12383 sni)
12384 shlibpath_overrides_runpath=no
12385 need_lib_prefix=no
12386 runpath_var=LD_RUN_PATH
12387 ;;
12388 siemens)
12389 need_lib_prefix=no
12390 ;;
12391 motorola)
12392 need_lib_prefix=no
12393 need_version=no
12394 shlibpath_overrides_runpath=no
12395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12396 ;;
12397 esac
12398 ;;
12399
12400 sysv4*MP*)
12401 if test -d /usr/nec; then
12402 version_type=linux # correct to gnu/linux during the next big refactor
12403 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12404 soname_spec='$libname$shared_ext.$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 fi
12407 ;;
12408
12409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12410 version_type=sco
12411 need_lib_prefix=no
12412 need_version=no
12413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12414 soname_spec='$libname$release$shared_ext$major'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=yes
12417 hardcode_into_libs=yes
12418 if test yes = "$with_gnu_ld"; then
12419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12420 else
12421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12422 case $host_os in
12423 sco3.2v5*)
12424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12425 ;;
12426 esac
12427 fi
12428 sys_lib_dlsearch_path_spec='/usr/lib'
12429 ;;
12430
12431 tpf*)
12432 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12433 version_type=linux # correct to gnu/linux during the next big refactor
12434 need_lib_prefix=no
12435 need_version=no
12436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12437 shlibpath_var=LD_LIBRARY_PATH
12438 shlibpath_overrides_runpath=no
12439 hardcode_into_libs=yes
12440 ;;
12441
12442 uts4*)
12443 version_type=linux # correct to gnu/linux during the next big refactor
12444 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12445 soname_spec='$libname$release$shared_ext$major'
12446 shlibpath_var=LD_LIBRARY_PATH
12447 ;;
12448
12449 emscripten*)
12450 version_type=none
12451 need_lib_prefix=no
12452 need_version=no
12453 library_names_spec='$libname$release$shared_ext'
12454 soname_spec='$libname$release$shared_ext'
12455 finish_cmds=
12456 dynamic_linker="Emscripten linker"
12457 lt_prog_compiler_wl=
12458 lt_prog_compiler_pic=
12459 lt_prog_compiler_static=
12460
12461
12462 if test yes = "$GCC"; then
12463 lt_prog_compiler_wl='-Wl,'
12464 lt_prog_compiler_static='-static'
12465
12466 case $host_os in
12467 aix*)
12468 # All AIX code is PIC.
12469 if test ia64 = "$host_cpu"; then
12470 # AIX 5 now supports IA64 processor
12471 lt_prog_compiler_static='-Bstatic'
12472 fi
12473 lt_prog_compiler_pic='-fPIC'
12474 ;;
12475
12476 amigaos*)
12477 case $host_cpu in
12478 powerpc)
12479 # see comment about AmigaOS4 .so support
12480 lt_prog_compiler_pic='-fPIC'
12481 ;;
12482 m68k)
12483 # FIXME: we need at least 68020 code to build shared libraries, but
12484 # adding the '-m68020' flag to GCC prevents building anything better,
12485 # like '-m68040'.
12486 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12487 ;;
12488 esac
12489 ;;
12490
12491 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12492 # PIC is the default for these OSes.
12493 ;;
12494
12495 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12496 # This hack is so that the source file can tell whether it is being
12497 # built for inclusion in a dll (and should export symbols for example).
12498 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12499 # (--disable-auto-import) libraries
12500 lt_prog_compiler_pic='-DDLL_EXPORT'
12501 case $host_os in
12502 os2*)
12503 lt_prog_compiler_static='$wl-static'
12504 ;;
12505 esac
12506 ;;
12507
12508 darwin* | rhapsody*)
12509 # PIC is the default on this platform
12510 # Common symbols not allowed in MH_DYLIB files
12511 lt_prog_compiler_pic='-fno-common'
12512 ;;
12513
12514 haiku*)
12515 # PIC is the default for Haiku.
12516 # The "-static" flag exists, but is broken.
12517 lt_prog_compiler_static=
12518 ;;
12519
12520 hpux*)
12521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12523 # sets the default TLS model and affects inlining.
12524 case $host_cpu in
12525 hppa*64*)
12526 # +Z the default
12527 ;;
12528 *)
12529 lt_prog_compiler_pic='-fPIC'
12530 ;;
12531 esac
12532 ;;
12533
12534 interix[3-9]*)
12535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12536 # Instead, we relocate shared libraries at runtime.
12537 ;;
12538
12539 msdosdjgpp*)
12540 # Just because we use GCC doesn't mean we suddenly get shared libraries
12541 # on systems that don't support them.
12542 lt_prog_compiler_can_build_shared=no
12543 enable_shared=no
12544 ;;
12545
12546 *nto* | *qnx*)
12547 # QNX uses GNU C++, but need to define -shared option too, otherwise
12548 # it will coredump.
12549 lt_prog_compiler_pic='-fPIC -shared'
12550 ;;
12551
12552 sysv4*MP*)
12553 if test -d /usr/nec; then
12554 lt_prog_compiler_pic=-Kconform_pic
12555 fi
12556 ;;
12557
12558 *)
12559 lt_prog_compiler_pic='-fPIC'
12560 ;;
12561 esac
12562
12563 case $cc_basename in
12564 nvcc*) # Cuda Compiler Driver 2.2
12565 lt_prog_compiler_wl='-Xlinker '
12566 if test -n "$lt_prog_compiler_pic"; then
12567 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12568 fi
12569 ;;
12570 esac
12571 else
12572 # PORTME Check for flag to pass linker flags through the system compiler.
12573 case $host_os in
12574 aix*)
12575 lt_prog_compiler_wl='-Wl,'
12576 if test ia64 = "$host_cpu"; then
12577 # AIX 5 now supports IA64 processor
12578 lt_prog_compiler_static='-Bstatic'
12579 else
12580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12581 fi
12582 ;;
12583
12584 darwin* | rhapsody*)
12585 # PIC is the default on this platform
12586 # Common symbols not allowed in MH_DYLIB files
12587 lt_prog_compiler_pic='-fno-common'
12588 case $cc_basename in
12589 nagfor*)
12590 # NAG Fortran compiler
12591 lt_prog_compiler_wl='-Wl,-Wl,,'
12592 lt_prog_compiler_pic='-PIC'
12593 lt_prog_compiler_static='-Bstatic'
12594 ;;
12595 esac
12596 ;;
12597
12598 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12599 # This hack is so that the source file can tell whether it is being
12600 # built for inclusion in a dll (and should export symbols for example).
12601 lt_prog_compiler_pic='-DDLL_EXPORT'
12602 case $host_os in
12603 os2*)
12604 lt_prog_compiler_static='$wl-static'
12605 ;;
12606 esac
12607 ;;
12608
12609 hpux9* | hpux10* | hpux11*)
12610 lt_prog_compiler_wl='-Wl,'
12611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12612 # not for PA HP-UX.
12613 case $host_cpu in
12614 hppa*64*|ia64*)
12615 # +Z the default
12616 ;;
12617 *)
12618 lt_prog_compiler_pic='+Z'
12619 ;;
12620 esac
12621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12622 lt_prog_compiler_static='$wl-a ${wl}archive'
12623 ;;
12624
12625 irix5* | irix6* | nonstopux*)
12626 lt_prog_compiler_wl='-Wl,'
12627 # PIC (with -KPIC) is the default.
12628 lt_prog_compiler_static='-non_shared'
12629 ;;
12630
12631 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12632 case $cc_basename in
12633 # old Intel for x86_64, which still supported -KPIC.
12634 ecc*)
12635 lt_prog_compiler_wl='-Wl,'
12636 lt_prog_compiler_pic='-KPIC'
12637 lt_prog_compiler_static='-static'
12638 ;;
12639 *flang* | ftn | f18* | f95*)
12640 # Flang compiler.
12641 lt_prog_compiler_wl='-Wl,'
12642 lt_prog_compiler_pic='-fPIC'
12643 lt_prog_compiler_static='-static'
12644 ;;
12645 # icc used to be incompatible with GCC.
12646 # ICC 10 doesn't accept -KPIC any more.
12647 icc* | ifort*)
12648 lt_prog_compiler_wl='-Wl,'
12649 lt_prog_compiler_pic='-fPIC'
12650 lt_prog_compiler_static='-static'
12651 ;;
12652 # Lahey Fortran 8.1.
12653 lf95*)
12654 lt_prog_compiler_wl='-Wl,'
12655 lt_prog_compiler_pic='--shared'
12656 lt_prog_compiler_static='--static'
12657 ;;
12658 nagfor*)
12659 # NAG Fortran compiler
12660 lt_prog_compiler_wl='-Wl,-Wl,,'
12661 lt_prog_compiler_pic='-PIC'
12662 lt_prog_compiler_static='-Bstatic'
12663 ;;
12664 tcc*)
12665 # Fabrice Bellard et al's Tiny C Compiler
12666 lt_prog_compiler_wl='-Wl,'
12667 lt_prog_compiler_pic='-fPIC'
12668 lt_prog_compiler_static='-static'
12669 ;;
12670 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12671 # Portland Group compilers (*not* the Pentium gcc compiler,
12672 # which looks to be a dead project)
12673 lt_prog_compiler_wl='-Wl,'
12674 lt_prog_compiler_pic='-fpic'
12675 lt_prog_compiler_static='-Bstatic'
12676 ;;
12677 ccc*)
12678 lt_prog_compiler_wl='-Wl,'
12679 # All Alpha code is PIC.
12680 lt_prog_compiler_static='-non_shared'
12681 ;;
12682 xl* | bgxl* | bgf* | mpixl*)
12683 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12684 lt_prog_compiler_wl='-Wl,'
12685 lt_prog_compiler_pic='-qpic'
12686 lt_prog_compiler_static='-qstaticlink'
12687 ;;
12688 *)
12689 case `$CC -V 2>&1 | $SED 5q` in
12690 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12691 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12692 lt_prog_compiler_pic='-KPIC'
12693 lt_prog_compiler_static='-Bstatic'
12694 lt_prog_compiler_wl=''
12695 ;;
12696 *Sun\ F* | *Sun*Fortran*)
12697 lt_prog_compiler_pic='-KPIC'
12698 lt_prog_compiler_static='-Bstatic'
12699 lt_prog_compiler_wl='-Qoption ld '
12700 ;;
12701 *Sun\ C*)
12702 # Sun C 5.9
12703 lt_prog_compiler_pic='-KPIC'
12704 lt_prog_compiler_static='-Bstatic'
12705 lt_prog_compiler_wl='-Wl,'
12706 ;;
12707 *Intel*\ [CF]*Compiler*)
12708 lt_prog_compiler_wl='-Wl,'
12709 lt_prog_compiler_pic='-fPIC'
12710 lt_prog_compiler_static='-static'
12711 ;;
12712 *Portland\ Group*)
12713 lt_prog_compiler_wl='-Wl,'
12714 lt_prog_compiler_pic='-fpic'
12715 lt_prog_compiler_static='-Bstatic'
12716 ;;
12717 esac
12718 ;;
12719 esac
12720 ;;
12721
12722 newsos6)
12723 lt_prog_compiler_pic='-KPIC'
12724 lt_prog_compiler_static='-Bstatic'
12725 ;;
12726
12727 *-mlibc)
12728 lt_prog_compiler_wl='-Wl,'
12729 lt_prog_compiler_pic='-fPIC'
12730 lt_prog_compiler_static='-static'
12731 ;;
12732
12733 *nto* | *qnx*)
12734 # QNX uses GNU C++, but need to define -shared option too, otherwise
12735 # it will coredump.
12736 lt_prog_compiler_pic='-fPIC -shared'
12737 ;;
12738
12739 osf3* | osf4* | osf5*)
12740 lt_prog_compiler_wl='-Wl,'
12741 # All OSF/1 code is PIC.
12742 lt_prog_compiler_static='-non_shared'
12743 ;;
12744
12745 rdos*)
12746 lt_prog_compiler_static='-non_shared'
12747 ;;
12748
12749 serenity*)
12750 ;;
12751
12752 solaris*)
12753 lt_prog_compiler_pic='-KPIC'
12754 lt_prog_compiler_static='-Bstatic'
12755 case $cc_basename in
12756 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12757 lt_prog_compiler_wl='-Qoption ld ';;
12758 *)
12759 lt_prog_compiler_wl='-Wl,';;
12760 esac
12761 ;;
12762
12763 sunos4*)
12764 lt_prog_compiler_wl='-Qoption ld '
12765 lt_prog_compiler_pic='-PIC'
12766 lt_prog_compiler_static='-Bstatic'
12767 ;;
12768
12769 sysv4 | sysv4.2uw2* | sysv4.3*)
12770 lt_prog_compiler_wl='-Wl,'
12771 lt_prog_compiler_pic='-KPIC'
12772 lt_prog_compiler_static='-Bstatic'
12773 ;;
12774
12775 sysv4*MP*)
12776 if test -d /usr/nec; then
12777 lt_prog_compiler_pic='-Kconform_pic'
12778 lt_prog_compiler_static='-Bstatic'
12779 fi
12780 ;;
12781
12782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12783 lt_prog_compiler_wl='-Wl,'
12784 lt_prog_compiler_pic='-KPIC'
12785 lt_prog_compiler_static='-Bstatic'
12786 ;;
12787
12788 unicos*)
12789 lt_prog_compiler_wl='-Wl,'
12790 lt_prog_compiler_can_build_shared=no
12791 ;;
12792
12793 uts4*)
12794 lt_prog_compiler_pic='-pic'
12795 lt_prog_compiler_static='-Bstatic'
12796 ;;
12797
12798 *)
12799 lt_prog_compiler_can_build_shared=no
12800 ;;
12801 esac
12802 fi
12803
12804 case $host_os in
12805 # For platforms that do not support PIC, -DPIC is meaningless:
12806 *djgpp*)
12807 lt_prog_compiler_pic=
12808 ;;
12809 *)
12810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12811 ;;
12812 esac
12813
12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12815 printf %s "checking for $compiler option to produce PIC... " >&6; }
12816 if test ${lt_cv_prog_compiler_pic+y}
12817 then :
12818 printf %s "(cached) " >&6
12819 else case e in #(
12820 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12821 esac
12822 fi
12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12824 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12825 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12826
12827 #
12828 # Check to make sure the PIC flag actually works.
12829 #
12830 if test -n "$lt_prog_compiler_pic"; then
12831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12832 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12833 if test ${lt_cv_prog_compiler_pic_works+y}
12834 then :
12835 printf %s "(cached) " >&6
12836 else case e in #(
12837 e) lt_cv_prog_compiler_pic_works=no
12838 ac_outfile=conftest.$ac_objext
12839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12840 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12841 # Insert the option either (1) after the last *FLAGS variable, or
12842 # (2) before a word containing "conftest.", or (3) at the end.
12843 # Note that $ac_compile itself does not contain backslashes and begins
12844 # with a dollar sign (not a hyphen), so the echo should work correctly.
12845 # The option is referenced via a variable to avoid confusing sed.
12846 lt_compile=`echo "$ac_compile" | $SED \
12847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12849 -e 's:$: $lt_compiler_flag:'`
12850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12851 (eval "$lt_compile" 2>conftest.err)
12852 ac_status=$?
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 if (exit $ac_status) && test -s "$ac_outfile"; then
12856 # The compiler can only warn and ignore the option if not recognized
12857 # So say no if there are warnings other than the usual output.
12858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12861 lt_cv_prog_compiler_pic_works=yes
12862 fi
12863 fi
12864 $RM conftest*
12865 ;;
12866 esac
12867 fi
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12869 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12870
12871 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12872 case $lt_prog_compiler_pic in
12873 "" | " "*) ;;
12874 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12875 esac
12876 else
12877 lt_prog_compiler_pic=
12878 lt_prog_compiler_can_build_shared=no
12879 fi
12880
12881 fi
12882
12883
12884
12885
12886
12887 #
12888 # Check to make sure the static flag actually works.
12889 #
12890 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12892 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12893 if test ${lt_cv_prog_compiler_static_works+y}
12894 then :
12895 printf %s "(cached) " >&6
12896 else case e in #(
12897 e) lt_cv_prog_compiler_static_works=no
12898 save_LDFLAGS=$LDFLAGS
12899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12900 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12902 # The linker can only warn and ignore the option if not recognized
12903 # So say no if there are warnings
12904 if test -s conftest.err; then
12905 # Append any errors to the config.log.
12906 cat conftest.err 1>&5
12907 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12909 if diff conftest.exp conftest.er2 >/dev/null; then
12910 lt_cv_prog_compiler_static_works=yes
12911 fi
12912 else
12913 lt_cv_prog_compiler_static_works=yes
12914 fi
12915 fi
12916 $RM -r conftest*
12917 LDFLAGS=$save_LDFLAGS
12918 ;;
12919 esac
12920 fi
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12922 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12923
12924 if test yes = "$lt_cv_prog_compiler_static_works"; then
12925 :
12926 else
12927 lt_prog_compiler_static=
12928 fi
12929
12930
12931
12932 ='-fPIC'
12933 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12934 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
12935 archive_cmds_need_lc=no
12936 no_undefined_flag=
12937 ;;
12938
12939 *)
12940 dynamic_linker=no
12941 ;;
12942 esac
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12944 printf "%s\n" "$dynamic_linker" >&6; }
12945 test no = "$dynamic_linker" && can_build_shared=no
12946
12947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12948 if test yes = "$GCC"; then
12949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12950 fi
12951
12952 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12953 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12954 fi
12955
12956 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12957 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12958 fi
12959
12960 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12961 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12962
12963 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12964 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12965
12966 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12967 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13066 printf %s "checking how to hardcode library paths into programs... " >&6; }
13067 hardcode_action=
13068 if test -n "$hardcode_libdir_flag_spec" ||
13069 test -n "$runpath_var" ||
13070 test yes = "$hardcode_automatic"; then
13071
13072 # We can hardcode non-existent directories.
13073 if test no != "$hardcode_direct" &&
13074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13075 # have to relink, otherwise we might link with an installed library
13076 # when we should be linking with a yet-to-be-installed one
13077 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13078 test no != "$hardcode_minus_L"; then
13079 # Linking always hardcodes the temporary library directory.
13080 hardcode_action=relink
13081 else
13082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13083 hardcode_action=immediate
13084 fi
13085 else
13086 # We cannot hardcode anything, or else we can only hardcode existing
13087 # directories.
13088 hardcode_action=unsupported
13089 fi
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13091 printf "%s\n" "$hardcode_action" >&6; }
13092
13093 if test relink = "$hardcode_action" ||
13094 test yes = "$inherit_rpath"; then
13095 # Fast installation is not supported
13096 enable_fast_install=no
13097 elif test yes = "$shlibpath_overrides_runpath" ||
13098 test no = "$enable_shared"; then
13099 # Fast installation is not necessary
13100 enable_fast_install=needless
13101 fi
13102
13103
13104
13105
13106
13107
13108 if test yes != "$enable_dlopen"; then
13109 enable_dlopen=unknown
13110 enable_dlopen_self=unknown
13111 enable_dlopen_self_static=unknown
13112 else
13113 lt_cv_dlopen=no
13114 lt_cv_dlopen_libs=
13115
13116 case $host_os in
13117 beos*)
13118 lt_cv_dlopen=load_add_on
13119 lt_cv_dlopen_libs=
13120 lt_cv_dlopen_self=yes
13121 ;;
13122
13123 mingw* | windows* | pw32* | cegcc*)
13124 lt_cv_dlopen=LoadLibrary
13125 lt_cv_dlopen_libs=
13126 ;;
13127
13128 cygwin*)
13129 lt_cv_dlopen=dlopen
13130 lt_cv_dlopen_libs=
13131 ;;
13132
13133 darwin*)
13134 # if libdl is installed we need to link against it
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13136 printf %s "checking for dlopen in -ldl... " >&6; }
13137 if test ${ac_cv_lib_dl_dlopen+y}
13138 then :
13139 printf %s "(cached) " >&6
13140 else case e in #(
13141 e) ac_check_lib_save_LIBS=$LIBS
13142 LIBS="-ldl $LIBS"
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply.
13149 The 'extern "C"' is for builds by C++ compilers;
13150 although this is not generally supported in C code supporting it here
13151 has little cost and some practical benefit (sr 110532). */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char dlopen (void);
13156 int
13157 main (void)
13158 {
13159 return dlopen ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 if ac_fn_c_try_link "$LINENO"
13165 then :
13166 ac_cv_lib_dl_dlopen=yes
13167 else case e in #(
13168 e) ac_cv_lib_dl_dlopen=no ;;
13169 esac
13170 fi
13171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13172 conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS ;;
13174 esac
13175 fi
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13177 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13178 if test "x$ac_cv_lib_dl_dlopen" = xyes
13179 then :
13180 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13181 else case e in #(
13182 e)
13183 lt_cv_dlopen=dyld
13184 lt_cv_dlopen_libs=
13185 lt_cv_dlopen_self=yes
13186 ;;
13187 esac
13188 fi
13189
13190 ;;
13191
13192 tpf*)
13193 # Don't try to run any link tests for TPF. We know it's impossible
13194 # because TPF is a cross-compiler, and we know how we open DSOs.
13195 lt_cv_dlopen=dlopen
13196 lt_cv_dlopen_libs=
13197 lt_cv_dlopen_self=no
13198 ;;
13199
13200 *)
13201 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13202 if test "x$ac_cv_func_shl_load" = xyes
13203 then :
13204 lt_cv_dlopen=shl_load
13205 else case e in #(
13206 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13207 printf %s "checking for shl_load in -ldld... " >&6; }
13208 if test ${ac_cv_lib_dld_shl_load+y}
13209 then :
13210 printf %s "(cached) " >&6
13211 else case e in #(
13212 e) ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-ldld $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply.
13220 The 'extern "C"' is for builds by C++ compilers;
13221 although this is not generally supported in C code supporting it here
13222 has little cost and some practical benefit (sr 110532). */
13223 #ifdef __cplusplus
13224 extern "C"
13225 #endif
13226 char shl_load (void);
13227 int
13228 main (void)
13229 {
13230 return shl_load ();
13231 ;
13232 return 0;
13233 }
13234 _ACEOF
13235 if ac_fn_c_try_link "$LINENO"
13236 then :
13237 ac_cv_lib_dld_shl_load=yes
13238 else case e in #(
13239 e) ac_cv_lib_dld_shl_load=no ;;
13240 esac
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS ;;
13245 esac
13246 fi
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13248 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13249 if test "x$ac_cv_lib_dld_shl_load" = xyes
13250 then :
13251 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13252 else case e in #(
13253 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13254 if test "x$ac_cv_func_dlopen" = xyes
13255 then :
13256 lt_cv_dlopen=dlopen
13257 else case e in #(
13258 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13259 printf %s "checking for dlopen in -ldl... " >&6; }
13260 if test ${ac_cv_lib_dl_dlopen+y}
13261 then :
13262 printf %s "(cached) " >&6
13263 else case e in #(
13264 e) ac_check_lib_save_LIBS=$LIBS
13265 LIBS="-ldl $LIBS"
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268
13269 /* Override any GCC internal prototype to avoid an error.
13270 Use char because int might match the return type of a GCC
13271 builtin and then its argument prototype would still apply.
13272 The 'extern "C"' is for builds by C++ compilers;
13273 although this is not generally supported in C code supporting it here
13274 has little cost and some practical benefit (sr 110532). */
13275 #ifdef __cplusplus
13276 extern "C"
13277 #endif
13278 char dlopen (void);
13279 int
13280 main (void)
13281 {
13282 return dlopen ();
13283 ;
13284 return 0;
13285 }
13286 _ACEOF
13287 if ac_fn_c_try_link "$LINENO"
13288 then :
13289 ac_cv_lib_dl_dlopen=yes
13290 else case e in #(
13291 e) ac_cv_lib_dl_dlopen=no ;;
13292 esac
13293 fi
13294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS ;;
13297 esac
13298 fi
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13300 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13301 if test "x$ac_cv_lib_dl_dlopen" = xyes
13302 then :
13303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13304 else case e in #(
13305 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13306 printf %s "checking for dlopen in -lsvld... " >&6; }
13307 if test ${ac_cv_lib_svld_dlopen+y}
13308 then :
13309 printf %s "(cached) " >&6
13310 else case e in #(
13311 e) ac_check_lib_save_LIBS=$LIBS
13312 LIBS="-lsvld $LIBS"
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply.
13319 The 'extern "C"' is for builds by C++ compilers;
13320 although this is not generally supported in C code supporting it here
13321 has little cost and some practical benefit (sr 110532). */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char dlopen (void);
13326 int
13327 main (void)
13328 {
13329 return dlopen ();
13330 ;
13331 return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"
13335 then :
13336 ac_cv_lib_svld_dlopen=yes
13337 else case e in #(
13338 e) ac_cv_lib_svld_dlopen=no ;;
13339 esac
13340 fi
13341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS ;;
13344 esac
13345 fi
13346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13347 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13348 if test "x$ac_cv_lib_svld_dlopen" = xyes
13349 then :
13350 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13351 else case e in #(
13352 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13353 printf %s "checking for dld_link in -ldld... " >&6; }
13354 if test ${ac_cv_lib_dld_dld_link+y}
13355 then :
13356 printf %s "(cached) " >&6
13357 else case e in #(
13358 e) ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-ldld $LIBS"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply.
13366 The 'extern "C"' is for builds by C++ compilers;
13367 although this is not generally supported in C code supporting it here
13368 has little cost and some practical benefit (sr 110532). */
13369 #ifdef __cplusplus
13370 extern "C"
13371 #endif
13372 char dld_link (void);
13373 int
13374 main (void)
13375 {
13376 return dld_link ();
13377 ;
13378 return 0;
13379 }
13380 _ACEOF
13381 if ac_fn_c_try_link "$LINENO"
13382 then :
13383 ac_cv_lib_dld_dld_link=yes
13384 else case e in #(
13385 e) ac_cv_lib_dld_dld_link=no ;;
13386 esac
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13389 conftest$ac_exeext conftest.$ac_ext
13390 LIBS=$ac_check_lib_save_LIBS ;;
13391 esac
13392 fi
13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13394 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13395 if test "x$ac_cv_lib_dld_dld_link" = xyes
13396 then :
13397 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13398 fi
13399
13400 ;;
13401 esac
13402 fi
13403
13404 ;;
13405 esac
13406 fi
13407
13408 ;;
13409 esac
13410 fi
13411
13412 ;;
13413 esac
13414 fi
13415
13416 ;;
13417 esac
13418 fi
13419
13420 ;;
13421 esac
13422
13423 if test no = "$lt_cv_dlopen"; then
13424 enable_dlopen=no
13425 else
13426 enable_dlopen=yes
13427 fi
13428
13429 case $lt_cv_dlopen in
13430 dlopen)
13431 save_CPPFLAGS=$CPPFLAGS
13432 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13433
13434 save_LDFLAGS=$LDFLAGS
13435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13436
13437 save_LIBS=$LIBS
13438 LIBS="$lt_cv_dlopen_libs $LIBS"
13439
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13441 printf %s "checking whether a program can dlopen itself... " >&6; }
13442 if test ${lt_cv_dlopen_self+y}
13443 then :
13444 printf %s "(cached) " >&6
13445 else case e in #(
13446 e) if test yes = "$cross_compiling"; then :
13447 lt_cv_dlopen_self=cross
13448 else
13449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13450 lt_status=$lt_dlunknown
13451 cat > conftest.$ac_ext <<_LT_EOF
13452 #line $LINENO "configure"
13453 #include "confdefs.h"
13454
13455 #if HAVE_DLFCN_H
13456 #include <dlfcn.h>
13457 #endif
13458
13459 #include <stdio.h>
13460
13461 #ifdef RTLD_GLOBAL
13462 # define LT_DLGLOBAL RTLD_GLOBAL
13463 #else
13464 # ifdef DL_GLOBAL
13465 # define LT_DLGLOBAL DL_GLOBAL
13466 # else
13467 # define LT_DLGLOBAL 0
13468 # endif
13469 #endif
13470
13471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13472 find out it does not work in some platform. */
13473 #ifndef LT_DLLAZY_OR_NOW
13474 # ifdef RTLD_LAZY
13475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13476 # else
13477 # ifdef DL_LAZY
13478 # define LT_DLLAZY_OR_NOW DL_LAZY
13479 # else
13480 # ifdef RTLD_NOW
13481 # define LT_DLLAZY_OR_NOW RTLD_NOW
13482 # else
13483 # ifdef DL_NOW
13484 # define LT_DLLAZY_OR_NOW DL_NOW
13485 # else
13486 # define LT_DLLAZY_OR_NOW 0
13487 # endif
13488 # endif
13489 # endif
13490 # endif
13491 #endif
13492
13493 /* When -fvisibility=hidden is used, assume the code has been annotated
13494 correspondingly for the symbols needed. */
13495 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13496 int fnord (void) __attribute__((visibility("default")));
13497 #endif
13498
13499 int fnord (void) { return 42; }
13500 int main (void)
13501 {
13502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13503 int status = $lt_dlunknown;
13504
13505 if (self)
13506 {
13507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13508 else
13509 {
13510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13511 else puts (dlerror ());
13512 }
13513 /* dlclose (self); */
13514 }
13515 else
13516 puts (dlerror ());
13517
13518 return status;
13519 }
13520 _LT_EOF
13521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13522 (eval $ac_link) 2>&5
13523 ac_status=$?
13524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13526 (./conftest; exit; ) >&5 2>/dev/null
13527 lt_status=$?
13528 case x$lt_status in
13529 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13530 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13531 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13532 esac
13533 else :
13534 # compilation failed
13535 lt_cv_dlopen_self=no
13536 fi
13537 fi
13538 rm -fr conftest*
13539
13540 ;;
13541 esac
13542 fi
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13544 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13545
13546 if test yes = "$lt_cv_dlopen_self"; then
13547 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13549 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13550 if test ${lt_cv_dlopen_self_static+y}
13551 then :
13552 printf %s "(cached) " >&6
13553 else case e in #(
13554 e) if test yes = "$cross_compiling"; then :
13555 lt_cv_dlopen_self_static=cross
13556 else
13557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13558 lt_status=$lt_dlunknown
13559 cat > conftest.$ac_ext <<_LT_EOF
13560 #line $LINENO "configure"
13561 #include "confdefs.h"
13562
13563 #if HAVE_DLFCN_H
13564 #include <dlfcn.h>
13565 #endif
13566
13567 #include <stdio.h>
13568
13569 #ifdef RTLD_GLOBAL
13570 # define LT_DLGLOBAL RTLD_GLOBAL
13571 #else
13572 # ifdef DL_GLOBAL
13573 # define LT_DLGLOBAL DL_GLOBAL
13574 # else
13575 # define LT_DLGLOBAL 0
13576 # endif
13577 #endif
13578
13579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13580 find out it does not work in some platform. */
13581 #ifndef LT_DLLAZY_OR_NOW
13582 # ifdef RTLD_LAZY
13583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13584 # else
13585 # ifdef DL_LAZY
13586 # define LT_DLLAZY_OR_NOW DL_LAZY
13587 # else
13588 # ifdef RTLD_NOW
13589 # define LT_DLLAZY_OR_NOW RTLD_NOW
13590 # else
13591 # ifdef DL_NOW
13592 # define LT_DLLAZY_OR_NOW DL_NOW
13593 # else
13594 # define LT_DLLAZY_OR_NOW 0
13595 # endif
13596 # endif
13597 # endif
13598 # endif
13599 #endif
13600
13601 /* When -fvisibility=hidden is used, assume the code has been annotated
13602 correspondingly for the symbols needed. */
13603 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13604 int fnord (void) __attribute__((visibility("default")));
13605 #endif
13606
13607 int fnord (void) { return 42; }
13608 int main (void)
13609 {
13610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13611 int status = $lt_dlunknown;
13612
13613 if (self)
13614 {
13615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13616 else
13617 {
13618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13619 else puts (dlerror ());
13620 }
13621 /* dlclose (self); */
13622 }
13623 else
13624 puts (dlerror ());
13625
13626 return status;
13627 }
13628 _LT_EOF
13629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13630 (eval $ac_link) 2>&5
13631 ac_status=$?
13632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13633 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13634 (./conftest; exit; ) >&5 2>/dev/null
13635 lt_status=$?
13636 case x$lt_status in
13637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13639 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13640 esac
13641 else :
13642 # compilation failed
13643 lt_cv_dlopen_self_static=no
13644 fi
13645 fi
13646 rm -fr conftest*
13647
13648 ;;
13649 esac
13650 fi
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13652 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13653 fi
13654
13655 CPPFLAGS=$save_CPPFLAGS
13656 LDFLAGS=$save_LDFLAGS
13657 LIBS=$save_LIBS
13658 ;;
13659 esac
13660
13661 case $lt_cv_dlopen_self in
13662 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13663 *) enable_dlopen_self=unknown ;;
13664 esac
13665
13666 case $lt_cv_dlopen_self_static in
13667 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13668 *) enable_dlopen_self_static=unknown ;;
13669 esac
13670 fi
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688 striplib=
13689 old_striplib=
13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13691 printf %s "checking whether stripping libraries is possible... " >&6; }
13692 if test -z "$STRIP"; then
13693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13694 printf "%s\n" "no" >&6; }
13695 else
13696 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13697 old_striplib="$STRIP --strip-debug"
13698 striplib="$STRIP --strip-unneeded"
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13700 printf "%s\n" "yes" >&6; }
13701 else
13702 case $host_os in
13703 darwin*)
13704 # FIXME - insert some real tests, host_os isn't really good enough
13705 striplib="$STRIP -x"
13706 old_striplib="$STRIP -S"
13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13708 printf "%s\n" "yes" >&6; }
13709 ;;
13710 freebsd*)
13711 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13712 old_striplib="$STRIP --strip-debug"
13713 striplib="$STRIP --strip-unneeded"
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13715 printf "%s\n" "yes" >&6; }
13716 else
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 printf "%s\n" "no" >&6; }
13719 fi
13720 ;;
13721 *)
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723 printf "%s\n" "no" >&6; }
13724 ;;
13725 esac
13726 fi
13727 fi
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740 # Report what library types will actually be built
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13742 printf %s "checking if libtool supports shared libraries... " >&6; }
13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13744 printf "%s\n" "$can_build_shared" >&6; }
13745
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13747 printf %s "checking whether to build shared libraries... " >&6; }
13748 test no = "$can_build_shared" && enable_shared=no
13749
13750 # On AIX, shared libraries and static libraries use the same namespace, and
13751 # are all built from PIC.
13752 case $host_os in
13753 aix3*)
13754 test yes = "$enable_shared" && enable_static=no
13755 if test -n "$RANLIB"; then
13756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13757 postinstall_cmds='$RANLIB $lib'
13758 fi
13759 ;;
13760
13761 aix[4-9]*)
13762 if test ia64 != "$host_cpu"; then
13763 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13764 yes,aix,yes) ;; # shared object as lib.so file only
13765 yes,svr4,*) ;; # shared object as lib.so archive member only
13766 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13767 esac
13768 fi
13769 ;;
13770 esac
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13772 printf "%s\n" "$enable_shared" >&6; }
13773
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13775 printf %s "checking whether to build static libraries... " >&6; }
13776 # Make sure either enable_shared or enable_static is yes.
13777 test yes = "$enable_shared" || enable_static=yes
13778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13779 printf "%s\n" "$enable_static" >&6; }
13780
13781
13782
13783
13784 fi
13785 ac_ext=c
13786 ac_cpp='$CPP $CPPFLAGS'
13787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13790
13791 CC=$lt_save_CC
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807 ac_config_commands="$ac_config_commands libtool"
13808
13809
13810
13811
13812 # Only expand once:
13813
13814
13815
13816 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13829 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13830 if test ${ac_cv_c_undeclared_builtin_options+y}
13831 then :
13832 printf %s "(cached) " >&6
13833 else case e in #(
13834 e) ac_save_CFLAGS=$CFLAGS
13835 ac_cv_c_undeclared_builtin_options='cannot detect'
13836 for ac_arg in '' -fno-builtin; do
13837 CFLAGS="$ac_save_CFLAGS $ac_arg"
13838 # This test program should *not* compile successfully.
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13841
13842 int
13843 main (void)
13844 {
13845 (void) strchr;
13846 ;
13847 return 0;
13848 }
13849 _ACEOF
13850 if ac_fn_c_try_compile "$LINENO"
13851 then :
13852
13853 else case e in #(
13854 e) # This test program should compile successfully.
13855 # No library function is consistently available on
13856 # freestanding implementations, so test against a dummy
13857 # declaration. Include always-available headers on the
13858 # off chance that they somehow elicit warnings.
13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h. */
13861 #include <float.h>
13862 #include <limits.h>
13863 #include <stdarg.h>
13864 #include <stddef.h>
13865 extern void ac_decl (int, char *);
13866
13867 int
13868 main (void)
13869 {
13870 (void) ac_decl (0, (char *) 0);
13871 (void) ac_decl;
13872
13873 ;
13874 return 0;
13875 }
13876 _ACEOF
13877 if ac_fn_c_try_compile "$LINENO"
13878 then :
13879 if test x"$ac_arg" = x
13880 then :
13881 ac_cv_c_undeclared_builtin_options='none needed'
13882 else case e in #(
13883 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13884 esac
13885 fi
13886 break
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13889 esac
13890 fi
13891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13892 done
13893 CFLAGS=$ac_save_CFLAGS
13894 ;;
13895 esac
13896 fi
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13898 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13899 case $ac_cv_c_undeclared_builtin_options in #(
13900 'cannot detect') :
13901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13902 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13903 as_fn_error $? "cannot make $CC report undeclared builtins
13904 See 'config.log' for more details" "$LINENO" 5; } ;; #(
13905 'none needed') :
13906 ac_c_undeclared_builtin_options='' ;; #(
13907 *) :
13908 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13909 esac
13910
13911
13912
13913
13914
13915 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13916 if test "x$ac_cv_have_decl___clang__" = xyes
13917 then :
13918 CLANGCC="yes"
13919 else case e in #(
13920 e) CLANGCC="no" ;;
13921 esac
13922 fi
13923 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13924 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13925 then :
13926 INTELCC="yes"
13927 else case e in #(
13928 e) INTELCC="no" ;;
13929 esac
13930 fi
13931 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13932 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13933 then :
13934 SUNCC="yes"
13935 else case e in #(
13936 e) SUNCC="no" ;;
13937 esac
13938 fi
13939
13940
13941
13942
13943
13944
13945
13946
13947 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13948 if test -n "$ac_tool_prefix"; then
13949 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13950 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 printf %s "checking for $ac_word... " >&6; }
13953 if test ${ac_cv_path_PKG_CONFIG+y}
13954 then :
13955 printf %s "(cached) " >&6
13956 else case e in #(
13957 e) case $PKG_CONFIG in
13958 [\\/]* | ?:[\\/]*)
13959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13960 ;;
13961 *)
13962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963 for as_dir in $PATH
13964 do
13965 IFS=$as_save_IFS
13966 case $as_dir in #(((
13967 '') as_dir=./ ;;
13968 */) ;;
13969 *) as_dir=$as_dir/ ;;
13970 esac
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13973 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13975 break 2
13976 fi
13977 done
13978 done
13979 IFS=$as_save_IFS
13980
13981 ;;
13982 esac ;;
13983 esac
13984 fi
13985 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13986 if test -n "$PKG_CONFIG"; then
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13988 printf "%s\n" "$PKG_CONFIG" >&6; }
13989 else
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13991 printf "%s\n" "no" >&6; }
13992 fi
13993
13994
13995 fi
13996 if test -z "$ac_cv_path_PKG_CONFIG"; then
13997 ac_pt_PKG_CONFIG=$PKG_CONFIG
13998 # Extract the first word of "pkg-config", so it can be a program name with args.
13999 set dummy pkg-config; ac_word=$2
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14001 printf %s "checking for $ac_word... " >&6; }
14002 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14003 then :
14004 printf %s "(cached) " >&6
14005 else case e in #(
14006 e) case $ac_pt_PKG_CONFIG in
14007 [\\/]* | ?:[\\/]*)
14008 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14009 ;;
14010 *)
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014 IFS=$as_save_IFS
14015 case $as_dir in #(((
14016 '') as_dir=./ ;;
14017 */) ;;
14018 *) as_dir=$as_dir/ ;;
14019 esac
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14022 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14024 break 2
14025 fi
14026 done
14027 done
14028 IFS=$as_save_IFS
14029
14030 ;;
14031 esac ;;
14032 esac
14033 fi
14034 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14035 if test -n "$ac_pt_PKG_CONFIG"; then
14036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14037 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14038 else
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040 printf "%s\n" "no" >&6; }
14041 fi
14042
14043 if test "x$ac_pt_PKG_CONFIG" = x; then
14044 PKG_CONFIG=""
14045 else
14046 case $cross_compiling:$ac_tool_warned in
14047 yes:)
14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14050 ac_tool_warned=yes ;;
14051 esac
14052 PKG_CONFIG=$ac_pt_PKG_CONFIG
14053 fi
14054 else
14055 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14056 fi
14057
14058 fi
14059 if test -n "$PKG_CONFIG"; then
14060 _pkg_min_version=0.9.0
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14062 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14063 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14065 printf "%s\n" "yes" >&6; }
14066 else
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 printf "%s\n" "no" >&6; }
14069 PKG_CONFIG=""
14070 fi
14071 fi
14072
14073
14074
14075
14076
14077 # Check whether --enable-selective-werror was given.
14078 if test ${enable_selective_werror+y}
14079 then :
14080 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14081 else case e in #(
14082 e) SELECTIVE_WERROR=yes ;;
14083 esac
14084 fi
14085
14086
14087
14088
14089
14090 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14091 if test "x$SUNCC" = "xyes"; then
14092 BASE_CFLAGS="-v"
14093 else
14094 BASE_CFLAGS=""
14095 fi
14096
14097 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111 xorg_testset_save_CFLAGS="$CFLAGS"
14112
14113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14116 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14117 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14118 then :
14119 printf %s "(cached) " >&6
14120 else case e in #(
14121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 int i;
14124 _ACEOF
14125 if ac_fn_c_try_compile "$LINENO"
14126 then :
14127 xorg_cv_cc_flag_unknown_warning_option=yes
14128 else case e in #(
14129 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14130 esac
14131 fi
14132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14133 esac
14134 fi
14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14136 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14138 CFLAGS="$xorg_testset_save_CFLAGS"
14139 fi
14140
14141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14144 fi
14145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14147 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14148 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14149 then :
14150 printf %s "(cached) " >&6
14151 else case e in #(
14152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 int i;
14155 _ACEOF
14156 if ac_fn_c_try_compile "$LINENO"
14157 then :
14158 xorg_cv_cc_flag_unused_command_line_argument=yes
14159 else case e in #(
14160 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14161 esac
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14164 esac
14165 fi
14166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14167 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14169 CFLAGS="$xorg_testset_save_CFLAGS"
14170 fi
14171
14172 found="no"
14173
14174 if test $found = "no" ; then
14175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177 fi
14178
14179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14181 fi
14182
14183 CFLAGS="$CFLAGS -Wall"
14184
14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14186 printf %s "checking if $CC supports -Wall... " >&6; }
14187 cacheid=xorg_cv_cc_flag__Wall
14188 if eval test \${$cacheid+y}
14189 then :
14190 printf %s "(cached) " >&6
14191 else case e in #(
14192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 int i;
14195 int
14196 main (void)
14197 {
14198
14199 ;
14200 return 0;
14201 }
14202 _ACEOF
14203 if ac_fn_c_try_link "$LINENO"
14204 then :
14205 eval $cacheid=yes
14206 else case e in #(
14207 e) eval $cacheid=no ;;
14208 esac
14209 fi
14210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14211 conftest$ac_exeext conftest.$ac_ext ;;
14212 esac
14213 fi
14214
14215
14216 CFLAGS="$xorg_testset_save_CFLAGS"
14217
14218 eval supported=\$$cacheid
14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14220 printf "%s\n" "$supported" >&6; }
14221 if test "$supported" = "yes" ; then
14222 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14223 found="yes"
14224 fi
14225 fi
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241 xorg_testset_save_CFLAGS="$CFLAGS"
14242
14243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14247 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14248 then :
14249 printf %s "(cached) " >&6
14250 else case e in #(
14251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 int i;
14254 _ACEOF
14255 if ac_fn_c_try_compile "$LINENO"
14256 then :
14257 xorg_cv_cc_flag_unknown_warning_option=yes
14258 else case e in #(
14259 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14260 esac
14261 fi
14262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14263 esac
14264 fi
14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14266 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14268 CFLAGS="$xorg_testset_save_CFLAGS"
14269 fi
14270
14271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274 fi
14275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14277 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14278 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14279 then :
14280 printf %s "(cached) " >&6
14281 else case e in #(
14282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 int i;
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"
14287 then :
14288 xorg_cv_cc_flag_unused_command_line_argument=yes
14289 else case e in #(
14290 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14291 esac
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14294 esac
14295 fi
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14297 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14299 CFLAGS="$xorg_testset_save_CFLAGS"
14300 fi
14301
14302 found="no"
14303
14304 if test $found = "no" ; then
14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307 fi
14308
14309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311 fi
14312
14313 CFLAGS="$CFLAGS -Wpointer-arith"
14314
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14316 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14317 cacheid=xorg_cv_cc_flag__Wpointer_arith
14318 if eval test \${$cacheid+y}
14319 then :
14320 printf %s "(cached) " >&6
14321 else case e in #(
14322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 int i;
14325 int
14326 main (void)
14327 {
14328
14329 ;
14330 return 0;
14331 }
14332 _ACEOF
14333 if ac_fn_c_try_link "$LINENO"
14334 then :
14335 eval $cacheid=yes
14336 else case e in #(
14337 e) eval $cacheid=no ;;
14338 esac
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14341 conftest$ac_exeext conftest.$ac_ext ;;
14342 esac
14343 fi
14344
14345
14346 CFLAGS="$xorg_testset_save_CFLAGS"
14347
14348 eval supported=\$$cacheid
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14350 printf "%s\n" "$supported" >&6; }
14351 if test "$supported" = "yes" ; then
14352 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14353 found="yes"
14354 fi
14355 fi
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371 xorg_testset_save_CFLAGS="$CFLAGS"
14372
14373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14376 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14377 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14378 then :
14379 printf %s "(cached) " >&6
14380 else case e in #(
14381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 int i;
14384 _ACEOF
14385 if ac_fn_c_try_compile "$LINENO"
14386 then :
14387 xorg_cv_cc_flag_unknown_warning_option=yes
14388 else case e in #(
14389 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14390 esac
14391 fi
14392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14393 esac
14394 fi
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14396 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14398 CFLAGS="$xorg_testset_save_CFLAGS"
14399 fi
14400
14401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404 fi
14405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14407 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14408 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14409 then :
14410 printf %s "(cached) " >&6
14411 else case e in #(
14412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 int i;
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"
14417 then :
14418 xorg_cv_cc_flag_unused_command_line_argument=yes
14419 else case e in #(
14420 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14421 esac
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14424 esac
14425 fi
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14430 fi
14431
14432 found="no"
14433
14434 if test $found = "no" ; then
14435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 fi
14438
14439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441 fi
14442
14443 CFLAGS="$CFLAGS -Wmissing-declarations"
14444
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14446 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14447 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14448 if eval test \${$cacheid+y}
14449 then :
14450 printf %s "(cached) " >&6
14451 else case e in #(
14452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 int i;
14455 int
14456 main (void)
14457 {
14458
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_link "$LINENO"
14464 then :
14465 eval $cacheid=yes
14466 else case e in #(
14467 e) eval $cacheid=no ;;
14468 esac
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471 conftest$ac_exeext conftest.$ac_ext ;;
14472 esac
14473 fi
14474
14475
14476 CFLAGS="$xorg_testset_save_CFLAGS"
14477
14478 eval supported=\$$cacheid
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14480 printf "%s\n" "$supported" >&6; }
14481 if test "$supported" = "yes" ; then
14482 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14483 found="yes"
14484 fi
14485 fi
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501 xorg_testset_save_CFLAGS="$CFLAGS"
14502
14503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14508 then :
14509 printf %s "(cached) " >&6
14510 else case e in #(
14511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 int i;
14514 _ACEOF
14515 if ac_fn_c_try_compile "$LINENO"
14516 then :
14517 xorg_cv_cc_flag_unknown_warning_option=yes
14518 else case e in #(
14519 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14520 esac
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14523 esac
14524 fi
14525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14526 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14528 CFLAGS="$xorg_testset_save_CFLAGS"
14529 fi
14530
14531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534 fi
14535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14537 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14538 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14539 then :
14540 printf %s "(cached) " >&6
14541 else case e in #(
14542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 int i;
14545 _ACEOF
14546 if ac_fn_c_try_compile "$LINENO"
14547 then :
14548 xorg_cv_cc_flag_unused_command_line_argument=yes
14549 else case e in #(
14550 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14551 esac
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14554 esac
14555 fi
14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14557 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14559 CFLAGS="$xorg_testset_save_CFLAGS"
14560 fi
14561
14562 found="no"
14563
14564 if test $found = "no" ; then
14565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14567 fi
14568
14569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14571 fi
14572
14573 CFLAGS="$CFLAGS -Wformat=2"
14574
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14576 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14577 cacheid=xorg_cv_cc_flag__Wformat_2
14578 if eval test \${$cacheid+y}
14579 then :
14580 printf %s "(cached) " >&6
14581 else case e in #(
14582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 int i;
14585 int
14586 main (void)
14587 {
14588
14589 ;
14590 return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_link "$LINENO"
14594 then :
14595 eval $cacheid=yes
14596 else case e in #(
14597 e) eval $cacheid=no ;;
14598 esac
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14601 conftest$ac_exeext conftest.$ac_ext ;;
14602 esac
14603 fi
14604
14605
14606 CFLAGS="$xorg_testset_save_CFLAGS"
14607
14608 eval supported=\$$cacheid
14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14610 printf "%s\n" "$supported" >&6; }
14611 if test "$supported" = "yes" ; then
14612 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14613 found="yes"
14614 fi
14615 fi
14616
14617 if test $found = "no" ; then
14618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14620 fi
14621
14622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14624 fi
14625
14626 CFLAGS="$CFLAGS -Wformat"
14627
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14629 printf %s "checking if $CC supports -Wformat... " >&6; }
14630 cacheid=xorg_cv_cc_flag__Wformat
14631 if eval test \${$cacheid+y}
14632 then :
14633 printf %s "(cached) " >&6
14634 else case e in #(
14635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637 int i;
14638 int
14639 main (void)
14640 {
14641
14642 ;
14643 return 0;
14644 }
14645 _ACEOF
14646 if ac_fn_c_try_link "$LINENO"
14647 then :
14648 eval $cacheid=yes
14649 else case e in #(
14650 e) eval $cacheid=no ;;
14651 esac
14652 fi
14653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14654 conftest$ac_exeext conftest.$ac_ext ;;
14655 esac
14656 fi
14657
14658
14659 CFLAGS="$xorg_testset_save_CFLAGS"
14660
14661 eval supported=\$$cacheid
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14663 printf "%s\n" "$supported" >&6; }
14664 if test "$supported" = "yes" ; then
14665 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14666 found="yes"
14667 fi
14668 fi
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686 xorg_testset_save_CFLAGS="$CFLAGS"
14687
14688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14691 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14692 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14693 then :
14694 printf %s "(cached) " >&6
14695 else case e in #(
14696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14698 int i;
14699 _ACEOF
14700 if ac_fn_c_try_compile "$LINENO"
14701 then :
14702 xorg_cv_cc_flag_unknown_warning_option=yes
14703 else case e in #(
14704 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14705 esac
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14708 esac
14709 fi
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14713 CFLAGS="$xorg_testset_save_CFLAGS"
14714 fi
14715
14716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719 fi
14720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14724 then :
14725 printf %s "(cached) " >&6
14726 else case e in #(
14727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 int i;
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"
14732 then :
14733 xorg_cv_cc_flag_unused_command_line_argument=yes
14734 else case e in #(
14735 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14736 esac
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14739 esac
14740 fi
14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14742 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14744 CFLAGS="$xorg_testset_save_CFLAGS"
14745 fi
14746
14747 found="no"
14748
14749 if test $found = "no" ; then
14750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14752 fi
14753
14754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14756 fi
14757
14758 CFLAGS="$CFLAGS -Wstrict-prototypes"
14759
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14761 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14762 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14763 if eval test \${$cacheid+y}
14764 then :
14765 printf %s "(cached) " >&6
14766 else case e in #(
14767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768 /* end confdefs.h. */
14769 int i;
14770 int
14771 main (void)
14772 {
14773
14774 ;
14775 return 0;
14776 }
14777 _ACEOF
14778 if ac_fn_c_try_link "$LINENO"
14779 then :
14780 eval $cacheid=yes
14781 else case e in #(
14782 e) eval $cacheid=no ;;
14783 esac
14784 fi
14785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14786 conftest$ac_exeext conftest.$ac_ext ;;
14787 esac
14788 fi
14789
14790
14791 CFLAGS="$xorg_testset_save_CFLAGS"
14792
14793 eval supported=\$$cacheid
14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14795 printf "%s\n" "$supported" >&6; }
14796 if test "$supported" = "yes" ; then
14797 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14798 found="yes"
14799 fi
14800 fi
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816 xorg_testset_save_CFLAGS="$CFLAGS"
14817
14818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14823 then :
14824 printf %s "(cached) " >&6
14825 else case e in #(
14826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 int i;
14829 _ACEOF
14830 if ac_fn_c_try_compile "$LINENO"
14831 then :
14832 xorg_cv_cc_flag_unknown_warning_option=yes
14833 else case e in #(
14834 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14835 esac
14836 fi
14837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14838 esac
14839 fi
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14843 CFLAGS="$xorg_testset_save_CFLAGS"
14844 fi
14845
14846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14849 fi
14850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14854 then :
14855 printf %s "(cached) " >&6
14856 else case e in #(
14857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 int i;
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"
14862 then :
14863 xorg_cv_cc_flag_unused_command_line_argument=yes
14864 else case e in #(
14865 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14866 esac
14867 fi
14868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14869 esac
14870 fi
14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14874 CFLAGS="$xorg_testset_save_CFLAGS"
14875 fi
14876
14877 found="no"
14878
14879 if test $found = "no" ; then
14880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14882 fi
14883
14884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14886 fi
14887
14888 CFLAGS="$CFLAGS -Wmissing-prototypes"
14889
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14891 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14892 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14893 if eval test \${$cacheid+y}
14894 then :
14895 printf %s "(cached) " >&6
14896 else case e in #(
14897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 int i;
14900 int
14901 main (void)
14902 {
14903
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"
14909 then :
14910 eval $cacheid=yes
14911 else case e in #(
14912 e) eval $cacheid=no ;;
14913 esac
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14916 conftest$ac_exeext conftest.$ac_ext ;;
14917 esac
14918 fi
14919
14920
14921 CFLAGS="$xorg_testset_save_CFLAGS"
14922
14923 eval supported=\$$cacheid
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14925 printf "%s\n" "$supported" >&6; }
14926 if test "$supported" = "yes" ; then
14927 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14928 found="yes"
14929 fi
14930 fi
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946 xorg_testset_save_CFLAGS="$CFLAGS"
14947
14948 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14951 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14952 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14953 then :
14954 printf %s "(cached) " >&6
14955 else case e in #(
14956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 int i;
14959 _ACEOF
14960 if ac_fn_c_try_compile "$LINENO"
14961 then :
14962 xorg_cv_cc_flag_unknown_warning_option=yes
14963 else case e in #(
14964 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14965 esac
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14968 esac
14969 fi
14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14973 CFLAGS="$xorg_testset_save_CFLAGS"
14974 fi
14975
14976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14979 fi
14980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14984 then :
14985 printf %s "(cached) " >&6
14986 else case e in #(
14987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989 int i;
14990 _ACEOF
14991 if ac_fn_c_try_compile "$LINENO"
14992 then :
14993 xorg_cv_cc_flag_unused_command_line_argument=yes
14994 else case e in #(
14995 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14996 esac
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14999 esac
15000 fi
15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15002 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15004 CFLAGS="$xorg_testset_save_CFLAGS"
15005 fi
15006
15007 found="no"
15008
15009 if test $found = "no" ; then
15010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15012 fi
15013
15014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15016 fi
15017
15018 CFLAGS="$CFLAGS -Wnested-externs"
15019
15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15021 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15022 cacheid=xorg_cv_cc_flag__Wnested_externs
15023 if eval test \${$cacheid+y}
15024 then :
15025 printf %s "(cached) " >&6
15026 else case e in #(
15027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 int i;
15030 int
15031 main (void)
15032 {
15033
15034 ;
15035 return 0;
15036 }
15037 _ACEOF
15038 if ac_fn_c_try_link "$LINENO"
15039 then :
15040 eval $cacheid=yes
15041 else case e in #(
15042 e) eval $cacheid=no ;;
15043 esac
15044 fi
15045 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15046 conftest$ac_exeext conftest.$ac_ext ;;
15047 esac
15048 fi
15049
15050
15051 CFLAGS="$xorg_testset_save_CFLAGS"
15052
15053 eval supported=\$$cacheid
15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15055 printf "%s\n" "$supported" >&6; }
15056 if test "$supported" = "yes" ; then
15057 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15058 found="yes"
15059 fi
15060 fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076 xorg_testset_save_CFLAGS="$CFLAGS"
15077
15078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15081 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15082 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15083 then :
15084 printf %s "(cached) " >&6
15085 else case e in #(
15086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088 int i;
15089 _ACEOF
15090 if ac_fn_c_try_compile "$LINENO"
15091 then :
15092 xorg_cv_cc_flag_unknown_warning_option=yes
15093 else case e in #(
15094 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15095 esac
15096 fi
15097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15098 esac
15099 fi
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15101 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15103 CFLAGS="$xorg_testset_save_CFLAGS"
15104 fi
15105
15106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15109 fi
15110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15112 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15113 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15114 then :
15115 printf %s "(cached) " >&6
15116 else case e in #(
15117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 int i;
15120 _ACEOF
15121 if ac_fn_c_try_compile "$LINENO"
15122 then :
15123 xorg_cv_cc_flag_unused_command_line_argument=yes
15124 else case e in #(
15125 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15126 esac
15127 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15129 esac
15130 fi
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15132 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 found="no"
15138
15139 if test $found = "no" ; then
15140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142 fi
15143
15144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146 fi
15147
15148 CFLAGS="$CFLAGS -Wbad-function-cast"
15149
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15151 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15152 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15153 if eval test \${$cacheid+y}
15154 then :
15155 printf %s "(cached) " >&6
15156 else case e in #(
15157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 int i;
15160 int
15161 main (void)
15162 {
15163
15164 ;
15165 return 0;
15166 }
15167 _ACEOF
15168 if ac_fn_c_try_link "$LINENO"
15169 then :
15170 eval $cacheid=yes
15171 else case e in #(
15172 e) eval $cacheid=no ;;
15173 esac
15174 fi
15175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15176 conftest$ac_exeext conftest.$ac_ext ;;
15177 esac
15178 fi
15179
15180
15181 CFLAGS="$xorg_testset_save_CFLAGS"
15182
15183 eval supported=\$$cacheid
15184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15185 printf "%s\n" "$supported" >&6; }
15186 if test "$supported" = "yes" ; then
15187 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15188 found="yes"
15189 fi
15190 fi
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206 xorg_testset_save_CFLAGS="$CFLAGS"
15207
15208 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15211 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15212 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15213 then :
15214 printf %s "(cached) " >&6
15215 else case e in #(
15216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h. */
15218 int i;
15219 _ACEOF
15220 if ac_fn_c_try_compile "$LINENO"
15221 then :
15222 xorg_cv_cc_flag_unknown_warning_option=yes
15223 else case e in #(
15224 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15225 esac
15226 fi
15227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15228 esac
15229 fi
15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15233 CFLAGS="$xorg_testset_save_CFLAGS"
15234 fi
15235
15236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15239 fi
15240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15244 then :
15245 printf %s "(cached) " >&6
15246 else case e in #(
15247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249 int i;
15250 _ACEOF
15251 if ac_fn_c_try_compile "$LINENO"
15252 then :
15253 xorg_cv_cc_flag_unused_command_line_argument=yes
15254 else case e in #(
15255 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15256 esac
15257 fi
15258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15259 esac
15260 fi
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15264 CFLAGS="$xorg_testset_save_CFLAGS"
15265 fi
15266
15267 found="no"
15268
15269 if test $found = "no" ; then
15270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15272 fi
15273
15274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15276 fi
15277
15278 CFLAGS="$CFLAGS -Wold-style-definition"
15279
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15281 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15282 cacheid=xorg_cv_cc_flag__Wold_style_definition
15283 if eval test \${$cacheid+y}
15284 then :
15285 printf %s "(cached) " >&6
15286 else case e in #(
15287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15289 int i;
15290 int
15291 main (void)
15292 {
15293
15294 ;
15295 return 0;
15296 }
15297 _ACEOF
15298 if ac_fn_c_try_link "$LINENO"
15299 then :
15300 eval $cacheid=yes
15301 else case e in #(
15302 e) eval $cacheid=no ;;
15303 esac
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15306 conftest$ac_exeext conftest.$ac_ext ;;
15307 esac
15308 fi
15309
15310
15311 CFLAGS="$xorg_testset_save_CFLAGS"
15312
15313 eval supported=\$$cacheid
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15315 printf "%s\n" "$supported" >&6; }
15316 if test "$supported" = "yes" ; then
15317 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15318 found="yes"
15319 fi
15320 fi
15321
15322 if test $found = "no" ; then
15323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15325 fi
15326
15327 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15329 fi
15330
15331 CFLAGS="$CFLAGS -fd"
15332
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15334 printf %s "checking if $CC supports -fd... " >&6; }
15335 cacheid=xorg_cv_cc_flag__fd
15336 if eval test \${$cacheid+y}
15337 then :
15338 printf %s "(cached) " >&6
15339 else case e in #(
15340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 int i;
15343 int
15344 main (void)
15345 {
15346
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"
15352 then :
15353 eval $cacheid=yes
15354 else case e in #(
15355 e) eval $cacheid=no ;;
15356 esac
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15359 conftest$ac_exeext conftest.$ac_ext ;;
15360 esac
15361 fi
15362
15363
15364 CFLAGS="$xorg_testset_save_CFLAGS"
15365
15366 eval supported=\$$cacheid
15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15368 printf "%s\n" "$supported" >&6; }
15369 if test "$supported" = "yes" ; then
15370 BASE_CFLAGS="$BASE_CFLAGS -fd"
15371 found="yes"
15372 fi
15373 fi
15374
15375
15376
15377
15378
15379 # This chunk adds additional warnings that could catch undesired effects.
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393 xorg_testset_save_CFLAGS="$CFLAGS"
15394
15395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15399 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15400 then :
15401 printf %s "(cached) " >&6
15402 else case e in #(
15403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15404 /* end confdefs.h. */
15405 int i;
15406 _ACEOF
15407 if ac_fn_c_try_compile "$LINENO"
15408 then :
15409 xorg_cv_cc_flag_unknown_warning_option=yes
15410 else case e in #(
15411 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15412 esac
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15415 esac
15416 fi
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15420 CFLAGS="$xorg_testset_save_CFLAGS"
15421 fi
15422
15423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15426 fi
15427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15431 then :
15432 printf %s "(cached) " >&6
15433 else case e in #(
15434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436 int i;
15437 _ACEOF
15438 if ac_fn_c_try_compile "$LINENO"
15439 then :
15440 xorg_cv_cc_flag_unused_command_line_argument=yes
15441 else case e in #(
15442 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15443 esac
15444 fi
15445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15446 esac
15447 fi
15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15451 CFLAGS="$xorg_testset_save_CFLAGS"
15452 fi
15453
15454 found="no"
15455
15456 if test $found = "no" ; then
15457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459 fi
15460
15461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15463 fi
15464
15465 CFLAGS="$CFLAGS -Wunused"
15466
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15468 printf %s "checking if $CC supports -Wunused... " >&6; }
15469 cacheid=xorg_cv_cc_flag__Wunused
15470 if eval test \${$cacheid+y}
15471 then :
15472 printf %s "(cached) " >&6
15473 else case e in #(
15474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476 int i;
15477 int
15478 main (void)
15479 {
15480
15481 ;
15482 return 0;
15483 }
15484 _ACEOF
15485 if ac_fn_c_try_link "$LINENO"
15486 then :
15487 eval $cacheid=yes
15488 else case e in #(
15489 e) eval $cacheid=no ;;
15490 esac
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15493 conftest$ac_exeext conftest.$ac_ext ;;
15494 esac
15495 fi
15496
15497
15498 CFLAGS="$xorg_testset_save_CFLAGS"
15499
15500 eval supported=\$$cacheid
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15502 printf "%s\n" "$supported" >&6; }
15503 if test "$supported" = "yes" ; then
15504 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15505 found="yes"
15506 fi
15507 fi
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523 xorg_testset_save_CFLAGS="$CFLAGS"
15524
15525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15529 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15530 then :
15531 printf %s "(cached) " >&6
15532 else case e in #(
15533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 int i;
15536 _ACEOF
15537 if ac_fn_c_try_compile "$LINENO"
15538 then :
15539 xorg_cv_cc_flag_unknown_warning_option=yes
15540 else case e in #(
15541 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15542 esac
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15545 esac
15546 fi
15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15550 CFLAGS="$xorg_testset_save_CFLAGS"
15551 fi
15552
15553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15556 fi
15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15560 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15561 then :
15562 printf %s "(cached) " >&6
15563 else case e in #(
15564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565 /* end confdefs.h. */
15566 int i;
15567 _ACEOF
15568 if ac_fn_c_try_compile "$LINENO"
15569 then :
15570 xorg_cv_cc_flag_unused_command_line_argument=yes
15571 else case e in #(
15572 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15573 esac
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15576 esac
15577 fi
15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15581 CFLAGS="$xorg_testset_save_CFLAGS"
15582 fi
15583
15584 found="no"
15585
15586 if test $found = "no" ; then
15587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15589 fi
15590
15591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15593 fi
15594
15595 CFLAGS="$CFLAGS -Wuninitialized"
15596
15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15598 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15599 cacheid=xorg_cv_cc_flag__Wuninitialized
15600 if eval test \${$cacheid+y}
15601 then :
15602 printf %s "(cached) " >&6
15603 else case e in #(
15604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 int i;
15607 int
15608 main (void)
15609 {
15610
15611 ;
15612 return 0;
15613 }
15614 _ACEOF
15615 if ac_fn_c_try_link "$LINENO"
15616 then :
15617 eval $cacheid=yes
15618 else case e in #(
15619 e) eval $cacheid=no ;;
15620 esac
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15623 conftest$ac_exeext conftest.$ac_ext ;;
15624 esac
15625 fi
15626
15627
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15629
15630 eval supported=\$$cacheid
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15632 printf "%s\n" "$supported" >&6; }
15633 if test "$supported" = "yes" ; then
15634 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15635 found="yes"
15636 fi
15637 fi
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653 xorg_testset_save_CFLAGS="$CFLAGS"
15654
15655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15658 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15659 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15660 then :
15661 printf %s "(cached) " >&6
15662 else case e in #(
15663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 int i;
15666 _ACEOF
15667 if ac_fn_c_try_compile "$LINENO"
15668 then :
15669 xorg_cv_cc_flag_unknown_warning_option=yes
15670 else case e in #(
15671 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15672 esac
15673 fi
15674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15675 esac
15676 fi
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15678 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15680 CFLAGS="$xorg_testset_save_CFLAGS"
15681 fi
15682
15683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15686 fi
15687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15689 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15690 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15691 then :
15692 printf %s "(cached) " >&6
15693 else case e in #(
15694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696 int i;
15697 _ACEOF
15698 if ac_fn_c_try_compile "$LINENO"
15699 then :
15700 xorg_cv_cc_flag_unused_command_line_argument=yes
15701 else case e in #(
15702 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15703 esac
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15706 esac
15707 fi
15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15709 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15711 CFLAGS="$xorg_testset_save_CFLAGS"
15712 fi
15713
15714 found="no"
15715
15716 if test $found = "no" ; then
15717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15719 fi
15720
15721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15723 fi
15724
15725 CFLAGS="$CFLAGS -Wshadow"
15726
15727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15728 printf %s "checking if $CC supports -Wshadow... " >&6; }
15729 cacheid=xorg_cv_cc_flag__Wshadow
15730 if eval test \${$cacheid+y}
15731 then :
15732 printf %s "(cached) " >&6
15733 else case e in #(
15734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 int i;
15737 int
15738 main (void)
15739 {
15740
15741 ;
15742 return 0;
15743 }
15744 _ACEOF
15745 if ac_fn_c_try_link "$LINENO"
15746 then :
15747 eval $cacheid=yes
15748 else case e in #(
15749 e) eval $cacheid=no ;;
15750 esac
15751 fi
15752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15753 conftest$ac_exeext conftest.$ac_ext ;;
15754 esac
15755 fi
15756
15757
15758 CFLAGS="$xorg_testset_save_CFLAGS"
15759
15760 eval supported=\$$cacheid
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15762 printf "%s\n" "$supported" >&6; }
15763 if test "$supported" = "yes" ; then
15764 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15765 found="yes"
15766 fi
15767 fi
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783 xorg_testset_save_CFLAGS="$CFLAGS"
15784
15785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15788 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15789 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15790 then :
15791 printf %s "(cached) " >&6
15792 else case e in #(
15793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 int i;
15796 _ACEOF
15797 if ac_fn_c_try_compile "$LINENO"
15798 then :
15799 xorg_cv_cc_flag_unknown_warning_option=yes
15800 else case e in #(
15801 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15802 esac
15803 fi
15804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15805 esac
15806 fi
15807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15808 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15810 CFLAGS="$xorg_testset_save_CFLAGS"
15811 fi
15812
15813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816 fi
15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15819 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15820 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15821 then :
15822 printf %s "(cached) " >&6
15823 else case e in #(
15824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 int i;
15827 _ACEOF
15828 if ac_fn_c_try_compile "$LINENO"
15829 then :
15830 xorg_cv_cc_flag_unused_command_line_argument=yes
15831 else case e in #(
15832 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15833 esac
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15836 esac
15837 fi
15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15839 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15841 CFLAGS="$xorg_testset_save_CFLAGS"
15842 fi
15843
15844 found="no"
15845
15846 if test $found = "no" ; then
15847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15849 fi
15850
15851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15853 fi
15854
15855 CFLAGS="$CFLAGS -Wmissing-noreturn"
15856
15857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15858 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15859 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15860 if eval test \${$cacheid+y}
15861 then :
15862 printf %s "(cached) " >&6
15863 else case e in #(
15864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 int i;
15867 int
15868 main (void)
15869 {
15870
15871 ;
15872 return 0;
15873 }
15874 _ACEOF
15875 if ac_fn_c_try_link "$LINENO"
15876 then :
15877 eval $cacheid=yes
15878 else case e in #(
15879 e) eval $cacheid=no ;;
15880 esac
15881 fi
15882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15883 conftest$ac_exeext conftest.$ac_ext ;;
15884 esac
15885 fi
15886
15887
15888 CFLAGS="$xorg_testset_save_CFLAGS"
15889
15890 eval supported=\$$cacheid
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15892 printf "%s\n" "$supported" >&6; }
15893 if test "$supported" = "yes" ; then
15894 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15895 found="yes"
15896 fi
15897 fi
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913 xorg_testset_save_CFLAGS="$CFLAGS"
15914
15915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15918 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15919 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15920 then :
15921 printf %s "(cached) " >&6
15922 else case e in #(
15923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15924 /* end confdefs.h. */
15925 int i;
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"
15928 then :
15929 xorg_cv_cc_flag_unknown_warning_option=yes
15930 else case e in #(
15931 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15932 esac
15933 fi
15934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15935 esac
15936 fi
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15940 CFLAGS="$xorg_testset_save_CFLAGS"
15941 fi
15942
15943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946 fi
15947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15951 then :
15952 printf %s "(cached) " >&6
15953 else case e in #(
15954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 int i;
15957 _ACEOF
15958 if ac_fn_c_try_compile "$LINENO"
15959 then :
15960 xorg_cv_cc_flag_unused_command_line_argument=yes
15961 else case e in #(
15962 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15963 esac
15964 fi
15965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15966 esac
15967 fi
15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15971 CFLAGS="$xorg_testset_save_CFLAGS"
15972 fi
15973
15974 found="no"
15975
15976 if test $found = "no" ; then
15977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15979 fi
15980
15981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15983 fi
15984
15985 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15986
15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15988 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15989 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15990 if eval test \${$cacheid+y}
15991 then :
15992 printf %s "(cached) " >&6
15993 else case e in #(
15994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 int i;
15997 int
15998 main (void)
15999 {
16000
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"
16006 then :
16007 eval $cacheid=yes
16008 else case e in #(
16009 e) eval $cacheid=no ;;
16010 esac
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16013 conftest$ac_exeext conftest.$ac_ext ;;
16014 esac
16015 fi
16016
16017
16018 CFLAGS="$xorg_testset_save_CFLAGS"
16019
16020 eval supported=\$$cacheid
16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16022 printf "%s\n" "$supported" >&6; }
16023 if test "$supported" = "yes" ; then
16024 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16025 found="yes"
16026 fi
16027 fi
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043 xorg_testset_save_CFLAGS="$CFLAGS"
16044
16045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16050 then :
16051 printf %s "(cached) " >&6
16052 else case e in #(
16053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16054 /* end confdefs.h. */
16055 int i;
16056 _ACEOF
16057 if ac_fn_c_try_compile "$LINENO"
16058 then :
16059 xorg_cv_cc_flag_unknown_warning_option=yes
16060 else case e in #(
16061 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16062 esac
16063 fi
16064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16065 esac
16066 fi
16067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16068 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16070 CFLAGS="$xorg_testset_save_CFLAGS"
16071 fi
16072
16073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076 fi
16077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16079 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16080 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16081 then :
16082 printf %s "(cached) " >&6
16083 else case e in #(
16084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 int i;
16087 _ACEOF
16088 if ac_fn_c_try_compile "$LINENO"
16089 then :
16090 xorg_cv_cc_flag_unused_command_line_argument=yes
16091 else case e in #(
16092 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16093 esac
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16096 esac
16097 fi
16098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16099 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16101 CFLAGS="$xorg_testset_save_CFLAGS"
16102 fi
16103
16104 found="no"
16105
16106 if test $found = "no" ; then
16107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16109 fi
16110
16111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16113 fi
16114
16115 CFLAGS="$CFLAGS -Wredundant-decls"
16116
16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16118 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16119 cacheid=xorg_cv_cc_flag__Wredundant_decls
16120 if eval test \${$cacheid+y}
16121 then :
16122 printf %s "(cached) " >&6
16123 else case e in #(
16124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 int i;
16127 int
16128 main (void)
16129 {
16130
16131 ;
16132 return 0;
16133 }
16134 _ACEOF
16135 if ac_fn_c_try_link "$LINENO"
16136 then :
16137 eval $cacheid=yes
16138 else case e in #(
16139 e) eval $cacheid=no ;;
16140 esac
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16143 conftest$ac_exeext conftest.$ac_ext ;;
16144 esac
16145 fi
16146
16147
16148 CFLAGS="$xorg_testset_save_CFLAGS"
16149
16150 eval supported=\$$cacheid
16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16152 printf "%s\n" "$supported" >&6; }
16153 if test "$supported" = "yes" ; then
16154 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16155 found="yes"
16156 fi
16157 fi
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173 xorg_testset_save_CFLAGS="$CFLAGS"
16174
16175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16180 then :
16181 printf %s "(cached) " >&6
16182 else case e in #(
16183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16185 int i;
16186 _ACEOF
16187 if ac_fn_c_try_compile "$LINENO"
16188 then :
16189 xorg_cv_cc_flag_unknown_warning_option=yes
16190 else case e in #(
16191 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16192 esac
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16195 esac
16196 fi
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16198 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16200 CFLAGS="$xorg_testset_save_CFLAGS"
16201 fi
16202
16203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16206 fi
16207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16209 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16210 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16211 then :
16212 printf %s "(cached) " >&6
16213 else case e in #(
16214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16216 int i;
16217 _ACEOF
16218 if ac_fn_c_try_compile "$LINENO"
16219 then :
16220 xorg_cv_cc_flag_unused_command_line_argument=yes
16221 else case e in #(
16222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16223 esac
16224 fi
16225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16226 esac
16227 fi
16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16229 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16231 CFLAGS="$xorg_testset_save_CFLAGS"
16232 fi
16233
16234 found="no"
16235
16236 if test $found = "no" ; then
16237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16239 fi
16240
16241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16243 fi
16244
16245 CFLAGS="$CFLAGS -Wlogical-op"
16246
16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16248 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16249 cacheid=xorg_cv_cc_flag__Wlogical_op
16250 if eval test \${$cacheid+y}
16251 then :
16252 printf %s "(cached) " >&6
16253 else case e in #(
16254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16256 int i;
16257 int
16258 main (void)
16259 {
16260
16261 ;
16262 return 0;
16263 }
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"
16266 then :
16267 eval $cacheid=yes
16268 else case e in #(
16269 e) eval $cacheid=no ;;
16270 esac
16271 fi
16272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16273 conftest$ac_exeext conftest.$ac_ext ;;
16274 esac
16275 fi
16276
16277
16278 CFLAGS="$xorg_testset_save_CFLAGS"
16279
16280 eval supported=\$$cacheid
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16282 printf "%s\n" "$supported" >&6; }
16283 if test "$supported" = "yes" ; then
16284 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16285 found="yes"
16286 fi
16287 fi
16288
16289
16290
16291 # These are currently disabled because they are noisy. They will be enabled
16292 # in the future once the codebase is sufficiently modernized to silence
16293 # them. For now, I don't want them to drown out the other warnings.
16294 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16295 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16296 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16297
16298 # Turn some warnings into errors, so we don't accidentally get successful builds
16299 # when there are problems that should be fixed.
16300
16301 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315 xorg_testset_save_CFLAGS="$CFLAGS"
16316
16317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16321 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16322 then :
16323 printf %s "(cached) " >&6
16324 else case e in #(
16325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 int i;
16328 _ACEOF
16329 if ac_fn_c_try_compile "$LINENO"
16330 then :
16331 xorg_cv_cc_flag_unknown_warning_option=yes
16332 else case e in #(
16333 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16334 esac
16335 fi
16336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16337 esac
16338 fi
16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16342 CFLAGS="$xorg_testset_save_CFLAGS"
16343 fi
16344
16345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16348 fi
16349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16353 then :
16354 printf %s "(cached) " >&6
16355 else case e in #(
16356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16358 int i;
16359 _ACEOF
16360 if ac_fn_c_try_compile "$LINENO"
16361 then :
16362 xorg_cv_cc_flag_unused_command_line_argument=yes
16363 else case e in #(
16364 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16365 esac
16366 fi
16367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16368 esac
16369 fi
16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16371 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16373 CFLAGS="$xorg_testset_save_CFLAGS"
16374 fi
16375
16376 found="no"
16377
16378 if test $found = "no" ; then
16379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16381 fi
16382
16383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16385 fi
16386
16387 CFLAGS="$CFLAGS -Werror=implicit"
16388
16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16390 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16391 cacheid=xorg_cv_cc_flag__Werror_implicit
16392 if eval test \${$cacheid+y}
16393 then :
16394 printf %s "(cached) " >&6
16395 else case e in #(
16396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16398 int i;
16399 int
16400 main (void)
16401 {
16402
16403 ;
16404 return 0;
16405 }
16406 _ACEOF
16407 if ac_fn_c_try_link "$LINENO"
16408 then :
16409 eval $cacheid=yes
16410 else case e in #(
16411 e) eval $cacheid=no ;;
16412 esac
16413 fi
16414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16415 conftest$ac_exeext conftest.$ac_ext ;;
16416 esac
16417 fi
16418
16419
16420 CFLAGS="$xorg_testset_save_CFLAGS"
16421
16422 eval supported=\$$cacheid
16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16424 printf "%s\n" "$supported" >&6; }
16425 if test "$supported" = "yes" ; then
16426 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16427 found="yes"
16428 fi
16429 fi
16430
16431 if test $found = "no" ; then
16432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16434 fi
16435
16436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16438 fi
16439
16440 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16441
16442 { 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
16443 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16444 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16445 if eval test \${$cacheid+y}
16446 then :
16447 printf %s "(cached) " >&6
16448 else case e in #(
16449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 int i;
16452 int
16453 main (void)
16454 {
16455
16456 ;
16457 return 0;
16458 }
16459 _ACEOF
16460 if ac_fn_c_try_link "$LINENO"
16461 then :
16462 eval $cacheid=yes
16463 else case e in #(
16464 e) eval $cacheid=no ;;
16465 esac
16466 fi
16467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16468 conftest$ac_exeext conftest.$ac_ext ;;
16469 esac
16470 fi
16471
16472
16473 CFLAGS="$xorg_testset_save_CFLAGS"
16474
16475 eval supported=\$$cacheid
16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16477 printf "%s\n" "$supported" >&6; }
16478 if test "$supported" = "yes" ; then
16479 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16480 found="yes"
16481 fi
16482 fi
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498 xorg_testset_save_CFLAGS="$CFLAGS"
16499
16500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16505 then :
16506 printf %s "(cached) " >&6
16507 else case e in #(
16508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16510 int i;
16511 _ACEOF
16512 if ac_fn_c_try_compile "$LINENO"
16513 then :
16514 xorg_cv_cc_flag_unknown_warning_option=yes
16515 else case e in #(
16516 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16517 esac
16518 fi
16519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16520 esac
16521 fi
16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16525 CFLAGS="$xorg_testset_save_CFLAGS"
16526 fi
16527
16528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16531 fi
16532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16536 then :
16537 printf %s "(cached) " >&6
16538 else case e in #(
16539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16541 int i;
16542 _ACEOF
16543 if ac_fn_c_try_compile "$LINENO"
16544 then :
16545 xorg_cv_cc_flag_unused_command_line_argument=yes
16546 else case e in #(
16547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16548 esac
16549 fi
16550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16551 esac
16552 fi
16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16554 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16556 CFLAGS="$xorg_testset_save_CFLAGS"
16557 fi
16558
16559 found="no"
16560
16561 if test $found = "no" ; then
16562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16564 fi
16565
16566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16568 fi
16569
16570 CFLAGS="$CFLAGS -Werror=nonnull"
16571
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16573 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16574 cacheid=xorg_cv_cc_flag__Werror_nonnull
16575 if eval test \${$cacheid+y}
16576 then :
16577 printf %s "(cached) " >&6
16578 else case e in #(
16579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16580 /* end confdefs.h. */
16581 int i;
16582 int
16583 main (void)
16584 {
16585
16586 ;
16587 return 0;
16588 }
16589 _ACEOF
16590 if ac_fn_c_try_link "$LINENO"
16591 then :
16592 eval $cacheid=yes
16593 else case e in #(
16594 e) eval $cacheid=no ;;
16595 esac
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16598 conftest$ac_exeext conftest.$ac_ext ;;
16599 esac
16600 fi
16601
16602
16603 CFLAGS="$xorg_testset_save_CFLAGS"
16604
16605 eval supported=\$$cacheid
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16607 printf "%s\n" "$supported" >&6; }
16608 if test "$supported" = "yes" ; then
16609 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16610 found="yes"
16611 fi
16612 fi
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628 xorg_testset_save_CFLAGS="$CFLAGS"
16629
16630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16635 then :
16636 printf %s "(cached) " >&6
16637 else case e in #(
16638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 int i;
16641 _ACEOF
16642 if ac_fn_c_try_compile "$LINENO"
16643 then :
16644 xorg_cv_cc_flag_unknown_warning_option=yes
16645 else case e in #(
16646 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16647 esac
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16650 esac
16651 fi
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16655 CFLAGS="$xorg_testset_save_CFLAGS"
16656 fi
16657
16658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661 fi
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16666 then :
16667 printf %s "(cached) " >&6
16668 else case e in #(
16669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16670 /* end confdefs.h. */
16671 int i;
16672 _ACEOF
16673 if ac_fn_c_try_compile "$LINENO"
16674 then :
16675 xorg_cv_cc_flag_unused_command_line_argument=yes
16676 else case e in #(
16677 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16678 esac
16679 fi
16680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16681 esac
16682 fi
16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16684 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16686 CFLAGS="$xorg_testset_save_CFLAGS"
16687 fi
16688
16689 found="no"
16690
16691 if test $found = "no" ; then
16692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16694 fi
16695
16696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16698 fi
16699
16700 CFLAGS="$CFLAGS -Werror=init-self"
16701
16702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16703 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16704 cacheid=xorg_cv_cc_flag__Werror_init_self
16705 if eval test \${$cacheid+y}
16706 then :
16707 printf %s "(cached) " >&6
16708 else case e in #(
16709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16711 int i;
16712 int
16713 main (void)
16714 {
16715
16716 ;
16717 return 0;
16718 }
16719 _ACEOF
16720 if ac_fn_c_try_link "$LINENO"
16721 then :
16722 eval $cacheid=yes
16723 else case e in #(
16724 e) eval $cacheid=no ;;
16725 esac
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16728 conftest$ac_exeext conftest.$ac_ext ;;
16729 esac
16730 fi
16731
16732
16733 CFLAGS="$xorg_testset_save_CFLAGS"
16734
16735 eval supported=\$$cacheid
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16737 printf "%s\n" "$supported" >&6; }
16738 if test "$supported" = "yes" ; then
16739 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16740 found="yes"
16741 fi
16742 fi
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758 xorg_testset_save_CFLAGS="$CFLAGS"
16759
16760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16765 then :
16766 printf %s "(cached) " >&6
16767 else case e in #(
16768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 int i;
16771 _ACEOF
16772 if ac_fn_c_try_compile "$LINENO"
16773 then :
16774 xorg_cv_cc_flag_unknown_warning_option=yes
16775 else case e in #(
16776 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16777 esac
16778 fi
16779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16780 esac
16781 fi
16782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16785 CFLAGS="$xorg_testset_save_CFLAGS"
16786 fi
16787
16788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16791 fi
16792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16796 then :
16797 printf %s "(cached) " >&6
16798 else case e in #(
16799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16800 /* end confdefs.h. */
16801 int i;
16802 _ACEOF
16803 if ac_fn_c_try_compile "$LINENO"
16804 then :
16805 xorg_cv_cc_flag_unused_command_line_argument=yes
16806 else case e in #(
16807 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16808 esac
16809 fi
16810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16811 esac
16812 fi
16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16814 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16816 CFLAGS="$xorg_testset_save_CFLAGS"
16817 fi
16818
16819 found="no"
16820
16821 if test $found = "no" ; then
16822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16824 fi
16825
16826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16828 fi
16829
16830 CFLAGS="$CFLAGS -Werror=main"
16831
16832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16833 printf %s "checking if $CC supports -Werror=main... " >&6; }
16834 cacheid=xorg_cv_cc_flag__Werror_main
16835 if eval test \${$cacheid+y}
16836 then :
16837 printf %s "(cached) " >&6
16838 else case e in #(
16839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16841 int i;
16842 int
16843 main (void)
16844 {
16845
16846 ;
16847 return 0;
16848 }
16849 _ACEOF
16850 if ac_fn_c_try_link "$LINENO"
16851 then :
16852 eval $cacheid=yes
16853 else case e in #(
16854 e) eval $cacheid=no ;;
16855 esac
16856 fi
16857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16858 conftest$ac_exeext conftest.$ac_ext ;;
16859 esac
16860 fi
16861
16862
16863 CFLAGS="$xorg_testset_save_CFLAGS"
16864
16865 eval supported=\$$cacheid
16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16867 printf "%s\n" "$supported" >&6; }
16868 if test "$supported" = "yes" ; then
16869 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16870 found="yes"
16871 fi
16872 fi
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888 xorg_testset_save_CFLAGS="$CFLAGS"
16889
16890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16893 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16894 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16895 then :
16896 printf %s "(cached) " >&6
16897 else case e in #(
16898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900 int i;
16901 _ACEOF
16902 if ac_fn_c_try_compile "$LINENO"
16903 then :
16904 xorg_cv_cc_flag_unknown_warning_option=yes
16905 else case e in #(
16906 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16907 esac
16908 fi
16909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16910 esac
16911 fi
16912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16913 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16914 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16915 CFLAGS="$xorg_testset_save_CFLAGS"
16916 fi
16917
16918 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16921 fi
16922 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16924 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16925 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16926 then :
16927 printf %s "(cached) " >&6
16928 else case e in #(
16929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16931 int i;
16932 _ACEOF
16933 if ac_fn_c_try_compile "$LINENO"
16934 then :
16935 xorg_cv_cc_flag_unused_command_line_argument=yes
16936 else case e in #(
16937 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16938 esac
16939 fi
16940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16941 esac
16942 fi
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16944 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16946 CFLAGS="$xorg_testset_save_CFLAGS"
16947 fi
16948
16949 found="no"
16950
16951 if test $found = "no" ; then
16952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16954 fi
16955
16956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16958 fi
16959
16960 CFLAGS="$CFLAGS -Werror=missing-braces"
16961
16962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16963 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16964 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16965 if eval test \${$cacheid+y}
16966 then :
16967 printf %s "(cached) " >&6
16968 else case e in #(
16969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 int i;
16972 int
16973 main (void)
16974 {
16975
16976 ;
16977 return 0;
16978 }
16979 _ACEOF
16980 if ac_fn_c_try_link "$LINENO"
16981 then :
16982 eval $cacheid=yes
16983 else case e in #(
16984 e) eval $cacheid=no ;;
16985 esac
16986 fi
16987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16988 conftest$ac_exeext conftest.$ac_ext ;;
16989 esac
16990 fi
16991
16992
16993 CFLAGS="$xorg_testset_save_CFLAGS"
16994
16995 eval supported=\$$cacheid
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16997 printf "%s\n" "$supported" >&6; }
16998 if test "$supported" = "yes" ; then
16999 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17000 found="yes"
17001 fi
17002 fi
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018 xorg_testset_save_CFLAGS="$CFLAGS"
17019
17020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17023 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17024 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17025 then :
17026 printf %s "(cached) " >&6
17027 else case e in #(
17028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17030 int i;
17031 _ACEOF
17032 if ac_fn_c_try_compile "$LINENO"
17033 then :
17034 xorg_cv_cc_flag_unknown_warning_option=yes
17035 else case e in #(
17036 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17037 esac
17038 fi
17039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17040 esac
17041 fi
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17043 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17045 CFLAGS="$xorg_testset_save_CFLAGS"
17046 fi
17047
17048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 fi
17052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17054 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17055 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17056 then :
17057 printf %s "(cached) " >&6
17058 else case e in #(
17059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17060 /* end confdefs.h. */
17061 int i;
17062 _ACEOF
17063 if ac_fn_c_try_compile "$LINENO"
17064 then :
17065 xorg_cv_cc_flag_unused_command_line_argument=yes
17066 else case e in #(
17067 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17068 esac
17069 fi
17070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17071 esac
17072 fi
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17076 CFLAGS="$xorg_testset_save_CFLAGS"
17077 fi
17078
17079 found="no"
17080
17081 if test $found = "no" ; then
17082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084 fi
17085
17086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17088 fi
17089
17090 CFLAGS="$CFLAGS -Werror=sequence-point"
17091
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17093 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17094 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17095 if eval test \${$cacheid+y}
17096 then :
17097 printf %s "(cached) " >&6
17098 else case e in #(
17099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 int i;
17102 int
17103 main (void)
17104 {
17105
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 if ac_fn_c_try_link "$LINENO"
17111 then :
17112 eval $cacheid=yes
17113 else case e in #(
17114 e) eval $cacheid=no ;;
17115 esac
17116 fi
17117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17118 conftest$ac_exeext conftest.$ac_ext ;;
17119 esac
17120 fi
17121
17122
17123 CFLAGS="$xorg_testset_save_CFLAGS"
17124
17125 eval supported=\$$cacheid
17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17127 printf "%s\n" "$supported" >&6; }
17128 if test "$supported" = "yes" ; then
17129 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17130 found="yes"
17131 fi
17132 fi
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148 xorg_testset_save_CFLAGS="$CFLAGS"
17149
17150 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17153 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17154 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17155 then :
17156 printf %s "(cached) " >&6
17157 else case e in #(
17158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17160 int i;
17161 _ACEOF
17162 if ac_fn_c_try_compile "$LINENO"
17163 then :
17164 xorg_cv_cc_flag_unknown_warning_option=yes
17165 else case e in #(
17166 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17167 esac
17168 fi
17169 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17170 esac
17171 fi
17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17173 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17175 CFLAGS="$xorg_testset_save_CFLAGS"
17176 fi
17177
17178 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17181 fi
17182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17184 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17185 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17186 then :
17187 printf %s "(cached) " >&6
17188 else case e in #(
17189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17190 /* end confdefs.h. */
17191 int i;
17192 _ACEOF
17193 if ac_fn_c_try_compile "$LINENO"
17194 then :
17195 xorg_cv_cc_flag_unused_command_line_argument=yes
17196 else case e in #(
17197 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17198 esac
17199 fi
17200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17201 esac
17202 fi
17203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17204 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17206 CFLAGS="$xorg_testset_save_CFLAGS"
17207 fi
17208
17209 found="no"
17210
17211 if test $found = "no" ; then
17212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17214 fi
17215
17216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17218 fi
17219
17220 CFLAGS="$CFLAGS -Werror=return-type"
17221
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17223 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17224 cacheid=xorg_cv_cc_flag__Werror_return_type
17225 if eval test \${$cacheid+y}
17226 then :
17227 printf %s "(cached) " >&6
17228 else case e in #(
17229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17230 /* end confdefs.h. */
17231 int i;
17232 int
17233 main (void)
17234 {
17235
17236 ;
17237 return 0;
17238 }
17239 _ACEOF
17240 if ac_fn_c_try_link "$LINENO"
17241 then :
17242 eval $cacheid=yes
17243 else case e in #(
17244 e) eval $cacheid=no ;;
17245 esac
17246 fi
17247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17248 conftest$ac_exeext conftest.$ac_ext ;;
17249 esac
17250 fi
17251
17252
17253 CFLAGS="$xorg_testset_save_CFLAGS"
17254
17255 eval supported=\$$cacheid
17256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17257 printf "%s\n" "$supported" >&6; }
17258 if test "$supported" = "yes" ; then
17259 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17260 found="yes"
17261 fi
17262 fi
17263
17264 if test $found = "no" ; then
17265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17267 fi
17268
17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17271 fi
17272
17273 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17274
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17276 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17277 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17278 if eval test \${$cacheid+y}
17279 then :
17280 printf %s "(cached) " >&6
17281 else case e in #(
17282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17283 /* end confdefs.h. */
17284 int i;
17285 int
17286 main (void)
17287 {
17288
17289 ;
17290 return 0;
17291 }
17292 _ACEOF
17293 if ac_fn_c_try_link "$LINENO"
17294 then :
17295 eval $cacheid=yes
17296 else case e in #(
17297 e) eval $cacheid=no ;;
17298 esac
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17301 conftest$ac_exeext conftest.$ac_ext ;;
17302 esac
17303 fi
17304
17305
17306 CFLAGS="$xorg_testset_save_CFLAGS"
17307
17308 eval supported=\$$cacheid
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17310 printf "%s\n" "$supported" >&6; }
17311 if test "$supported" = "yes" ; then
17312 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17313 found="yes"
17314 fi
17315 fi
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331 xorg_testset_save_CFLAGS="$CFLAGS"
17332
17333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17337 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17338 then :
17339 printf %s "(cached) " >&6
17340 else case e in #(
17341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17343 int i;
17344 _ACEOF
17345 if ac_fn_c_try_compile "$LINENO"
17346 then :
17347 xorg_cv_cc_flag_unknown_warning_option=yes
17348 else case e in #(
17349 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17350 esac
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17353 esac
17354 fi
17355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17358 CFLAGS="$xorg_testset_save_CFLAGS"
17359 fi
17360
17361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17364 fi
17365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17369 then :
17370 printf %s "(cached) " >&6
17371 else case e in #(
17372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17374 int i;
17375 _ACEOF
17376 if ac_fn_c_try_compile "$LINENO"
17377 then :
17378 xorg_cv_cc_flag_unused_command_line_argument=yes
17379 else case e in #(
17380 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17381 esac
17382 fi
17383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17384 esac
17385 fi
17386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17389 CFLAGS="$xorg_testset_save_CFLAGS"
17390 fi
17391
17392 found="no"
17393
17394 if test $found = "no" ; then
17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17397 fi
17398
17399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17401 fi
17402
17403 CFLAGS="$CFLAGS -Werror=trigraphs"
17404
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17406 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17407 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17408 if eval test \${$cacheid+y}
17409 then :
17410 printf %s "(cached) " >&6
17411 else case e in #(
17412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17414 int i;
17415 int
17416 main (void)
17417 {
17418
17419 ;
17420 return 0;
17421 }
17422 _ACEOF
17423 if ac_fn_c_try_link "$LINENO"
17424 then :
17425 eval $cacheid=yes
17426 else case e in #(
17427 e) eval $cacheid=no ;;
17428 esac
17429 fi
17430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17431 conftest$ac_exeext conftest.$ac_ext ;;
17432 esac
17433 fi
17434
17435
17436 CFLAGS="$xorg_testset_save_CFLAGS"
17437
17438 eval supported=\$$cacheid
17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17440 printf "%s\n" "$supported" >&6; }
17441 if test "$supported" = "yes" ; then
17442 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17443 found="yes"
17444 fi
17445 fi
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461 xorg_testset_save_CFLAGS="$CFLAGS"
17462
17463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17467 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17468 then :
17469 printf %s "(cached) " >&6
17470 else case e in #(
17471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17473 int i;
17474 _ACEOF
17475 if ac_fn_c_try_compile "$LINENO"
17476 then :
17477 xorg_cv_cc_flag_unknown_warning_option=yes
17478 else case e in #(
17479 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17480 esac
17481 fi
17482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17483 esac
17484 fi
17485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17488 CFLAGS="$xorg_testset_save_CFLAGS"
17489 fi
17490
17491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17494 fi
17495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17499 then :
17500 printf %s "(cached) " >&6
17501 else case e in #(
17502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17504 int i;
17505 _ACEOF
17506 if ac_fn_c_try_compile "$LINENO"
17507 then :
17508 xorg_cv_cc_flag_unused_command_line_argument=yes
17509 else case e in #(
17510 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17511 esac
17512 fi
17513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17514 esac
17515 fi
17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17517 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17519 CFLAGS="$xorg_testset_save_CFLAGS"
17520 fi
17521
17522 found="no"
17523
17524 if test $found = "no" ; then
17525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17527 fi
17528
17529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17531 fi
17532
17533 CFLAGS="$CFLAGS -Werror=array-bounds"
17534
17535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17536 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17537 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17538 if eval test \${$cacheid+y}
17539 then :
17540 printf %s "(cached) " >&6
17541 else case e in #(
17542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h. */
17544 int i;
17545 int
17546 main (void)
17547 {
17548
17549 ;
17550 return 0;
17551 }
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"
17554 then :
17555 eval $cacheid=yes
17556 else case e in #(
17557 e) eval $cacheid=no ;;
17558 esac
17559 fi
17560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17561 conftest$ac_exeext conftest.$ac_ext ;;
17562 esac
17563 fi
17564
17565
17566 CFLAGS="$xorg_testset_save_CFLAGS"
17567
17568 eval supported=\$$cacheid
17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17570 printf "%s\n" "$supported" >&6; }
17571 if test "$supported" = "yes" ; then
17572 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17573 found="yes"
17574 fi
17575 fi
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591 xorg_testset_save_CFLAGS="$CFLAGS"
17592
17593 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17596 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17597 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17598 then :
17599 printf %s "(cached) " >&6
17600 else case e in #(
17601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17603 int i;
17604 _ACEOF
17605 if ac_fn_c_try_compile "$LINENO"
17606 then :
17607 xorg_cv_cc_flag_unknown_warning_option=yes
17608 else case e in #(
17609 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17610 esac
17611 fi
17612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17613 esac
17614 fi
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17616 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17618 CFLAGS="$xorg_testset_save_CFLAGS"
17619 fi
17620
17621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17624 fi
17625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17627 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17628 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17629 then :
17630 printf %s "(cached) " >&6
17631 else case e in #(
17632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17634 int i;
17635 _ACEOF
17636 if ac_fn_c_try_compile "$LINENO"
17637 then :
17638 xorg_cv_cc_flag_unused_command_line_argument=yes
17639 else case e in #(
17640 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17641 esac
17642 fi
17643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17644 esac
17645 fi
17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17647 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17649 CFLAGS="$xorg_testset_save_CFLAGS"
17650 fi
17651
17652 found="no"
17653
17654 if test $found = "no" ; then
17655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17657 fi
17658
17659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17661 fi
17662
17663 CFLAGS="$CFLAGS -Werror=write-strings"
17664
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17666 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17667 cacheid=xorg_cv_cc_flag__Werror_write_strings
17668 if eval test \${$cacheid+y}
17669 then :
17670 printf %s "(cached) " >&6
17671 else case e in #(
17672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17674 int i;
17675 int
17676 main (void)
17677 {
17678
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_link "$LINENO"
17684 then :
17685 eval $cacheid=yes
17686 else case e in #(
17687 e) eval $cacheid=no ;;
17688 esac
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17691 conftest$ac_exeext conftest.$ac_ext ;;
17692 esac
17693 fi
17694
17695
17696 CFLAGS="$xorg_testset_save_CFLAGS"
17697
17698 eval supported=\$$cacheid
17699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17700 printf "%s\n" "$supported" >&6; }
17701 if test "$supported" = "yes" ; then
17702 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17703 found="yes"
17704 fi
17705 fi
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721 xorg_testset_save_CFLAGS="$CFLAGS"
17722
17723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17726 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17727 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17728 then :
17729 printf %s "(cached) " >&6
17730 else case e in #(
17731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17733 int i;
17734 _ACEOF
17735 if ac_fn_c_try_compile "$LINENO"
17736 then :
17737 xorg_cv_cc_flag_unknown_warning_option=yes
17738 else case e in #(
17739 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17740 esac
17741 fi
17742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17743 esac
17744 fi
17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17746 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17748 CFLAGS="$xorg_testset_save_CFLAGS"
17749 fi
17750
17751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754 fi
17755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17757 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17758 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17759 then :
17760 printf %s "(cached) " >&6
17761 else case e in #(
17762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17764 int i;
17765 _ACEOF
17766 if ac_fn_c_try_compile "$LINENO"
17767 then :
17768 xorg_cv_cc_flag_unused_command_line_argument=yes
17769 else case e in #(
17770 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17771 esac
17772 fi
17773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17774 esac
17775 fi
17776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17777 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17779 CFLAGS="$xorg_testset_save_CFLAGS"
17780 fi
17781
17782 found="no"
17783
17784 if test $found = "no" ; then
17785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17787 fi
17788
17789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17791 fi
17792
17793 CFLAGS="$CFLAGS -Werror=address"
17794
17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17796 printf %s "checking if $CC supports -Werror=address... " >&6; }
17797 cacheid=xorg_cv_cc_flag__Werror_address
17798 if eval test \${$cacheid+y}
17799 then :
17800 printf %s "(cached) " >&6
17801 else case e in #(
17802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17803 /* end confdefs.h. */
17804 int i;
17805 int
17806 main (void)
17807 {
17808
17809 ;
17810 return 0;
17811 }
17812 _ACEOF
17813 if ac_fn_c_try_link "$LINENO"
17814 then :
17815 eval $cacheid=yes
17816 else case e in #(
17817 e) eval $cacheid=no ;;
17818 esac
17819 fi
17820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17821 conftest$ac_exeext conftest.$ac_ext ;;
17822 esac
17823 fi
17824
17825
17826 CFLAGS="$xorg_testset_save_CFLAGS"
17827
17828 eval supported=\$$cacheid
17829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17830 printf "%s\n" "$supported" >&6; }
17831 if test "$supported" = "yes" ; then
17832 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17833 found="yes"
17834 fi
17835 fi
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851 xorg_testset_save_CFLAGS="$CFLAGS"
17852
17853 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17856 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17857 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17858 then :
17859 printf %s "(cached) " >&6
17860 else case e in #(
17861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17863 int i;
17864 _ACEOF
17865 if ac_fn_c_try_compile "$LINENO"
17866 then :
17867 xorg_cv_cc_flag_unknown_warning_option=yes
17868 else case e in #(
17869 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17870 esac
17871 fi
17872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17873 esac
17874 fi
17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17876 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17878 CFLAGS="$xorg_testset_save_CFLAGS"
17879 fi
17880
17881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17884 fi
17885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17887 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17888 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17889 then :
17890 printf %s "(cached) " >&6
17891 else case e in #(
17892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17894 int i;
17895 _ACEOF
17896 if ac_fn_c_try_compile "$LINENO"
17897 then :
17898 xorg_cv_cc_flag_unused_command_line_argument=yes
17899 else case e in #(
17900 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17901 esac
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17904 esac
17905 fi
17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17909 CFLAGS="$xorg_testset_save_CFLAGS"
17910 fi
17911
17912 found="no"
17913
17914 if test $found = "no" ; then
17915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17917 fi
17918
17919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17921 fi
17922
17923 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17924
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17926 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17927 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17928 if eval test \${$cacheid+y}
17929 then :
17930 printf %s "(cached) " >&6
17931 else case e in #(
17932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 int i;
17935 int
17936 main (void)
17937 {
17938
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 if ac_fn_c_try_link "$LINENO"
17944 then :
17945 eval $cacheid=yes
17946 else case e in #(
17947 e) eval $cacheid=no ;;
17948 esac
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17951 conftest$ac_exeext conftest.$ac_ext ;;
17952 esac
17953 fi
17954
17955
17956 CFLAGS="$xorg_testset_save_CFLAGS"
17957
17958 eval supported=\$$cacheid
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17960 printf "%s\n" "$supported" >&6; }
17961 if test "$supported" = "yes" ; then
17962 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17963 found="yes"
17964 fi
17965 fi
17966
17967 if test $found = "no" ; then
17968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17970 fi
17971
17972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17974 fi
17975
17976 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17977
17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17979 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17980 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17981 if eval test \${$cacheid+y}
17982 then :
17983 printf %s "(cached) " >&6
17984 else case e in #(
17985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17987 int i;
17988 int
17989 main (void)
17990 {
17991
17992 ;
17993 return 0;
17994 }
17995 _ACEOF
17996 if ac_fn_c_try_link "$LINENO"
17997 then :
17998 eval $cacheid=yes
17999 else case e in #(
18000 e) eval $cacheid=no ;;
18001 esac
18002 fi
18003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18004 conftest$ac_exeext conftest.$ac_ext ;;
18005 esac
18006 fi
18007
18008
18009 CFLAGS="$xorg_testset_save_CFLAGS"
18010
18011 eval supported=\$$cacheid
18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18013 printf "%s\n" "$supported" >&6; }
18014 if test "$supported" = "yes" ; then
18015 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18016 found="yes"
18017 fi
18018 fi
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034 xorg_testset_save_CFLAGS="$CFLAGS"
18035
18036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18040 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18041 then :
18042 printf %s "(cached) " >&6
18043 else case e in #(
18044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 int i;
18047 _ACEOF
18048 if ac_fn_c_try_compile "$LINENO"
18049 then :
18050 xorg_cv_cc_flag_unknown_warning_option=yes
18051 else case e in #(
18052 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18053 esac
18054 fi
18055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18056 esac
18057 fi
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18061 CFLAGS="$xorg_testset_save_CFLAGS"
18062 fi
18063
18064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18067 fi
18068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18072 then :
18073 printf %s "(cached) " >&6
18074 else case e in #(
18075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18076 /* end confdefs.h. */
18077 int i;
18078 _ACEOF
18079 if ac_fn_c_try_compile "$LINENO"
18080 then :
18081 xorg_cv_cc_flag_unused_command_line_argument=yes
18082 else case e in #(
18083 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18084 esac
18085 fi
18086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18087 esac
18088 fi
18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18090 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18092 CFLAGS="$xorg_testset_save_CFLAGS"
18093 fi
18094
18095 found="no"
18096
18097 if test $found = "no" ; then
18098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18100 fi
18101
18102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18104 fi
18105
18106 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18107
18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18109 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18110 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18111 if eval test \${$cacheid+y}
18112 then :
18113 printf %s "(cached) " >&6
18114 else case e in #(
18115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18116 /* end confdefs.h. */
18117 int i;
18118 int
18119 main (void)
18120 {
18121
18122 ;
18123 return 0;
18124 }
18125 _ACEOF
18126 if ac_fn_c_try_link "$LINENO"
18127 then :
18128 eval $cacheid=yes
18129 else case e in #(
18130 e) eval $cacheid=no ;;
18131 esac
18132 fi
18133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18134 conftest$ac_exeext conftest.$ac_ext ;;
18135 esac
18136 fi
18137
18138
18139 CFLAGS="$xorg_testset_save_CFLAGS"
18140
18141 eval supported=\$$cacheid
18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18143 printf "%s\n" "$supported" >&6; }
18144 if test "$supported" = "yes" ; then
18145 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18146 found="yes"
18147 fi
18148 fi
18149
18150 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18151 else
18152 { 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
18153 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;}
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167 xorg_testset_save_CFLAGS="$CFLAGS"
18168
18169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18172 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18173 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18174 then :
18175 printf %s "(cached) " >&6
18176 else case e in #(
18177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179 int i;
18180 _ACEOF
18181 if ac_fn_c_try_compile "$LINENO"
18182 then :
18183 xorg_cv_cc_flag_unknown_warning_option=yes
18184 else case e in #(
18185 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18186 esac
18187 fi
18188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18189 esac
18190 fi
18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18192 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18194 CFLAGS="$xorg_testset_save_CFLAGS"
18195 fi
18196
18197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18200 fi
18201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18203 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18204 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18205 then :
18206 printf %s "(cached) " >&6
18207 else case e in #(
18208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h. */
18210 int i;
18211 _ACEOF
18212 if ac_fn_c_try_compile "$LINENO"
18213 then :
18214 xorg_cv_cc_flag_unused_command_line_argument=yes
18215 else case e in #(
18216 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18217 esac
18218 fi
18219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18220 esac
18221 fi
18222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18223 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18225 CFLAGS="$xorg_testset_save_CFLAGS"
18226 fi
18227
18228 found="no"
18229
18230 if test $found = "no" ; then
18231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18233 fi
18234
18235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18237 fi
18238
18239 CFLAGS="$CFLAGS -Wimplicit"
18240
18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18242 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18243 cacheid=xorg_cv_cc_flag__Wimplicit
18244 if eval test \${$cacheid+y}
18245 then :
18246 printf %s "(cached) " >&6
18247 else case e in #(
18248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18249 /* end confdefs.h. */
18250 int i;
18251 int
18252 main (void)
18253 {
18254
18255 ;
18256 return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"
18260 then :
18261 eval $cacheid=yes
18262 else case e in #(
18263 e) eval $cacheid=no ;;
18264 esac
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18267 conftest$ac_exeext conftest.$ac_ext ;;
18268 esac
18269 fi
18270
18271
18272 CFLAGS="$xorg_testset_save_CFLAGS"
18273
18274 eval supported=\$$cacheid
18275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18276 printf "%s\n" "$supported" >&6; }
18277 if test "$supported" = "yes" ; then
18278 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18279 found="yes"
18280 fi
18281 fi
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297 xorg_testset_save_CFLAGS="$CFLAGS"
18298
18299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18303 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18304 then :
18305 printf %s "(cached) " >&6
18306 else case e in #(
18307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18309 int i;
18310 _ACEOF
18311 if ac_fn_c_try_compile "$LINENO"
18312 then :
18313 xorg_cv_cc_flag_unknown_warning_option=yes
18314 else case e in #(
18315 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18316 esac
18317 fi
18318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18319 esac
18320 fi
18321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18322 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18324 CFLAGS="$xorg_testset_save_CFLAGS"
18325 fi
18326
18327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18330 fi
18331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18333 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18334 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18335 then :
18336 printf %s "(cached) " >&6
18337 else case e in #(
18338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18340 int i;
18341 _ACEOF
18342 if ac_fn_c_try_compile "$LINENO"
18343 then :
18344 xorg_cv_cc_flag_unused_command_line_argument=yes
18345 else case e in #(
18346 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18347 esac
18348 fi
18349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18350 esac
18351 fi
18352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18353 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18355 CFLAGS="$xorg_testset_save_CFLAGS"
18356 fi
18357
18358 found="no"
18359
18360 if test $found = "no" ; then
18361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18363 fi
18364
18365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18367 fi
18368
18369 CFLAGS="$CFLAGS -Wnonnull"
18370
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18372 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18373 cacheid=xorg_cv_cc_flag__Wnonnull
18374 if eval test \${$cacheid+y}
18375 then :
18376 printf %s "(cached) " >&6
18377 else case e in #(
18378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18380 int i;
18381 int
18382 main (void)
18383 {
18384
18385 ;
18386 return 0;
18387 }
18388 _ACEOF
18389 if ac_fn_c_try_link "$LINENO"
18390 then :
18391 eval $cacheid=yes
18392 else case e in #(
18393 e) eval $cacheid=no ;;
18394 esac
18395 fi
18396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18397 conftest$ac_exeext conftest.$ac_ext ;;
18398 esac
18399 fi
18400
18401
18402 CFLAGS="$xorg_testset_save_CFLAGS"
18403
18404 eval supported=\$$cacheid
18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18406 printf "%s\n" "$supported" >&6; }
18407 if test "$supported" = "yes" ; then
18408 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18409 found="yes"
18410 fi
18411 fi
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427 xorg_testset_save_CFLAGS="$CFLAGS"
18428
18429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18432 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18433 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18434 then :
18435 printf %s "(cached) " >&6
18436 else case e in #(
18437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18439 int i;
18440 _ACEOF
18441 if ac_fn_c_try_compile "$LINENO"
18442 then :
18443 xorg_cv_cc_flag_unknown_warning_option=yes
18444 else case e in #(
18445 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18446 esac
18447 fi
18448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18449 esac
18450 fi
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18454 CFLAGS="$xorg_testset_save_CFLAGS"
18455 fi
18456
18457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18460 fi
18461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18465 then :
18466 printf %s "(cached) " >&6
18467 else case e in #(
18468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18469 /* end confdefs.h. */
18470 int i;
18471 _ACEOF
18472 if ac_fn_c_try_compile "$LINENO"
18473 then :
18474 xorg_cv_cc_flag_unused_command_line_argument=yes
18475 else case e in #(
18476 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18477 esac
18478 fi
18479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18480 esac
18481 fi
18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18483 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18485 CFLAGS="$xorg_testset_save_CFLAGS"
18486 fi
18487
18488 found="no"
18489
18490 if test $found = "no" ; then
18491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18493 fi
18494
18495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18497 fi
18498
18499 CFLAGS="$CFLAGS -Winit-self"
18500
18501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18502 printf %s "checking if $CC supports -Winit-self... " >&6; }
18503 cacheid=xorg_cv_cc_flag__Winit_self
18504 if eval test \${$cacheid+y}
18505 then :
18506 printf %s "(cached) " >&6
18507 else case e in #(
18508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18509 /* end confdefs.h. */
18510 int i;
18511 int
18512 main (void)
18513 {
18514
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_link "$LINENO"
18520 then :
18521 eval $cacheid=yes
18522 else case e in #(
18523 e) eval $cacheid=no ;;
18524 esac
18525 fi
18526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18527 conftest$ac_exeext conftest.$ac_ext ;;
18528 esac
18529 fi
18530
18531
18532 CFLAGS="$xorg_testset_save_CFLAGS"
18533
18534 eval supported=\$$cacheid
18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18536 printf "%s\n" "$supported" >&6; }
18537 if test "$supported" = "yes" ; then
18538 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18539 found="yes"
18540 fi
18541 fi
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557 xorg_testset_save_CFLAGS="$CFLAGS"
18558
18559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18562 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18563 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18564 then :
18565 printf %s "(cached) " >&6
18566 else case e in #(
18567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569 int i;
18570 _ACEOF
18571 if ac_fn_c_try_compile "$LINENO"
18572 then :
18573 xorg_cv_cc_flag_unknown_warning_option=yes
18574 else case e in #(
18575 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18576 esac
18577 fi
18578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18579 esac
18580 fi
18581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18584 CFLAGS="$xorg_testset_save_CFLAGS"
18585 fi
18586
18587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18590 fi
18591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18595 then :
18596 printf %s "(cached) " >&6
18597 else case e in #(
18598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599 /* end confdefs.h. */
18600 int i;
18601 _ACEOF
18602 if ac_fn_c_try_compile "$LINENO"
18603 then :
18604 xorg_cv_cc_flag_unused_command_line_argument=yes
18605 else case e in #(
18606 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18607 esac
18608 fi
18609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18610 esac
18611 fi
18612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18615 CFLAGS="$xorg_testset_save_CFLAGS"
18616 fi
18617
18618 found="no"
18619
18620 if test $found = "no" ; then
18621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18623 fi
18624
18625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18627 fi
18628
18629 CFLAGS="$CFLAGS -Wmain"
18630
18631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18632 printf %s "checking if $CC supports -Wmain... " >&6; }
18633 cacheid=xorg_cv_cc_flag__Wmain
18634 if eval test \${$cacheid+y}
18635 then :
18636 printf %s "(cached) " >&6
18637 else case e in #(
18638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640 int i;
18641 int
18642 main (void)
18643 {
18644
18645 ;
18646 return 0;
18647 }
18648 _ACEOF
18649 if ac_fn_c_try_link "$LINENO"
18650 then :
18651 eval $cacheid=yes
18652 else case e in #(
18653 e) eval $cacheid=no ;;
18654 esac
18655 fi
18656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18657 conftest$ac_exeext conftest.$ac_ext ;;
18658 esac
18659 fi
18660
18661
18662 CFLAGS="$xorg_testset_save_CFLAGS"
18663
18664 eval supported=\$$cacheid
18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18666 printf "%s\n" "$supported" >&6; }
18667 if test "$supported" = "yes" ; then
18668 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18669 found="yes"
18670 fi
18671 fi
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687 xorg_testset_save_CFLAGS="$CFLAGS"
18688
18689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18693 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18694 then :
18695 printf %s "(cached) " >&6
18696 else case e in #(
18697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18699 int i;
18700 _ACEOF
18701 if ac_fn_c_try_compile "$LINENO"
18702 then :
18703 xorg_cv_cc_flag_unknown_warning_option=yes
18704 else case e in #(
18705 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18706 esac
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18709 esac
18710 fi
18711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18714 CFLAGS="$xorg_testset_save_CFLAGS"
18715 fi
18716
18717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18720 fi
18721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18725 then :
18726 printf %s "(cached) " >&6
18727 else case e in #(
18728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18730 int i;
18731 _ACEOF
18732 if ac_fn_c_try_compile "$LINENO"
18733 then :
18734 xorg_cv_cc_flag_unused_command_line_argument=yes
18735 else case e in #(
18736 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18737 esac
18738 fi
18739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18740 esac
18741 fi
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18745 CFLAGS="$xorg_testset_save_CFLAGS"
18746 fi
18747
18748 found="no"
18749
18750 if test $found = "no" ; then
18751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18753 fi
18754
18755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18757 fi
18758
18759 CFLAGS="$CFLAGS -Wmissing-braces"
18760
18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18762 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18763 cacheid=xorg_cv_cc_flag__Wmissing_braces
18764 if eval test \${$cacheid+y}
18765 then :
18766 printf %s "(cached) " >&6
18767 else case e in #(
18768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770 int i;
18771 int
18772 main (void)
18773 {
18774
18775 ;
18776 return 0;
18777 }
18778 _ACEOF
18779 if ac_fn_c_try_link "$LINENO"
18780 then :
18781 eval $cacheid=yes
18782 else case e in #(
18783 e) eval $cacheid=no ;;
18784 esac
18785 fi
18786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18787 conftest$ac_exeext conftest.$ac_ext ;;
18788 esac
18789 fi
18790
18791
18792 CFLAGS="$xorg_testset_save_CFLAGS"
18793
18794 eval supported=\$$cacheid
18795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18796 printf "%s\n" "$supported" >&6; }
18797 if test "$supported" = "yes" ; then
18798 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18799 found="yes"
18800 fi
18801 fi
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817 xorg_testset_save_CFLAGS="$CFLAGS"
18818
18819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18823 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18824 then :
18825 printf %s "(cached) " >&6
18826 else case e in #(
18827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18829 int i;
18830 _ACEOF
18831 if ac_fn_c_try_compile "$LINENO"
18832 then :
18833 xorg_cv_cc_flag_unknown_warning_option=yes
18834 else case e in #(
18835 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18836 esac
18837 fi
18838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18839 esac
18840 fi
18841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18844 CFLAGS="$xorg_testset_save_CFLAGS"
18845 fi
18846
18847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18850 fi
18851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18855 then :
18856 printf %s "(cached) " >&6
18857 else case e in #(
18858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859 /* end confdefs.h. */
18860 int i;
18861 _ACEOF
18862 if ac_fn_c_try_compile "$LINENO"
18863 then :
18864 xorg_cv_cc_flag_unused_command_line_argument=yes
18865 else case e in #(
18866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18867 esac
18868 fi
18869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18870 esac
18871 fi
18872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18875 CFLAGS="$xorg_testset_save_CFLAGS"
18876 fi
18877
18878 found="no"
18879
18880 if test $found = "no" ; then
18881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18883 fi
18884
18885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18887 fi
18888
18889 CFLAGS="$CFLAGS -Wsequence-point"
18890
18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18892 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18893 cacheid=xorg_cv_cc_flag__Wsequence_point
18894 if eval test \${$cacheid+y}
18895 then :
18896 printf %s "(cached) " >&6
18897 else case e in #(
18898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18900 int i;
18901 int
18902 main (void)
18903 {
18904
18905 ;
18906 return 0;
18907 }
18908 _ACEOF
18909 if ac_fn_c_try_link "$LINENO"
18910 then :
18911 eval $cacheid=yes
18912 else case e in #(
18913 e) eval $cacheid=no ;;
18914 esac
18915 fi
18916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18917 conftest$ac_exeext conftest.$ac_ext ;;
18918 esac
18919 fi
18920
18921
18922 CFLAGS="$xorg_testset_save_CFLAGS"
18923
18924 eval supported=\$$cacheid
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18926 printf "%s\n" "$supported" >&6; }
18927 if test "$supported" = "yes" ; then
18928 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18929 found="yes"
18930 fi
18931 fi
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947 xorg_testset_save_CFLAGS="$CFLAGS"
18948
18949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18954 then :
18955 printf %s "(cached) " >&6
18956 else case e in #(
18957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959 int i;
18960 _ACEOF
18961 if ac_fn_c_try_compile "$LINENO"
18962 then :
18963 xorg_cv_cc_flag_unknown_warning_option=yes
18964 else case e in #(
18965 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18966 esac
18967 fi
18968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18969 esac
18970 fi
18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18974 CFLAGS="$xorg_testset_save_CFLAGS"
18975 fi
18976
18977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18980 fi
18981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18985 then :
18986 printf %s "(cached) " >&6
18987 else case e in #(
18988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989 /* end confdefs.h. */
18990 int i;
18991 _ACEOF
18992 if ac_fn_c_try_compile "$LINENO"
18993 then :
18994 xorg_cv_cc_flag_unused_command_line_argument=yes
18995 else case e in #(
18996 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18997 esac
18998 fi
18999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19000 esac
19001 fi
19002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19005 CFLAGS="$xorg_testset_save_CFLAGS"
19006 fi
19007
19008 found="no"
19009
19010 if test $found = "no" ; then
19011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19013 fi
19014
19015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19017 fi
19018
19019 CFLAGS="$CFLAGS -Wreturn-type"
19020
19021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19022 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19023 cacheid=xorg_cv_cc_flag__Wreturn_type
19024 if eval test \${$cacheid+y}
19025 then :
19026 printf %s "(cached) " >&6
19027 else case e in #(
19028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19030 int i;
19031 int
19032 main (void)
19033 {
19034
19035 ;
19036 return 0;
19037 }
19038 _ACEOF
19039 if ac_fn_c_try_link "$LINENO"
19040 then :
19041 eval $cacheid=yes
19042 else case e in #(
19043 e) eval $cacheid=no ;;
19044 esac
19045 fi
19046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19047 conftest$ac_exeext conftest.$ac_ext ;;
19048 esac
19049 fi
19050
19051
19052 CFLAGS="$xorg_testset_save_CFLAGS"
19053
19054 eval supported=\$$cacheid
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19056 printf "%s\n" "$supported" >&6; }
19057 if test "$supported" = "yes" ; then
19058 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19059 found="yes"
19060 fi
19061 fi
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077 xorg_testset_save_CFLAGS="$CFLAGS"
19078
19079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19082 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19083 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19084 then :
19085 printf %s "(cached) " >&6
19086 else case e in #(
19087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19088 /* end confdefs.h. */
19089 int i;
19090 _ACEOF
19091 if ac_fn_c_try_compile "$LINENO"
19092 then :
19093 xorg_cv_cc_flag_unknown_warning_option=yes
19094 else case e in #(
19095 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19096 esac
19097 fi
19098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19099 esac
19100 fi
19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19104 CFLAGS="$xorg_testset_save_CFLAGS"
19105 fi
19106
19107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19110 fi
19111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19115 then :
19116 printf %s "(cached) " >&6
19117 else case e in #(
19118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119 /* end confdefs.h. */
19120 int i;
19121 _ACEOF
19122 if ac_fn_c_try_compile "$LINENO"
19123 then :
19124 xorg_cv_cc_flag_unused_command_line_argument=yes
19125 else case e in #(
19126 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19127 esac
19128 fi
19129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19130 esac
19131 fi
19132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19135 CFLAGS="$xorg_testset_save_CFLAGS"
19136 fi
19137
19138 found="no"
19139
19140 if test $found = "no" ; then
19141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19143 fi
19144
19145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19147 fi
19148
19149 CFLAGS="$CFLAGS -Wtrigraphs"
19150
19151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19152 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19153 cacheid=xorg_cv_cc_flag__Wtrigraphs
19154 if eval test \${$cacheid+y}
19155 then :
19156 printf %s "(cached) " >&6
19157 else case e in #(
19158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160 int i;
19161 int
19162 main (void)
19163 {
19164
19165 ;
19166 return 0;
19167 }
19168 _ACEOF
19169 if ac_fn_c_try_link "$LINENO"
19170 then :
19171 eval $cacheid=yes
19172 else case e in #(
19173 e) eval $cacheid=no ;;
19174 esac
19175 fi
19176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19177 conftest$ac_exeext conftest.$ac_ext ;;
19178 esac
19179 fi
19180
19181
19182 CFLAGS="$xorg_testset_save_CFLAGS"
19183
19184 eval supported=\$$cacheid
19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19186 printf "%s\n" "$supported" >&6; }
19187 if test "$supported" = "yes" ; then
19188 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19189 found="yes"
19190 fi
19191 fi
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207 xorg_testset_save_CFLAGS="$CFLAGS"
19208
19209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19213 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19214 then :
19215 printf %s "(cached) " >&6
19216 else case e in #(
19217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19218 /* end confdefs.h. */
19219 int i;
19220 _ACEOF
19221 if ac_fn_c_try_compile "$LINENO"
19222 then :
19223 xorg_cv_cc_flag_unknown_warning_option=yes
19224 else case e in #(
19225 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19226 esac
19227 fi
19228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19229 esac
19230 fi
19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19234 CFLAGS="$xorg_testset_save_CFLAGS"
19235 fi
19236
19237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19240 fi
19241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19245 then :
19246 printf %s "(cached) " >&6
19247 else case e in #(
19248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 int i;
19251 _ACEOF
19252 if ac_fn_c_try_compile "$LINENO"
19253 then :
19254 xorg_cv_cc_flag_unused_command_line_argument=yes
19255 else case e in #(
19256 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19257 esac
19258 fi
19259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19260 esac
19261 fi
19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19265 CFLAGS="$xorg_testset_save_CFLAGS"
19266 fi
19267
19268 found="no"
19269
19270 if test $found = "no" ; then
19271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19273 fi
19274
19275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19277 fi
19278
19279 CFLAGS="$CFLAGS -Warray-bounds"
19280
19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19282 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19283 cacheid=xorg_cv_cc_flag__Warray_bounds
19284 if eval test \${$cacheid+y}
19285 then :
19286 printf %s "(cached) " >&6
19287 else case e in #(
19288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290 int i;
19291 int
19292 main (void)
19293 {
19294
19295 ;
19296 return 0;
19297 }
19298 _ACEOF
19299 if ac_fn_c_try_link "$LINENO"
19300 then :
19301 eval $cacheid=yes
19302 else case e in #(
19303 e) eval $cacheid=no ;;
19304 esac
19305 fi
19306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19307 conftest$ac_exeext conftest.$ac_ext ;;
19308 esac
19309 fi
19310
19311
19312 CFLAGS="$xorg_testset_save_CFLAGS"
19313
19314 eval supported=\$$cacheid
19315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19316 printf "%s\n" "$supported" >&6; }
19317 if test "$supported" = "yes" ; then
19318 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19319 found="yes"
19320 fi
19321 fi
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337 xorg_testset_save_CFLAGS="$CFLAGS"
19338
19339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19343 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19344 then :
19345 printf %s "(cached) " >&6
19346 else case e in #(
19347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19349 int i;
19350 _ACEOF
19351 if ac_fn_c_try_compile "$LINENO"
19352 then :
19353 xorg_cv_cc_flag_unknown_warning_option=yes
19354 else case e in #(
19355 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19356 esac
19357 fi
19358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19359 esac
19360 fi
19361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19362 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19364 CFLAGS="$xorg_testset_save_CFLAGS"
19365 fi
19366
19367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19370 fi
19371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19373 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19374 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19375 then :
19376 printf %s "(cached) " >&6
19377 else case e in #(
19378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19380 int i;
19381 _ACEOF
19382 if ac_fn_c_try_compile "$LINENO"
19383 then :
19384 xorg_cv_cc_flag_unused_command_line_argument=yes
19385 else case e in #(
19386 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19387 esac
19388 fi
19389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19390 esac
19391 fi
19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19393 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19395 CFLAGS="$xorg_testset_save_CFLAGS"
19396 fi
19397
19398 found="no"
19399
19400 if test $found = "no" ; then
19401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19403 fi
19404
19405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19407 fi
19408
19409 CFLAGS="$CFLAGS -Wwrite-strings"
19410
19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19412 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19413 cacheid=xorg_cv_cc_flag__Wwrite_strings
19414 if eval test \${$cacheid+y}
19415 then :
19416 printf %s "(cached) " >&6
19417 else case e in #(
19418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19420 int i;
19421 int
19422 main (void)
19423 {
19424
19425 ;
19426 return 0;
19427 }
19428 _ACEOF
19429 if ac_fn_c_try_link "$LINENO"
19430 then :
19431 eval $cacheid=yes
19432 else case e in #(
19433 e) eval $cacheid=no ;;
19434 esac
19435 fi
19436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19437 conftest$ac_exeext conftest.$ac_ext ;;
19438 esac
19439 fi
19440
19441
19442 CFLAGS="$xorg_testset_save_CFLAGS"
19443
19444 eval supported=\$$cacheid
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19446 printf "%s\n" "$supported" >&6; }
19447 if test "$supported" = "yes" ; then
19448 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19449 found="yes"
19450 fi
19451 fi
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467 xorg_testset_save_CFLAGS="$CFLAGS"
19468
19469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19473 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19474 then :
19475 printf %s "(cached) " >&6
19476 else case e in #(
19477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 int i;
19480 _ACEOF
19481 if ac_fn_c_try_compile "$LINENO"
19482 then :
19483 xorg_cv_cc_flag_unknown_warning_option=yes
19484 else case e in #(
19485 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19486 esac
19487 fi
19488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19489 esac
19490 fi
19491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19494 CFLAGS="$xorg_testset_save_CFLAGS"
19495 fi
19496
19497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19500 fi
19501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19505 then :
19506 printf %s "(cached) " >&6
19507 else case e in #(
19508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19509 /* end confdefs.h. */
19510 int i;
19511 _ACEOF
19512 if ac_fn_c_try_compile "$LINENO"
19513 then :
19514 xorg_cv_cc_flag_unused_command_line_argument=yes
19515 else case e in #(
19516 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19517 esac
19518 fi
19519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19520 esac
19521 fi
19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19523 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19525 CFLAGS="$xorg_testset_save_CFLAGS"
19526 fi
19527
19528 found="no"
19529
19530 if test $found = "no" ; then
19531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19533 fi
19534
19535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19537 fi
19538
19539 CFLAGS="$CFLAGS -Waddress"
19540
19541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19542 printf %s "checking if $CC supports -Waddress... " >&6; }
19543 cacheid=xorg_cv_cc_flag__Waddress
19544 if eval test \${$cacheid+y}
19545 then :
19546 printf %s "(cached) " >&6
19547 else case e in #(
19548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550 int i;
19551 int
19552 main (void)
19553 {
19554
19555 ;
19556 return 0;
19557 }
19558 _ACEOF
19559 if ac_fn_c_try_link "$LINENO"
19560 then :
19561 eval $cacheid=yes
19562 else case e in #(
19563 e) eval $cacheid=no ;;
19564 esac
19565 fi
19566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19567 conftest$ac_exeext conftest.$ac_ext ;;
19568 esac
19569 fi
19570
19571
19572 CFLAGS="$xorg_testset_save_CFLAGS"
19573
19574 eval supported=\$$cacheid
19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19576 printf "%s\n" "$supported" >&6; }
19577 if test "$supported" = "yes" ; then
19578 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19579 found="yes"
19580 fi
19581 fi
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597 xorg_testset_save_CFLAGS="$CFLAGS"
19598
19599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19604 then :
19605 printf %s "(cached) " >&6
19606 else case e in #(
19607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19609 int i;
19610 _ACEOF
19611 if ac_fn_c_try_compile "$LINENO"
19612 then :
19613 xorg_cv_cc_flag_unknown_warning_option=yes
19614 else case e in #(
19615 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19616 esac
19617 fi
19618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19619 esac
19620 fi
19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19624 CFLAGS="$xorg_testset_save_CFLAGS"
19625 fi
19626
19627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19630 fi
19631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19635 then :
19636 printf %s "(cached) " >&6
19637 else case e in #(
19638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19640 int i;
19641 _ACEOF
19642 if ac_fn_c_try_compile "$LINENO"
19643 then :
19644 xorg_cv_cc_flag_unused_command_line_argument=yes
19645 else case e in #(
19646 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19647 esac
19648 fi
19649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19650 esac
19651 fi
19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19653 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19655 CFLAGS="$xorg_testset_save_CFLAGS"
19656 fi
19657
19658 found="no"
19659
19660 if test $found = "no" ; then
19661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19663 fi
19664
19665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19667 fi
19668
19669 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19670
19671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19672 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19673 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19674 if eval test \${$cacheid+y}
19675 then :
19676 printf %s "(cached) " >&6
19677 else case e in #(
19678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19680 int i;
19681 int
19682 main (void)
19683 {
19684
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 if ac_fn_c_try_link "$LINENO"
19690 then :
19691 eval $cacheid=yes
19692 else case e in #(
19693 e) eval $cacheid=no ;;
19694 esac
19695 fi
19696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19697 conftest$ac_exeext conftest.$ac_ext ;;
19698 esac
19699 fi
19700
19701
19702 CFLAGS="$xorg_testset_save_CFLAGS"
19703
19704 eval supported=\$$cacheid
19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19706 printf "%s\n" "$supported" >&6; }
19707 if test "$supported" = "yes" ; then
19708 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19709 found="yes"
19710 fi
19711 fi
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727 xorg_testset_save_CFLAGS="$CFLAGS"
19728
19729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19732 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19733 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19734 then :
19735 printf %s "(cached) " >&6
19736 else case e in #(
19737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h. */
19739 int i;
19740 _ACEOF
19741 if ac_fn_c_try_compile "$LINENO"
19742 then :
19743 xorg_cv_cc_flag_unknown_warning_option=yes
19744 else case e in #(
19745 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19746 esac
19747 fi
19748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19749 esac
19750 fi
19751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19752 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19754 CFLAGS="$xorg_testset_save_CFLAGS"
19755 fi
19756
19757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19760 fi
19761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19765 then :
19766 printf %s "(cached) " >&6
19767 else case e in #(
19768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19770 int i;
19771 _ACEOF
19772 if ac_fn_c_try_compile "$LINENO"
19773 then :
19774 xorg_cv_cc_flag_unused_command_line_argument=yes
19775 else case e in #(
19776 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19777 esac
19778 fi
19779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19780 esac
19781 fi
19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19785 CFLAGS="$xorg_testset_save_CFLAGS"
19786 fi
19787
19788 found="no"
19789
19790 if test $found = "no" ; then
19791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19793 fi
19794
19795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19797 fi
19798
19799 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19800
19801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19802 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19803 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19804 if eval test \${$cacheid+y}
19805 then :
19806 printf %s "(cached) " >&6
19807 else case e in #(
19808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19810 int i;
19811 int
19812 main (void)
19813 {
19814
19815 ;
19816 return 0;
19817 }
19818 _ACEOF
19819 if ac_fn_c_try_link "$LINENO"
19820 then :
19821 eval $cacheid=yes
19822 else case e in #(
19823 e) eval $cacheid=no ;;
19824 esac
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19827 conftest$ac_exeext conftest.$ac_ext ;;
19828 esac
19829 fi
19830
19831
19832 CFLAGS="$xorg_testset_save_CFLAGS"
19833
19834 eval supported=\$$cacheid
19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19836 printf "%s\n" "$supported" >&6; }
19837 if test "$supported" = "yes" ; then
19838 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19839 found="yes"
19840 fi
19841 fi
19842
19843
19844 fi
19845
19846
19847
19848
19849
19850
19851
19852 CWARNFLAGS="$BASE_CFLAGS"
19853 if test "x$GCC" = xyes ; then
19854 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19855 fi
19856
19857
19858
19859
19860
19861
19862
19863
19864 # Check whether --enable-strict-compilation was given.
19865 if test ${enable_strict_compilation+y}
19866 then :
19867 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19868 else case e in #(
19869 e) STRICT_COMPILE=no ;;
19870 esac
19871 fi
19872
19873
19874
19875
19876
19877
19878 STRICT_CFLAGS=""
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892 xorg_testset_save_CFLAGS="$CFLAGS"
19893
19894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19897 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19898 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19899 then :
19900 printf %s "(cached) " >&6
19901 else case e in #(
19902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903 /* end confdefs.h. */
19904 int i;
19905 _ACEOF
19906 if ac_fn_c_try_compile "$LINENO"
19907 then :
19908 xorg_cv_cc_flag_unknown_warning_option=yes
19909 else case e in #(
19910 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19911 esac
19912 fi
19913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19914 esac
19915 fi
19916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19917 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19919 CFLAGS="$xorg_testset_save_CFLAGS"
19920 fi
19921
19922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19925 fi
19926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19928 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19929 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19930 then :
19931 printf %s "(cached) " >&6
19932 else case e in #(
19933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19935 int i;
19936 _ACEOF
19937 if ac_fn_c_try_compile "$LINENO"
19938 then :
19939 xorg_cv_cc_flag_unused_command_line_argument=yes
19940 else case e in #(
19941 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19942 esac
19943 fi
19944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19945 esac
19946 fi
19947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19948 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19950 CFLAGS="$xorg_testset_save_CFLAGS"
19951 fi
19952
19953 found="no"
19954
19955 if test $found = "no" ; then
19956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19958 fi
19959
19960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19962 fi
19963
19964 CFLAGS="$CFLAGS -pedantic"
19965
19966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19967 printf %s "checking if $CC supports -pedantic... " >&6; }
19968 cacheid=xorg_cv_cc_flag__pedantic
19969 if eval test \${$cacheid+y}
19970 then :
19971 printf %s "(cached) " >&6
19972 else case e in #(
19973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19975 int i;
19976 int
19977 main (void)
19978 {
19979
19980 ;
19981 return 0;
19982 }
19983 _ACEOF
19984 if ac_fn_c_try_link "$LINENO"
19985 then :
19986 eval $cacheid=yes
19987 else case e in #(
19988 e) eval $cacheid=no ;;
19989 esac
19990 fi
19991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19992 conftest$ac_exeext conftest.$ac_ext ;;
19993 esac
19994 fi
19995
19996
19997 CFLAGS="$xorg_testset_save_CFLAGS"
19998
19999 eval supported=\$$cacheid
20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20001 printf "%s\n" "$supported" >&6; }
20002 if test "$supported" = "yes" ; then
20003 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20004 found="yes"
20005 fi
20006 fi
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022 xorg_testset_save_CFLAGS="$CFLAGS"
20023
20024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20029 then :
20030 printf %s "(cached) " >&6
20031 else case e in #(
20032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20034 int i;
20035 _ACEOF
20036 if ac_fn_c_try_compile "$LINENO"
20037 then :
20038 xorg_cv_cc_flag_unknown_warning_option=yes
20039 else case e in #(
20040 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20041 esac
20042 fi
20043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20044 esac
20045 fi
20046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20047 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20049 CFLAGS="$xorg_testset_save_CFLAGS"
20050 fi
20051
20052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20055 fi
20056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20058 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20059 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20060 then :
20061 printf %s "(cached) " >&6
20062 else case e in #(
20063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065 int i;
20066 _ACEOF
20067 if ac_fn_c_try_compile "$LINENO"
20068 then :
20069 xorg_cv_cc_flag_unused_command_line_argument=yes
20070 else case e in #(
20071 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20072 esac
20073 fi
20074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20075 esac
20076 fi
20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20078 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20080 CFLAGS="$xorg_testset_save_CFLAGS"
20081 fi
20082
20083 found="no"
20084
20085 if test $found = "no" ; then
20086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20088 fi
20089
20090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20092 fi
20093
20094 CFLAGS="$CFLAGS -Werror"
20095
20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20097 printf %s "checking if $CC supports -Werror... " >&6; }
20098 cacheid=xorg_cv_cc_flag__Werror
20099 if eval test \${$cacheid+y}
20100 then :
20101 printf %s "(cached) " >&6
20102 else case e in #(
20103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20105 int i;
20106 int
20107 main (void)
20108 {
20109
20110 ;
20111 return 0;
20112 }
20113 _ACEOF
20114 if ac_fn_c_try_link "$LINENO"
20115 then :
20116 eval $cacheid=yes
20117 else case e in #(
20118 e) eval $cacheid=no ;;
20119 esac
20120 fi
20121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20122 conftest$ac_exeext conftest.$ac_ext ;;
20123 esac
20124 fi
20125
20126
20127 CFLAGS="$xorg_testset_save_CFLAGS"
20128
20129 eval supported=\$$cacheid
20130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20131 printf "%s\n" "$supported" >&6; }
20132 if test "$supported" = "yes" ; then
20133 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20134 found="yes"
20135 fi
20136 fi
20137
20138 if test $found = "no" ; then
20139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20141 fi
20142
20143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20145 fi
20146
20147 CFLAGS="$CFLAGS -errwarn"
20148
20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20150 printf %s "checking if $CC supports -errwarn... " >&6; }
20151 cacheid=xorg_cv_cc_flag__errwarn
20152 if eval test \${$cacheid+y}
20153 then :
20154 printf %s "(cached) " >&6
20155 else case e in #(
20156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158 int i;
20159 int
20160 main (void)
20161 {
20162
20163 ;
20164 return 0;
20165 }
20166 _ACEOF
20167 if ac_fn_c_try_link "$LINENO"
20168 then :
20169 eval $cacheid=yes
20170 else case e in #(
20171 e) eval $cacheid=no ;;
20172 esac
20173 fi
20174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20175 conftest$ac_exeext conftest.$ac_ext ;;
20176 esac
20177 fi
20178
20179
20180 CFLAGS="$xorg_testset_save_CFLAGS"
20181
20182 eval supported=\$$cacheid
20183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20184 printf "%s\n" "$supported" >&6; }
20185 if test "$supported" = "yes" ; then
20186 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20187 found="yes"
20188 fi
20189 fi
20190
20191
20192
20193 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20194 # activate it with -Werror, so we add it here explicitly.
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208 xorg_testset_save_CFLAGS="$CFLAGS"
20209
20210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20213 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20214 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20215 then :
20216 printf %s "(cached) " >&6
20217 else case e in #(
20218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219 /* end confdefs.h. */
20220 int i;
20221 _ACEOF
20222 if ac_fn_c_try_compile "$LINENO"
20223 then :
20224 xorg_cv_cc_flag_unknown_warning_option=yes
20225 else case e in #(
20226 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20227 esac
20228 fi
20229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20230 esac
20231 fi
20232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20235 CFLAGS="$xorg_testset_save_CFLAGS"
20236 fi
20237
20238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20241 fi
20242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20246 then :
20247 printf %s "(cached) " >&6
20248 else case e in #(
20249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250 /* end confdefs.h. */
20251 int i;
20252 _ACEOF
20253 if ac_fn_c_try_compile "$LINENO"
20254 then :
20255 xorg_cv_cc_flag_unused_command_line_argument=yes
20256 else case e in #(
20257 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20258 esac
20259 fi
20260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20261 esac
20262 fi
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20264 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20266 CFLAGS="$xorg_testset_save_CFLAGS"
20267 fi
20268
20269 found="no"
20270
20271 if test $found = "no" ; then
20272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20274 fi
20275
20276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20278 fi
20279
20280 CFLAGS="$CFLAGS -Werror=attributes"
20281
20282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20283 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20284 cacheid=xorg_cv_cc_flag__Werror_attributes
20285 if eval test \${$cacheid+y}
20286 then :
20287 printf %s "(cached) " >&6
20288 else case e in #(
20289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20290 /* end confdefs.h. */
20291 int i;
20292 int
20293 main (void)
20294 {
20295
20296 ;
20297 return 0;
20298 }
20299 _ACEOF
20300 if ac_fn_c_try_link "$LINENO"
20301 then :
20302 eval $cacheid=yes
20303 else case e in #(
20304 e) eval $cacheid=no ;;
20305 esac
20306 fi
20307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20308 conftest$ac_exeext conftest.$ac_ext ;;
20309 esac
20310 fi
20311
20312
20313 CFLAGS="$xorg_testset_save_CFLAGS"
20314
20315 eval supported=\$$cacheid
20316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20317 printf "%s\n" "$supported" >&6; }
20318 if test "$supported" = "yes" ; then
20319 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20320 found="yes"
20321 fi
20322 fi
20323
20324
20325
20326 if test "x$STRICT_COMPILE" = "xyes"; then
20327 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20328 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20329 fi
20330
20331
20332
20333
20334
20335
20336
20337
20338 cat >>confdefs.h <<_ACEOF
20339 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20340 _ACEOF
20341
20342 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20343 if test "x$PVM" = "x"; then
20344 PVM="0"
20345 fi
20346
20347 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20348
20349 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20350 if test "x$PVP" = "x"; then
20351 PVP="0"
20352 fi
20353
20354 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20355
20356
20357
20358 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20359 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20360 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20361 touch \$(top_srcdir)/ChangeLog; \
20362 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20363
20364
20365
20366
20367 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20368 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20369 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20370 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20371 touch \$(top_srcdir)/INSTALL; \
20372 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20373
20374
20375
20376
20377
20378
20379 case $host_os in
20380 solaris*)
20381 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20382 # check for a man page file found in later versions that use
20383 # traditional section numbers instead
20384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20385 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20386 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20387 then :
20388 printf %s "(cached) " >&6
20389 else case e in #(
20390 e) test "$cross_compiling" = yes &&
20391 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20392 if test -r "/usr/share/man/man7/attributes.7"; then
20393 ac_cv_file__usr_share_man_man7_attributes_7=yes
20394 else
20395 ac_cv_file__usr_share_man_man7_attributes_7=no
20396 fi ;;
20397 esac
20398 fi
20399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20400 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20401 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20402 then :
20403 SYSV_MAN_SECTIONS=false
20404 else case e in #(
20405 e) SYSV_MAN_SECTIONS=true ;;
20406 esac
20407 fi
20408
20409 ;;
20410 *) SYSV_MAN_SECTIONS=false ;;
20411 esac
20412
20413 if test x$APP_MAN_SUFFIX = x ; then
20414 APP_MAN_SUFFIX=1
20415 fi
20416 if test x$APP_MAN_DIR = x ; then
20417 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20418 fi
20419
20420 if test x$LIB_MAN_SUFFIX = x ; then
20421 LIB_MAN_SUFFIX=3
20422 fi
20423 if test x$LIB_MAN_DIR = x ; then
20424 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20425 fi
20426
20427 if test x$FILE_MAN_SUFFIX = x ; then
20428 case $SYSV_MAN_SECTIONS in
20429 true) FILE_MAN_SUFFIX=4 ;;
20430 *) FILE_MAN_SUFFIX=5 ;;
20431 esac
20432 fi
20433 if test x$FILE_MAN_DIR = x ; then
20434 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20435 fi
20436
20437 if test x$MISC_MAN_SUFFIX = x ; then
20438 case $SYSV_MAN_SECTIONS in
20439 true) MISC_MAN_SUFFIX=5 ;;
20440 *) MISC_MAN_SUFFIX=7 ;;
20441 esac
20442 fi
20443 if test x$MISC_MAN_DIR = x ; then
20444 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20445 fi
20446
20447 if test x$DRIVER_MAN_SUFFIX = x ; then
20448 case $SYSV_MAN_SECTIONS in
20449 true) DRIVER_MAN_SUFFIX=7 ;;
20450 *) DRIVER_MAN_SUFFIX=4 ;;
20451 esac
20452 fi
20453 if test x$DRIVER_MAN_DIR = x ; then
20454 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20455 fi
20456
20457 if test x$ADMIN_MAN_SUFFIX = x ; then
20458 case $SYSV_MAN_SECTIONS in
20459 true) ADMIN_MAN_SUFFIX=1m ;;
20460 *) ADMIN_MAN_SUFFIX=8 ;;
20461 esac
20462 fi
20463 if test x$ADMIN_MAN_DIR = x ; then
20464 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20465 fi
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481 XORG_MAN_PAGE="X Version 11"
20482
20483 MAN_SUBSTS="\
20484 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20485 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20486 -e 's|__xservername__|Xorg|g' \
20487 -e 's|__xconfigfile__|xorg.conf|g' \
20488 -e 's|__projectroot__|\$(prefix)|g' \
20489 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20490 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20491 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20492 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20493 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20494 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20495 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20496
20497
20498
20499
20500 AM_DEFAULT_VERBOSITY=0
20501
20502
20503
20504
20505
20506
20507
20508
20509 # Check whether --with-xmlto was given.
20510 if test ${with_xmlto+y}
20511 then :
20512 withval=$with_xmlto; use_xmlto=$withval
20513 else case e in #(
20514 e) use_xmlto=auto ;;
20515 esac
20516 fi
20517
20518
20519
20520 if test "x$use_xmlto" = x"auto"; then
20521 # Extract the first word of "xmlto", so it can be a program name with args.
20522 set dummy xmlto; ac_word=$2
20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20524 printf %s "checking for $ac_word... " >&6; }
20525 if test ${ac_cv_path_XMLTO+y}
20526 then :
20527 printf %s "(cached) " >&6
20528 else case e in #(
20529 e) case $XMLTO in
20530 [\\/]* | ?:[\\/]*)
20531 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20532 ;;
20533 *)
20534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20535 for as_dir in $PATH
20536 do
20537 IFS=$as_save_IFS
20538 case $as_dir in #(((
20539 '') as_dir=./ ;;
20540 */) ;;
20541 *) as_dir=$as_dir/ ;;
20542 esac
20543 for ac_exec_ext in '' $ac_executable_extensions; do
20544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20545 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20547 break 2
20548 fi
20549 done
20550 done
20551 IFS=$as_save_IFS
20552
20553 ;;
20554 esac ;;
20555 esac
20556 fi
20557 XMLTO=$ac_cv_path_XMLTO
20558 if test -n "$XMLTO"; then
20559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20560 printf "%s\n" "$XMLTO" >&6; }
20561 else
20562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20563 printf "%s\n" "no" >&6; }
20564 fi
20565
20566
20567 if test "x$XMLTO" = "x"; then
20568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20569 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20570 have_xmlto=no
20571 else
20572 have_xmlto=yes
20573 fi
20574 elif test "x$use_xmlto" = x"yes" ; then
20575 # Extract the first word of "xmlto", so it can be a program name with args.
20576 set dummy xmlto; ac_word=$2
20577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20578 printf %s "checking for $ac_word... " >&6; }
20579 if test ${ac_cv_path_XMLTO+y}
20580 then :
20581 printf %s "(cached) " >&6
20582 else case e in #(
20583 e) case $XMLTO in
20584 [\\/]* | ?:[\\/]*)
20585 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20586 ;;
20587 *)
20588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20589 for as_dir in $PATH
20590 do
20591 IFS=$as_save_IFS
20592 case $as_dir in #(((
20593 '') as_dir=./ ;;
20594 */) ;;
20595 *) as_dir=$as_dir/ ;;
20596 esac
20597 for ac_exec_ext in '' $ac_executable_extensions; do
20598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20599 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20601 break 2
20602 fi
20603 done
20604 done
20605 IFS=$as_save_IFS
20606
20607 ;;
20608 esac ;;
20609 esac
20610 fi
20611 XMLTO=$ac_cv_path_XMLTO
20612 if test -n "$XMLTO"; then
20613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20614 printf "%s\n" "$XMLTO" >&6; }
20615 else
20616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 printf "%s\n" "no" >&6; }
20618 fi
20619
20620
20621 if test "x$XMLTO" = "x"; then
20622 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20623 fi
20624 have_xmlto=yes
20625 elif test "x$use_xmlto" = x"no" ; then
20626 if test "x$XMLTO" != "x"; then
20627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20628 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20629 fi
20630 have_xmlto=no
20631 else
20632 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20633 fi
20634
20635 # Test for a minimum version of xmlto, if provided.
20636 if test "$have_xmlto" = yes; then
20637 # scrape the xmlto version
20638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20639 printf %s "checking the xmlto version... " >&6; }
20640 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20642 printf "%s\n" "$xmlto_version" >&6; }
20643 as_arg_v1=$xmlto_version
20644 as_arg_v2=0.0.20
20645 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20646 case $? in #(
20647 1) :
20648 if test "x$use_xmlto" = xauto; then
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
20650 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
20651 have_xmlto=no
20652 else
20653 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
20654 fi ;; #(
20655 0) :
20656 ;; #(
20657 2) :
20658 ;; #(
20659 *) :
20660 ;;
20661 esac
20662 fi
20663
20664 # Test for the ability of xmlto to generate a text target
20665 #
20666 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20667 # following test for empty XML docbook files.
20668 # For compatibility reasons use the following empty XML docbook file and if
20669 # it fails try it again with a non-empty XML file.
20670 have_xmlto_text=no
20671 cat > conftest.xml << "EOF"
20672 EOF
20673 if test "$have_xmlto" = yes
20674 then :
20675 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20676 then :
20677 have_xmlto_text=yes
20678 else case e in #(
20679 e) # Try it again with a non-empty XML file.
20680 cat > conftest.xml << "EOF"
20681 <x></x>
20682 EOF
20683 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20684 then :
20685 have_xmlto_text=yes
20686 else case e in #(
20687 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20688 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
20689 esac
20690 fi ;;
20691 esac
20692 fi
20693 fi
20694 rm -f conftest.xml
20695 if test $have_xmlto_text = yes; then
20696 HAVE_XMLTO_TEXT_TRUE=
20697 HAVE_XMLTO_TEXT_FALSE='#'
20698 else
20699 HAVE_XMLTO_TEXT_TRUE='#'
20700 HAVE_XMLTO_TEXT_FALSE=
20701 fi
20702
20703 if test "$have_xmlto" = yes; then
20704 HAVE_XMLTO_TRUE=
20705 HAVE_XMLTO_FALSE='#'
20706 else
20707 HAVE_XMLTO_TRUE='#'
20708 HAVE_XMLTO_FALSE=
20709 fi
20710
20711
20712
20713 # Determine if the source for man pages is available
20714 # It may already be present (tarball) or can be generated using xmlto
20715 if test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes; then
20716 INSTALL_MANPAGES_TRUE=
20717 INSTALL_MANPAGES_FALSE='#'
20718 else
20719 INSTALL_MANPAGES_TRUE='#'
20720 INSTALL_MANPAGES_FALSE=
20721 fi
20722
20723
20724 # Check compositeext configuration, strip extra digits from package version to
20725 # find the required protocol version
20726 if test "$VERSION" = "" ; then
20727 VERSION=$PACKAGE_VERSION;
20728 fi
20729 COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
20730
20731
20732 # Obtain compiler/linker options for dependencies
20733
20734 pkg_failed=no
20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCOMPOSITE" >&5
20736 printf %s "checking for XCOMPOSITE... " >&6; }
20737
20738 if test -n "$XCOMPOSITE_CFLAGS"; then
20739 pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
20740 elif test -n "$PKG_CONFIG"; then
20741 if test -n "$PKG_CONFIG" && \
20742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xproto >= 7.0.22 x11\""; } >&5
20743 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11") 2>&5
20744 ac_status=$?
20745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20746 test $ac_status = 0; }; then
20747 pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>/dev/null`
20748 test "x$?" != "x0" && pkg_failed=yes
20749 else
20750 pkg_failed=yes
20751 fi
20752 else
20753 pkg_failed=untried
20754 fi
20755 if test -n "$XCOMPOSITE_LIBS"; then
20756 pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
20757 elif test -n "$PKG_CONFIG"; then
20758 if test -n "$PKG_CONFIG" && \
20759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION xproto >= 7.0.22 x11\""; } >&5
20760 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11") 2>&5
20761 ac_status=$?
20762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20763 test $ac_status = 0; }; then
20764 pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>/dev/null`
20765 test "x$?" != "x0" && pkg_failed=yes
20766 else
20767 pkg_failed=yes
20768 fi
20769 else
20770 pkg_failed=untried
20771 fi
20772
20773
20774
20775 if test $pkg_failed = yes; then
20776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20777 printf "%s\n" "no" >&6; }
20778
20779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20780 _pkg_short_errors_supported=yes
20781 else
20782 _pkg_short_errors_supported=no
20783 fi
20784 if test $_pkg_short_errors_supported = yes; then
20785 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>&1`
20786 else
20787 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11" 2>&1`
20788 fi
20789 # Put the nasty error message in config.log where it belongs
20790 echo "$XCOMPOSITE_PKG_ERRORS" >&5
20791
20792 as_fn_error $? "Package requirements (compositeproto >= $COMPOSITEEXT_VERSION xproto >= 7.0.22 x11) were not met:
20793
20794 $XCOMPOSITE_PKG_ERRORS
20795
20796 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20797 installed software in a non-standard prefix.
20798
20799 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
20800 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
20801 See the pkg-config man page for more details." "$LINENO" 5
20802 elif test $pkg_failed = untried; then
20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20804 printf "%s\n" "no" >&6; }
20805 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20806 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20807 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20808 is in your PATH or set the PKG_CONFIG environment variable to the full
20809 path to pkg-config.
20810
20811 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
20812 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
20813 See the pkg-config man page for more details.
20814
20815 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20816 See 'config.log' for more details" "$LINENO" 5; }
20817 else
20818 XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS
20819 XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS
20820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20821 printf "%s\n" "yes" >&6; }
20822
20823 fi
20824
20825 pkg_failed=no
20826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
20827 printf %s "checking for XFIXES... " >&6; }
20828
20829 if test -n "$XFIXES_CFLAGS"; then
20830 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
20831 elif test -n "$PKG_CONFIG"; then
20832 if test -n "$PKG_CONFIG" && \
20833 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
20834 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
20835 ac_status=$?
20836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20837 test $ac_status = 0; }; then
20838 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
20839 test "x$?" != "x0" && pkg_failed=yes
20840 else
20841 pkg_failed=yes
20842 fi
20843 else
20844 pkg_failed=untried
20845 fi
20846 if test -n "$XFIXES_LIBS"; then
20847 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
20848 elif test -n "$PKG_CONFIG"; then
20849 if test -n "$PKG_CONFIG" && \
20850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
20851 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
20852 ac_status=$?
20853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20854 test $ac_status = 0; }; then
20855 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
20856 test "x$?" != "x0" && pkg_failed=yes
20857 else
20858 pkg_failed=yes
20859 fi
20860 else
20861 pkg_failed=untried
20862 fi
20863
20864
20865
20866 if test $pkg_failed = yes; then
20867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20868 printf "%s\n" "no" >&6; }
20869
20870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20871 _pkg_short_errors_supported=yes
20872 else
20873 _pkg_short_errors_supported=no
20874 fi
20875 if test $_pkg_short_errors_supported = yes; then
20876 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes" 2>&1`
20877 else
20878 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes" 2>&1`
20879 fi
20880 # Put the nasty error message in config.log where it belongs
20881 echo "$XFIXES_PKG_ERRORS" >&5
20882
20883 as_fn_error $? "Package requirements (xfixes) were not met:
20884
20885 $XFIXES_PKG_ERRORS
20886
20887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20888 installed software in a non-standard prefix.
20889
20890 Alternatively, you may set the environment variables XFIXES_CFLAGS
20891 and XFIXES_LIBS to avoid the need to call pkg-config.
20892 See the pkg-config man page for more details." "$LINENO" 5
20893 elif test $pkg_failed = untried; then
20894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20895 printf "%s\n" "no" >&6; }
20896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20897 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20898 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20899 is in your PATH or set the PKG_CONFIG environment variable to the full
20900 path to pkg-config.
20901
20902 Alternatively, you may set the environment variables XFIXES_CFLAGS
20903 and XFIXES_LIBS to avoid the need to call pkg-config.
20904 See the pkg-config man page for more details.
20905
20906 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20907 See 'config.log' for more details" "$LINENO" 5; }
20908 else
20909 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
20910 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
20911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20912 printf "%s\n" "yes" >&6; }
20913
20914 fi
20915
20916 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc"
20917
20918 cat >confcache <<\_ACEOF
20919 # This file is a shell script that caches the results of configure
20920 # tests run on this system so they can be shared between configure
20921 # scripts and configure runs, see configure's option --config-cache.
20922 # It is not useful on other systems. If it contains results you don't
20923 # want to keep, you may remove or edit it.
20924 #
20925 # config.status only pays attention to the cache file if you give it
20926 # the --recheck option to rerun configure.
20927 #
20928 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20929 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20930 # following values.
20931
20932 _ACEOF
20933
20934 # The following way of writing the cache mishandles newlines in values,
20935 # but we know of no workaround that is simple, portable, and efficient.
20936 # So, we kill variables containing newlines.
20937 # Ultrix sh set writes to stderr and can't be redirected directly,
20938 # and sets the high bit in the cache file unless we assign to the vars.
20939 (
20940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20941 eval ac_val=\$$ac_var
20942 case $ac_val in #(
20943 *${as_nl}*)
20944 case $ac_var in #(
20945 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20946 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20947 esac
20948 case $ac_var in #(
20949 _ | IFS | as_nl) ;; #(
20950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20951 *) { eval $ac_var=; unset $ac_var;} ;;
20952 esac ;;
20953 esac
20954 done
20955
20956 (set) 2>&1 |
20957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20958 *${as_nl}ac_space=\ *)
20959 # 'set' does not quote correctly, so add quotes: double-quote
20960 # substitution turns \\\\ into \\, and sed turns \\ into \.
20961 sed -n \
20962 "s/'/'\\\\''/g;
20963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20964 ;; #(
20965 *)
20966 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20968 ;;
20969 esac |
20970 sort
20971 ) |
20972 sed '
20973 /^ac_cv_env_/b end
20974 t clear
20975 :clear
20976 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20977 t end
20978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20979 :end' >>confcache
20980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20981 if test -w "$cache_file"; then
20982 if test "x$cache_file" != "x/dev/null"; then
20983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20984 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20985 if test ! -f "$cache_file" || test -h "$cache_file"; then
20986 cat confcache >"$cache_file"
20987 else
20988 case $cache_file in #(
20989 */* | ?:*)
20990 mv -f confcache "$cache_file"$$ &&
20991 mv -f "$cache_file"$$ "$cache_file" ;; #(
20992 *)
20993 mv -f confcache "$cache_file" ;;
20994 esac
20995 fi
20996 fi
20997 else
20998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20999 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21000 fi
21001 fi
21002 rm -f confcache
21003
21004 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21005 # Let make expand exec_prefix.
21006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21007
21008 DEFS=-DHAVE_CONFIG_H
21009
21010 ac_libobjs=
21011 ac_ltlibobjs=
21012 U=
21013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21014 # 1. Remove the extension, and $U if already installed.
21015 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21016 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21017 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21018 # will be set to the directory where LIBOBJS objects are built.
21019 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21020 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21021 done
21022 LIBOBJS=$ac_libobjs
21023
21024 LTLIBOBJS=$ac_ltlibobjs
21025
21026
21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21028 printf %s "checking that generated files are newer than configure... " >&6; }
21029 if test -n "$am_sleep_pid"; then
21030 # Hide warnings about reused PIDs.
21031 wait $am_sleep_pid 2>/dev/null
21032 fi
21033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21034 printf "%s\n" "done" >&6; }
21035 case $enable_silent_rules in # (((
21036 yes) AM_DEFAULT_VERBOSITY=0;;
21037 no) AM_DEFAULT_VERBOSITY=1;;
21038 esac
21039 if test $am_cv_make_support_nested_variables = yes; then
21040 AM_V='$(V)'
21041 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21042 else
21043 AM_V=$AM_DEFAULT_VERBOSITY
21044 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21045 fi
21046
21047 if test -n "$EXEEXT"; then
21048 am__EXEEXT_TRUE=
21049 am__EXEEXT_FALSE='#'
21050 else
21051 am__EXEEXT_TRUE='#'
21052 am__EXEEXT_FALSE=
21053 fi
21054
21055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21056 as_fn_error $? "conditional \"AMDEP\" was never defined.
21057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21058 fi
21059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21060 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21062 fi
21063 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21064 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21066 fi
21067 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21068 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21070 fi
21071 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
21072 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
21073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21074 fi
21075
21076 : "${CONFIG_STATUS=./config.status}"
21077 ac_write_fail=0
21078 ac_clean_files_save=$ac_clean_files
21079 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21081 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21082 as_write_fail=0
21083 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21084 #! $SHELL
21085 # Generated by $as_me.
21086 # Run this file to recreate the current configuration.
21087 # Compiler output produced by configure, useful for debugging
21088 # configure, is in config.log if it exists.
21089
21090 debug=false
21091 ac_cs_recheck=false
21092 ac_cs_silent=false
21093
21094 SHELL=\${CONFIG_SHELL-$SHELL}
21095 export SHELL
21096 _ASEOF
21097 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21098 ## -------------------- ##
21099 ## M4sh Initialization. ##
21100 ## -------------------- ##
21101
21102 # Be more Bourne compatible
21103 DUALCASE=1; export DUALCASE # for MKS sh
21104 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21105 then :
21106 emulate sh
21107 NULLCMD=:
21108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21109 # is contrary to our usage. Disable this feature.
21110 alias -g '${1+"$@"}'='"$@"'
21111 setopt NO_GLOB_SUBST
21112 else case e in #(
21113 e) case `(set -o) 2>/dev/null` in #(
21114 *posix*) :
21115 set -o posix ;; #(
21116 *) :
21117 ;;
21118 esac ;;
21119 esac
21120 fi
21121
21122
21123
21124 # Reset variables that may have inherited troublesome values from
21125 # the environment.
21126
21127 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21128 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21129 # side effect of setting IFS to empty, thus disabling word splitting.)
21130 # Quoting is to prevent editors from complaining about space-tab.
21131 as_nl='
21132 '
21133 export as_nl
21134 IFS=" "" $as_nl"
21135
21136 PS1='$ '
21137 PS2='> '
21138 PS4='+ '
21139
21140 # Ensure predictable behavior from utilities with locale-dependent output.
21141 LC_ALL=C
21142 export LC_ALL
21143 LANGUAGE=C
21144 export LANGUAGE
21145
21146 # We cannot yet rely on "unset" to work, but we need these variables
21147 # to be unset--not just set to an empty or harmless value--now, to
21148 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21149 # also avoids known problems related to "unset" and subshell syntax
21150 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21151 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21152 do eval test \${$as_var+y} \
21153 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21154 done
21155
21156 # Ensure that fds 0, 1, and 2 are open.
21157 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21158 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21159 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21160
21161 # The user is always right.
21162 if ${PATH_SEPARATOR+false} :; then
21163 PATH_SEPARATOR=:
21164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21166 PATH_SEPARATOR=';'
21167 }
21168 fi
21169
21170
21171 # Find who we are. Look in the path if we contain no directory separator.
21172 as_myself=
21173 case $0 in #((
21174 *[\\/]* ) as_myself=$0 ;;
21175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21176 for as_dir in $PATH
21177 do
21178 IFS=$as_save_IFS
21179 case $as_dir in #(((
21180 '') as_dir=./ ;;
21181 */) ;;
21182 *) as_dir=$as_dir/ ;;
21183 esac
21184 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21185 done
21186 IFS=$as_save_IFS
21187
21188 ;;
21189 esac
21190 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21191 # in which case we are not to be found in the path.
21192 if test "x$as_myself" = x; then
21193 as_myself=$0
21194 fi
21195 if test ! -f "$as_myself"; then
21196 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21197 exit 1
21198 fi
21199
21200
21201
21202 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21203 # ----------------------------------------
21204 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21205 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21206 # script with STATUS, using 1 if that was 0.
21207 as_fn_error ()
21208 {
21209 as_status=$1; test $as_status -eq 0 && as_status=1
21210 if test "$4"; then
21211 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21212 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21213 fi
21214 printf "%s\n" "$as_me: error: $2" >&2
21215 as_fn_exit $as_status
21216 } # as_fn_error
21217
21218
21219 # as_fn_set_status STATUS
21220 # -----------------------
21221 # Set $? to STATUS, without forking.
21222 as_fn_set_status ()
21223 {
21224 return $1
21225 } # as_fn_set_status
21226
21227 # as_fn_exit STATUS
21228 # -----------------
21229 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21230 as_fn_exit ()
21231 {
21232 set +e
21233 as_fn_set_status $1
21234 exit $1
21235 } # as_fn_exit
21236
21237 # as_fn_unset VAR
21238 # ---------------
21239 # Portably unset VAR.
21240 as_fn_unset ()
21241 {
21242 { eval $1=; unset $1;}
21243 }
21244 as_unset=as_fn_unset
21245
21246 # as_fn_append VAR VALUE
21247 # ----------------------
21248 # Append the text in VALUE to the end of the definition contained in VAR. Take
21249 # advantage of any shell optimizations that allow amortized linear growth over
21250 # repeated appends, instead of the typical quadratic growth present in naive
21251 # implementations.
21252 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21253 then :
21254 eval 'as_fn_append ()
21255 {
21256 eval $1+=\$2
21257 }'
21258 else case e in #(
21259 e) as_fn_append ()
21260 {
21261 eval $1=\$$1\$2
21262 } ;;
21263 esac
21264 fi # as_fn_append
21265
21266 # as_fn_arith ARG...
21267 # ------------------
21268 # Perform arithmetic evaluation on the ARGs, and store the result in the
21269 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21270 # must be portable across $(()) and expr.
21271 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21272 then :
21273 eval 'as_fn_arith ()
21274 {
21275 as_val=$(( $* ))
21276 }'
21277 else case e in #(
21278 e) as_fn_arith ()
21279 {
21280 as_val=`expr "$@" || test $? -eq 1`
21281 } ;;
21282 esac
21283 fi # as_fn_arith
21284
21285
21286 if expr a : '\(a\)' >/dev/null 2>&1 &&
21287 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21288 as_expr=expr
21289 else
21290 as_expr=false
21291 fi
21292
21293 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21294 as_basename=basename
21295 else
21296 as_basename=false
21297 fi
21298
21299 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21300 as_dirname=dirname
21301 else
21302 as_dirname=false
21303 fi
21304
21305 as_me=`$as_basename -- "$0" ||
21306 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21307 X"$0" : 'X\(//\)$' \| \
21308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21309 printf "%s\n" X/"$0" |
21310 sed '/^.*\/\([^/][^/]*\)\/*$/{
21311 s//\1/
21312 q
21313 }
21314 /^X\/\(\/\/\)$/{
21315 s//\1/
21316 q
21317 }
21318 /^X\/\(\/\).*/{
21319 s//\1/
21320 q
21321 }
21322 s/.*/./; q'`
21323
21324 # Avoid depending upon Character Ranges.
21325 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21326 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21327 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21328 as_cr_digits='0123456789'
21329 as_cr_alnum=$as_cr_Letters$as_cr_digits
21330
21331
21332 # Determine whether it's possible to make 'echo' print without a newline.
21333 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21334 # for compatibility with existing Makefiles.
21335 ECHO_C= ECHO_N= ECHO_T=
21336 case `echo -n x` in #(((((
21337 -n*)
21338 case `echo 'xy\c'` in
21339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21340 xy) ECHO_C='\c';;
21341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21342 ECHO_T=' ';;
21343 esac;;
21344 *)
21345 ECHO_N='-n';;
21346 esac
21347
21348 # For backward compatibility with old third-party macros, we provide
21349 # the shell variables $as_echo and $as_echo_n. New code should use
21350 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21351 as_echo='printf %s\n'
21352 as_echo_n='printf %s'
21353
21354 rm -f conf$$ conf$$.exe conf$$.file
21355 if test -d conf$$.dir; then
21356 rm -f conf$$.dir/conf$$.file
21357 else
21358 rm -f conf$$.dir
21359 mkdir conf$$.dir 2>/dev/null
21360 fi
21361 if (echo >conf$$.file) 2>/dev/null; then
21362 if ln -s conf$$.file conf$$ 2>/dev/null; then
21363 as_ln_s='ln -s'
21364 # ... but there are two gotchas:
21365 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21366 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21367 # In both cases, we have to default to 'cp -pR'.
21368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21369 as_ln_s='cp -pR'
21370 elif ln conf$$.file conf$$ 2>/dev/null; then
21371 as_ln_s=ln
21372 else
21373 as_ln_s='cp -pR'
21374 fi
21375 else
21376 as_ln_s='cp -pR'
21377 fi
21378 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21379 rmdir conf$$.dir 2>/dev/null
21380
21381
21382 # as_fn_mkdir_p
21383 # -------------
21384 # Create "$as_dir" as a directory, including parents if necessary.
21385 as_fn_mkdir_p ()
21386 {
21387
21388 case $as_dir in #(
21389 -*) as_dir=./$as_dir;;
21390 esac
21391 test -d "$as_dir" || eval $as_mkdir_p || {
21392 as_dirs=
21393 while :; do
21394 case $as_dir in #(
21395 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21396 *) as_qdir=$as_dir;;
21397 esac
21398 as_dirs="'$as_qdir' $as_dirs"
21399 as_dir=`$as_dirname -- "$as_dir" ||
21400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21401 X"$as_dir" : 'X\(//\)[^/]' \| \
21402 X"$as_dir" : 'X\(//\)$' \| \
21403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21404 printf "%s\n" X"$as_dir" |
21405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21406 s//\1/
21407 q
21408 }
21409 /^X\(\/\/\)[^/].*/{
21410 s//\1/
21411 q
21412 }
21413 /^X\(\/\/\)$/{
21414 s//\1/
21415 q
21416 }
21417 /^X\(\/\).*/{
21418 s//\1/
21419 q
21420 }
21421 s/.*/./; q'`
21422 test -d "$as_dir" && break
21423 done
21424 test -z "$as_dirs" || eval "mkdir $as_dirs"
21425 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21426
21427
21428 } # as_fn_mkdir_p
21429 if mkdir -p . 2>/dev/null; then
21430 as_mkdir_p='mkdir -p "$as_dir"'
21431 else
21432 test -d ./-p && rmdir ./-p
21433 as_mkdir_p=false
21434 fi
21435
21436
21437 # as_fn_executable_p FILE
21438 # -----------------------
21439 # Test if FILE is an executable regular file.
21440 as_fn_executable_p ()
21441 {
21442 test -f "$1" && test -x "$1"
21443 } # as_fn_executable_p
21444 as_test_x='test -x'
21445 as_executable_p=as_fn_executable_p
21446
21447 # Sed expression to map a string onto a valid CPP name.
21448 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21449 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21450
21451 # Sed expression to map a string onto a valid variable name.
21452 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21453 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21454
21455
21456 exec 6>&1
21457 ## ----------------------------------- ##
21458 ## Main body of $CONFIG_STATUS script. ##
21459 ## ----------------------------------- ##
21460 _ASEOF
21461 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21462
21463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21464 # Save the log message, to keep $0 and so on meaningful, and to
21465 # report actual input values of CONFIG_FILES etc. instead of their
21466 # values after options handling.
21467 ac_log="
21468 This file was extended by libXcomposite $as_me 0.4.7, which was
21469 generated by GNU Autoconf 2.72. Invocation command line was
21470
21471 CONFIG_FILES = $CONFIG_FILES
21472 CONFIG_HEADERS = $CONFIG_HEADERS
21473 CONFIG_LINKS = $CONFIG_LINKS
21474 CONFIG_COMMANDS = $CONFIG_COMMANDS
21475 $ $0 $@
21476
21477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21478 "
21479
21480 _ACEOF
21481
21482 case $ac_config_files in *"
21483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21484 esac
21485
21486 case $ac_config_headers in *"
21487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21488 esac
21489
21490
21491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21492 # Files that config.status was made for.
21493 config_files="$ac_config_files"
21494 config_headers="$ac_config_headers"
21495 config_commands="$ac_config_commands"
21496
21497 _ACEOF
21498
21499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21500 ac_cs_usage="\
21501 '$as_me' instantiates files and other configuration actions
21502 from templates according to the current configuration. Unless the files
21503 and actions are specified as TAGs, all are instantiated by default.
21504
21505 Usage: $0 [OPTION]... [TAG]...
21506
21507 -h, --help print this help, then exit
21508 -V, --version print version number and configuration settings, then exit
21509 --config print configuration, then exit
21510 -q, --quiet, --silent
21511 do not print progress messages
21512 -d, --debug don't remove temporary files
21513 --recheck update $as_me by reconfiguring in the same conditions
21514 --file=FILE[:TEMPLATE]
21515 instantiate the configuration file FILE
21516 --header=FILE[:TEMPLATE]
21517 instantiate the configuration header FILE
21518
21519 Configuration files:
21520 $config_files
21521
21522 Configuration headers:
21523 $config_headers
21524
21525 Configuration commands:
21526 $config_commands
21527
21528 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcomposite/-/issues>."
21529
21530 _ACEOF
21531 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21532 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21534 ac_cs_config='$ac_cs_config_escaped'
21535 ac_cs_version="\\
21536 libXcomposite config.status 0.4.7
21537 configured by $0, generated by GNU Autoconf 2.72,
21538 with options \\"\$ac_cs_config\\"
21539
21540 Copyright (C) 2023 Free Software Foundation, Inc.
21541 This config.status script is free software; the Free Software Foundation
21542 gives unlimited permission to copy, distribute and modify it."
21543
21544 ac_pwd='$ac_pwd'
21545 srcdir='$srcdir'
21546 INSTALL='$INSTALL'
21547 MKDIR_P='$MKDIR_P'
21548 AWK='$AWK'
21549 test -n "\$AWK" || AWK=awk
21550 _ACEOF
21551
21552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21553 # The default lists apply if the user does not specify any file.
21554 ac_need_defaults=:
21555 while test $# != 0
21556 do
21557 case $1 in
21558 --*=?*)
21559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21560 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21561 ac_shift=:
21562 ;;
21563 --*=)
21564 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21565 ac_optarg=
21566 ac_shift=:
21567 ;;
21568 *)
21569 ac_option=$1
21570 ac_optarg=$2
21571 ac_shift=shift
21572 ;;
21573 esac
21574
21575 case $ac_option in
21576 # Handling of the options.
21577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21578 ac_cs_recheck=: ;;
21579 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21580 printf "%s\n" "$ac_cs_version"; exit ;;
21581 --config | --confi | --conf | --con | --co | --c )
21582 printf "%s\n" "$ac_cs_config"; exit ;;
21583 --debug | --debu | --deb | --de | --d | -d )
21584 debug=: ;;
21585 --file | --fil | --fi | --f )
21586 $ac_shift
21587 case $ac_optarg in
21588 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21589 '') as_fn_error $? "missing file argument" ;;
21590 esac
21591 as_fn_append CONFIG_FILES " '$ac_optarg'"
21592 ac_need_defaults=false;;
21593 --header | --heade | --head | --hea )
21594 $ac_shift
21595 case $ac_optarg in
21596 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21597 esac
21598 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21599 ac_need_defaults=false;;
21600 --he | --h)
21601 # Conflict between --help and --header
21602 as_fn_error $? "ambiguous option: '$1'
21603 Try '$0 --help' for more information.";;
21604 --help | --hel | -h )
21605 printf "%s\n" "$ac_cs_usage"; exit ;;
21606 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21607 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21608 ac_cs_silent=: ;;
21609
21610 # This is an error.
21611 -*) as_fn_error $? "unrecognized option: '$1'
21612 Try '$0 --help' for more information." ;;
21613
21614 *) as_fn_append ac_config_targets " $1"
21615 ac_need_defaults=false ;;
21616
21617 esac
21618 shift
21619 done
21620
21621 ac_configure_extra_args=
21622
21623 if $ac_cs_silent; then
21624 exec 6>/dev/null
21625 ac_configure_extra_args="$ac_configure_extra_args --silent"
21626 fi
21627
21628 _ACEOF
21629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21630 if \$ac_cs_recheck; then
21631 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21632 shift
21633 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21634 CONFIG_SHELL='$SHELL'
21635 export CONFIG_SHELL
21636 exec "\$@"
21637 fi
21638
21639 _ACEOF
21640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21641 exec 5>>config.log
21642 {
21643 echo
21644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21645 ## Running $as_me. ##
21646 _ASBOX
21647 printf "%s\n" "$ac_log"
21648 } >&5
21649
21650 _ACEOF
21651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21652 #
21653 # INIT-COMMANDS
21654 #
21655 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21656
21657
21658 # The HP-UX ksh and POSIX shell print the target directory to stdout
21659 # if CDPATH is set.
21660 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21661
21662 sed_quote_subst='$sed_quote_subst'
21663 double_quote_subst='$double_quote_subst'
21664 delay_variable_subst='$delay_variable_subst'
21665 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21666 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21667 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21668 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21669 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21670 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21671 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21672 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21673 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21674 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21675 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21676 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21677 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21678 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21679 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21680 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21681 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21682 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21683 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21684 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21685 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21686 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21687 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21688 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21689 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21690 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21691 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21692 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21693 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21694 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21695 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21696 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21697 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21698 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21699 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21700 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21701 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21702 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21703 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21704 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21705 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21706 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21707 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21708 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21709 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21710 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21711 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21712 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21713 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21714 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21715 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21716 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21717 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21718 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21719 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21720 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21721 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21722 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21723 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21724 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21725 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"`'
21726 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21727 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21728 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21729 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21730 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21731 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21732 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21733 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21734 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21735 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21736 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21737 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21738 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21739 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21740 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21741 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21742 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21743 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21744 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21745 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21746 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21747 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21748 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21749 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21750 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21751 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21752 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21753 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21754 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21755 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21756 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21757 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21758 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21759 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21760 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21761 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21762 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21763 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21764 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21765 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21766 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21767 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21768 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21769 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21770 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21771 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21772 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21773 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21774 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21775 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21776 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21777 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21778 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21779 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21780 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21781 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21782 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21783 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21784 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21785 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21786 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21787 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21788 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21789 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21790 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21791 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21792 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21793 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21794 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21795 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21796 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21797 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21798 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21799 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21800 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21801 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21802
21803 LTCC='$LTCC'
21804 LTCFLAGS='$LTCFLAGS'
21805 compiler='$compiler_DEFAULT'
21806
21807 # A function that is used when there is no print builtin or printf.
21808 func_fallback_echo ()
21809 {
21810 eval 'cat <<_LTECHO_EOF
21811 \$1
21812 _LTECHO_EOF'
21813 }
21814
21815 # Quote evaled strings.
21816 for var in SHELL \
21817 ECHO \
21818 PATH_SEPARATOR \
21819 SED \
21820 GREP \
21821 EGREP \
21822 FGREP \
21823 LD \
21824 NM \
21825 LN_S \
21826 lt_SP2NL \
21827 lt_NL2SP \
21828 reload_flag \
21829 FILECMD \
21830 OBJDUMP \
21831 deplibs_check_method \
21832 file_magic_cmd \
21833 file_magic_glob \
21834 want_nocaseglob \
21835 DLLTOOL \
21836 sharedlib_from_linklib_cmd \
21837 AR \
21838 archiver_list_spec \
21839 STRIP \
21840 RANLIB \
21841 CC \
21842 CFLAGS \
21843 compiler \
21844 lt_cv_sys_global_symbol_pipe \
21845 lt_cv_sys_global_symbol_to_cdecl \
21846 lt_cv_sys_global_symbol_to_import \
21847 lt_cv_sys_global_symbol_to_c_name_address \
21848 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21849 lt_cv_nm_interface \
21850 nm_file_list_spec \
21851 lt_cv_truncate_bin \
21852 lt_prog_compiler_no_builtin_flag \
21853 lt_prog_compiler_pic \
21854 lt_prog_compiler_wl \
21855 lt_prog_compiler_static \
21856 lt_cv_prog_compiler_c_o \
21857 need_locks \
21858 MANIFEST_TOOL \
21859 DSYMUTIL \
21860 NMEDIT \
21861 LIPO \
21862 OTOOL \
21863 OTOOL64 \
21864 shrext_cmds \
21865 export_dynamic_flag_spec \
21866 whole_archive_flag_spec \
21867 compiler_needs_object \
21868 with_gnu_ld \
21869 allow_undefined_flag \
21870 no_undefined_flag \
21871 hardcode_libdir_flag_spec \
21872 hardcode_libdir_separator \
21873 exclude_expsyms \
21874 include_expsyms \
21875 file_list_spec \
21876 variables_saved_for_relink \
21877 libname_spec \
21878 library_names_spec \
21879 soname_spec \
21880 install_override_mode \
21881 finish_eval \
21882 old_striplib \
21883 striplib; do
21884 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21885 *[\\\\\\\`\\"\\\$]*)
21886 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21887 ;;
21888 *)
21889 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21890 ;;
21891 esac
21892 done
21893
21894 # Double-quote double-evaled strings.
21895 for var in reload_cmds \
21896 old_postinstall_cmds \
21897 old_postuninstall_cmds \
21898 old_archive_cmds \
21899 extract_expsyms_cmds \
21900 old_archive_from_new_cmds \
21901 old_archive_from_expsyms_cmds \
21902 archive_cmds \
21903 archive_expsym_cmds \
21904 module_cmds \
21905 module_expsym_cmds \
21906 export_symbols_cmds \
21907 prelink_cmds \
21908 postlink_cmds \
21909 postinstall_cmds \
21910 postuninstall_cmds \
21911 finish_cmds \
21912 sys_lib_search_path_spec \
21913 configure_time_dlsearch_path \
21914 configure_time_lt_sys_library_path; do
21915 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21916 *[\\\\\\\`\\"\\\$]*)
21917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21918 ;;
21919 *)
21920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21921 ;;
21922 esac
21923 done
21924
21925 ac_aux_dir='$ac_aux_dir'
21926
21927 # See if we are running on zsh, and set the options that allow our
21928 # commands through without removal of \ escapes INIT.
21929 if test -n "\${ZSH_VERSION+set}"; then
21930 setopt NO_GLOB_SUBST
21931 fi
21932
21933
21934 PACKAGE='$PACKAGE'
21935 VERSION='$VERSION'
21936 RM='$RM'
21937 ofile='$ofile'
21938
21939
21940
21941
21942 _ACEOF
21943
21944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21945
21946 # Handling of arguments.
21947 for ac_config_target in $ac_config_targets
21948 do
21949 case $ac_config_target in
21950 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21951 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21952 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21953 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21954 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21955 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21956 "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;;
21957
21958 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21959 esac
21960 done
21961
21962
21963 # If the user did not use the arguments to specify the items to instantiate,
21964 # then the envvar interface is used. Set only those that are not.
21965 # We use the long form for the default assignment because of an extremely
21966 # bizarre bug on SunOS 4.1.3.
21967 if $ac_need_defaults; then
21968 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21969 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21970 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21971 fi
21972
21973 # Have a temporary directory for convenience. Make it in the build tree
21974 # simply because there is no reason against having it here, and in addition,
21975 # creating and moving files from /tmp can sometimes cause problems.
21976 # Hook for its removal unless debugging.
21977 # Note that there is a small window in which the directory will not be cleaned:
21978 # after its creation but before its name has been assigned to '$tmp'.
21979 $debug ||
21980 {
21981 tmp= ac_tmp=
21982 trap 'exit_status=$?
21983 : "${ac_tmp:=$tmp}"
21984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21985 ' 0
21986 trap 'as_fn_exit 1' 1 2 13 15
21987 }
21988 # Create a (secure) tmp directory for tmp files.
21989
21990 {
21991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21992 test -d "$tmp"
21993 } ||
21994 {
21995 tmp=./conf$$-$RANDOM
21996 (umask 077 && mkdir "$tmp")
21997 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21998 ac_tmp=$tmp
21999
22000 # Set up the scripts for CONFIG_FILES section.
22001 # No need to generate them if there are no CONFIG_FILES.
22002 # This happens for instance with './config.status config.h'.
22003 if test -n "$CONFIG_FILES"; then
22004
22005
22006 ac_cr=`echo X | tr X '\015'`
22007 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22008 # But we know of no other shell where ac_cr would be empty at this
22009 # point, so we can use a bashism as a fallback.
22010 if test "x$ac_cr" = x; then
22011 eval ac_cr=\$\'\\r\'
22012 fi
22013 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22014 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22015 ac_cs_awk_cr='\\r'
22016 else
22017 ac_cs_awk_cr=$ac_cr
22018 fi
22019
22020 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22021 _ACEOF
22022
22023
22024 {
22025 echo "cat >conf$$subs.awk <<_ACEOF" &&
22026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22027 echo "_ACEOF"
22028 } >conf$$subs.sh ||
22029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22030 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22031 ac_delim='%!_!# '
22032 for ac_last_try in false false false false false :; do
22033 . ./conf$$subs.sh ||
22034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22035
22036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22037 if test $ac_delim_n = $ac_delim_num; then
22038 break
22039 elif $ac_last_try; then
22040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22041 else
22042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22043 fi
22044 done
22045 rm -f conf$$subs.sh
22046
22047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22048 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22049 _ACEOF
22050 sed -n '
22051 h
22052 s/^/S["/; s/!.*/"]=/
22053 p
22054 g
22055 s/^[^!]*!//
22056 :repl
22057 t repl
22058 s/'"$ac_delim"'$//
22059 t delim
22060 :nl
22061 h
22062 s/\(.\{148\}\)..*/\1/
22063 t more1
22064 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22065 p
22066 n
22067 b repl
22068 :more1
22069 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22070 p
22071 g
22072 s/.\{148\}//
22073 t nl
22074 :delim
22075 h
22076 s/\(.\{148\}\)..*/\1/
22077 t more2
22078 s/["\\]/\\&/g; s/^/"/; s/$/"/
22079 p
22080 b
22081 :more2
22082 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22083 p
22084 g
22085 s/.\{148\}//
22086 t delim
22087 ' <conf$$subs.awk | sed '
22088 /^[^""]/{
22089 N
22090 s/\n//
22091 }
22092 ' >>$CONFIG_STATUS || ac_write_fail=1
22093 rm -f conf$$subs.awk
22094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22095 _ACAWK
22096 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22097 for (key in S) S_is_set[key] = 1
22098 FS = ""
22099
22100 }
22101 {
22102 line = $ 0
22103 nfields = split(line, field, "@")
22104 substed = 0
22105 len = length(field[1])
22106 for (i = 2; i < nfields; i++) {
22107 key = field[i]
22108 keylen = length(key)
22109 if (S_is_set[key]) {
22110 value = S[key]
22111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22112 len += length(value) + length(field[++i])
22113 substed = 1
22114 } else
22115 len += 1 + keylen
22116 }
22117
22118 print line
22119 }
22120
22121 _ACAWK
22122 _ACEOF
22123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22124 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22126 else
22127 cat
22128 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22130 _ACEOF
22131
22132 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22133 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22134 # trailing colons and then remove the whole line if VPATH becomes empty
22135 # (actually we leave an empty line to preserve line numbers).
22136 if test "x$srcdir" = x.; then
22137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22138 h
22139 s///
22140 s/^/:/
22141 s/[ ]*$/:/
22142 s/:\$(srcdir):/:/g
22143 s/:\${srcdir}:/:/g
22144 s/:@srcdir@:/:/g
22145 s/^:*//
22146 s/:*$//
22147 x
22148 s/\(=[ ]*\).*/\1/
22149 G
22150 s/\n//
22151 s/^[^=]*=[ ]*$//
22152 }'
22153 fi
22154
22155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22156 fi # test -n "$CONFIG_FILES"
22157
22158 # Set up the scripts for CONFIG_HEADERS section.
22159 # No need to generate them if there are no CONFIG_HEADERS.
22160 # This happens for instance with './config.status Makefile'.
22161 if test -n "$CONFIG_HEADERS"; then
22162 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22163 BEGIN {
22164 _ACEOF
22165
22166 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22167 # here-document in config.status, that substitutes the proper values into
22168 # config.h.in to produce config.h.
22169
22170 # Create a delimiter string that does not exist in confdefs.h, to ease
22171 # handling of long lines.
22172 ac_delim='%!_!# '
22173 for ac_last_try in false false :; do
22174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22175 if test -z "$ac_tt"; then
22176 break
22177 elif $ac_last_try; then
22178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22179 else
22180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22181 fi
22182 done
22183
22184 # For the awk script, D is an array of macro values keyed by name,
22185 # likewise P contains macro parameters if any. Preserve backslash
22186 # newline sequences.
22187
22188 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22189 sed -n '
22190 s/.\{148\}/&'"$ac_delim"'/g
22191 t rset
22192 :rset
22193 s/^[ ]*#[ ]*define[ ][ ]*/ /
22194 t def
22195 d
22196 :def
22197 s/\\$//
22198 t bsnl
22199 s/["\\]/\\&/g
22200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22201 D["\1"]=" \3"/p
22202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22203 d
22204 :bsnl
22205 s/["\\]/\\&/g
22206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22207 D["\1"]=" \3\\\\\\n"\\/p
22208 t cont
22209 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22210 t cont
22211 d
22212 :cont
22213 n
22214 s/.\{148\}/&'"$ac_delim"'/g
22215 t clear
22216 :clear
22217 s/\\$//
22218 t bsnlc
22219 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22220 d
22221 :bsnlc
22222 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22223 b cont
22224 ' <confdefs.h | sed '
22225 s/'"$ac_delim"'/"\\\
22226 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22227
22228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22229 for (key in D) D_is_set[key] = 1
22230 FS = ""
22231 }
22232 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22233 line = \$ 0
22234 split(line, arg, " ")
22235 if (arg[1] == "#") {
22236 defundef = arg[2]
22237 mac1 = arg[3]
22238 } else {
22239 defundef = substr(arg[1], 2)
22240 mac1 = arg[2]
22241 }
22242 split(mac1, mac2, "(") #)
22243 macro = mac2[1]
22244 prefix = substr(line, 1, index(line, defundef) - 1)
22245 if (D_is_set[macro]) {
22246 # Preserve the white space surrounding the "#".
22247 print prefix "define", macro P[macro] D[macro]
22248 next
22249 } else {
22250 # Replace #undef with comments. This is necessary, for example,
22251 # in the case of _POSIX_SOURCE, which is predefined and required
22252 # on some systems where configure will not decide to define it.
22253 if (defundef == "undef") {
22254 print "/*", prefix defundef, macro, "*/"
22255 next
22256 }
22257 }
22258 }
22259 { print }
22260 _ACAWK
22261 _ACEOF
22262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22264 fi # test -n "$CONFIG_HEADERS"
22265
22266
22267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22268 shift
22269 for ac_tag
22270 do
22271 case $ac_tag in
22272 :[FHLC]) ac_mode=$ac_tag; continue;;
22273 esac
22274 case $ac_mode$ac_tag in
22275 :[FHL]*:*);;
22276 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22277 :[FH]-) ac_tag=-:-;;
22278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22279 esac
22280 ac_save_IFS=$IFS
22281 IFS=:
22282 set x $ac_tag
22283 IFS=$ac_save_IFS
22284 shift
22285 ac_file=$1
22286 shift
22287
22288 case $ac_mode in
22289 :L) ac_source=$1;;
22290 :[FH])
22291 ac_file_inputs=
22292 for ac_f
22293 do
22294 case $ac_f in
22295 -) ac_f="$ac_tmp/stdin";;
22296 *) # Look for the file first in the build tree, then in the source tree
22297 # (if the path is not absolute). The absolute path cannot be DOS-style,
22298 # because $ac_f cannot contain ':'.
22299 test -f "$ac_f" ||
22300 case $ac_f in
22301 [\\/$]*) false;;
22302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22303 esac ||
22304 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22305 esac
22306 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22307 as_fn_append ac_file_inputs " '$ac_f'"
22308 done
22309
22310 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22311 # use $as_me), people would be surprised to read:
22312 # /* config.h. Generated by config.status. */
22313 configure_input='Generated from '`
22314 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22315 `' by configure.'
22316 if test x"$ac_file" != x-; then
22317 configure_input="$ac_file. $configure_input"
22318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22319 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22320 fi
22321 # Neutralize special characters interpreted by sed in replacement strings.
22322 case $configure_input in #(
22323 *\&* | *\|* | *\\* )
22324 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22326 *) ac_sed_conf_input=$configure_input;;
22327 esac
22328
22329 case $ac_tag in
22330 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22332 esac
22333 ;;
22334 esac
22335
22336 ac_dir=`$as_dirname -- "$ac_file" ||
22337 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22338 X"$ac_file" : 'X\(//\)[^/]' \| \
22339 X"$ac_file" : 'X\(//\)$' \| \
22340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22341 printf "%s\n" X"$ac_file" |
22342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22343 s//\1/
22344 q
22345 }
22346 /^X\(\/\/\)[^/].*/{
22347 s//\1/
22348 q
22349 }
22350 /^X\(\/\/\)$/{
22351 s//\1/
22352 q
22353 }
22354 /^X\(\/\).*/{
22355 s//\1/
22356 q
22357 }
22358 s/.*/./; q'`
22359 as_dir="$ac_dir"; as_fn_mkdir_p
22360 ac_builddir=.
22361
22362 case "$ac_dir" in
22363 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22364 *)
22365 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22366 # A ".." for each directory in $ac_dir_suffix.
22367 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22368 case $ac_top_builddir_sub in
22369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22371 esac ;;
22372 esac
22373 ac_abs_top_builddir=$ac_pwd
22374 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22375 # for backward compatibility:
22376 ac_top_builddir=$ac_top_build_prefix
22377
22378 case $srcdir in
22379 .) # We are building in place.
22380 ac_srcdir=.
22381 ac_top_srcdir=$ac_top_builddir_sub
22382 ac_abs_top_srcdir=$ac_pwd ;;
22383 [\\/]* | ?:[\\/]* ) # Absolute name.
22384 ac_srcdir=$srcdir$ac_dir_suffix;
22385 ac_top_srcdir=$srcdir
22386 ac_abs_top_srcdir=$srcdir ;;
22387 *) # Relative name.
22388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22389 ac_top_srcdir=$ac_top_build_prefix$srcdir
22390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22391 esac
22392 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22393
22394
22395 case $ac_mode in
22396 :F)
22397 #
22398 # CONFIG_FILE
22399 #
22400
22401 case $INSTALL in
22402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22404 esac
22405 ac_MKDIR_P=$MKDIR_P
22406 case $MKDIR_P in
22407 [\\/$]* | ?:[\\/]* ) ;;
22408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22409 esac
22410 _ACEOF
22411
22412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22413 # If the template does not know about datarootdir, expand it.
22414 # FIXME: This hack should be removed a few years after 2.60.
22415 ac_datarootdir_hack=; ac_datarootdir_seen=
22416 ac_sed_dataroot='
22417 /datarootdir/ {
22418 p
22419 q
22420 }
22421 /@datadir@/p
22422 /@docdir@/p
22423 /@infodir@/p
22424 /@localedir@/p
22425 /@mandir@/p'
22426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22427 *datarootdir*) ac_datarootdir_seen=yes;;
22428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22430 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22431 _ACEOF
22432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22433 ac_datarootdir_hack='
22434 s&@datadir@&$datadir&g
22435 s&@docdir@&$docdir&g
22436 s&@infodir@&$infodir&g
22437 s&@localedir@&$localedir&g
22438 s&@mandir@&$mandir&g
22439 s&\\\${datarootdir}&$datarootdir&g' ;;
22440 esac
22441 _ACEOF
22442
22443 # Neutralize VPATH when '$srcdir' = '.'.
22444 # Shell code in configure.ac might set extrasub.
22445 # FIXME: do we really want to maintain this feature?
22446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22447 ac_sed_extra="$ac_vpsub
22448 $extrasub
22449 _ACEOF
22450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22451 :t
22452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22453 s|@configure_input@|$ac_sed_conf_input|;t t
22454 s&@top_builddir@&$ac_top_builddir_sub&;t t
22455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22456 s&@srcdir@&$ac_srcdir&;t t
22457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22458 s&@top_srcdir@&$ac_top_srcdir&;t t
22459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22460 s&@builddir@&$ac_builddir&;t t
22461 s&@abs_builddir@&$ac_abs_builddir&;t t
22462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22463 s&@INSTALL@&$ac_INSTALL&;t t
22464 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22465 $ac_datarootdir_hack
22466 "
22467 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22468 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22469
22470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22471 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22473 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22475 which seems to be undefined. Please make sure it is defined" >&5
22476 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22477 which seems to be undefined. Please make sure it is defined" >&2;}
22478
22479 rm -f "$ac_tmp/stdin"
22480 case $ac_file in
22481 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22482 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22483 esac \
22484 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22485 ;;
22486 :H)
22487 #
22488 # CONFIG_HEADER
22489 #
22490 if test x"$ac_file" != x-; then
22491 {
22492 printf "%s\n" "/* $configure_input */" >&1 \
22493 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22494 } >"$ac_tmp/config.h" \
22495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22496 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22498 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22499 else
22500 rm -f "$ac_file"
22501 mv "$ac_tmp/config.h" "$ac_file" \
22502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22503 fi
22504 else
22505 printf "%s\n" "/* $configure_input */" >&1 \
22506 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22507 || as_fn_error $? "could not create -" "$LINENO" 5
22508 fi
22509 # Compute "$ac_file"'s index in $config_headers.
22510 _am_arg="$ac_file"
22511 _am_stamp_count=1
22512 for _am_header in $config_headers :; do
22513 case $_am_header in
22514 $_am_arg | $_am_arg:* )
22515 break ;;
22516 * )
22517 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22518 esac
22519 done
22520 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22521 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22522 X"$_am_arg" : 'X\(//\)[^/]' \| \
22523 X"$_am_arg" : 'X\(//\)$' \| \
22524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22525 printf "%s\n" X"$_am_arg" |
22526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22527 s//\1/
22528 q
22529 }
22530 /^X\(\/\/\)[^/].*/{
22531 s//\1/
22532 q
22533 }
22534 /^X\(\/\/\)$/{
22535 s//\1/
22536 q
22537 }
22538 /^X\(\/\).*/{
22539 s//\1/
22540 q
22541 }
22542 s/.*/./; q'`/stamp-h$_am_stamp_count
22543 ;;
22544
22545 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22546 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22547 ;;
22548 esac
22549
22550
22551 case $ac_file$ac_mode in
22552 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22553 # Older Autoconf quotes --file arguments for eval, but not when files
22554 # are listed without --file. Let's play safe and only enable the eval
22555 # if we detect the quoting.
22556 # TODO: see whether this extra hack can be removed once we start
22557 # requiring Autoconf 2.70 or later.
22558 case $CONFIG_FILES in #(
22559 *\'*) :
22560 eval set x "$CONFIG_FILES" ;; #(
22561 *) :
22562 set x $CONFIG_FILES ;; #(
22563 *) :
22564 ;;
22565 esac
22566 shift
22567 # Used to flag and report bootstrapping failures.
22568 am_rc=0
22569 for am_mf
22570 do
22571 # Strip MF so we end up with the name of the file.
22572 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22573 # Check whether this is an Automake generated Makefile which includes
22574 # dependency-tracking related rules and includes.
22575 # Grep'ing the whole file directly is not great: AIX grep has a line
22576 # limit of 2048, but all sed's we know have understand at least 4000.
22577 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22578 || continue
22579 am_dirpart=`$as_dirname -- "$am_mf" ||
22580 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22581 X"$am_mf" : 'X\(//\)[^/]' \| \
22582 X"$am_mf" : 'X\(//\)$' \| \
22583 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22584 printf "%s\n" X"$am_mf" |
22585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22586 s//\1/
22587 q
22588 }
22589 /^X\(\/\/\)[^/].*/{
22590 s//\1/
22591 q
22592 }
22593 /^X\(\/\/\)$/{
22594 s//\1/
22595 q
22596 }
22597 /^X\(\/\).*/{
22598 s//\1/
22599 q
22600 }
22601 s/.*/./; q'`
22602 am_filepart=`$as_basename -- "$am_mf" ||
22603 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22604 X"$am_mf" : 'X\(//\)$' \| \
22605 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22606 printf "%s\n" X/"$am_mf" |
22607 sed '/^.*\/\([^/][^/]*\)\/*$/{
22608 s//\1/
22609 q
22610 }
22611 /^X\/\(\/\/\)$/{
22612 s//\1/
22613 q
22614 }
22615 /^X\/\(\/\).*/{
22616 s//\1/
22617 q
22618 }
22619 s/.*/./; q'`
22620 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22621 && sed -e '/# am--include-marker/d' "$am_filepart" \
22622 | $MAKE -f - am--depfiles" >&5
22623 (cd "$am_dirpart" \
22624 && sed -e '/# am--include-marker/d' "$am_filepart" \
22625 | $MAKE -f - am--depfiles) >&5 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } || am_rc=$?
22629 done
22630 if test $am_rc -ne 0; then
22631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22632 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22633 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22634 for automatic dependency tracking. If GNU make was not used, consider
22635 re-running the configure script with MAKE=\"gmake\" (or whatever is
22636 necessary). You can also try re-running configure with the
22637 '--disable-dependency-tracking' option to at least be able to build
22638 the package (albeit without support for automatic dependency tracking).
22639 See 'config.log' for more details" "$LINENO" 5; }
22640 fi
22641 { am_dirpart=; unset am_dirpart;}
22642 { am_filepart=; unset am_filepart;}
22643 { am_mf=; unset am_mf;}
22644 { am_rc=; unset am_rc;}
22645 rm -f conftest-deps.mk
22646 }
22647 ;;
22648 "libtool":C)
22649
22650 # See if we are running on zsh, and set the options that allow our
22651 # commands through without removal of \ escapes.
22652 if test -n "${ZSH_VERSION+set}"; then
22653 setopt NO_GLOB_SUBST
22654 fi
22655
22656 cfgfile=${ofile}T
22657 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22658 $RM "$cfgfile"
22659
22660 cat <<_LT_EOF >> "$cfgfile"
22661 #! $SHELL
22662 # Generated automatically by $as_me ($PACKAGE) $VERSION
22663 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22664
22665 # Provide generalized library-building support services.
22666 # Written by Gordon Matzigkeit, 1996
22667
22668 # Copyright (C) 2024 Free Software Foundation, Inc.
22669 # This is free software; see the source for copying conditions. There is NO
22670 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22671
22672 # GNU Libtool is free software; you can redistribute it and/or modify
22673 # it under the terms of the GNU General Public License as published by
22674 # the Free Software Foundation; either version 2 of the License, or
22675 # (at your option) any later version.
22676 #
22677 # As a special exception to the GNU General Public License, if you
22678 # distribute this file as part of a program or library that is built
22679 # using GNU Libtool, you may include this file under the same
22680 # distribution terms that you use for the rest of that program.
22681 #
22682 # GNU Libtool is distributed in the hope that it will be useful, but
22683 # WITHOUT ANY WARRANTY; without even the implied warranty of
22684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22685 # GNU General Public License for more details.
22686 #
22687 # You should have received a copy of the GNU General Public License
22688 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22689
22690
22691 # The names of the tagged configurations supported by this script.
22692 available_tags=''
22693
22694 # Configured defaults for sys_lib_dlsearch_path munging.
22695 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22696
22697 # ### BEGIN LIBTOOL CONFIG
22698
22699 # Which release of libtool.m4 was used?
22700 macro_version=$macro_version
22701 macro_revision=$macro_revision
22702
22703 # Whether or not to build shared libraries.
22704 build_libtool_libs=$enable_shared
22705
22706 # Whether or not to build static libraries.
22707 build_old_libs=$enable_static
22708
22709 # What type of objects to build.
22710 pic_mode=$pic_mode
22711
22712 # Whether or not to optimize for fast installation.
22713 fast_install=$enable_fast_install
22714
22715 # Shared archive member basename,for filename based shared library versioning on AIX.
22716 shared_archive_member_spec=$shared_archive_member_spec
22717
22718 # Shell to use when invoking shell scripts.
22719 SHELL=$lt_SHELL
22720
22721 # An echo program that protects backslashes.
22722 ECHO=$lt_ECHO
22723
22724 # The PATH separator for the build system.
22725 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22726
22727 # The host system.
22728 host_alias=$host_alias
22729 host=$host
22730 host_os=$host_os
22731
22732 # The build system.
22733 build_alias=$build_alias
22734 build=$build
22735 build_os=$build_os
22736
22737 # A sed program that does not truncate output.
22738 SED=$lt_SED
22739
22740 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22741 Xsed="\$SED -e 1s/^X//"
22742
22743 # A grep program that handles long lines.
22744 GREP=$lt_GREP
22745
22746 # An ERE matcher.
22747 EGREP=$lt_EGREP
22748
22749 # A literal string matcher.
22750 FGREP=$lt_FGREP
22751
22752 # A BSD- or MS-compatible name lister.
22753 NM=$lt_NM
22754
22755 # Whether we need soft or hard links.
22756 LN_S=$lt_LN_S
22757
22758 # What is the maximum length of a command?
22759 max_cmd_len=$max_cmd_len
22760
22761 # Object file suffix (normally "o").
22762 objext=$ac_objext
22763
22764 # Executable file suffix (normally "").
22765 exeext=$exeext
22766
22767 # whether the shell understands "unset".
22768 lt_unset=$lt_unset
22769
22770 # turn spaces into newlines.
22771 SP2NL=$lt_lt_SP2NL
22772
22773 # turn newlines into spaces.
22774 NL2SP=$lt_lt_NL2SP
22775
22776 # convert \$build file names to \$host format.
22777 to_host_file_cmd=$lt_cv_to_host_file_cmd
22778
22779 # convert \$build files to toolchain format.
22780 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22781
22782 # A file(cmd) program that detects file types.
22783 FILECMD=$lt_FILECMD
22784
22785 # An object symbol dumper.
22786 OBJDUMP=$lt_OBJDUMP
22787
22788 # Method to check whether dependent libraries are shared objects.
22789 deplibs_check_method=$lt_deplibs_check_method
22790
22791 # Command to use when deplibs_check_method = "file_magic".
22792 file_magic_cmd=$lt_file_magic_cmd
22793
22794 # How to find potential files when deplibs_check_method = "file_magic".
22795 file_magic_glob=$lt_file_magic_glob
22796
22797 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22798 want_nocaseglob=$lt_want_nocaseglob
22799
22800 # DLL creation program.
22801 DLLTOOL=$lt_DLLTOOL
22802
22803 # Command to associate shared and link libraries.
22804 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22805
22806 # The archiver.
22807 AR=$lt_AR
22808
22809 # Flags to create an archive (by configure).
22810 lt_ar_flags=$lt_ar_flags
22811
22812 # Flags to create an archive.
22813 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22814
22815 # How to feed a file listing to the archiver.
22816 archiver_list_spec=$lt_archiver_list_spec
22817
22818 # A symbol stripping program.
22819 STRIP=$lt_STRIP
22820
22821 # Commands used to install an old-style archive.
22822 RANLIB=$lt_RANLIB
22823 old_postinstall_cmds=$lt_old_postinstall_cmds
22824 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22825
22826 # Whether to use a lock for old archive extraction.
22827 lock_old_archive_extraction=$lock_old_archive_extraction
22828
22829 # A C compiler.
22830 LTCC=$lt_CC
22831
22832 # LTCC compiler flags.
22833 LTCFLAGS=$lt_CFLAGS
22834
22835 # Take the output of nm and produce a listing of raw symbols and C names.
22836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22837
22838 # Transform the output of nm in a proper C declaration.
22839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22840
22841 # Transform the output of nm into a list of symbols to manually relocate.
22842 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22843
22844 # Transform the output of nm in a C name address pair.
22845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22846
22847 # Transform the output of nm in a C name address pair when lib prefix is needed.
22848 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22849
22850 # The name lister interface.
22851 nm_interface=$lt_lt_cv_nm_interface
22852
22853 # Specify filename containing input files for \$NM.
22854 nm_file_list_spec=$lt_nm_file_list_spec
22855
22856 # The root where to search for dependent libraries,and where our libraries should be installed.
22857 lt_sysroot=$lt_sysroot
22858
22859 # Command to truncate a binary pipe.
22860 lt_truncate_bin=$lt_lt_cv_truncate_bin
22861
22862 # The name of the directory that contains temporary libtool files.
22863 objdir=$objdir
22864
22865 # Used to examine libraries when file_magic_cmd begins with "file".
22866 MAGIC_CMD=$MAGIC_CMD
22867
22868 # Must we lock files when doing compilation?
22869 need_locks=$lt_need_locks
22870
22871 # Manifest tool.
22872 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22873
22874 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22875 DSYMUTIL=$lt_DSYMUTIL
22876
22877 # Tool to change global to local symbols on Mac OS X.
22878 NMEDIT=$lt_NMEDIT
22879
22880 # Tool to manipulate fat objects and archives on Mac OS X.
22881 LIPO=$lt_LIPO
22882
22883 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22884 OTOOL=$lt_OTOOL
22885
22886 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22887 OTOOL64=$lt_OTOOL64
22888
22889 # Old archive suffix (normally "a").
22890 libext=$libext
22891
22892 # Shared library suffix (normally ".so").
22893 shrext_cmds=$lt_shrext_cmds
22894
22895 # The commands to extract the exported symbol list from a shared archive.
22896 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22897
22898 # Variables whose values should be saved in libtool wrapper scripts and
22899 # restored at link time.
22900 variables_saved_for_relink=$lt_variables_saved_for_relink
22901
22902 # Do we need the "lib" prefix for modules?
22903 need_lib_prefix=$need_lib_prefix
22904
22905 # Do we need a version for libraries?
22906 need_version=$need_version
22907
22908 # Library versioning type.
22909 version_type=$version_type
22910
22911 # Shared library runtime path variable.
22912 runpath_var=$runpath_var
22913
22914 # Shared library path variable.
22915 shlibpath_var=$shlibpath_var
22916
22917 # Is shlibpath searched before the hard-coded library search path?
22918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22919
22920 # Format of library name prefix.
22921 libname_spec=$lt_libname_spec
22922
22923 # List of archive names. First name is the real one, the rest are links.
22924 # The last name is the one that the linker finds with -lNAME
22925 library_names_spec=$lt_library_names_spec
22926
22927 # The coded name of the library, if different from the real name.
22928 soname_spec=$lt_soname_spec
22929
22930 # Permission mode override for installation of shared libraries.
22931 install_override_mode=$lt_install_override_mode
22932
22933 # Command to use after installation of a shared archive.
22934 postinstall_cmds=$lt_postinstall_cmds
22935
22936 # Command to use after uninstallation of a shared archive.
22937 postuninstall_cmds=$lt_postuninstall_cmds
22938
22939 # Commands used to finish a libtool library installation in a directory.
22940 finish_cmds=$lt_finish_cmds
22941
22942 # As "finish_cmds", except a single script fragment to be evaled but
22943 # not shown.
22944 finish_eval=$lt_finish_eval
22945
22946 # Whether we should hardcode library paths into libraries.
22947 hardcode_into_libs=$hardcode_into_libs
22948
22949 # Compile-time system search path for libraries.
22950 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22951
22952 # Detected run-time system search path for libraries.
22953 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22954
22955 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22956 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22957
22958 # Whether dlopen is supported.
22959 dlopen_support=$enable_dlopen
22960
22961 # Whether dlopen of programs is supported.
22962 dlopen_self=$enable_dlopen_self
22963
22964 # Whether dlopen of statically linked programs is supported.
22965 dlopen_self_static=$enable_dlopen_self_static
22966
22967 # Commands to strip libraries.
22968 old_striplib=$lt_old_striplib
22969 striplib=$lt_striplib
22970
22971
22972 # The linker used to build libraries.
22973 LD=$lt_LD
22974
22975 # How to create reloadable object files.
22976 reload_flag=$lt_reload_flag
22977 reload_cmds=$lt_reload_cmds
22978
22979 # Commands used to build an old-style archive.
22980 old_archive_cmds=$lt_old_archive_cmds
22981
22982 # A language specific compiler.
22983 CC=$lt_compiler
22984
22985 # Is the compiler the GNU compiler?
22986 with_gcc=$GCC
22987
22988 # Compiler flag to turn off builtin functions.
22989 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22990
22991 # Additional compiler flags for building library objects.
22992 pic_flag=$lt_lt_prog_compiler_pic
22993
22994 # How to pass a linker flag through the compiler.
22995 wl=$lt_lt_prog_compiler_wl
22996
22997 # Compiler flag to prevent dynamic linking.
22998 link_static_flag=$lt_lt_prog_compiler_static
22999
23000 # Does compiler simultaneously support -c and -o options?
23001 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23002
23003 # Whether or not to add -lc for building shared libraries.
23004 build_libtool_need_lc=$archive_cmds_need_lc
23005
23006 # Whether or not to disallow shared libs when runtime libs are static.
23007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23008
23009 # Compiler flag to allow reflexive dlopens.
23010 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23011
23012 # Compiler flag to generate shared objects directly from archives.
23013 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23014
23015 # Whether the compiler copes with passing no objects directly.
23016 compiler_needs_object=$lt_compiler_needs_object
23017
23018 # Create an old-style archive from a shared archive.
23019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23020
23021 # Create a temporary old-style archive to link instead of a shared archive.
23022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23023
23024 # Commands used to build a shared archive.
23025 archive_cmds=$lt_archive_cmds
23026 archive_expsym_cmds=$lt_archive_expsym_cmds
23027
23028 # Commands used to build a loadable module if different from building
23029 # a shared archive.
23030 module_cmds=$lt_module_cmds
23031 module_expsym_cmds=$lt_module_expsym_cmds
23032
23033 # Whether we are building with GNU ld or not.
23034 with_gnu_ld=$lt_with_gnu_ld
23035
23036 # Flag that allows shared libraries with undefined symbols to be built.
23037 allow_undefined_flag=$lt_allow_undefined_flag
23038
23039 # Flag that enforces no undefined symbols.
23040 no_undefined_flag=$lt_no_undefined_flag
23041
23042 # Flag to hardcode \$libdir into a binary during linking.
23043 # This must work even if \$libdir does not exist
23044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23045
23046 # Whether we need a single "-rpath" flag with a separated argument.
23047 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23048
23049 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23050 # DIR into the resulting binary.
23051 hardcode_direct=$hardcode_direct
23052
23053 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23054 # DIR into the resulting binary and the resulting library dependency is
23055 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23056 # library is relocated.
23057 hardcode_direct_absolute=$hardcode_direct_absolute
23058
23059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23060 # into the resulting binary.
23061 hardcode_minus_L=$hardcode_minus_L
23062
23063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23064 # into the resulting binary.
23065 hardcode_shlibpath_var=$hardcode_shlibpath_var
23066
23067 # Set to "yes" if building a shared library automatically hardcodes DIR
23068 # into the library and all subsequent libraries and executables linked
23069 # against it.
23070 hardcode_automatic=$hardcode_automatic
23071
23072 # Set to yes if linker adds runtime paths of dependent libraries
23073 # to runtime path list.
23074 inherit_rpath=$inherit_rpath
23075
23076 # Whether libtool must link a program against all its dependency libraries.
23077 link_all_deplibs=$link_all_deplibs
23078
23079 # Set to "yes" if exported symbols are required.
23080 always_export_symbols=$always_export_symbols
23081
23082 # The commands to list exported symbols.
23083 export_symbols_cmds=$lt_export_symbols_cmds
23084
23085 # Symbols that should not be listed in the preloaded symbols.
23086 exclude_expsyms=$lt_exclude_expsyms
23087
23088 # Symbols that must always be exported.
23089 include_expsyms=$lt_include_expsyms
23090
23091 # Commands necessary for linking programs (against libraries) with templates.
23092 prelink_cmds=$lt_prelink_cmds
23093
23094 # Commands necessary for finishing linking programs.
23095 postlink_cmds=$lt_postlink_cmds
23096
23097 # Specify filename containing input files.
23098 file_list_spec=$lt_file_list_spec
23099
23100 # How to hardcode a shared library path into an executable.
23101 hardcode_action=$hardcode_action
23102
23103 # ### END LIBTOOL CONFIG
23104
23105 _LT_EOF
23106
23107 cat <<'_LT_EOF' >> "$cfgfile"
23108
23109 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23110
23111 # func_munge_path_list VARIABLE PATH
23112 # -----------------------------------
23113 # VARIABLE is name of variable containing _space_ separated list of
23114 # directories to be munged by the contents of PATH, which is string
23115 # having a format:
23116 # "DIR[:DIR]:"
23117 # string "DIR[ DIR]" will be prepended to VARIABLE
23118 # ":DIR[:DIR]"
23119 # string "DIR[ DIR]" will be appended to VARIABLE
23120 # "DIRP[:DIRP]::[DIRA:]DIRA"
23121 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23122 # "DIRA[ DIRA]" will be appended to VARIABLE
23123 # "DIR[:DIR]"
23124 # VARIABLE will be replaced by "DIR[ DIR]"
23125 func_munge_path_list ()
23126 {
23127 case x$2 in
23128 x)
23129 ;;
23130 *:)
23131 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23132 ;;
23133 x:*)
23134 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23135 ;;
23136 *::*)
23137 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23138 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23139 ;;
23140 *)
23141 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23142 ;;
23143 esac
23144 }
23145
23146
23147 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23148 func_cc_basename ()
23149 {
23150 for cc_temp in $*""; do
23151 case $cc_temp in
23152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23154 \-*) ;;
23155 *) break;;
23156 esac
23157 done
23158 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23159 }
23160
23161
23162 # ### END FUNCTIONS SHARED WITH CONFIGURE
23163
23164 _LT_EOF
23165
23166 case $host_os in
23167 aix3*)
23168 cat <<\_LT_EOF >> "$cfgfile"
23169 # AIX sometimes has problems with the GCC collect2 program. For some
23170 # reason, if we set the COLLECT_NAMES environment variable, the problems
23171 # vanish in a puff of smoke.
23172 if test set != "${COLLECT_NAMES+set}"; then
23173 COLLECT_NAMES=
23174 export COLLECT_NAMES
23175 fi
23176 _LT_EOF
23177 ;;
23178 esac
23179
23180
23181
23182 ltmain=$ac_aux_dir/ltmain.sh
23183
23184
23185 # We use sed instead of cat because bash on DJGPP gets confused if
23186 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23187 # text mode, it properly converts lines to CR/LF. This bash problem
23188 # is reportedly fixed, but why not run on old versions too?
23189 $SED '$q' "$ltmain" >> "$cfgfile" \
23190 || (rm -f "$cfgfile"; exit 1)
23191
23192 mv -f "$cfgfile" "$ofile" ||
23193 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23194 chmod +x "$ofile"
23195
23196 ;;
23197
23198 esac
23199 done # for ac_tag
23200
23201
23202 as_fn_exit 0
23203 _ACEOF
23204 ac_clean_files=$ac_clean_files_save
23205
23206 test $ac_write_fail = 0 ||
23207 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23208
23209
23210 # configure is writing to config.log, and then calls config.status.
23211 # config.status does its own redirection, appending to config.log.
23212 # Unfortunately, on DOS this fails, as config.log is still kept open
23213 # by configure, so config.status won't be able to write to it; its
23214 # output is simply discarded. So we exec the FD to /dev/null,
23215 # effectively closing config.log, so it can be properly (re)opened and
23216 # appended to by config.status. When coming back to configure, we
23217 # need to make the FD available again.
23218 if test "$no_create" != yes; then
23219 ac_cs_success=:
23220 ac_config_status_args=
23221 test "$silent" = yes &&
23222 ac_config_status_args="$ac_config_status_args --quiet"
23223 exec 5>/dev/null
23224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23225 exec 5>>config.log
23226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23227 # would make configure fail if this is the last instruction.
23228 $ac_cs_success || as_fn_exit 1
23229 fi
23230 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23232 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23233 fi
23234
23235
23236