configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for libXtst 1.2.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190
191 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
192 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
193 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
194 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
195 PATH=/empty FPATH=/empty; export PATH FPATH
196 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
197 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1"
199 if (eval "$as_required") 2>/dev/null
200 then :
201 as_have_required=yes
202 else case e in #(
203 e) as_have_required=no ;;
204 esac
205 fi
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
207 then :
208
209 else case e in #(
210 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 case $as_dir in #(((
216 '') as_dir=./ ;;
217 */) ;;
218 *) as_dir=$as_dir/ ;;
219 esac
220 as_found=:
221 case $as_dir in #(
222 /*)
223 for as_base in sh bash ksh sh5; do
224 # Try only shells that exist, to save several forks.
225 as_shell=$as_dir$as_base
226 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
227 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
228 then :
229 CONFIG_SHELL=$as_shell as_have_required=yes
230 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
231 then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 IFS=$as_save_IFS
240 if $as_found
241 then :
242
243 else case e in #(
244 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
245 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
246 then :
247 CONFIG_SHELL=$SHELL as_have_required=yes
248 fi ;;
249 esac
250 fi
251
252
253 if test "x$CONFIG_SHELL" != x
254 then :
255 export CONFIG_SHELL
256 # We cannot yet assume a decent shell, so we have to provide a
257 # neutralization value for shells without unset; and this also
258 # works around shells that cannot unset nonexistent variables.
259 # Preserve -v and -x to the replacement shell.
260 BASH_ENV=/dev/null
261 ENV=/dev/null
262 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
263 case $- in # ((((
264 *v*x* | *x*v* ) as_opts=-vx ;;
265 *v* ) as_opts=-v ;;
266 *x* ) as_opts=-x ;;
267 * ) as_opts= ;;
268 esac
269 case $# in # ((
270 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
271 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
272 esac
273 # Admittedly, this is quite paranoid, since all the known shells bail
274 # out after a failed 'exec'.
275 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
276 exit 255
277 fi
278
279 if test x$as_have_required = xno
280 then :
281 printf '%s\n' "$0: This script requires a shell more modern than all"
282 printf '%s\n' "$0: the shells that I found on your system."
283 if test ${ZSH_VERSION+y} ; then
284 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
285 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
286 else
287 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and
288 $0: https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues
289 $0: about your system, including any error possibly output
290 $0: before this message. Then install a modern shell, or
291 $0: manually run the script under such a shell if you do
292 $0: have one."
293 fi
294 exit 1
295 fi ;;
296 esac
297 fi
298 fi
299 SHELL=${CONFIG_SHELL-/bin/sh}
300 export SHELL
301 # Unset more variables known to interfere with behavior of common tools.
302 CLICOLOR_FORCE= GREP_OPTIONS=
303 unset CLICOLOR_FORCE GREP_OPTIONS
304
305 ## --------------------- ##
306 ## M4sh Shell Functions. ##
307 ## --------------------- ##
308 # as_fn_unset VAR
309 # ---------------
310 # Portably unset VAR.
311 as_fn_unset ()
312 {
313 { eval $1=; unset $1;}
314 }
315 as_unset=as_fn_unset
316
317
318 # as_fn_set_status STATUS
319 # -----------------------
320 # Set $? to STATUS, without forking.
321 as_fn_set_status ()
322 {
323 return $1
324 } # as_fn_set_status
325
326 # as_fn_exit STATUS
327 # -----------------
328 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
329 as_fn_exit ()
330 {
331 set +e
332 as_fn_set_status $1
333 exit $1
334 } # as_fn_exit
335
336 # as_fn_mkdir_p
337 # -------------
338 # Create "$as_dir" as a directory, including parents if necessary.
339 as_fn_mkdir_p ()
340 {
341
342 case $as_dir in #(
343 -*) as_dir=./$as_dir;;
344 esac
345 test -d "$as_dir" || eval $as_mkdir_p || {
346 as_dirs=
347 while :; do
348 case $as_dir in #(
349 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
350 *) as_qdir=$as_dir;;
351 esac
352 as_dirs="'$as_qdir' $as_dirs"
353 as_dir=`$as_dirname -- "$as_dir" ||
354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
355 X"$as_dir" : 'X\(//\)[^/]' \| \
356 X"$as_dir" : 'X\(//\)$' \| \
357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
358 printf '%s\n' X"$as_dir" |
359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\/\)[^/].*/{
364 s//\1/
365 q
366 }
367 /^X\(\/\/\)$/{
368 s//\1/
369 q
370 }
371 /^X\(\/\).*/{
372 s//\1/
373 q
374 }
375 s/.*/./; q'`
376 test -d "$as_dir" && break
377 done
378 test -z "$as_dirs" || eval "mkdir $as_dirs"
379 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
380
381
382 } # as_fn_mkdir_p
383
384 # as_fn_executable_p FILE
385 # -----------------------
386 # Test if FILE is an executable regular file.
387 as_fn_executable_p ()
388 {
389 test -f "$1" && test -x "$1"
390 } # as_fn_executable_p
391 # as_fn_append VAR VALUE
392 # ----------------------
393 # Append the text in VALUE to the end of the definition contained in VAR. Take
394 # advantage of any shell optimizations that allow amortized linear growth over
395 # repeated appends, instead of the typical quadratic growth present in naive
396 # implementations.
397 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
398 then :
399 eval 'as_fn_append ()
400 {
401 eval $1+=\$2
402 }'
403 else case e in #(
404 e) as_fn_append ()
405 {
406 eval $1=\$$1\$2
407 } ;;
408 esac
409 fi # as_fn_append
410
411 # as_fn_arith ARG...
412 # ------------------
413 # Perform arithmetic evaluation on the ARGs, and store the result in the
414 # global $as_val. Take advantage of shells that can avoid forks. The arguments
415 # must be portable across $(()) and expr.
416 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
417 then :
418 eval 'as_fn_arith ()
419 {
420 as_val=$(( $* ))
421 }'
422 else case e in #(
423 e) as_fn_arith ()
424 {
425 as_val=`expr "$@" || test $? -eq 1`
426 } ;;
427 esac
428 fi # as_fn_arith
429
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf '%s\n' "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf '%s\n' X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 t clear
504 :clear
505 s/[$]LINENO.*/&-/
506 t lineno
507 b
508 :lineno
509 N
510 :loop
511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
512 t loop
513 s/-\n.*//
514 ' >$as_me.lineno &&
515 chmod +x "$as_me.lineno" ||
516 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
517
518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
519 # already done that, so ensure we don't try to do so again and fall
520 # in an infinite loop. This has already happened in practice.
521 _as_can_reexec=no; export _as_can_reexec
522 # Don't try to exec as it changes $[0], causing all sort of problems
523 # (the dirname of $[0] is not the place where we might find the
524 # original and so on. Autoconf is especially sensitive to this).
525 . "./$as_me.lineno"
526 # Exit status is that of the last command.
527 exit
528 }
529
530 rm -f conf$$ conf$$.exe conf$$.file
531 if test -d conf$$.dir; then
532 rm -f conf$$.dir/conf$$.file
533 else
534 rm -f conf$$.dir
535 mkdir conf$$.dir 2>/dev/null
536 fi
537 if (echo >conf$$.file) 2>/dev/null; then
538 if ln -s conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s='ln -s'
540 # ... but there are two gotchas:
541 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
542 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
543 # In both cases, we have to default to 'cp -pR'.
544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
545 as_ln_s='cp -pR'
546 elif ln conf$$.file conf$$ 2>/dev/null; then
547 as_ln_s=ln
548 else
549 as_ln_s='cp -pR'
550 fi
551 else
552 as_ln_s='cp -pR'
553 fi
554 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
555 rmdir conf$$.dir 2>/dev/null
556
557 if mkdir -p . 2>/dev/null; then
558 as_mkdir_p='mkdir -p "$as_dir"'
559 else
560 test -d ./-p && rmdir ./-p
561 as_mkdir_p=false
562 fi
563
564 as_test_x='test -x'
565 as_executable_p=as_fn_executable_p
566
567 # Sed expression to map a string onto a valid CPP name.
568 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
569 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
570
571 # Sed expression to map a string onto a valid variable name.
572 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
574
575 SHELL=${CONFIG_SHELL-/bin/sh}
576
577 as_awk_strverscmp='
578 # Use only awk features that work with 7th edition Unix awk (1978).
579 # My, what an old awk you have, Mr. Solaris!
580 END {
581 while (length(v1) && length(v2)) {
582 # Set d1 to be the next thing to compare from v1, and likewise for d2.
583 # Normally this is a single character, but if v1 and v2 contain digits,
584 # compare them as integers and fractions as strverscmp does.
585 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
586 # Split v1 and v2 into their leading digit string components d1 and d2,
587 # and advance v1 and v2 past the leading digit strings.
588 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
589 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
590 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
591 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
592 if (d1 ~ /^0/) {
593 if (d2 ~ /^0/) {
594 # Compare two fractions.
595 while (d1 ~ /^0/ && d2 ~ /^0/) {
596 d1 = substr(d1, 2); len1--
597 d2 = substr(d2, 2); len2--
598 }
599 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
600 # The two components differ in length, and the common prefix
601 # contains only leading zeros. Consider the longer to be less.
602 d1 = -len1
603 d2 = -len2
604 } else {
605 # Otherwise, compare as strings.
606 d1 = "x" d1
607 d2 = "x" d2
608 }
609 } else {
610 # A fraction is less than an integer.
611 exit 1
612 }
613 } else {
614 if (d2 ~ /^0/) {
615 # An integer is greater than a fraction.
616 exit 2
617 } else {
618 # Compare two integers.
619 d1 += 0
620 d2 += 0
621 }
622 }
623 } else {
624 # The normal case, without worrying about digits.
625 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
626 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
627 }
628 if (d1 < d2) exit 1
629 if (d1 > d2) exit 2
630 }
631 # Beware Solaris 11 /usr/xgp4/bin/awk, which mishandles some
632 # comparisons of empty strings to integers. For example,
633 # LC_ALL=C /usr/xpg4/bin/awk "BEGIN {if (-1 < \"\") print \"a\"}"
634 # prints "a".
635 if (length(v2)) exit 1
636 if (length(v1)) exit 2
637 }
638 '
639
640 test -n "$DJDIR" || exec 7<&0 </dev/null
641 exec 6>&1
642
643 # Name of the host.
644 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
645 # so uname gets run too.
646 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
647
648 #
649 # Initializations.
650 #
651 ac_default_prefix=/usr/local
652 ac_clean_CONFIG_STATUS=
653 ac_clean_files=
654 ac_config_libobj_dir=.
655 LIBOBJS=
656 cross_compiling=no
657 subdirs=
658 MFLAGS=
659 MAKEFLAGS=
660
661 # Identity of this package.
662 PACKAGE_NAME='libXtst'
663 PACKAGE_TARNAME='libXtst'
664 PACKAGE_VERSION='1.2.6'
665 PACKAGE_STRING='libXtst 1.2.6'
666 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues'
667 PACKAGE_URL=''
668
669 ac_unique_file="Makefile.am"
670 # Factoring default headers for most tests.
671 ac_includes_default="\
672 #include <stddef.h>
673 #ifdef HAVE_STDIO_H
674 # include <stdio.h>
675 #endif
676 #ifdef HAVE_STDLIB_H
677 # include <stdlib.h>
678 #endif
679 #ifdef HAVE_STRING_H
680 # include <string.h>
681 #endif
682 #ifdef HAVE_INTTYPES_H
683 # include <inttypes.h>
684 #endif
685 #ifdef HAVE_STDINT_H
686 # include <stdint.h>
687 #endif
688 #ifdef HAVE_STRINGS_H
689 # include <strings.h>
690 #endif
691 #ifdef HAVE_SYS_TYPES_H
692 # include <sys/types.h>
693 #endif
694 #ifdef HAVE_SYS_STAT_H
695 # include <sys/stat.h>
696 #endif
697 #ifdef HAVE_UNISTD_H
698 # include <unistd.h>
699 #endif"
700
701 ac_header_c_list=
702 ac_subst_vars='am__EXEEXT_FALSE
703 am__EXEEXT_TRUE
704 LTLIBOBJS
705 LIBOBJS
706 MAKE_LINT_LIB_FALSE
707 MAKE_LINT_LIB_TRUE
708 LINTLIB
709 LINT_FALSE
710 LINT_TRUE
711 LINT_FLAGS
712 LINT
713 INSTALL_MANPAGES_FALSE
714 INSTALL_MANPAGES_TRUE
715 XTST_LIBS
716 XTST_CFLAGS
717 HAVE_STYLESHEETS_FALSE
718 HAVE_STYLESHEETS_TRUE
719 XSL_STYLESHEET
720 STYLESHEET_SRCDIR
721 XORG_SGML_PATH
722 HAVE_XSLTPROC_FALSE
723 HAVE_XSLTPROC_TRUE
724 XSLTPROC
725 HAVE_FOP_FALSE
726 HAVE_FOP_TRUE
727 FOP
728 HAVE_XMLTO_FALSE
729 HAVE_XMLTO_TRUE
730 HAVE_XMLTO_TEXT_FALSE
731 HAVE_XMLTO_TEXT_TRUE
732 XMLTO
733 ENABLE_SPECS_FALSE
734 ENABLE_SPECS_TRUE
735 MAN_SUBSTS
736 XORG_MAN_PAGE
737 ADMIN_MAN_DIR
738 DRIVER_MAN_DIR
739 MISC_MAN_DIR
740 FILE_MAN_DIR
741 LIB_MAN_DIR
742 APP_MAN_DIR
743 ADMIN_MAN_SUFFIX
744 DRIVER_MAN_SUFFIX
745 MISC_MAN_SUFFIX
746 FILE_MAN_SUFFIX
747 LIB_MAN_SUFFIX
748 APP_MAN_SUFFIX
749 INSTALL_CMD
750 PKG_CONFIG_LIBDIR
751 PKG_CONFIG_PATH
752 PKG_CONFIG
753 CHANGELOG_CMD
754 STRICT_CFLAGS
755 CWARNFLAGS
756 BASE_CFLAGS
757 LT_SYS_LIBRARY_PATH
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 MANIFEST_TOOL
764 RANLIB
765 ac_ct_AR
766 AR
767 DLLTOOL
768 OBJDUMP
769 FILECMD
770 LN_S
771 NM
772 ac_ct_DUMPBIN
773 DUMPBIN
774 LD
775 FGREP
776 EGREP
777 GREP
778 SED
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__include
787 DEPDIR
788 OBJEXT
789 EXEEXT
790 ac_ct_CC
791 CPPFLAGS
792 LDFLAGS
793 CFLAGS
794 CC
795 host_os
796 host_vendor
797 host_cpu
798 host
799 build_os
800 build_vendor
801 build_cpu
802 build
803 LIBTOOL
804 am__xargs_n
805 am__rm_f_notfound
806 AM_BACKSLASH
807 AM_DEFAULT_VERBOSITY
808 AM_DEFAULT_V
809 AM_V
810 CSCOPE
811 ETAGS
812 CTAGS
813 am__tar_ignore_stderr
814 am__untar
815 am__tar
816 AMTAR
817 am__leading_dot
818 SET_MAKE
819 AWK
820 mkdir_p
821 MKDIR_P
822 INSTALL_STRIP_PROGRAM
823 STRIP
824 install_sh
825 MAKEINFO
826 AUTOHEADER
827 AUTOMAKE
828 AUTOCONF
829 ACLOCAL
830 VERSION
831 PACKAGE
832 CYGPATH_W
833 am__isrc
834 INSTALL_DATA
835 INSTALL_SCRIPT
836 INSTALL_PROGRAM
837 ECHO_T
838 ECHO_N
839 ECHO_C
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 runstatedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL
876 am__quote'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_silent_rules
881 enable_shared
882 enable_static
883 enable_pic
884 with_pic
885 enable_cxx_stdlib
886 enable_fast_install
887 enable_aix_soname
888 with_aix_soname
889 enable_dependency_tracking
890 with_gnu_ld
891 with_sysroot
892 enable_libtool_lock
893 enable_selective_werror
894 enable_strict_compilation
895 enable_specs
896 with_xmlto
897 with_fop
898 with_xsltproc
899 with_lint
900 enable_lint_library
901 '
902 ac_precious_vars='build_alias
903 host_alias
904 target_alias
905 CC
906 CFLAGS
907 LDFLAGS
908 LIBS
909 CPPFLAGS
910 LT_SYS_LIBRARY_PATH
911 PKG_CONFIG
912 PKG_CONFIG_PATH
913 PKG_CONFIG_LIBDIR
914 XMLTO
915 FOP
916 XSLTPROC
917 XTST_CFLAGS
918 XTST_LIBS
919 LINT
920 LINT_FLAGS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 runstatedir='${localstatedir}/run'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
971
972 ac_prev=
973 ac_dashdash=
974 for ac_option
975 do
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
981 fi
982
983 case $ac_option in
984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *=) ac_optarg= ;;
986 *) ac_optarg=yes ;;
987 esac
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: '$ac_useropt'"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: '$ac_useropt'"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -runstatedir | --runstatedir | --runstatedi | --runstated \
1211 | --runstate | --runstat | --runsta | --runst | --runs \
1212 | --run | --ru | --r)
1213 ac_prev=runstatedir ;;
1214 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1215 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1216 | --run=* | --ru=* | --r=*)
1217 runstatedir=$ac_optarg ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1268 as_fn_error $? "invalid package name: '$ac_useropt'"
1269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273 "with_$ac_useropt"
1274 "*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
1277 esac
1278 eval with_$ac_useropt=\$ac_optarg ;;
1279
1280 -without-* | --without-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: '$ac_useropt'"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
1295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) as_fn_error $? "unrecognized option: '$ac_option'
1315 Try '$0 --help' for more information"
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1324 esac
1325 eval $ac_envvar=\$ac_optarg
1326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1334 ;;
1335
1336 esac
1337 done
1338
1339 if test -n "$ac_prev"; then
1340 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1341 as_fn_error $? "missing argument to $ac_option"
1342 fi
1343
1344 if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
1347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 esac
1350 fi
1351
1352 # Check all directory arguments for consistency.
1353 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir runstatedir
1357 do
1358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
1360 case $ac_val in
1361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
1364 esac
1365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
1370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 done
1372
1373 # There might be people who depend on the old broken behavior: '$host'
1374 # used to hold the argument of --host etc.
1375 # FIXME: To remove some day.
1376 build=$build_alias
1377 host=$host_alias
1378 target=$target_alias
1379
1380 # FIXME: To remove some day.
1381 if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 as_fn_error $? "working directory cannot be determined"
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 as_fn_error $? "pwd does not report name of working directory"
1401
1402
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412 printf '%s\n' X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
1430 srcdir=$ac_confdir
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 srcdir=..
1433 fi
1434 else
1435 ac_srcdir_defaulted=no
1436 fi
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 fi
1441 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1442 ac_abs_confdir=`(
1443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1444 pwd)`
1445 # When building in place, set srcdir=.
1446 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448 fi
1449 # Remove unnecessary trailing slashes from srcdir.
1450 # Double slashes in file names in object file debugging info
1451 # mess up M-x gdb in Emacs.
1452 case $srcdir in
1453 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 esac
1455 for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460 done
1461
1462 #
1463 # Report the --help message.
1464 #
1465 if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
1468 cat <<_ACEOF
1469 'configure' configures libXtst 1.2.6 to adapt to many kinds of systems.
1470
1471 Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474 VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476 Defaults for the options are specified in brackets.
1477
1478 Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
1483 -q, --quiet, --silent do not print 'checking ...' messages
1484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for '--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or '..']
1488
1489 Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
1491 [$ac_default_prefix]
1492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 [PREFIX]
1494
1495 By default, 'make install' will install all the files in
1496 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1497 an installation prefix other than '$ac_default_prefix' using '--prefix',
1498 for instance '--prefix=\$HOME'.
1499
1500 For better control, use the options below.
1501
1502 Fine tuning of the installation directories:
1503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1523 _ACEOF
1524
1525 cat <<\_ACEOF
1526
1527 Program names:
1528 --program-prefix=PREFIX prepend PREFIX to installed program names
1529 --program-suffix=SUFFIX append SUFFIX to installed program names
1530 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531
1532 System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 _ACEOF
1536 fi
1537
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of libXtst 1.2.6:";;
1541 esac
1542 cat <<\_ACEOF
1543
1544 Optional Features:
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-silent-rules less verbose build output (undo: "make V=1")
1549 --disable-silent-rules verbose build output (undo: "make V=0")
1550 --enable-shared[=PKGS] build shared libraries [default=yes]
1551 --enable-static[=PKGS] build static libraries [default=yes]
1552 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1553 both]
1554 --enable-cxx-stdlib[=PKGS]
1555 let the compiler frontend decide what standard
1556 libraries to link when building C++ shared libraries
1557 and modules [default=no]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --enable-aix-soname=aix|svr4|both
1561 shared library versioning (aka "SONAME") variant to
1562 provide on AIX, [default=aix].
1563 --enable-dependency-tracking
1564 do not reject slow dependency extractors
1565 --disable-dependency-tracking
1566 speeds up one-time build
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --disable-selective-werror
1569 Turn off selective compiler errors. (default:
1570 enabled)
1571 --enable-strict-compilation
1572 Enable all warnings from compiler and make them
1573 errors (default: disabled)
1574 --enable-specs Enable building the specs (default: yes)
1575 --enable-lint-library Create lint library (default: disabled)
1576
1577 Optional Packages:
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1581 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1582 compiler's sysroot if not specified).
1583 --with-xmlto Use xmlto to regenerate documentation (default:
1584 auto)
1585 --with-fop Use fop to regenerate documentation (default: auto)
1586 --with-xsltproc Use xsltproc for the transformation of XML documents
1587 (default: auto)
1588 --with-lint Use a lint-style source code checker (default:
1589 disabled)
1590
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 LT_SYS_LIBRARY_PATH
1600 User-defined run-time library search path.
1601 PKG_CONFIG path to pkg-config utility
1602 PKG_CONFIG_PATH
1603 directories to add to pkg-config's search path
1604 PKG_CONFIG_LIBDIR
1605 path overriding pkg-config's built-in search path
1606 XMLTO Path to xmlto command
1607 FOP Path to fop command
1608 XSLTPROC Path to xsltproc command
1609 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config
1610 XTST_LIBS linker flags for XTST, overriding pkg-config
1611 LINT Path to a lint-style command
1612 LINT_FLAGS Flags for the lint-style command
1613
1614 Use these variables to override the choices made by 'configure' or to help
1615 it to find libraries and programs with nonstandard names/locations.
1616
1617 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>.
1618 _ACEOF
1619 ac_status=$?
1620 fi
1621
1622 if test "$ac_init_help" = "recursive"; then
1623 # If there are subdirs, report their specific --help.
1624 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625 test -d "$ac_dir" ||
1626 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1627 continue
1628 ac_builddir=.
1629
1630 case "$ac_dir" in
1631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *)
1633 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1634 # A ".." for each directory in $ac_dir_suffix.
1635 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1636 case $ac_top_builddir_sub in
1637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 esac ;;
1640 esac
1641 ac_abs_top_builddir=$ac_pwd
1642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1643 # for backward compatibility:
1644 ac_top_builddir=$ac_top_build_prefix
1645
1646 case $srcdir in
1647 .) # We are building in place.
1648 ac_srcdir=.
1649 ac_top_srcdir=$ac_top_builddir_sub
1650 ac_abs_top_srcdir=$ac_pwd ;;
1651 [\\/]* | ?:[\\/]* ) # Absolute name.
1652 ac_srcdir=$srcdir$ac_dir_suffix;
1653 ac_top_srcdir=$srcdir
1654 ac_abs_top_srcdir=$srcdir ;;
1655 *) # Relative name.
1656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1657 ac_top_srcdir=$ac_top_build_prefix$srcdir
1658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 esac
1660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661
1662 cd "$ac_dir" || { ac_status=$?; continue; }
1663 # Check for configure.gnu first; this name is used for a wrapper for
1664 # Metaconfig's "Configure" on case-insensitive file systems.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1671 else
1672 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1675 done
1676 fi
1677
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1680 cat <<\_ACEOF
1681 libXtst configure 1.2.6
1682 generated by GNU Autoconf 2.73
1683
1684 Copyright (C) 2026 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1687 _ACEOF
1688 exit
1689 fi
1690
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1694
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1699 {
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest.beam
1702 if { { ac_try="$ac_compile"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 printf '%s\n' "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext
1721 then :
1722 ac_retval=0
1723 else case e in #(
1724 e) printf '%s\n' "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1 ;;
1728 esac
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_compile
1734
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 printf '%s\n' "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1763 }
1764 then :
1765 ac_retval=0
1766 else case e in #(
1767 e) printf '%s\n' "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1 ;;
1771 esac
1772 fi
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_link
1782
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 printf %s "checking for $2... " >&6; }
1792 if eval test \${$3+y}
1793 then :
1794 printf %s "(cached) " >&6
1795 else case e in #(
1796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"
1802 then :
1803 eval "$3=yes"
1804 else case e in #(
1805 e) eval "$3=no" ;;
1806 esac
1807 fi
1808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1809 esac
1810 fi
1811 eval ac_res=\$$3
1812 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 printf '%s\n' "$ac_res" >&6; }
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816 } # ac_fn_c_check_header_compile
1817
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1822 {
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 printf %s "checking for $2... " >&6; }
1826 if eval test \${$3+y}
1827 then :
1828 printf %s "(cached) " >&6
1829 else case e in #(
1830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834 #define $2 innocuous_$2
1835
1836 /* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (void); below. */
1838
1839 #include <limits.h>
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 (void);
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main (void)
1858 {
1859 return $2 ();
1860 ;
1861 return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"
1865 then :
1866 eval "$3=yes"
1867 else case e in #(
1868 e) eval "$3=no" ;;
1869 esac
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1872 conftest$ac_exeext conftest.$ac_ext ;;
1873 esac
1874 fi
1875 eval ac_res=\$$3
1876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 printf '%s\n' "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880 } # ac_fn_c_check_func
1881
1882 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1883 # ------------------------------------------------------------------
1884 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1885 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1886 ac_fn_check_decl ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 as_decl_name=`echo $2|sed 's/ *(.*//'`
1890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1891 printf %s "checking whether $as_decl_name is declared... " >&6; }
1892 if eval test \${$3+y}
1893 then :
1894 printf %s "(cached) " >&6
1895 else case e in #(
1896 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1897 eval ac_save_FLAGS=\$$6
1898 as_fn_append $6 " $5"
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 $4
1902 int
1903 main (void)
1904 {
1905 #ifndef $as_decl_name
1906 #ifdef __cplusplus
1907 (void) $as_decl_use;
1908 #else
1909 (void) $as_decl_name;
1910 #endif
1911 #endif
1912
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"
1918 then :
1919 eval "$3=yes"
1920 else case e in #(
1921 e) eval "$3=no" ;;
1922 esac
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1925 eval $6=\$ac_save_FLAGS
1926 ;;
1927 esac
1928 fi
1929 eval ac_res=\$$3
1930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 printf '%s\n' "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934 } # ac_fn_check_decl
1935 ac_configure_args_raw=
1936 for ac_arg
1937 do
1938 case $ac_arg in
1939 *\'*)
1940 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941 esac
1942 as_fn_append ac_configure_args_raw " '$ac_arg'"
1943 done
1944
1945 case $ac_configure_args_raw in
1946 *$as_nl*)
1947 ac_safe_unquote= ;;
1948 *)
1949 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1950 ac_unsafe_a="$ac_unsafe_z#~"
1951 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1952 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1953 esac
1954
1955 cat >config.log <<_ACEOF
1956 This file contains any messages produced by compilers while
1957 running configure, to aid debugging if configure makes a mistake.
1958
1959 It was created by libXtst $as_me 1.2.6, which was
1960 generated by GNU Autoconf 2.73. Invocation command line was
1961
1962 $ $0$ac_configure_args_raw
1963
1964 _ACEOF
1965 exec 5>>config.log
1966 {
1967 cat <<_ASUNAME
1968 ## --------- ##
1969 ## Platform. ##
1970 ## --------- ##
1971
1972 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1973 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1974 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1975 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1976 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977
1978 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1979 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980
1981 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1982 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1983 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1984 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1985 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1986 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1987 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988
1989 _ASUNAME
1990
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994 IFS=$as_save_IFS
1995 case $as_dir in #(((
1996 '') as_dir=./ ;;
1997 */) ;;
1998 *) as_dir=$as_dir/ ;;
1999 esac
2000 printf '%s\n' "PATH: $as_dir"
2001 done
2002 IFS=$as_save_IFS
2003
2004 } >&5
2005
2006 cat >&5 <<_ACEOF
2007
2008
2009 ## ----------- ##
2010 ## Core tests. ##
2011 ## ----------- ##
2012
2013 _ACEOF
2014
2015
2016 # Keep a trace of the command line.
2017 # Strip out --no-create and --no-recursion so they do not pile up.
2018 # Strip out --silent because we don't want to record it for future runs.
2019 # Also quote any args containing shell meta-characters.
2020 # Make two passes to allow for proper duplicate-argument suppression.
2021 ac_configure_args=
2022 ac_configure_args0=
2023 ac_configure_args1=
2024 ac_must_keep_next=false
2025 for ac_pass in 1 2
2026 do
2027 for ac_arg
2028 do
2029 case $ac_arg in
2030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2032 | -silent | --silent | --silen | --sile | --sil)
2033 continue ;;
2034 *\'*)
2035 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2036 esac
2037 case $ac_pass in
2038 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039 2)
2040 as_fn_append ac_configure_args1 " '$ac_arg'"
2041 if test $ac_must_keep_next = true; then
2042 ac_must_keep_next=false # Got value, back to normal.
2043 else
2044 case $ac_arg in
2045 *=* | --config-cache | -C | -disable-* | --disable-* \
2046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2048 | -with-* | --with-* | -without-* | --without-* | --x)
2049 case "$ac_configure_args0 " in
2050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051 esac
2052 ;;
2053 -* ) ac_must_keep_next=true ;;
2054 esac
2055 fi
2056 as_fn_append ac_configure_args " '$ac_arg'"
2057 ;;
2058 esac
2059 done
2060 done
2061 { ac_configure_args0=; unset ac_configure_args0;}
2062 { ac_configure_args1=; unset ac_configure_args1;}
2063
2064 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
2065 ac_cache_dump ()
2066 {
2067 # The following way of writing the cache mishandles newlines in values,
2068 # but we know of no workaround that is simple, portable, and efficient.
2069 # So, we kill variables containing newlines.
2070 # Ultrix sh set writes to stderr and can't be redirected directly,
2071 # and sets the high bit in the cache file unless we assign to the vars.
2072 (
2073 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in #(
2076 *${as_nl}*)
2077 case $ac_var in #(
2078 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080 esac
2081 case $ac_var in #(
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2085 esac ;;
2086 esac
2087 done
2088
2089 (set) 2>&1 |
2090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2091 *${as_nl}ac_space=\ *)
2092 # 'set' does not quote correctly, so add quotes: double-quote
2093 # substitution turns \\\\ into \\, and sed turns \\ into \.
2094 sed -n \
2095 "s/'/'\\\\''/g;
2096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2097 ;; #(
2098 *)
2099 # 'set' quotes correctly as required by POSIX, so do not add quotes.
2100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2101 ;;
2102 esac |
2103 sort
2104 )
2105 }
2106
2107 # Print debugging info to stdout.
2108 ac_dump_debugging_info ()
2109 {
2110 echo
2111
2112 printf '%s\n' "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 ac_cache_dump
2117 echo
2118
2119 printf '%s\n' "## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##"
2122 echo
2123 for ac_var in $ac_subst_vars
2124 do
2125 eval ac_val=\$$ac_var
2126 case $ac_val in
2127 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2128 esac
2129 printf '%s\n' "$ac_var='$ac_val'"
2130 done | sort
2131 echo
2132
2133 if test -n "$ac_subst_files"; then
2134 printf '%s\n' "## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##"
2137 echo
2138 for ac_var in $ac_subst_files
2139 do
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
2143 esac
2144 printf '%s\n' "$ac_var='$ac_val'"
2145 done | sort
2146 echo
2147 fi
2148
2149 if test -s confdefs.h; then
2150 printf '%s\n' "## ----------- ##
2151 ## confdefs.h. ##
2152 ## ----------- ##"
2153 echo
2154 cat confdefs.h
2155 echo
2156 fi
2157 test "$ac_signal" != 0 &&
2158 printf '%s\n' "$as_me: caught signal $ac_signal"
2159 printf '%s\n' "$as_me: exit $exit_status"
2160 }
2161
2162 # When interrupted or exit'd, cleanup temporary files, and complete
2163 # config.log.
2164 ac_exit_trap ()
2165 {
2166 exit_status=
2167 # Sanitize IFS.
2168 IFS=" "" $as_nl"
2169 # Save into config.log some information that might help in debugging.
2170 ac_dump_debugging_info >&5
2171 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
2172 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2173 exit $exit_status
2174 }
2175
2176 trap 'ac_exit_trap $?' 0
2177 for ac_signal in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 done
2180 ac_signal=0
2181
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest* confdefs.h
2184
2185 printf '%s\n' "/* confdefs.h */" > confdefs.h
2186
2187 # Predefined preprocessor variables.
2188
2189 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2190
2191 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2192
2193 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2194
2195 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2196
2197 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2198
2199 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2200
2201
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2204 if test -n "$CONFIG_SITE"; then
2205 ac_site_files="$CONFIG_SITE"
2206 elif test "x$prefix" != xNONE; then
2207 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2208 else
2209 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2210 fi
2211
2212 for ac_site_file in $ac_site_files
2213 do
2214 case $ac_site_file in #(
2215 */*) :
2216 ;; #(
2217 *) :
2218 ac_site_file=./$ac_site_file ;;
2219 esac
2220 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2223 sed 's/^/| /' "$ac_site_file" >&5
2224 . "$ac_site_file" \
2225 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2226 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2227 as_fn_error $? "failed to load site script $ac_site_file
2228 See 'config.log' for more details" "$LINENO" 5; }
2229 fi
2230 done
2231
2232 if test -r "$cache_file"; then
2233 # Some versions of bash will fail to source /dev/null (special files
2234 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2235 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2238 case $cache_file in
2239 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240 *) . "./$cache_file";;
2241 esac
2242 fi
2243 else
2244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2246 >$cache_file
2247 fi
2248
2249 # Test code for whether the C compiler supports C23 (global declarations)
2250 ac_c_conftest_c23_globals='
2251 /* Does the compiler advertise conformance to C17 or earlier?
2252 Although GCC 14 does not do that, even with -std=gnu23,
2253 it is close enough, and defines __STDC_VERSION == 202000L. */
2254 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2255 # error "Compiler advertises conformance to C17 or earlier"
2256 #endif
2257
2258 // Check alignas.
2259 char alignas (double) c23_aligned_as_double;
2260 char alignas (0) c23_no_special_alignment;
2261 extern char c23_aligned_as_int;
2262 char alignas (0) alignas (int) c23_aligned_as_int;
2263
2264 // Check alignof.
2265 enum
2266 {
2267 c23_int_alignment = alignof (int),
2268 c23_int_array_alignment = alignof (int[100]),
2269 c23_char_alignment = alignof (char)
2270 };
2271 static_assert (0 < -alignof (int), "alignof is signed");
2272
2273 int function_with_unnamed_parameter (int) { return 0; }
2274
2275 void c23_noreturn ();
2276
2277 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2278 The parens pacify GCC 15. */
2279 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2280
2281 bool check_that_bool_works = true | false | !nullptr;
2282 #if !true
2283 # error "true does not work in #if"
2284 #endif
2285 #if false
2286 #elifdef __STDC_VERSION__
2287 #else
2288 # error "#elifdef does not work"
2289 #endif
2290
2291 #ifndef __has_c_attribute
2292 # error "__has_c_attribute not defined"
2293 #endif
2294
2295 #ifndef __has_include
2296 # error "__has_include not defined"
2297 #endif
2298
2299 #define LPAREN() (
2300 #define FORTY_TWO(x) 42
2301 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2302 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2303
2304 static_assert (0b101010 == 42);
2305 static_assert (0B101010 == 42);
2306 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2307 static_assert (0.500'\''000'\''000 == 0.5);
2308
2309 enum unsignedish : unsigned int { uione = 1 };
2310 static_assert (0 < -uione);
2311
2312 #include <stddef.h>
2313 constexpr nullptr_t null_pointer = nullptr;
2314
2315 static typeof (1 + 1L) two () { return 2; }
2316 static long int three () { return 3; }
2317 '
2318
2319 # Test code for whether the C compiler supports C23 (body of main).
2320 ac_c_conftest_c23_main='
2321 {
2322 label_before_declaration:
2323 int arr[10] = {};
2324 if (arr[0])
2325 goto label_before_declaration;
2326 if (!arr[0])
2327 goto label_at_end_of_block;
2328 label_at_end_of_block:
2329 }
2330 ok |= !null_pointer;
2331 ok |= two != three;
2332 '
2333
2334 # Test code for whether the C compiler supports C23 (complete).
2335 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2336
2337 int
2338 main (int, char **)
2339 {
2340 int ok = 0;
2341 ${ac_c_conftest_c23_main}
2342 return ok;
2343 }
2344 "
2345
2346 # Test code for whether the C compiler supports C89 (global declarations)
2347 ac_c_conftest_c89_globals='
2348 /* Do not test the value of __STDC__, because some compilers define it to 0
2349 or do not define it, while otherwise adequately conforming. */
2350
2351 #include <stddef.h>
2352 #include <stdarg.h>
2353 struct stat;
2354 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2355 struct buf { int x; };
2356 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2357 static char *e (char **p, int i)
2358 {
2359 return p[i];
2360 }
2361 static char *f (char * (*g) (char **, int), char **p, ...)
2362 {
2363 char *s;
2364 va_list v;
2365 va_start (v,p);
2366 s = g (p, va_arg (v,int));
2367 va_end (v);
2368 return s;
2369 }
2370
2371 /* C89 style stringification. */
2372 #define noexpand_stringify(a) #a
2373 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2374
2375 /* C89 style token pasting. Exercises some of the corner cases that
2376 e.g. old MSVC gets wrong, but not very hard. */
2377 #define noexpand_concat(a,b) a##b
2378 #define expand_concat(a,b) noexpand_concat(a,b)
2379 extern int vA;
2380 extern int vbee;
2381 #define aye A
2382 #define bee B
2383 int *pvA = &expand_concat(v,aye);
2384 int *pvbee = &noexpand_concat(v,bee);
2385
2386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2387 function prototypes and stuff, but not \xHH hex character constants.
2388 These do not provoke an error unfortunately, instead are silently treated
2389 as an "x". The following induces an error, until -std is added to get
2390 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2391 array size at least. It is necessary to write \x00 == 0 to get something
2392 that is true only with -std. */
2393 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2394
2395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2396 inside strings and character constants. */
2397 #define FOO(x) '\''x'\''
2398 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2399
2400 int test (int i, double x);
2401 struct s1 {int (*f) (int a);};
2402 struct s2 {int (*f) (double a);};
2403 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2404 int, int);'
2405
2406 # Test code for whether the C compiler supports C89 (body of main).
2407 ac_c_conftest_c89_main='
2408 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2409 '
2410
2411 # Test code for whether the C compiler supports C99 (global declarations)
2412 ac_c_conftest_c99_globals='
2413 /* Does the compiler advertise C99 conformance? */
2414 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2415 # error "Compiler does not advertise C99 conformance"
2416 #endif
2417
2418 // See if C++-style comments work.
2419
2420 #include <stdbool.h>
2421 extern int puts (const char *);
2422 extern int printf (const char *, ...);
2423 extern int dprintf (int, const char *, ...);
2424 extern void *malloc (size_t);
2425 extern void free (void *);
2426
2427 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2428 // dprintf is used instead of fprintf to avoid needing to declare
2429 // FILE and stderr, and "aND" is used instead of "and" to work around
2430 // GCC bug 40564 which is irrelevant here.
2431 #define debug(...) dprintf (2, __VA_ARGS__)
2432 #define showlist(...) puts (#__VA_ARGS__)
2433 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2434 static void
2435 test_varargs_macros (void)
2436 {
2437 int x = 1234;
2438 int y = 5678;
2439 debug ("Flag");
2440 debug ("X = %d\n", x);
2441 showlist (The first, second, aND third items.);
2442 report (x>y, "x is %d but y is %d", x, y);
2443 }
2444
2445 // Check long long types.
2446 #define BIG64 18446744073709551615ull
2447 #define BIG32 4294967295ul
2448 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2449 #if !BIG_OK
2450 #error "your preprocessor is broken"
2451 #endif
2452 #if BIG_OK
2453 #else
2454 #error "your preprocessor is broken"
2455 #endif
2456 static long long int bignum = -9223372036854775807LL;
2457 static unsigned long long int ubignum = BIG64;
2458
2459 struct incomplete_array
2460 {
2461 int datasize;
2462 double data[];
2463 };
2464
2465 struct named_init {
2466 int number;
2467 const wchar_t *name;
2468 double average;
2469 };
2470
2471 typedef const char *ccp;
2472
2473 static inline int
2474 test_restrict (ccp restrict text)
2475 {
2476 // Iterate through items via the restricted pointer.
2477 // Also check for declarations in for loops.
2478 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2479 continue;
2480 return 0;
2481 }
2482
2483 // Check varargs and va_copy.
2484 static bool
2485 test_varargs (const char *format, ...)
2486 {
2487 va_list args;
2488 va_start (args, format);
2489 va_list args_copy;
2490 va_copy (args_copy, args);
2491
2492 const char *str = "";
2493 int number = 0;
2494 float fnumber = 0;
2495
2496 while (*format)
2497 {
2498 switch (*format++)
2499 {
2500 case '\''s'\'': // string
2501 str = va_arg (args_copy, const char *);
2502 break;
2503 case '\''d'\'': // int
2504 number = va_arg (args_copy, int);
2505 break;
2506 case '\''f'\'': // float
2507 fnumber = va_arg (args_copy, double);
2508 break;
2509 default:
2510 break;
2511 }
2512 }
2513 va_end (args_copy);
2514 va_end (args);
2515
2516 return *str && number && fnumber;
2517 }
2518 '
2519
2520 # Test code for whether the C compiler supports C99 (body of main).
2521 ac_c_conftest_c99_main='
2522 // Check bool.
2523 _Bool success = false;
2524 success |= (argc != 0);
2525
2526 // Check restrict.
2527 if (test_restrict ("String literal") == 0)
2528 success = true;
2529 const char *restrict newvar = "Another string";
2530
2531 // Check varargs.
2532 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2533 test_varargs_macros ();
2534
2535 // Check flexible array members.
2536 static struct incomplete_array *volatile incomplete_array_pointer;
2537 struct incomplete_array *ia = incomplete_array_pointer;
2538 ia->datasize = 10;
2539 for (int i = 0; i < ia->datasize; ++i)
2540 ia->data[i] = i * 1.234;
2541 // Work around memory leak warnings.
2542 free (ia);
2543
2544 // Check named initializers.
2545 struct named_init ni = {
2546 .number = 34,
2547 .name = L"Test wide string",
2548 .average = 543.34343,
2549 };
2550
2551 ni.number = 58;
2552
2553 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2554 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2555
2556 // work around unused variable warnings
2557 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2558 || ni.number != 58);
2559 '
2560
2561 # Test code for whether the C compiler supports C11 (global declarations)
2562 ac_c_conftest_c11_globals='
2563 /* Does the compiler advertise C11 conformance? */
2564 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2565 # error "Compiler does not advertise C11 conformance"
2566 #endif
2567
2568 // Check _Alignas.
2569 char _Alignas (double) aligned_as_double;
2570 char _Alignas (0) no_special_alignment;
2571 extern char aligned_as_int;
2572 char _Alignas (0) _Alignas (int) aligned_as_int;
2573
2574 // Check _Alignof.
2575 enum
2576 {
2577 int_alignment = _Alignof (int),
2578 int_array_alignment = _Alignof (int[100]),
2579 char_alignment = _Alignof (char)
2580 };
2581 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2582
2583 // Check _Noreturn.
2584 int _Noreturn does_not_return (void) { for (;;) continue; }
2585
2586 // Check _Static_assert.
2587 struct test_static_assert
2588 {
2589 int x;
2590 _Static_assert (sizeof (int) <= sizeof (long int),
2591 "_Static_assert does not work in struct");
2592 long int y;
2593 };
2594
2595 // Check UTF-8 literals.
2596 #define u8 syntax error!
2597 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2598
2599 // Check duplicate typedefs.
2600 typedef long *long_ptr;
2601 typedef long int *long_ptr;
2602 typedef long_ptr long_ptr;
2603
2604 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2605 struct anonymous
2606 {
2607 union {
2608 struct { int i; int j; };
2609 struct { int k; long int l; } w;
2610 };
2611 int m;
2612 } v1;
2613 '
2614
2615 # Test code for whether the C compiler supports C11 (body of main).
2616 ac_c_conftest_c11_main='
2617 _Static_assert ((offsetof (struct anonymous, i)
2618 == offsetof (struct anonymous, w.k)),
2619 "Anonymous union alignment botch");
2620 v1.i = 2;
2621 v1.w.k = 5;
2622 ok |= v1.i != 5;
2623 '
2624
2625 # Test code for whether the C compiler supports C11 (complete).
2626 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2627 ${ac_c_conftest_c99_globals}
2628 ${ac_c_conftest_c11_globals}
2629
2630 int
2631 main (int argc, char **argv)
2632 {
2633 int ok = 0;
2634 ${ac_c_conftest_c89_main}
2635 ${ac_c_conftest_c99_main}
2636 ${ac_c_conftest_c11_main}
2637 return ok;
2638 }
2639 "
2640
2641 # Test code for whether the C compiler supports C99 (complete).
2642 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2643 ${ac_c_conftest_c99_globals}
2644
2645 int
2646 main (int argc, char **argv)
2647 {
2648 int ok = 0;
2649 ${ac_c_conftest_c89_main}
2650 ${ac_c_conftest_c99_main}
2651 return ok;
2652 }
2653 "
2654
2655 # Test code for whether the C compiler supports C89 (complete).
2656 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2657
2658 int
2659 main (int argc, char **argv)
2660 {
2661 int ok = 0;
2662 ${ac_c_conftest_c89_main}
2663 return ok;
2664 }
2665 "
2666
2667 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2668 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2669 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2670 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2671 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2672 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2673 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2674 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2675 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2676
2677 # Auxiliary files required by this configure script.
2678 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2679
2680 # Locations in which to look for auxiliary files.
2681 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2682
2683 # Search for a directory containing all of the required auxiliary files,
2684 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2685 # If we don't find one directory that contains all the files we need,
2686 # we report the set of missing files from the *first* directory in
2687 # $ac_aux_dir_candidates and give up.
2688 ac_missing_aux_files=""
2689 ac_first_candidate=:
2690 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 as_found=false
2693 for as_dir in $ac_aux_dir_candidates
2694 do
2695 IFS=$as_save_IFS
2696 case $as_dir in #(((
2697 '') as_dir=./ ;;
2698 */) ;;
2699 *) as_dir=$as_dir/ ;;
2700 esac
2701 as_found=:
2702
2703 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2704 ac_aux_dir_found=yes
2705 ac_install_sh=
2706 for ac_aux in $ac_aux_files
2707 do
2708 # As a special case, if "install-sh" is required, that requirement
2709 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2710 # and $ac_install_sh is set appropriately for whichever one is found.
2711 if test x"$ac_aux" = x"install-sh"
2712 then
2713 if test -f "${as_dir}install-sh"; then
2714 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2715 ac_install_sh="${as_dir}install-sh -c"
2716 elif test -f "${as_dir}install.sh"; then
2717 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2718 ac_install_sh="${as_dir}install.sh -c"
2719 elif test -f "${as_dir}shtool"; then
2720 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2721 ac_install_sh="${as_dir}shtool install -c"
2722 else
2723 ac_aux_dir_found=no
2724 if $ac_first_candidate; then
2725 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2726 else
2727 break
2728 fi
2729 fi
2730 else
2731 if test -f "${as_dir}${ac_aux}"; then
2732 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2733 else
2734 ac_aux_dir_found=no
2735 if $ac_first_candidate; then
2736 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2737 else
2738 break
2739 fi
2740 fi
2741 fi
2742 done
2743 if test "$ac_aux_dir_found" = yes; then
2744 ac_aux_dir="$as_dir"
2745 break
2746 fi
2747 ac_first_candidate=false
2748
2749 as_found=false
2750 done
2751 IFS=$as_save_IFS
2752 if $as_found
2753 then :
2754
2755 else case e in #(
2756 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2757 esac
2758 fi
2759
2760
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 if test -f "${ac_aux_dir}config.guess"; then
2766 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2767 fi
2768 if test -f "${ac_aux_dir}config.sub"; then
2769 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2770 fi
2771 if test -f "$ac_aux_dir/configure"; then
2772 ac_configure="$SHELL ${ac_aux_dir}configure"
2773 fi
2774
2775 # Check that the precious variables saved in the cache have kept the same
2776 # value.
2777 ac_cache_corrupted=false
2778 for ac_var in $ac_precious_vars; do
2779 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2780 eval ac_new_set=\$ac_env_${ac_var}_set
2781 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2782 eval ac_new_val=\$ac_env_${ac_var}_value
2783 case $ac_old_set,$ac_new_set in
2784 set,)
2785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2786 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2787 ac_cache_corrupted=: ;;
2788 ,set)
2789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2790 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2791 ac_cache_corrupted=: ;;
2792 ,);;
2793 *)
2794 if test "x$ac_old_val" != "x$ac_new_val"; then
2795 # differences in whitespace do not lead to failure.
2796 ac_old_val_w=
2797 for ac_val in x $ac_old_val; do
2798 ac_old_val_w="$ac_old_val_w $ac_val"
2799 done
2800 ac_new_val_w=
2801 for ac_val in x $ac_new_val; do
2802 ac_new_val_w="$ac_new_val_w $ac_val"
2803 done
2804 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2806 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2807 ac_cache_corrupted=:
2808 else
2809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2810 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2811 eval $ac_var=\$ac_old_val
2812 fi
2813 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2814 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2816 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2817 fi;;
2818 esac
2819 # Pass precious variables to config.status.
2820 if test "$ac_new_set" = set; then
2821 case $ac_new_val in
2822 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2823 *) ac_arg=$ac_var=$ac_new_val ;;
2824 esac
2825 case " $ac_configure_args " in
2826 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2827 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2828 esac
2829 fi
2830 done
2831 if $ac_cache_corrupted; then
2832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2833 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2834 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2835 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2836 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2837 and start over" "$LINENO" 5
2838 fi
2839 ## -------------------- ##
2840 ## Main body of script. ##
2841 ## -------------------- ##
2842
2843
2844 # Determine whether it's possible to make 'echo' print without a newline.
2845 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2846 # for compatibility with existing Makefiles.
2847 ECHO_C= ECHO_N= ECHO_T=
2848 case `echo -n x` in #(((((
2849 -n*)
2850 case `echo 'xy\c'` in
2851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2852 xy) ECHO_C='\c';;
2853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2854 ECHO_T=' ';;
2855 esac;;
2856 *)
2857 ECHO_N='-n';;
2858 esac
2859
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865
2866
2867
2868 ac_config_headers="$ac_config_headers config.h"
2869
2870
2871
2872 # Initialize Automake
2873 am__api_version='1.19'
2874
2875
2876
2877 # Find a good install program. We prefer a C program (faster),
2878 # so one script is as good as another. But avoid the broken or
2879 # incompatible versions:
2880 # SysV /etc/install, /usr/sbin/install
2881 # SunOS /usr/etc/install
2882 # IRIX /sbin/install
2883 # AIX /bin/install
2884 # AmigaOS /C/install, which installs bootblocks on floppy discs
2885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2888 # OS/2's system install, which has a completely different semantic
2889 # ./install, which can be erroneously created by make from ./install.sh.
2890 # Reject install programs that cannot install multiple files.
2891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2892 printf %s "checking for a BSD-compatible install... " >&6; }
2893 if test -z "$INSTALL"; then
2894 if test ${ac_cv_path_install+y}
2895 then :
2896 printf %s "(cached) " >&6
2897 else case e in #(
2898 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 case $as_dir in #(((
2903 '') as_dir=./ ;;
2904 */) ;;
2905 *) as_dir=$as_dir/ ;;
2906 esac
2907 # Account for fact that we put trailing slashes in our PATH walk.
2908 case $as_dir in #((
2909 ./ | /[cC]/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2912 /usr/ucb/* ) ;;
2913 *)
2914 # OSF/1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF/1 since it installs stuff as root
2916 # by default.
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2923 :
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2927 :
2928 else
2929 rm -rf conftest.one conftest.two conftest.dir
2930 echo one > conftest.one
2931 echo two > conftest.two
2932 mkdir conftest.dir
2933 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2934 test -s conftest.one && test -s conftest.two &&
2935 test -s conftest.dir/conftest.one &&
2936 test -s conftest.dir/conftest.two
2937 then
2938 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2939 break 3
2940 fi
2941 fi
2942 fi
2943 done
2944 done
2945 ;;
2946 esac
2947
2948 done
2949 IFS=$as_save_IFS
2950
2951 rm -rf conftest.one conftest.two conftest.dir
2952 ;;
2953 esac
2954 fi
2955 if test ${ac_cv_path_install+y}; then
2956 INSTALL=$ac_cv_path_install
2957 else
2958 # As a last resort, use the slow shell script. Don't cache a
2959 # value for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the value is a relative name.
2962 INSTALL=$ac_install_sh
2963 fi
2964 fi
2965 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2966 printf '%s\n' "$INSTALL" >&6; }
2967
2968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2969 # It thinks the first close brace ends the variable substitution.
2970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971
2972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973
2974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2975
2976 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2977 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2978 if test ${am_cv_sleep_fractional_seconds+y}
2979 then :
2980 printf %s "(cached) " >&6
2981 else case e in #(
2982 e) if sleep 0.001 2>/dev/null
2983 then :
2984 am_cv_sleep_fractional_seconds=yes
2985 else case e in #(
2986 e) am_cv_sleep_fractional_seconds=no ;;
2987 esac
2988 fi
2989 ;;
2990 esac
2991 fi
2992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2993 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
2994
2995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2996 printf %s "checking filesystem timestamp resolution... " >&6; }
2997 if test ${am_cv_filesystem_timestamp_resolution+y}
2998 then :
2999 printf %s "(cached) " >&6
3000 else case e in #(
3001 e) # Default to the worst case.
3002 am_cv_filesystem_timestamp_resolution=2
3003
3004 # Only try to go finer than 1 sec if sleep can do it.
3005 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3006 # - 1 sec is not much of a win compared to 2 sec, and
3007 # - it takes 2 seconds to perform the test whether 1 sec works.
3008 #
3009 # Instead, just use the default 2s on platforms that have 1s resolution,
3010 # accept the extra 1s delay when using $sleep in the Automake tests, in
3011 # exchange for not incurring the 2s delay for running the test for all
3012 # packages.
3013 #
3014 am_try_resolutions=
3015 if test "$am_cv_sleep_fractional_seconds" = yes; then
3016 # Even a millisecond often causes a bunch of false positives,
3017 # so just try a hundredth of a second. The time saved between .001 and
3018 # .01 is not terribly consequential.
3019 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3020 fi
3021
3022 # In order to catch current-generation FAT out, we must *modify* files
3023 # that already exist; the *creation* timestamp is finer. Use names
3024 # that make ls -t sort them differently when they have equal
3025 # timestamps than when they have distinct timestamps, keeping
3026 # in mind that ls -t prints the *newest* file first.
3027 rm -f conftest.ts?
3028 : > conftest.ts1
3029 : > conftest.ts2
3030 : > conftest.ts3
3031
3032 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3033 # clobber the current shell's arguments. (Outer-level square brackets
3034 # are removed by m4; they're present so that m4 does not expand
3035 # <dollar><star>; be careful, easy to get confused.)
3036 if (
3037 set X `ls -t conftest.ts[12]` &&
3038 {
3039 test "$*" != "X conftest.ts1 conftest.ts2" ||
3040 test "$*" != "X conftest.ts2 conftest.ts1";
3041 }
3042 ); then :; else
3043 # If neither matched, then we have a broken ls. This can happen
3044 # if, for instance, CONFIG_SHELL is bash and it inherits a
3045 # broken ls alias from the environment. This has actually
3046 # happened. Such a system could not be considered "sane".
3047 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3048 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3049 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3050 as_fn_error $? "ls -t produces unexpected output.
3051 Make sure there is not a broken ls alias in your environment.
3052 See 'config.log' for more details" "$LINENO" 5; }
3053 fi
3054
3055 for am_try_res in $am_try_resolutions; do
3056 # Any one fine-grained sleep might happen to cross the boundary
3057 # between two values of a coarser actual resolution, but if we do
3058 # two fine-grained sleeps in a row, at least one of them will fall
3059 # entirely within a coarse interval.
3060 echo alpha > conftest.ts1
3061 sleep $am_try_res
3062 echo beta > conftest.ts2
3063 sleep $am_try_res
3064 echo gamma > conftest.ts3
3065
3066 # We assume that 'ls -t' will make use of high-resolution
3067 # timestamps if the operating system supports them at all.
3068 if (set X `ls -t conftest.ts?` &&
3069 test "$2" = conftest.ts3 &&
3070 test "$3" = conftest.ts2 &&
3071 test "$4" = conftest.ts1); then
3072 #
3073 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3074 # because we don't need to test make.
3075 make_ok=true
3076 if test $am_try_res != 1; then
3077 # But if we've succeeded so far with a subsecond resolution, we
3078 # have one more thing to check: make. It can happen that
3079 # everything else supports the subsecond mtimes, but make doesn't;
3080 # notably on macOS, which ships make 3.81 from 2006 (the last one
3081 # released under GPLv2). https://bugs.gnu.org/68808
3082 #
3083 # We test $MAKE if it is defined in the environment, else "make".
3084 # It might get overridden later, but our hope is that in practice
3085 # it does not matter: it is the system "make" which is (by far)
3086 # the most likely to be broken, whereas if the user overrides it,
3087 # probably they did so with a better, or at least not worse, make.
3088 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3089 #
3090 # Create a Makefile (real tab character here):
3091 rm -f conftest.mk
3092 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3093 echo ' touch conftest.ts2' >>conftest.mk
3094 #
3095 # Now, running
3096 # touch conftest.ts1; touch conftest.ts2; make
3097 # should touch ts1 because ts2 is newer. This could happen by luck,
3098 # but most often, it will fail if make's support is insufficient. So
3099 # test for several consecutive successes.
3100 #
3101 # (We reuse conftest.ts[12] because we still want to modify existing
3102 # files, not create new ones, per above.)
3103 n=0
3104 make=${MAKE-make}
3105 until test $n -eq 3; do
3106 echo one > conftest.ts1
3107 sleep $am_try_res
3108 echo two > conftest.ts2 # ts2 should now be newer than ts1
3109 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3110 make_ok=false
3111 break # out of $n loop
3112 fi
3113 n=`expr $n + 1`
3114 done
3115 fi
3116 #
3117 if $make_ok; then
3118 # Everything we know to check worked out, so call this resolution good.
3119 am_cv_filesystem_timestamp_resolution=$am_try_res
3120 break # out of $am_try_res loop
3121 fi
3122 # Otherwise, we'll go on to check the next resolution.
3123 fi
3124 done
3125 rm -f conftest.ts?
3126 # (end _am_filesystem_timestamp_resolution)
3127 ;;
3128 esac
3129 fi
3130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3131 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
3132
3133 # This check should not be cached, as it may vary across builds of
3134 # different projects.
3135 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3136 printf %s "checking whether build environment is sane... " >&6; }
3137 # Reject unsafe characters in $srcdir or the absolute working directory
3138 # name. Accept space and tab only in the latter.
3139 am_lf='
3140 '
3141 case `pwd` in
3142 *[\\\"\#\$\&\'\`$am_lf]*)
3143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 printf '%s\n' "no" >&6; }
3145 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3146 esac
3147 case $srcdir in
3148 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3149 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf '%s\n' "no" >&6; }
3151 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3152 esac
3153
3154 # Do 'set' in a subshell so we don't clobber the current shell's
3155 # arguments. Must try -L first in case configure is actually a
3156 # symlink; some systems play weird games with the mod time of symlinks
3157 # (eg FreeBSD returns the mod time of the symlink's containing
3158 # directory).
3159 am_build_env_is_sane=no
3160 am_has_slept=no
3161 rm -f conftest.file
3162 for am_try in 1 2; do
3163 echo "timestamp, slept: $am_has_slept" > conftest.file
3164 if (
3165 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3166 if test "$*" = "X"; then
3167 # -L didn't work.
3168 set X `ls -t "$srcdir/configure" conftest.file`
3169 fi
3170 test "$2" = conftest.file
3171 ); then
3172 am_build_env_is_sane=yes
3173 break
3174 fi
3175 # Just in case.
3176 sleep "$am_cv_filesystem_timestamp_resolution"
3177 am_has_slept=yes
3178 done
3179
3180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3181 printf '%s\n' "$am_build_env_is_sane" >&6; }
3182 if test "$am_build_env_is_sane" = no; then
3183 as_fn_error $? "newly created file is older than distributed files!
3184 Check your system clock" "$LINENO" 5
3185 fi
3186
3187 # If we didn't sleep, we still need to ensure time stamps of config.status and
3188 # generated files are strictly newer.
3189 am_sleep_pid=
3190 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3191 then :
3192
3193 else case e in #(
3194 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3195 am_sleep_pid=$!
3196 ;;
3197 esac
3198 fi
3199
3200 rm -f conftest.file
3201
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was 's,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Expand $ac_aux_dir to an absolute path.
3214 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3215
3216
3217 if test x"${MISSING+set}" != xset; then
3218 MISSING="\${SHELL} '$am_aux_dir/missing'"
3219 fi
3220 # Use eval to expand $SHELL
3221 if eval "$MISSING --is-lightweight"; then
3222 am_missing_run="$MISSING "
3223 else
3224 am_missing_run=
3225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3226 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3227 fi
3228
3229 if test x"${install_sh+set}" != xset; then
3230 case $am_aux_dir in
3231 *\ * | *\ *)
3232 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3233 *)
3234 install_sh="\${SHELL} $am_aux_dir/install-sh"
3235 esac
3236 fi
3237
3238 # Installed binaries are usually stripped using 'strip' when the user
3239 # run "make install-strip". However 'strip' might not be the right
3240 # tool to use in cross-compilation environments, therefore Automake
3241 # will honor the 'STRIP' environment variable to overrule this program.
3242 if test "$cross_compiling" != no; then
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}strip; ac_word=$2
3246 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 printf %s "checking for $ac_word... " >&6; }
3248 if test ${ac_cv_prog_STRIP+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else case e in #(
3252 e) if test -n "$STRIP"; then
3253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 case $as_dir in #(((
3260 '') as_dir=./ ;;
3261 */) ;;
3262 *) as_dir=$as_dir/ ;;
3263 esac
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3267 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi ;;
3275 esac
3276 fi
3277 STRIP=$ac_cv_prog_STRIP
3278 if test -n "$STRIP"; then
3279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3280 printf '%s\n' "$STRIP" >&6; }
3281 else
3282 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 printf '%s\n' "no" >&6; }
3284 fi
3285
3286
3287 fi
3288 if test -z "$ac_cv_prog_STRIP"; then
3289 ac_ct_STRIP=$STRIP
3290 # Extract the first word of "strip", so it can be a program name with args.
3291 set dummy strip; ac_word=$2
3292 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 printf %s "checking for $ac_word... " >&6; }
3294 if test ${ac_cv_prog_ac_ct_STRIP+y}
3295 then :
3296 printf %s "(cached) " >&6
3297 else case e in #(
3298 e) if test -n "$ac_ct_STRIP"; then
3299 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304 IFS=$as_save_IFS
3305 case $as_dir in #(((
3306 '') as_dir=./ ;;
3307 */) ;;
3308 *) as_dir=$as_dir/ ;;
3309 esac
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_ac_ct_STRIP="strip"
3313 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi ;;
3321 esac
3322 fi
3323 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3324 if test -n "$ac_ct_STRIP"; then
3325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3326 printf '%s\n' "$ac_ct_STRIP" >&6; }
3327 else
3328 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 printf '%s\n' "no" >&6; }
3330 fi
3331
3332 if test "x$ac_ct_STRIP" = x; then
3333 STRIP=":"
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341 STRIP=$ac_ct_STRIP
3342 fi
3343 else
3344 STRIP="$ac_cv_prog_STRIP"
3345 fi
3346
3347 fi
3348 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3349
3350
3351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3352 printf %s "checking for a race-free mkdir -p... " >&6; }
3353 if test -z "$MKDIR_P"; then
3354 if test ${ac_cv_path_mkdir+y}
3355 then :
3356 printf %s "(cached) " >&6
3357 else case e in #(
3358 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3360 do
3361 IFS=$as_save_IFS
3362 case $as_dir in #(((
3363 '') as_dir=./ ;;
3364 */) ;;
3365 *) as_dir=$as_dir/ ;;
3366 esac
3367 for ac_prog in mkdir gmkdir; do
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3370 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3371 'mkdir ('*'coreutils) '* | \
3372 *'BusyBox '* | \
3373 'mkdir (fileutils) '4.1*)
3374 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3375 break 3;;
3376 esac
3377 done
3378 done
3379 done
3380 IFS=$as_save_IFS
3381 ;;
3382 esac
3383 fi
3384
3385 test -d ./--version && rmdir ./--version
3386 if test ${ac_cv_path_mkdir+y}; then
3387 MKDIR_P="$ac_cv_path_mkdir -p"
3388 else
3389 # As a last resort, use plain mkdir -p,
3390 # in the hope it doesn't have the bugs of ancient mkdir.
3391 MKDIR_P='mkdir -p'
3392 fi
3393 fi
3394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3395 printf '%s\n' "$MKDIR_P" >&6; }
3396
3397 for ac_prog in gawk mawk nawk awk 'busybox awk'
3398 do
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 printf %s "checking for $ac_word... " >&6; }
3403 if test ${ac_cv_prog_AWK+y}
3404 then :
3405 printf %s "(cached) " >&6
3406 else case e in #(
3407 e) if test -n "$AWK"; then
3408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413 IFS=$as_save_IFS
3414 case $as_dir in #(((
3415 '') as_dir=./ ;;
3416 */) ;;
3417 *) as_dir=$as_dir/ ;;
3418 esac
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_AWK="$ac_prog"
3422 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 fi ;;
3430 esac
3431 fi
3432 AWK=$ac_cv_prog_AWK
3433 if test -n "$AWK"; then
3434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3435 printf '%s\n' "$AWK" >&6; }
3436 else
3437 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 printf '%s\n' "no" >&6; }
3439 fi
3440
3441
3442 test -n "$AWK" && break
3443 done
3444
3445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3446 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3447 set x ${MAKE-make}
3448 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3449 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3450 then :
3451 printf %s "(cached) " >&6
3452 else case e in #(
3453 e) cat >conftest.make <<\_ACEOF
3454 SHELL = /bin/sh
3455 all:
3456 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
3457 _ACEOF
3458 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3459 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3460 *@@@%%%=?*=@@@%%%*)
3461 eval ac_cv_prog_make_${ac_make}_set=yes;;
3462 *)
3463 eval ac_cv_prog_make_${ac_make}_set=no;;
3464 esac
3465 rm -f conftest.make ;;
3466 esac
3467 fi
3468 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3469 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3470 printf '%s\n' "yes" >&6; }
3471 SET_MAKE=
3472 else
3473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 printf '%s\n' "no" >&6; }
3475 SET_MAKE="MAKE=${MAKE-make}"
3476 fi
3477
3478 rm -rf .tst 2>/dev/null
3479 mkdir .tst 2>/dev/null
3480 if test -d .tst; then
3481 am__leading_dot=.
3482 else
3483 am__leading_dot=_
3484 fi
3485 rmdir .tst 2>/dev/null
3486
3487 AM_DEFAULT_VERBOSITY=1
3488 # Check whether --enable-silent-rules was given.
3489 if test ${enable_silent_rules+y}
3490 then :
3491 enableval=$enable_silent_rules;
3492 fi
3493
3494 am_make=${MAKE-make}
3495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3496 printf %s "checking whether $am_make supports nested variables... " >&6; }
3497 if test ${am_cv_make_support_nested_variables+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else case e in #(
3501 e) if printf '%s\n' 'TRUE=$(BAR$(V))
3502 BAR0=false
3503 BAR1=true
3504 V=1
3505 am__doit:
3506 @$(TRUE)
3507 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3508 am_cv_make_support_nested_variables=yes
3509 else
3510 am_cv_make_support_nested_variables=no
3511 fi ;;
3512 esac
3513 fi
3514 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3515 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
3516 AM_BACKSLASH='\'
3517
3518 am__rm_f_notfound=
3519 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3520 then :
3521
3522 else case e in #(
3523 e) am__rm_f_notfound='""' ;;
3524 esac
3525 fi
3526
3527
3528 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3529 printf %s "checking xargs -n works... " >&6; }
3530 if test ${am_cv_xargs_n_works+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else case e in #(
3534 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3535 3"
3536 then :
3537 am_cv_xargs_n_works=yes
3538 else case e in #(
3539 e) am_cv_xargs_n_works=no ;;
3540 esac
3541 fi ;;
3542 esac
3543 fi
3544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3545 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
3546 if test "$am_cv_xargs_n_works" = yes
3547 then :
3548 am__xargs_n='xargs -n'
3549 else case e in #(
3550 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3551 ;;
3552 esac
3553 fi
3554
3555 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3556 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3557 # is not polluted with repeated "-I."
3558 am__isrc=' -I$(srcdir)'
3559 # test to see if srcdir already configured
3560 if test -f $srcdir/config.status; then
3561 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3562 fi
3563 fi
3564
3565 # test whether we have cygpath
3566 if test -z "$CYGPATH_W"; then
3567 if (cygpath --version) >/dev/null 2>/dev/null; then
3568 CYGPATH_W='cygpath -w'
3569 else
3570 CYGPATH_W=echo
3571 fi
3572 fi
3573
3574
3575 # Define the identity of the package.
3576 PACKAGE='libXtst'
3577 VERSION='1.2.6'
3578
3579
3580 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3581
3582
3583 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
3584
3585 # Some tools Automake needs.
3586
3587 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3588
3589
3590 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3591
3592
3593 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3594
3595
3596 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3597
3598
3599 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3600
3601 # For better backward compatibility. To be removed once Automake 1.9.x
3602 # dies out for good. For more background, see:
3603 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3604 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3605 mkdir_p='$(MKDIR_P)'
3606
3607 # We need awk for the "check" target (and possibly the TAP driver). The
3608 # system "awk" is bad on some platforms.
3609 # Always define AMTAR for backward compatibility. It's still used
3610 # in the wild, let's not break things.
3611 AMTAR='$${TAR-tar}'
3612
3613
3614 # The dist rules treat anything $(am__tar) writes to standard error as
3615 # a failure (automake bug#19614). Set this to "yes" for archivers that
3616 # write there when all is well; cpio reports a block count.
3617 am__tar_ignore_stderr=no
3618
3619 # We'll loop over all known methods to create a tar archive until one works.
3620 _am_tools='gnutar plaintar pax cpio none'
3621
3622 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3623 # There is notably a 21 bits limit for the UID and the GID. In fact,
3624 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3625 # and bug#13588).
3626 am_max_uid=2097151 # 2^21 - 1
3627 am_max_gid=$am_max_uid
3628 # The $UID and $GID variables are not portable, so we need to resort
3629 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3630 # below are definitely unexpected, so allow the users to see them
3631 # (that is, avoid stderr redirection).
3632 am_uid=`id -u || echo unknown`
3633 am_gid=`id -g || echo unknown`
3634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3635 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3636 if test x$am_uid = xunknown; then
3637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3638 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3639 elif test $am_uid -le $am_max_uid; then
3640 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3641 printf '%s\n' "yes" >&6; }
3642 else
3643 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 printf '%s\n' "no" >&6; }
3645 _am_tools=none
3646 fi
3647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3648 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3649 if test x$gm_gid = xunknown; then
3650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3651 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3652 elif test $am_gid -le $am_max_gid; then
3653 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3654 printf '%s\n' "yes" >&6; }
3655 else
3656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf '%s\n' "no" >&6; }
3658 _am_tools=none
3659 fi
3660
3661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3662 printf %s "checking how to create a ustar tar archive... " >&6; }
3663
3664 # Go ahead even if we have the value already cached. We do so because we
3665 # need to set the values for the 'am__tar' and 'am__untar' variables.
3666 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3667
3668 for _am_tool in $_am_tools; do
3669 am__tar_ignore_stderr=no
3670 case $_am_tool in
3671 gnutar)
3672 for _am_tar in tar gnutar gtar; do
3673 { echo "$as_me:$LINENO: $_am_tar --version | grep GNU >/dev/null" >&5
3674 ($_am_tar --version | grep GNU >/dev/null) >&5 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } && break
3678 done
3679 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3680 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3681 am__untar="$_am_tar -xf -"
3682 ;;
3683 plaintar)
3684 # Must skip GNU tar: if it does not support --format= it doesn't create
3685 # ustar tarball either.
3686 (tar --version | grep GNU) >/dev/null 2>&1 && continue
3687 am__tar='tar chf - "$$tardir"'
3688 am__tar_='tar chf - "$tardir"'
3689 am__untar='tar xf -'
3690 ;;
3691 pax)
3692 am__tar='pax -L -x ustar -w "$$tardir"'
3693 am__tar_='pax -L -x ustar -w "$tardir"'
3694 am__untar='pax -r'
3695 ;;
3696 cpio)
3697 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3698 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3699 am__untar='cpio -i -H ustar -d'
3700 am__tar_ignore_stderr=yes
3701 ;;
3702 none)
3703 am__tar=false
3704 am__tar_=false
3705 am__untar=false
3706 ;;
3707 esac
3708
3709 # If the value was cached, stop now. We just wanted to have am__tar
3710 # and am__untar set.
3711 test -n "${am_cv_prog_tar_ustar}" && break
3712
3713 # tar/untar a dummy directory, and stop if the command works.
3714 rm -rf conftest.dir
3715 mkdir conftest.dir
3716 echo GrepMe > conftest.dir/file
3717 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3718 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }
3722 rm -rf conftest.dir
3723 if test -s conftest.tar; then
3724 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3725 ($am__untar <conftest.tar) >&5 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }
3729 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3730 (cat conftest.dir/file) >&5 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }
3734 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3735 fi
3736 done
3737 rm -rf conftest.dir
3738
3739 if test ${am_cv_prog_tar_ustar+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else case e in #(
3743 e) am_cv_prog_tar_ustar=$_am_tool ;;
3744 esac
3745 fi
3746
3747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3748 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
3749
3750
3751
3752
3753
3754
3755 # Variables for tags utilities; see am/tags.am
3756 if test -z "$CTAGS"; then
3757 CTAGS=ctags
3758 fi
3759
3760 if test -z "$ETAGS"; then
3761 ETAGS=etags
3762 fi
3763
3764 if test -z "$CSCOPE"; then
3765 CSCOPE=cscope
3766 fi
3767
3768
3769
3770
3771
3772
3773
3774
3775 # Initialize libtool
3776 case `pwd` in
3777 *\ * | *\ *)
3778 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3779 printf '%s\n' "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3780 esac
3781
3782
3783
3784 macro_version='2.6.2'
3785 macro_revision='2.6.2'
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800 ltmain=$ac_aux_dir/ltmain.sh
3801
3802
3803
3804 # Make sure we can run config.sub.
3805 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3806 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3807
3808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3809 printf %s "checking build system type... " >&6; }
3810 if test ${ac_cv_build+y}
3811 then :
3812 printf %s "(cached) " >&6
3813 else case e in #(
3814 e) ac_build_alias=$build_alias
3815 test "x$ac_build_alias" = x &&
3816 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3817 test "x$ac_build_alias" = x &&
3818 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3819 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3820 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3821 ;;
3822 esac
3823 fi
3824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3825 printf '%s\n' "$ac_cv_build" >&6; }
3826 case $ac_cv_build in
3827 *-*-*) ;;
3828 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3829 esac
3830 build=$ac_cv_build
3831 ac_save_IFS=$IFS; IFS='-'
3832 set x $ac_cv_build
3833 shift
3834 build_cpu=$1
3835 build_vendor=$2
3836 shift; shift
3837 # Remember, the first character of IFS is used to create $*,
3838 # except with old shells:
3839 build_os=$*
3840 IFS=$ac_save_IFS
3841 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
3842
3843
3844 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3845 printf %s "checking host system type... " >&6; }
3846 if test ${ac_cv_host+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else case e in #(
3850 e) if test "x$host_alias" = x; then
3851 ac_cv_host=$ac_cv_build
3852 else
3853 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3854 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3855 fi
3856 ;;
3857 esac
3858 fi
3859 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3860 printf '%s\n' "$ac_cv_host" >&6; }
3861 case $ac_cv_host in
3862 *-*-*) ;;
3863 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 # Backslashify metacharacters that are still active within
3880 # double-quoted strings.
3881 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3882
3883 # Same as above, but do not quote variable references.
3884 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3885
3886 # Sed substitution to delay expansion of an escaped shell variable in a
3887 # double_quote_subst'ed string.
3888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3889
3890 # Sed substitution to delay expansion of an escaped single quote.
3891 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3892
3893 # Sed substitution to avoid accidental globbing in evaled expressions
3894 no_glob_subst='s/\*/\\\*/g'
3895
3896 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3898 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3899
3900 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3901 printf %s "checking how to print strings... " >&6; }
3902 # Test print first, because it will be a builtin if present.
3903 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3904 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3905 ECHO='print -r --'
3906 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3907 ECHO='printf %s\n'
3908 else
3909 # Use this function as a fallback that always works.
3910 func_fallback_echo ()
3911 {
3912 eval 'cat <<_LTECHO_EOF
3913 $1
3914 _LTECHO_EOF'
3915 }
3916 ECHO='func_fallback_echo'
3917 fi
3918
3919 # func_echo_all arg...
3920 # Invoke $ECHO with all args, space-separated.
3921 func_echo_all ()
3922 {
3923 $ECHO ""
3924 }
3925
3926 case $ECHO in
3927 printf*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3928 printf '%s\n' "printf" >&6; } ;;
3929 print*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3930 printf '%s\n' "print -r" >&6; } ;;
3931 *) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3932 printf '%s\n' "cat" >&6; } ;;
3933 esac
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960 DEPDIR="${am__leading_dot}deps"
3961
3962 ac_config_commands="$ac_config_commands depfiles"
3963
3964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3965 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3966 cat > confinc.mk << 'END'
3967 am__doit:
3968 @echo this is the am__doit target >confinc.out
3969 .PHONY: am__doit
3970 END
3971 am__include="#"
3972 am__quote=
3973 # BSD make does it like this.
3974 echo '.include "confinc.mk" # ignored' > confmf.BSD
3975 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3976 echo 'include confinc.mk # ignored' > confmf.GNU
3977 _am_result=no
3978 for s in GNU BSD; do
3979 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3980 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }
3984 case $?:`cat confinc.out 2>/dev/null` in #(
3985 '0:this is the am__doit target') :
3986 case $s in #(
3987 BSD) :
3988 am__include='.include' am__quote='"' ;; #(
3989 *) :
3990 am__include='include' am__quote='' ;;
3991 esac ;; #(
3992 *) :
3993 ;;
3994 esac
3995 if test "$am__include" != "#"; then
3996 _am_result="yes ($s style)"
3997 break
3998 fi
3999 done
4000 rm -f confinc.* confmf.*
4001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4002 printf '%s\n' "${_am_result}" >&6; }
4003
4004 # Check whether --enable-dependency-tracking was given.
4005 if test ${enable_dependency_tracking+y}
4006 then :
4007 enableval=$enable_dependency_tracking;
4008 fi
4009
4010 if test "x$enable_dependency_tracking" != xno; then
4011 am_depcomp="$ac_aux_dir/depcomp"
4012 AMDEPBACKSLASH='\'
4013 am__nodep='_no'
4014 fi
4015 if test "x$enable_dependency_tracking" != xno; then
4016 AMDEP_TRUE=
4017 AMDEP_FALSE='#'
4018 else
4019 AMDEP_TRUE='#'
4020 AMDEP_FALSE=
4021 fi
4022
4023
4024 ac_ext=c
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 if test -n "$ac_tool_prefix"; then
4030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4031 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4032 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 printf %s "checking for $ac_word... " >&6; }
4034 if test ${ac_cv_prog_CC+y}
4035 then :
4036 printf %s "(cached) " >&6
4037 else case e in #(
4038 e) if test -n "$CC"; then
4039 ac_cv_prog_CC="$CC" # Let the user override the test.
4040 else
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044 IFS=$as_save_IFS
4045 case $as_dir in #(((
4046 '') as_dir=./ ;;
4047 */) ;;
4048 *) as_dir=$as_dir/ ;;
4049 esac
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4053 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056 done
4057 done
4058 IFS=$as_save_IFS
4059
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 "$ac_cv_prog_CC"; then
4075 ac_ct_CC=$CC
4076 # Extract the first word of "gcc", so it can be a program name with args.
4077 set dummy gcc; ac_word=$2
4078 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 printf %s "checking for $ac_word... " >&6; }
4080 if test ${ac_cv_prog_ac_ct_CC+y}
4081 then :
4082 printf %s "(cached) " >&6
4083 else case e in #(
4084 e) if test -n "$ac_ct_CC"; then
4085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 case $as_dir in #(((
4092 '') as_dir=./ ;;
4093 */) ;;
4094 *) as_dir=$as_dir/ ;;
4095 esac
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4098 ac_cv_prog_ac_ct_CC="gcc"
4099 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4100 break 2
4101 fi
4102 done
4103 done
4104 IFS=$as_save_IFS
4105
4106 fi ;;
4107 esac
4108 fi
4109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4110 if test -n "$ac_ct_CC"; then
4111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4112 printf '%s\n' "$ac_ct_CC" >&6; }
4113 else
4114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 printf '%s\n' "no" >&6; }
4116 fi
4117
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122 yes:)
4123 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125 ac_tool_warned=yes ;;
4126 esac
4127 CC=$ac_ct_CC
4128 fi
4129 else
4130 CC="$ac_cv_prog_CC"
4131 fi
4132
4133 if test -z "$CC"; then
4134 if test -n "$ac_tool_prefix"; then
4135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4136 set dummy ${ac_tool_prefix}cc; ac_word=$2
4137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4138 printf %s "checking for $ac_word... " >&6; }
4139 if test ${ac_cv_prog_CC+y}
4140 then :
4141 printf %s "(cached) " >&6
4142 else case e in #(
4143 e) if test -n "$CC"; then
4144 ac_cv_prog_CC="$CC" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 case $as_dir in #(((
4151 '') as_dir=./ ;;
4152 */) ;;
4153 *) as_dir=$as_dir/ ;;
4154 esac
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4157 ac_cv_prog_CC="${ac_tool_prefix}cc"
4158 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161 done
4162 done
4163 IFS=$as_save_IFS
4164
4165 fi ;;
4166 esac
4167 fi
4168 CC=$ac_cv_prog_CC
4169 if test -n "$CC"; then
4170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 printf '%s\n' "$CC" >&6; }
4172 else
4173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 printf '%s\n' "no" >&6; }
4175 fi
4176
4177
4178 fi
4179 fi
4180 if test -z "$CC"; then
4181 # Extract the first word of "cc", so it can be a program name with args.
4182 set dummy cc; ac_word=$2
4183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 printf %s "checking for $ac_word... " >&6; }
4185 if test ${ac_cv_prog_CC+y}
4186 then :
4187 printf %s "(cached) " >&6
4188 else case e in #(
4189 e) if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 ac_prog_rejected=no
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196 IFS=$as_save_IFS
4197 case $as_dir in #(((
4198 '') as_dir=./ ;;
4199 */) ;;
4200 *) as_dir=$as_dir/ ;;
4201 esac
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4204 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205 ac_prog_rejected=yes
4206 continue
4207 fi
4208 ac_cv_prog_CC="cc"
4209 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216 if test $ac_prog_rejected = yes; then
4217 # We found a bogon in the path, so make sure we never use it.
4218 set dummy $ac_cv_prog_CC
4219 shift
4220 if test $# != 0; then
4221 # We chose a different compiler from the bogus one.
4222 # However, it has the same basename, so the bogon will be chosen
4223 # first if we set CC to just the basename; use the full file name.
4224 shift
4225 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4226 fi
4227 fi
4228 fi ;;
4229 esac
4230 fi
4231 CC=$ac_cv_prog_CC
4232 if test -n "$CC"; then
4233 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4234 printf '%s\n' "$CC" >&6; }
4235 else
4236 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 printf '%s\n' "no" >&6; }
4238 fi
4239
4240
4241 fi
4242 if test -z "$CC"; then
4243 if test -n "$ac_tool_prefix"; then
4244 for ac_prog in cl.exe
4245 do
4246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4249 printf %s "checking for $ac_word... " >&6; }
4250 if test ${ac_cv_prog_CC+y}
4251 then :
4252 printf %s "(cached) " >&6
4253 else case e in #(
4254 e) if test -n "$CC"; then
4255 ac_cv_prog_CC="$CC" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260 IFS=$as_save_IFS
4261 case $as_dir in #(((
4262 '') as_dir=./ ;;
4263 */) ;;
4264 *) as_dir=$as_dir/ ;;
4265 esac
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4268 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4269 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi ;;
4277 esac
4278 fi
4279 CC=$ac_cv_prog_CC
4280 if test -n "$CC"; then
4281 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4282 printf '%s\n' "$CC" >&6; }
4283 else
4284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285 printf '%s\n' "no" >&6; }
4286 fi
4287
4288
4289 test -n "$CC" && break
4290 done
4291 fi
4292 if test -z "$CC"; then
4293 ac_ct_CC=$CC
4294 for ac_prog in cl.exe
4295 do
4296 # Extract the first word of "$ac_prog", so it can be a program name with args.
4297 set dummy $ac_prog; ac_word=$2
4298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 printf %s "checking for $ac_word... " >&6; }
4300 if test ${ac_cv_prog_ac_ct_CC+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else case e in #(
4304 e) if test -n "$ac_ct_CC"; then
4305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310 IFS=$as_save_IFS
4311 case $as_dir in #(((
4312 '') as_dir=./ ;;
4313 */) ;;
4314 *) as_dir=$as_dir/ ;;
4315 esac
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_ac_ct_CC="$ac_prog"
4319 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4320 break 2
4321 fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326 fi ;;
4327 esac
4328 fi
4329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4330 if test -n "$ac_ct_CC"; then
4331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4332 printf '%s\n' "$ac_ct_CC" >&6; }
4333 else
4334 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 printf '%s\n' "no" >&6; }
4336 fi
4337
4338
4339 test -n "$ac_ct_CC" && break
4340 done
4341
4342 if test "x$ac_ct_CC" = x; then
4343 CC=""
4344 else
4345 case $cross_compiling:$ac_tool_warned in
4346 yes:)
4347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4348 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4349 ac_tool_warned=yes ;;
4350 esac
4351 CC=$ac_ct_CC
4352 fi
4353 fi
4354
4355 fi
4356 if test -z "$CC"; then
4357 if test -n "$ac_tool_prefix"; then
4358 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4359 set dummy ${ac_tool_prefix}clang; ac_word=$2
4360 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 printf %s "checking for $ac_word... " >&6; }
4362 if test ${ac_cv_prog_CC+y}
4363 then :
4364 printf %s "(cached) " >&6
4365 else case e in #(
4366 e) if test -n "$CC"; then
4367 ac_cv_prog_CC="$CC" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 case $as_dir in #(((
4374 '') as_dir=./ ;;
4375 */) ;;
4376 *) as_dir=$as_dir/ ;;
4377 esac
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_CC="${ac_tool_prefix}clang"
4381 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4382 break 2
4383 fi
4384 done
4385 done
4386 IFS=$as_save_IFS
4387
4388 fi ;;
4389 esac
4390 fi
4391 CC=$ac_cv_prog_CC
4392 if test -n "$CC"; then
4393 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4394 printf '%s\n' "$CC" >&6; }
4395 else
4396 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 printf '%s\n' "no" >&6; }
4398 fi
4399
4400
4401 fi
4402 if test -z "$ac_cv_prog_CC"; then
4403 ac_ct_CC=$CC
4404 # Extract the first word of "clang", so it can be a program name with args.
4405 set dummy clang; ac_word=$2
4406 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 printf %s "checking for $ac_word... " >&6; }
4408 if test ${ac_cv_prog_ac_ct_CC+y}
4409 then :
4410 printf %s "(cached) " >&6
4411 else case e in #(
4412 e) if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418 IFS=$as_save_IFS
4419 case $as_dir in #(((
4420 '') as_dir=./ ;;
4421 */) ;;
4422 *) as_dir=$as_dir/ ;;
4423 esac
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4426 ac_cv_prog_ac_ct_CC="clang"
4427 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430 done
4431 done
4432 IFS=$as_save_IFS
4433
4434 fi ;;
4435 esac
4436 fi
4437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4438 if test -n "$ac_ct_CC"; then
4439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4440 printf '%s\n' "$ac_ct_CC" >&6; }
4441 else
4442 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 printf '%s\n' "no" >&6; }
4444 fi
4445
4446 if test "x$ac_ct_CC" = x; then
4447 CC=""
4448 else
4449 case $cross_compiling:$ac_tool_warned in
4450 yes:)
4451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4452 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4453 ac_tool_warned=yes ;;
4454 esac
4455 CC=$ac_ct_CC
4456 fi
4457 else
4458 CC="$ac_cv_prog_CC"
4459 fi
4460
4461 fi
4462
4463
4464 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4465 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4466 as_fn_error $? "no acceptable C compiler found in \$PATH
4467 See 'config.log' for more details" "$LINENO" 5; }
4468
4469 # Provide some information about the compiler.
4470 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4471 set X $ac_compile
4472 ac_compiler=$2
4473 for ac_option in --version -v -V -qversion -version; do
4474 { { ac_try="$ac_compiler $ac_option >&5"
4475 case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 printf '%s\n' "$ac_try_echo"; } >&5
4481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4482 ac_status=$?
4483 if test -s conftest.err; then
4484 sed '10a\
4485 ... rest of stderr output deleted ...
4486 10q' conftest.err >conftest.er1
4487 cat conftest.er1 >&5
4488 fi
4489 rm -f conftest.er1 conftest.err
4490 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }
4492 done
4493
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496
4497 int
4498 main (void)
4499 {
4500
4501 ;
4502 return 0;
4503 }
4504 _ACEOF
4505 ac_clean_files_save=$ac_clean_files
4506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4507 # Try to create an executable without -o first, disregard a.out.
4508 # It will help us diagnose broken compilers, and finding out an intuition
4509 # of exeext.
4510 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4511 printf %s "checking whether the C compiler works... " >&6; }
4512 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4513
4514 # The possible output files:
4515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4516
4517 ac_rmfiles=
4518 for ac_file in $ac_files
4519 do
4520 case $ac_file in
4521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4523 esac
4524 done
4525 rm -f $ac_rmfiles
4526
4527 if { { ac_try="$ac_link_default"
4528 case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 printf '%s\n' "$ac_try_echo"; } >&5
4534 (eval "$ac_link_default") 2>&5
4535 ac_status=$?
4536 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537 test $ac_status = 0; }
4538 then :
4539 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4540 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4541 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4542 # so that the user can short-circuit this test for compilers unknown to
4543 # Autoconf.
4544 for ac_file in $ac_files ''
4545 do
4546 test -f "$ac_file" || continue
4547 case $ac_file in
4548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4549 ;;
4550 [ab].out )
4551 # We found the default executable, but exeext='' is most
4552 # certainly right.
4553 break;;
4554 *.* )
4555 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4556 then :; else
4557 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4558 fi
4559 # We set ac_cv_exeext here because the later test for it is not
4560 # safe: cross compilers may not add the suffix if given an '-o'
4561 # argument, so we may need to know it at that point already.
4562 # Even if this section looks crufty: it has the advantage of
4563 # actually working.
4564 break;;
4565 * )
4566 break;;
4567 esac
4568 done
4569 test "$ac_cv_exeext" = no && ac_cv_exeext=
4570
4571 else case e in #(
4572 e) ac_file='' ;;
4573 esac
4574 fi
4575 if test -z "$ac_file"
4576 then :
4577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 printf '%s\n' "no" >&6; }
4579 printf '%s\n' "$as_me: failed program was:" >&5
4580 sed 's/^/| /' conftest.$ac_ext >&5
4581
4582 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4583 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4584 as_fn_error 77 "C compiler cannot create executables
4585 See 'config.log' for more details" "$LINENO" 5; }
4586 else case e in #(
4587 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4588 printf '%s\n' "yes" >&6; } ;;
4589 esac
4590 fi
4591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4592 printf %s "checking for C compiler default output file name... " >&6; }
4593 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4594 printf '%s\n' "$ac_file" >&6; }
4595 ac_exeext=$ac_cv_exeext
4596
4597 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4598 ac_clean_files=$ac_clean_files_save
4599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4600 printf %s "checking for suffix of executables... " >&6; }
4601 if { { ac_try="$ac_link"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 printf '%s\n' "$ac_try_echo"; } >&5
4608 (eval "$ac_link") 2>&5
4609 ac_status=$?
4610 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }
4612 then :
4613 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4614 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4615 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4616 # 'rm'.
4617 for ac_file in conftest.exe conftest conftest.*; do
4618 test -f "$ac_file" || continue
4619 case $ac_file in
4620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4622 break;;
4623 * ) break;;
4624 esac
4625 done
4626 else case e in #(
4627 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4628 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4629 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4630 See 'config.log' for more details" "$LINENO" 5; } ;;
4631 esac
4632 fi
4633 rm -f conftest conftest$ac_cv_exeext
4634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4635 printf '%s\n' "$ac_cv_exeext" >&6; }
4636
4637 rm -f conftest.$ac_ext
4638 EXEEXT=$ac_cv_exeext
4639 ac_exeext=$EXEEXT
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642 #include <stdio.h>
4643 int
4644 main (void)
4645 {
4646 FILE *f = fopen ("conftest.out", "w");
4647 if (!f)
4648 return 1;
4649 return ferror (f) || fclose (f) != 0;
4650
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 ac_clean_files="$ac_clean_files conftest.out"
4656 # Check that the compiler produces executables we can run. If not, either
4657 # the compiler is broken, or we cross compile.
4658 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4659 printf %s "checking whether we are cross compiling... " >&6; }
4660 if test "$cross_compiling" != yes; then
4661 { { ac_try="$ac_link"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4667 printf '%s\n' "$ac_try_echo"; } >&5
4668 (eval "$ac_link") 2>&5
4669 ac_status=$?
4670 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }
4672 if { ac_try='./conftest$ac_cv_exeext'
4673 { { case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4676 esac
4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678 printf '%s\n' "$ac_try_echo"; } >&5
4679 (eval "$ac_try") 2>&5
4680 ac_status=$?
4681 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682 test $ac_status = 0; }; }; then
4683 cross_compiling=no
4684 else
4685 if test "$cross_compiling" = maybe; then
4686 cross_compiling=yes
4687 else
4688 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4689 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4690 as_fn_error 77 "cannot run C compiled programs.
4691 If you meant to cross compile, use '--host'.
4692 See 'config.log' for more details" "$LINENO" 5; }
4693 fi
4694 fi
4695 fi
4696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4697 printf '%s\n' "$cross_compiling" >&6; }
4698
4699 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4700 conftest.o conftest.obj conftest.out
4701 ac_clean_files=$ac_clean_files_save
4702 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4703 printf %s "checking for suffix of object files... " >&6; }
4704 if test ${ac_cv_objext+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else case e in #(
4708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710
4711 int
4712 main (void)
4713 {
4714
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.o conftest.obj
4720 if { { ac_try="$ac_compile"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 printf '%s\n' "$ac_try_echo"; } >&5
4727 (eval "$ac_compile") 2>&5
4728 ac_status=$?
4729 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }
4731 then :
4732 for ac_file in conftest.o conftest.obj conftest.*; do
4733 test -f "$ac_file" || continue;
4734 case $ac_file in
4735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4736 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4737 break;;
4738 esac
4739 done
4740 else case e in #(
4741 e) printf '%s\n' "$as_me: failed program was:" >&5
4742 sed 's/^/| /' conftest.$ac_ext >&5
4743
4744 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4745 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4746 as_fn_error $? "cannot compute suffix of object files: cannot compile
4747 See 'config.log' for more details" "$LINENO" 5; } ;;
4748 esac
4749 fi
4750 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4751 esac
4752 fi
4753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4754 printf '%s\n' "$ac_cv_objext" >&6; }
4755 OBJEXT=$ac_cv_objext
4756 ac_objext=$OBJEXT
4757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4758 printf %s "checking whether the compiler supports GNU C... " >&6; }
4759 if test ${ac_cv_c_compiler_gnu+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else case e in #(
4763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765
4766 int
4767 main (void)
4768 {
4769 #ifndef __GNUC__
4770 choke me
4771 #endif
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"
4778 then :
4779 ac_compiler_gnu=yes
4780 else case e in #(
4781 e) ac_compiler_gnu=no ;;
4782 esac
4783 fi
4784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4786 ;;
4787 esac
4788 fi
4789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4790 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
4791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4792
4793 if test $ac_compiler_gnu = yes; then
4794 GCC=yes
4795 else
4796 GCC=
4797 fi
4798 ac_test_CFLAGS=${CFLAGS+y}
4799 ac_save_CFLAGS=$CFLAGS
4800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4801 printf %s "checking whether $CC accepts -g... " >&6; }
4802 if test ${ac_cv_prog_cc_g+y}
4803 then :
4804 printf %s "(cached) " >&6
4805 else case e in #(
4806 e) ac_save_c_werror_flag=$ac_c_werror_flag
4807 ac_c_werror_flag=yes
4808 ac_cv_prog_cc_g=no
4809 CFLAGS="-g"
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812
4813 int
4814 main (void)
4815 {
4816
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"
4822 then :
4823 ac_cv_prog_cc_g=yes
4824 else case e in #(
4825 e) CFLAGS=""
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828
4829 int
4830 main (void)
4831 {
4832
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_compile "$LINENO"
4838 then :
4839
4840 else case e in #(
4841 e) ac_c_werror_flag=$ac_save_c_werror_flag
4842 CFLAGS="-g"
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 int
4847 main (void)
4848 {
4849
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"
4855 then :
4856 ac_cv_prog_cc_g=yes
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4859 esac
4860 fi
4861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4862 esac
4863 fi
4864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4865 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4866 esac
4867 fi
4868 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4869 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
4870 if test $ac_test_CFLAGS; then
4871 CFLAGS=$ac_save_CFLAGS
4872 elif test $ac_cv_prog_cc_g = yes; then
4873 if test "$GCC" = yes; then
4874 CFLAGS="-g -O2"
4875 else
4876 CFLAGS="-g"
4877 fi
4878 else
4879 if test "$GCC" = yes; then
4880 CFLAGS="-O2"
4881 else
4882 CFLAGS=
4883 fi
4884 fi
4885 ac_prog_cc_stdc=no
4886 if test x$ac_prog_cc_stdc = xno
4887 then :
4888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
4889 printf %s "checking for $CC option to enable C23 features... " >&6; }
4890 if test ${ac_cv_prog_cc_c23+y}
4891 then :
4892 printf %s "(cached) " >&6
4893 else case e in #(
4894 e) ac_cv_prog_cc_c23=no
4895 ac_save_CC=$CC
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 $ac_c_conftest_c23_program
4899 _ACEOF
4900 for ac_arg in '' -std=gnu23
4901 do
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"
4904 then :
4905 ac_cv_prog_cc_c23=$ac_arg
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam
4908 test "x$ac_cv_prog_cc_c23" != "xno" && break
4909 done
4910 rm -f conftest.$ac_ext
4911 CC=$ac_save_CC ;;
4912 esac
4913 fi
4914
4915 if test "x$ac_cv_prog_cc_c23" = xno
4916 then :
4917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4918 printf '%s\n' "unsupported" >&6; }
4919 else case e in #(
4920 e) if test "x$ac_cv_prog_cc_c23" = x
4921 then :
4922 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4923 printf '%s\n' "none needed" >&6; }
4924 else case e in #(
4925 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
4926 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
4927 CC="$CC $ac_cv_prog_cc_c23" ;;
4928 esac
4929 fi
4930 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
4931 ac_prog_cc_stdc=c23 ;;
4932 esac
4933 fi
4934 fi
4935 if test x$ac_prog_cc_stdc = xno
4936 then :
4937 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4938 printf %s "checking for $CC option to enable C11 features... " >&6; }
4939 if test ${ac_cv_prog_cc_c11+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else case e in #(
4943 e) ac_cv_prog_cc_c11=no
4944 ac_save_CC=$CC
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 $ac_c_conftest_c11_program
4948 _ACEOF
4949 for ac_arg in '' -std=gnu11 -std:c11
4950 do
4951 CC="$ac_save_CC $ac_arg"
4952 if ac_fn_c_try_compile "$LINENO"
4953 then :
4954 ac_cv_prog_cc_c11=$ac_arg
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.beam
4957 test "x$ac_cv_prog_cc_c11" != "xno" && break
4958 done
4959 rm -f conftest.$ac_ext
4960 CC=$ac_save_CC ;;
4961 esac
4962 fi
4963
4964 if test "x$ac_cv_prog_cc_c11" = xno
4965 then :
4966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4967 printf '%s\n' "unsupported" >&6; }
4968 else case e in #(
4969 e) if test "x$ac_cv_prog_cc_c11" = x
4970 then :
4971 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4972 printf '%s\n' "none needed" >&6; }
4973 else case e in #(
4974 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4975 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
4976 CC="$CC $ac_cv_prog_cc_c11" ;;
4977 esac
4978 fi
4979 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4980 ac_prog_cc_stdc=c11 ;;
4981 esac
4982 fi
4983 fi
4984 if test x$ac_prog_cc_stdc = xno
4985 then :
4986 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4987 printf %s "checking for $CC option to enable C99 features... " >&6; }
4988 if test ${ac_cv_prog_cc_c99+y}
4989 then :
4990 printf %s "(cached) " >&6
4991 else case e in #(
4992 e) ac_cv_prog_cc_c99=no
4993 ac_save_CC=$CC
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 $ac_c_conftest_c99_program
4997 _ACEOF
4998 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4999 do
5000 CC="$ac_save_CC $ac_arg"
5001 if ac_fn_c_try_compile "$LINENO"
5002 then :
5003 ac_cv_prog_cc_c99=$ac_arg
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.beam
5006 test "x$ac_cv_prog_cc_c99" != "xno" && break
5007 done
5008 rm -f conftest.$ac_ext
5009 CC=$ac_save_CC ;;
5010 esac
5011 fi
5012
5013 if test "x$ac_cv_prog_cc_c99" = xno
5014 then :
5015 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5016 printf '%s\n' "unsupported" >&6; }
5017 else case e in #(
5018 e) if test "x$ac_cv_prog_cc_c99" = x
5019 then :
5020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5021 printf '%s\n' "none needed" >&6; }
5022 else case e in #(
5023 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5024 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
5025 CC="$CC $ac_cv_prog_cc_c99" ;;
5026 esac
5027 fi
5028 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5029 ac_prog_cc_stdc=c99 ;;
5030 esac
5031 fi
5032 fi
5033 if test x$ac_prog_cc_stdc = xno
5034 then :
5035 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5036 printf %s "checking for $CC option to enable C89 features... " >&6; }
5037 if test ${ac_cv_prog_cc_c89+y}
5038 then :
5039 printf %s "(cached) " >&6
5040 else case e in #(
5041 e) ac_cv_prog_cc_c89=no
5042 ac_save_CC=$CC
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 $ac_c_conftest_c89_program
5046 _ACEOF
5047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5048 do
5049 CC="$ac_save_CC $ac_arg"
5050 if ac_fn_c_try_compile "$LINENO"
5051 then :
5052 ac_cv_prog_cc_c89=$ac_arg
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.beam
5055 test "x$ac_cv_prog_cc_c89" != "xno" && break
5056 done
5057 rm -f conftest.$ac_ext
5058 CC=$ac_save_CC ;;
5059 esac
5060 fi
5061
5062 if test "x$ac_cv_prog_cc_c89" = xno
5063 then :
5064 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5065 printf '%s\n' "unsupported" >&6; }
5066 else case e in #(
5067 e) if test "x$ac_cv_prog_cc_c89" = x
5068 then :
5069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5070 printf '%s\n' "none needed" >&6; }
5071 else case e in #(
5072 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5073 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
5074 CC="$CC $ac_cv_prog_cc_c89" ;;
5075 esac
5076 fi
5077 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5078 ac_prog_cc_stdc=c89 ;;
5079 esac
5080 fi
5081 fi
5082
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088
5089
5090 ac_ext=c
5091 ac_cpp='$CPP $CPPFLAGS'
5092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5095 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5096 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5097 if test ${am_cv_prog_cc_c_o+y}
5098 then :
5099 printf %s "(cached) " >&6
5100 else case e in #(
5101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103
5104 int
5105 main (void)
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 # Make sure it works both with $CC and with simple cc.
5113 # Following AC_PROG_CC_C_O, we do the test twice because some
5114 # compilers refuse to overwrite an existing .o file with -o,
5115 # though they will create one.
5116 am_cv_prog_cc_c_o=yes
5117 for am_i in 1 2; do
5118 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5119 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } \
5123 && test -f conftest2.$ac_objext; then
5124 : OK
5125 else
5126 am_cv_prog_cc_c_o=no
5127 break
5128 fi
5129 done
5130 # aligned with autoconf, so not including core; see bug#72225.
5131 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5132 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5133 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5134 unset am_i ;;
5135 esac
5136 fi
5137 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5138 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
5139 if test "$am_cv_prog_cc_c_o" != yes; then
5140 # Losing compiler, so override with the script.
5141 # FIXME: It is wrong to rewrite CC.
5142 # But if we don't then we get into trouble of one sort or another.
5143 # A longer-term fix would be to have automake use am__CC in this case,
5144 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5145 CC="$am_aux_dir/compile $CC"
5146 fi
5147 ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152
5153
5154 depcc="$CC" am_compiler_list=
5155
5156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5157 printf %s "checking dependency style of $depcc... " >&6; }
5158 if test ${am_cv_CC_dependencies_compiler_type+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else case e in #(
5162 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5163 # We make a subdir and do the tests there. Otherwise we can end up
5164 # making bogus files that we don't know about and never remove. For
5165 # instance it was reported that on HP-UX the gcc test will end up
5166 # making a dummy file named 'D' -- because '-MD' means "put the output
5167 # in D".
5168 rm -rf conftest.dir
5169 mkdir conftest.dir
5170 # Copy depcomp to subdir because otherwise we won't find it if we're
5171 # using a relative directory.
5172 cp "$am_depcomp" conftest.dir
5173 cd conftest.dir
5174 # We will build objects and dependencies in a subdirectory because
5175 # it helps to detect inapplicable dependency modes. For instance
5176 # both Tru64's cc and ICC support -MD to output dependencies as a
5177 # side effect of compilation, but ICC will put the dependencies in
5178 # the current directory while Tru64 will put them in the object
5179 # directory.
5180 mkdir sub
5181
5182 am_cv_CC_dependencies_compiler_type=none
5183 if test "$am_compiler_list" = ""; then
5184 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5185 fi
5186 am__universal=false
5187 case " $depcc " in #(
5188 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5189 esac
5190
5191 for depmode in $am_compiler_list; do
5192 # Setup a source with many dependencies, because some compilers
5193 # like to wrap large dependency lists on column 80 (with \), and
5194 # we should not choose a depcomp mode which is confused by this.
5195 #
5196 # We need to recreate these files for each test, as the compiler may
5197 # overwrite some of them when testing with obscure command lines.
5198 # This happens at least with the AIX C compiler.
5199 : > sub/conftest.c
5200 for i in 1 2 3 4 5 6; do
5201 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5202 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5203 # Solaris 10 /bin/sh.
5204 echo '/* dummy */' > sub/conftst$i.h
5205 done
5206 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5207
5208 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5209 # mode. It turns out that the SunPro C++ compiler does not properly
5210 # handle '-M -o', and we need to detect this. Also, some Intel
5211 # versions had trouble with output in subdirs.
5212 am__obj=sub/conftest.${OBJEXT-o}
5213 am__minus_obj="-o $am__obj"
5214 case $depmode in
5215 gcc)
5216 # This depmode causes a compiler race in universal mode.
5217 test "$am__universal" = false || continue
5218 ;;
5219 nosideeffect)
5220 # After this tag, mechanisms are not by side-effect, so they'll
5221 # only be used when explicitly requested.
5222 if test "x$enable_dependency_tracking" = xyes; then
5223 continue
5224 else
5225 break
5226 fi
5227 ;;
5228 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5229 # This compiler won't grok '-c -o', but also, the minuso test has
5230 # not run yet. These depmodes are late enough in the game, and
5231 # so weak that their functioning should not be impacted.
5232 am__obj=conftest.${OBJEXT-o}
5233 am__minus_obj=
5234 ;;
5235 none) break ;;
5236 esac
5237 if depmode=$depmode \
5238 source=sub/conftest.c object=$am__obj \
5239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5240 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5241 >/dev/null 2>conftest.err &&
5242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5244 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5246 # icc doesn't choke on unknown options, it will just issue warnings
5247 # or remarks (even with -Werror). So we grep stderr for any message
5248 # that says an option was ignored or not supported.
5249 # When given -MP, icc 7.0 and 7.1 complain thus:
5250 # icc: Command line warning: ignoring option '-M'; no argument required
5251 # The diagnosis changed in icc 8.0:
5252 # icc: Command line remark: option '-MP' not supported
5253 if (grep 'ignoring option' conftest.err ||
5254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5255 am_cv_CC_dependencies_compiler_type=$depmode
5256 break
5257 fi
5258 fi
5259 done
5260
5261 cd ..
5262 rm -rf conftest.dir
5263 else
5264 am_cv_CC_dependencies_compiler_type=none
5265 fi
5266 ;;
5267 esac
5268 fi
5269 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5270 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5272
5273 if
5274 test "x$enable_dependency_tracking" != xno \
5275 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5276 am__fastdepCC_TRUE=
5277 am__fastdepCC_FALSE='#'
5278 else
5279 am__fastdepCC_TRUE='#'
5280 am__fastdepCC_FALSE=
5281 fi
5282
5283
5284 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5285 printf %s "checking for a sed that does not truncate output... " >&6; }
5286 if test ${ac_cv_path_SED+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else case e in #(
5290 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5291 for ac_i in 1 2 3 4 5 6 7; do
5292 ac_script="$ac_script$as_nl$ac_script"
5293 done
5294 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5295 { ac_script=; unset ac_script;}
5296 if test -z "$SED"; then
5297 ac_path_SED_found=false
5298 # Loop through the user's path and test for each of PROGNAME-LIST
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302 IFS=$as_save_IFS
5303 case $as_dir in #(((
5304 '') as_dir=./ ;;
5305 */) ;;
5306 *) as_dir=$as_dir/ ;;
5307 esac
5308 for ac_prog in sed gsed
5309 do
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5312 as_fn_executable_p "$ac_path_SED" || continue
5313 # Check for GNU ac_path_SED and select it if it is found.
5314 # Check for GNU $ac_path_SED
5315 case `"$ac_path_SED" --version 2>&1` in #(
5316 *GNU*)
5317 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5318 #(
5319 *)
5320 ac_count=0
5321 printf %s 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 printf '%s\n' '' >> "conftest.nl"
5328 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_SED_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_SED="$ac_path_SED"
5334 ac_path_SED_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5341
5342 $ac_path_SED_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_SED"; then
5348 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5349 fi
5350 else
5351 ac_cv_path_SED=$SED
5352 fi
5353 ;;
5354 esac
5355 fi
5356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5357 printf '%s\n' "$ac_cv_path_SED" >&6; }
5358 SED="$ac_cv_path_SED"
5359 rm -f conftest.sed
5360
5361 test -z "$SED" && SED=sed
5362 Xsed="$SED -e 1s/^X//"
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5375 printf %s "checking for grep that handles long lines and -e... " >&6; }
5376 if test ${ac_cv_path_GREP+y}
5377 then :
5378 printf %s "(cached) " >&6
5379 else case e in #(
5380 e) if test -z "$GREP"; then
5381 ac_path_GREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5385 do
5386 IFS=$as_save_IFS
5387 case $as_dir in #(((
5388 '') as_dir=./ ;;
5389 */) ;;
5390 *) as_dir=$as_dir/ ;;
5391 esac
5392 for ac_prog in grep ggrep
5393 do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5396 as_fn_executable_p "$ac_path_GREP" || continue
5397 # Check for GNU ac_path_GREP and select it if it is found.
5398 # Check for GNU $ac_path_GREP
5399 case `"$ac_path_GREP" --version 2>&1` in #(
5400 *GNU*)
5401 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5402 #(
5403 *)
5404 ac_count=0
5405 printf %s 0123456789 >"conftest.in"
5406 while :
5407 do
5408 cat "conftest.in" "conftest.in" >"conftest.tmp"
5409 mv "conftest.tmp" "conftest.in"
5410 cp "conftest.in" "conftest.nl"
5411 printf '%s\n' 'GREP' >> "conftest.nl"
5412 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414 as_fn_arith $ac_count + 1 && ac_count=$as_val
5415 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5416 # Best one so far, save it but keep looking for a better one
5417 ac_cv_path_GREP="$ac_path_GREP"
5418 ac_path_GREP_max=$ac_count
5419 fi
5420 # 10*(2^10) chars as input seems more than enough
5421 test $ac_count -gt 10 && break
5422 done
5423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424 esac
5425
5426 $ac_path_GREP_found && break 3
5427 done
5428 done
5429 done
5430 IFS=$as_save_IFS
5431 if test -z "$ac_cv_path_GREP"; then
5432 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5433 fi
5434 else
5435 ac_cv_path_GREP=$GREP
5436 fi
5437 ;;
5438 esac
5439 fi
5440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5441 printf '%s\n' "$ac_cv_path_GREP" >&6; }
5442 GREP="$ac_cv_path_GREP"
5443
5444
5445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5446 printf %s "checking for egrep... " >&6; }
5447 if test ${ac_cv_path_EGREP+y}
5448 then :
5449 printf %s "(cached) " >&6
5450 else case e in #(
5451 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5452 then ac_cv_path_EGREP="$GREP -E"
5453 else
5454 if test -z "$EGREP"; then
5455 ac_path_EGREP_found=false
5456 # Loop through the user's path and test for each of PROGNAME-LIST
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5459 do
5460 IFS=$as_save_IFS
5461 case $as_dir in #(((
5462 '') as_dir=./ ;;
5463 */) ;;
5464 *) as_dir=$as_dir/ ;;
5465 esac
5466 for ac_prog in egrep
5467 do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5470 as_fn_executable_p "$ac_path_EGREP" || continue
5471 # Check for GNU ac_path_EGREP and select it if it is found.
5472 # Check for GNU $ac_path_EGREP
5473 case `"$ac_path_EGREP" --version 2>&1` in #(
5474 *GNU*)
5475 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5476 #(
5477 *)
5478 ac_count=0
5479 printf %s 0123456789 >"conftest.in"
5480 while :
5481 do
5482 cat "conftest.in" "conftest.in" >"conftest.tmp"
5483 mv "conftest.tmp" "conftest.in"
5484 cp "conftest.in" "conftest.nl"
5485 printf '%s\n' 'EGREP' >> "conftest.nl"
5486 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5488 as_fn_arith $ac_count + 1 && ac_count=$as_val
5489 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5490 # Best one so far, save it but keep looking for a better one
5491 ac_cv_path_EGREP="$ac_path_EGREP"
5492 ac_path_EGREP_max=$ac_count
5493 fi
5494 # 10*(2^10) chars as input seems more than enough
5495 test $ac_count -gt 10 && break
5496 done
5497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5498 esac
5499
5500 $ac_path_EGREP_found && break 3
5501 done
5502 done
5503 done
5504 IFS=$as_save_IFS
5505 if test -z "$ac_cv_path_EGREP"; then
5506 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5507 fi
5508 else
5509 ac_cv_path_EGREP=$EGREP
5510 fi
5511
5512 fi ;;
5513 esac
5514 fi
5515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5516 printf '%s\n' "$ac_cv_path_EGREP" >&6; }
5517 EGREP="$ac_cv_path_EGREP"
5518
5519 EGREP_TRADITIONAL=$EGREP
5520 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5521
5522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5523 printf %s "checking for fgrep... " >&6; }
5524 if test ${ac_cv_path_FGREP+y}
5525 then :
5526 printf %s "(cached) " >&6
5527 else case e in #(
5528 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5529 then ac_cv_path_FGREP="$GREP -F"
5530 else
5531 if test -z "$FGREP"; then
5532 ac_path_FGREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5536 do
5537 IFS=$as_save_IFS
5538 case $as_dir in #(((
5539 '') as_dir=./ ;;
5540 */) ;;
5541 *) as_dir=$as_dir/ ;;
5542 esac
5543 for ac_prog in fgrep
5544 do
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5547 as_fn_executable_p "$ac_path_FGREP" || continue
5548 # Check for GNU ac_path_FGREP and select it if it is found.
5549 # Check for GNU $ac_path_FGREP
5550 case `"$ac_path_FGREP" --version 2>&1` in #(
5551 *GNU*)
5552 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5553 #(
5554 *)
5555 ac_count=0
5556 printf %s 0123456789 >"conftest.in"
5557 while :
5558 do
5559 cat "conftest.in" "conftest.in" >"conftest.tmp"
5560 mv "conftest.tmp" "conftest.in"
5561 cp "conftest.in" "conftest.nl"
5562 printf '%s\n' 'FGREP' >> "conftest.nl"
5563 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5565 as_fn_arith $ac_count + 1 && ac_count=$as_val
5566 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5567 # Best one so far, save it but keep looking for a better one
5568 ac_cv_path_FGREP="$ac_path_FGREP"
5569 ac_path_FGREP_max=$ac_count
5570 fi
5571 # 10*(2^10) chars as input seems more than enough
5572 test $ac_count -gt 10 && break
5573 done
5574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5575 esac
5576
5577 $ac_path_FGREP_found && break 3
5578 done
5579 done
5580 done
5581 IFS=$as_save_IFS
5582 if test -z "$ac_cv_path_FGREP"; then
5583 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5584 fi
5585 else
5586 ac_cv_path_FGREP=$FGREP
5587 fi
5588
5589 fi ;;
5590 esac
5591 fi
5592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5593 printf '%s\n' "$ac_cv_path_FGREP" >&6; }
5594 FGREP="$ac_cv_path_FGREP"
5595
5596
5597 test -z "$GREP" && GREP=grep
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 # Check whether --with-gnu-ld was given.
5618 if test ${with_gnu_ld+y}
5619 then :
5620 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5621 else case e in #(
5622 e) with_gnu_ld=no ;;
5623 esac
5624 fi
5625
5626 ac_prog=ld
5627 if test yes = "$GCC"; then
5628 # Check if gcc -print-prog-name=ld gives a path.
5629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5630 printf %s "checking for ld used by $CC... " >&6; }
5631 case $host in
5632 *-*-mingw* | *-*-windows*)
5633 # gcc leaves a trailing carriage return, which upsets mingw
5634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5635 *)
5636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5637 esac
5638 case $ac_prog in
5639 # Accept absolute paths.
5640 [\\/]* | ?:[\\/]*)
5641 re_direlt='/[^/][^/]*/\.\./'
5642 # Canonicalize the pathname of ld
5643 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5644 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5645 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5646 done
5647 test -z "$LD" && LD=$ac_prog
5648 ;;
5649 "")
5650 # If it fails, then pretend we aren't using GCC.
5651 ac_prog=ld
5652 ;;
5653 *)
5654 # If it is relative, then search for the first ld in PATH.
5655 with_gnu_ld=unknown
5656 ;;
5657 esac
5658 elif test yes = "$with_gnu_ld"; then
5659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5660 printf %s "checking for GNU ld... " >&6; }
5661 else
5662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5663 printf %s "checking for non-GNU ld... " >&6; }
5664 fi
5665 if test ${lt_cv_path_LD+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else case e in #(
5669 e) if test -z "$LD"; then
5670 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5671 for ac_dir in $PATH; do
5672 IFS=$lt_save_ifs
5673 test -z "$ac_dir" && ac_dir=.
5674 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5675 lt_cv_path_LD=$ac_dir/$ac_prog
5676 # Check to see if the program is GNU ld. I'd rather use --version,
5677 # but apparently some variants of GNU ld only accept -v.
5678 # Break only if it was the GNU/non-GNU ld that we prefer.
5679 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5680 *GNU* | *'with BFD'*)
5681 test no != "$with_gnu_ld" && break
5682 ;;
5683 *)
5684 test yes != "$with_gnu_ld" && break
5685 ;;
5686 esac
5687 fi
5688 done
5689 IFS=$lt_save_ifs
5690 else
5691 lt_cv_path_LD=$LD # Let the user override the test with a path.
5692 fi ;;
5693 esac
5694 fi
5695
5696 LD=$lt_cv_path_LD
5697 if test -n "$LD"; then
5698 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5699 printf '%s\n' "$LD" >&6; }
5700 else
5701 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 printf '%s\n' "no" >&6; }
5703 fi
5704 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5705 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5706 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5707 if test ${lt_cv_prog_gnu_ld+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5712 case `$LD -v 2>&1 </dev/null` in
5713 *GNU* | *'with BFD'*)
5714 lt_cv_prog_gnu_ld=yes
5715 ;;
5716 *)
5717 lt_cv_prog_gnu_ld=no
5718 ;;
5719 esac ;;
5720 esac
5721 fi
5722 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5723 printf '%s\n' "$lt_cv_prog_gnu_ld" >&6; }
5724 with_gnu_ld=$lt_cv_prog_gnu_ld
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5735 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5736 if test ${lt_cv_path_NM+y}
5737 then :
5738 printf %s "(cached) " >&6
5739 else case e in #(
5740 e) if test -n "$NM"; then
5741 # Let the user override the test.
5742 lt_cv_path_NM=$NM
5743 else
5744 lt_nm_to_check=${ac_tool_prefix}nm
5745 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5746 lt_nm_to_check="$lt_nm_to_check nm"
5747 fi
5748 for lt_tmp_nm in $lt_nm_to_check; do
5749 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5750 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5751 IFS=$lt_save_ifs
5752 test -z "$ac_dir" && ac_dir=.
5753 tmp_nm=$ac_dir/$lt_tmp_nm
5754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5755 # Check to see if the nm accepts a BSD-compat flag.
5756 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5757 # nm: unknown option "B" ignored
5758 # Tru64's nm complains that /dev/null is an invalid object file
5759 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5760 case $build_os in
5761 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5762 *) lt_bad_file=/dev/null ;;
5763 esac
5764 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5765 *$lt_bad_file* | *'Invalid file or object type'*)
5766 lt_cv_path_NM="$tmp_nm -B"
5767 break 2
5768 ;;
5769 *)
5770 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5771 */dev/null*)
5772 lt_cv_path_NM="$tmp_nm -p"
5773 break 2
5774 ;;
5775 *)
5776 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5777 continue # so that we can try to find one that supports BSD flags
5778 ;;
5779 esac
5780 ;;
5781 esac
5782 fi
5783 done
5784 IFS=$lt_save_ifs
5785 done
5786 : ${lt_cv_path_NM=no}
5787 fi ;;
5788 esac
5789 fi
5790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5791 printf '%s\n' "$lt_cv_path_NM" >&6; }
5792 if test no != "$lt_cv_path_NM"; then
5793 NM=$lt_cv_path_NM
5794 else
5795 # Didn't find any BSD compatible name lister, look for dumpbin.
5796 if test -n "$DUMPBIN"; then :
5797 # Let the user override the test.
5798 else
5799 if test -n "$ac_tool_prefix"; then
5800 for ac_prog in dumpbin "link -dump"
5801 do
5802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 printf %s "checking for $ac_word... " >&6; }
5806 if test ${ac_cv_prog_DUMPBIN+y}
5807 then :
5808 printf %s "(cached) " >&6
5809 else case e in #(
5810 e) if test -n "$DUMPBIN"; then
5811 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5815 do
5816 IFS=$as_save_IFS
5817 case $as_dir in #(((
5818 '') as_dir=./ ;;
5819 */) ;;
5820 *) as_dir=$as_dir/ ;;
5821 esac
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5825 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5826 break 2
5827 fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi ;;
5833 esac
5834 fi
5835 DUMPBIN=$ac_cv_prog_DUMPBIN
5836 if test -n "$DUMPBIN"; then
5837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5838 printf '%s\n' "$DUMPBIN" >&6; }
5839 else
5840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 printf '%s\n' "no" >&6; }
5842 fi
5843
5844
5845 test -n "$DUMPBIN" && break
5846 done
5847 fi
5848 if test -z "$DUMPBIN"; then
5849 ac_ct_DUMPBIN=$DUMPBIN
5850 for ac_prog in dumpbin "link -dump"
5851 do
5852 # Extract the first word of "$ac_prog", so it can be a program name with args.
5853 set dummy $ac_prog; ac_word=$2
5854 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855 printf %s "checking for $ac_word... " >&6; }
5856 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5857 then :
5858 printf %s "(cached) " >&6
5859 else case e in #(
5860 e) if test -n "$ac_ct_DUMPBIN"; then
5861 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 case $as_dir in #(((
5868 '') as_dir=./ ;;
5869 */) ;;
5870 *) as_dir=$as_dir/ ;;
5871 esac
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5875 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878 done
5879 done
5880 IFS=$as_save_IFS
5881
5882 fi ;;
5883 esac
5884 fi
5885 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5888 printf '%s\n' "$ac_ct_DUMPBIN" >&6; }
5889 else
5890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 printf '%s\n' "no" >&6; }
5892 fi
5893
5894
5895 test -n "$ac_ct_DUMPBIN" && break
5896 done
5897
5898 if test "x$ac_ct_DUMPBIN" = x; then
5899 DUMPBIN=":"
5900 else
5901 case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907 DUMPBIN=$ac_ct_DUMPBIN
5908 fi
5909 fi
5910
5911 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5912 *COFF*)
5913 DUMPBIN="$DUMPBIN -symbols -headers"
5914 ;;
5915 *)
5916 DUMPBIN=:
5917 ;;
5918 esac
5919 fi
5920
5921 if test : != "$DUMPBIN"; then
5922 NM=$DUMPBIN
5923 fi
5924 fi
5925 test -z "$NM" && NM=nm
5926
5927
5928
5929
5930
5931
5932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5933 printf %s "checking the name lister ($NM) interface... " >&6; }
5934 if test ${lt_cv_nm_interface+y}
5935 then :
5936 printf %s "(cached) " >&6
5937 else case e in #(
5938 e) lt_cv_nm_interface="BSD nm"
5939 echo "int some_variable = 0;" > conftest.$ac_ext
5940 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5941 (eval "$ac_compile" 2>conftest.err)
5942 cat conftest.err >&5
5943 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5945 cat conftest.err >&5
5946 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5947 cat conftest.out >&5
5948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5949 lt_cv_nm_interface="MS dumpbin"
5950 fi
5951 rm -f conftest* ;;
5952 esac
5953 fi
5954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5955 printf '%s\n' "$lt_cv_nm_interface" >&6; }
5956
5957 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5958 printf %s "checking whether ln -s works... " >&6; }
5959 LN_S=$as_ln_s
5960 if test "$LN_S" = "ln -s"; then
5961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5962 printf '%s\n' "yes" >&6; }
5963 else
5964 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5965 printf '%s\n' "no, using $LN_S" >&6; }
5966 fi
5967
5968 # find the maximum length of command line arguments
5969 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5970 printf %s "checking the maximum length of command line arguments... " >&6; }
5971 if test ${lt_cv_sys_max_cmd_len+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else case e in #(
5975 e) i=0
5976 teststring=ABCD
5977
5978 case $build_os in
5979 msdosdjgpp*)
5980 # On DJGPP, this test can blow up pretty badly due to problems in libc
5981 # (any single argument exceeding 2000 bytes causes a buffer overrun
5982 # during glob expansion). Even if it were fixed, the result of this
5983 # check would be larger than it should be.
5984 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5985 ;;
5986
5987 gnu* | ironclad*)
5988 # Under GNU Hurd and Ironclad, this test is not required because there
5989 # is no limit to the length of command line arguments.
5990 # Libtool will interpret -1 as no limit whatsoever
5991 lt_cv_sys_max_cmd_len=-1;
5992 ;;
5993
5994 cygwin* | mingw* | windows* | cegcc*)
5995 # On Win9x/ME, this test blows up -- it succeeds, but takes
5996 # about 5 minutes as the teststring grows exponentially.
5997 # Worse, since 9x/ME are not pre-emptively multitasking,
5998 # you end up with a "frozen" computer, even though with patience
5999 # the test eventually succeeds (with a max line length of 256k).
6000 # Instead, let's just punt: use the minimum linelength reported by
6001 # all of the supported platforms: 8192 (on NT/2K/XP).
6002 lt_cv_sys_max_cmd_len=8192;
6003 ;;
6004
6005 mint*)
6006 # On MiNT this can take a long time and run out of memory.
6007 lt_cv_sys_max_cmd_len=8192;
6008 ;;
6009
6010 amigaos*)
6011 # On AmigaOS with pdksh, this test takes hours, literally.
6012 # So we just punt and use a minimum line length of 8192.
6013 lt_cv_sys_max_cmd_len=8192;
6014 ;;
6015
6016 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6017 # This has been around since 386BSD, at least. Likely further.
6018 if test -x /sbin/sysctl; then
6019 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6020 elif test -x /usr/sbin/sysctl; then
6021 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6022 else
6023 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6024 fi
6025 # And add a safety zone
6026 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6028 ;;
6029
6030 interix*)
6031 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6032 lt_cv_sys_max_cmd_len=196608
6033 ;;
6034
6035 os2*)
6036 # The test takes a long time on OS/2.
6037 lt_cv_sys_max_cmd_len=8192
6038 ;;
6039
6040 osf*)
6041 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6042 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6043 # nice to cause kernel panics so lets avoid the loop below.
6044 # First set a reasonable default.
6045 lt_cv_sys_max_cmd_len=16384
6046 #
6047 if test -x /sbin/sysconfig; then
6048 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6049 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6050 esac
6051 fi
6052 ;;
6053 sco3.2v5*)
6054 lt_cv_sys_max_cmd_len=102400
6055 ;;
6056 sysv5* | sco5v6* | sysv4.2uw2*)
6057 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6058 if test -n "$kargmax"; then
6059 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6060 else
6061 lt_cv_sys_max_cmd_len=32768
6062 fi
6063 ;;
6064 *)
6065 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6066 if test -n "$lt_cv_sys_max_cmd_len" && \
6067 test undefined != "$lt_cv_sys_max_cmd_len"; then
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6070 else
6071 # Make teststring a little bigger before we do anything with it.
6072 # a 1K string should be a reasonable start.
6073 for i in 1 2 3 4 5 6 7 8; do
6074 teststring=$teststring$teststring
6075 done
6076 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6077 # If test is not a shell built-in, we'll probably end up computing a
6078 # maximum length that is only half of the actual maximum length, but
6079 # we can't tell.
6080 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6081 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6082 test 17 != "$i" # 1/2 MB should be enough
6083 do
6084 i=`expr $i + 1`
6085 teststring=$teststring$teststring
6086 done
6087 # Only check the string length outside the loop.
6088 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6089 teststring=
6090 # Add a significant safety factor because C++ compilers can tack on
6091 # massive amounts of additional arguments before passing them to the
6092 # linker. It appears as though 1/2 is a usable value.
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6094 fi
6095 ;;
6096 esac
6097 ;;
6098 esac
6099 fi
6100
6101 if test -n "$lt_cv_sys_max_cmd_len"; then
6102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6103 printf '%s\n' "$lt_cv_sys_max_cmd_len" >&6; }
6104 else
6105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none" >&5
6106 printf '%s\n' "none" >&6; }
6107 fi
6108 max_cmd_len=$lt_cv_sys_max_cmd_len
6109
6110
6111
6112
6113
6114
6115 : ${CP="cp -f"}
6116 : ${MV="mv -f"}
6117 : ${RM="rm -f"}
6118
6119 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6120 lt_unset=unset
6121 else
6122 lt_unset=false
6123 fi
6124
6125
6126
6127
6128
6129 # test EBCDIC or ASCII
6130 case `echo X|tr X '\101'` in
6131 A) # ASCII based system
6132 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6133 lt_SP2NL='tr \040 \012'
6134 lt_NL2SP='tr \015\012 \040\040'
6135 ;;
6136 *) # EBCDIC based system
6137 lt_SP2NL='tr \100 \n'
6138 lt_NL2SP='tr \r\n \100\100'
6139 ;;
6140 esac
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6151 printf %s "checking how to convert $build file names to $host format... " >&6; }
6152 if test ${lt_cv_to_host_file_cmd+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else case e in #(
6156 e) case $host in
6157 *-*-mingw* )
6158 case $build in
6159 *-*-mingw* | *-*-windows* ) # actually msys
6160 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6161 ;;
6162 *-*-cygwin* )
6163 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6164 ;;
6165 * ) # otherwise, assume *nix
6166 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6167 ;;
6168 esac
6169 ;;
6170 *-*-cygwin* )
6171 case $build in
6172 *-*-mingw* | *-*-windows* ) # actually msys
6173 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6174 ;;
6175 *-*-cygwin* )
6176 lt_cv_to_host_file_cmd=func_convert_file_noop
6177 ;;
6178 * ) # otherwise, assume *nix
6179 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6180 ;;
6181 esac
6182 ;;
6183 * ) # unhandled hosts (and "normal" native builds)
6184 lt_cv_to_host_file_cmd=func_convert_file_noop
6185 ;;
6186 esac
6187 ;;
6188 esac
6189 fi
6190
6191 to_host_file_cmd=$lt_cv_to_host_file_cmd
6192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6193 printf '%s\n' "$lt_cv_to_host_file_cmd" >&6; }
6194
6195
6196
6197
6198
6199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6200 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6201 if test ${lt_cv_to_tool_file_cmd+y}
6202 then :
6203 printf %s "(cached) " >&6
6204 else case e in #(
6205 e) #assume ordinary cross tools, or native build.
6206 lt_cv_to_tool_file_cmd=func_convert_file_noop
6207 case $host in
6208 *-*-mingw* | *-*-windows* )
6209 case $build in
6210 *-*-mingw* | *-*-windows* ) # actually msys
6211 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6212 ;;
6213 esac
6214 ;;
6215 esac
6216 ;;
6217 esac
6218 fi
6219
6220 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6222 printf '%s\n' "$lt_cv_to_tool_file_cmd" >&6; }
6223
6224
6225
6226
6227
6228 case $host in #(
6229 *-*-mingw* | *-*-windows* | *-*-cygwin*) :
6230 case $build in #(
6231 *-*-mingw* | *-*-windows* | *-*-cygwin*) :
6232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether cygpath is installed" >&5
6233 printf %s "checking whether cygpath is installed... " >&6; }
6234 if test ${lt_cv_cygpath_installed+y}
6235 then :
6236 printf %s "(cached) " >&6
6237 else case e in #(
6238 e) lt_cv_cygpath_installed=ignoring
6239 cygpath --help &> /dev/null
6240 _lt_result=$?
6241 if test 0 = "$_lt_result"
6242 then :
6243 lt_cv_cygpath_installed=yes
6244 else case e in #(
6245 e) lt_cv_cygpath_installed=no ;;
6246 esac
6247 fi
6248 ;;
6249 esac
6250 fi
6251
6252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cygpath_installed" >&5
6253 printf '%s\n' "$lt_cv_cygpath_installed" >&6; }
6254
6255
6256
6257
6258 if test "xyes" != "x$lt_cv_cygpath_installed"
6259 then :
6260
6261 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to use cmd with one slash or two slashes" >&5
6262 printf %s "checking whether to use cmd with one slash or two slashes... " >&6; }
6263 if test ${lt_cv_cmd_slashes+y}
6264 then :
6265 printf %s "(cached) " >&6
6266 else case e in #(
6267 e)
6268 _lt_result=`cmd /c echo one-slash works. Not checked //c echo two-slashes 2>/dev/null`
6269 if test 0 != $?
6270 then :
6271 as_fn_error $? "Do not know how to convert paths" "$LINENO" 5
6272 fi
6273 case $_lt_result in #(
6274 one-slash*) :
6275 lt_cv_cmd_slashes="one" ;; #(
6276 two-slashes*) :
6277 lt_cv_cmd_slashes="two" ;; #(
6278 *) :
6279 as_fn_error $? "Do not know how to convert paths" "$LINENO" 5
6280 ;;
6281 esac
6282 ;;
6283 esac
6284 fi
6285
6286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cmd_slashes" >&5
6287 printf '%s\n' "$lt_cv_cmd_slashes" >&6; }
6288
6289 fi
6290 ;; #(
6291 *) :
6292 ;;
6293 esac
6294
6295 ;; #(
6296 *) :
6297 ;;
6298 esac
6299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6300 printf %s "checking for $LD option to reload object files... " >&6; }
6301 if test ${lt_cv_ld_reload_flag+y}
6302 then :
6303 printf %s "(cached) " >&6
6304 else case e in #(
6305 e) lt_cv_ld_reload_flag='-r' ;;
6306 esac
6307 fi
6308 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6309 printf '%s\n' "$lt_cv_ld_reload_flag" >&6; }
6310 reload_flag=$lt_cv_ld_reload_flag
6311 case $reload_flag in
6312 "" | " "*) ;;
6313 *) reload_flag=" $reload_flag" ;;
6314 esac
6315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6316 case $host_os in
6317 cygwin* | mingw* | windows* | pw32* | cegcc*)
6318 if test yes != "$GCC"; then
6319 reload_cmds=false
6320 fi
6321 ;;
6322 darwin*)
6323 if test yes = "$GCC"; then
6324 reload_cmds='$LTCC $LTCFLAGS $stdlibflag $wl-r -o $output$reload_objs'
6325 else
6326 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6327 fi
6328 ;;
6329 esac
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 # Extract the first word of "file", so it can be a program name with args.
6340 set dummy file; ac_word=$2
6341 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 printf %s "checking for $ac_word... " >&6; }
6343 if test ${ac_cv_prog_FILECMD+y}
6344 then :
6345 printf %s "(cached) " >&6
6346 else case e in #(
6347 e) if test -n "$FILECMD"; then
6348 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 case $as_dir in #(((
6355 '') as_dir=./ ;;
6356 */) ;;
6357 *) as_dir=$as_dir/ ;;
6358 esac
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_FILECMD="file"
6362 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6370 fi ;;
6371 esac
6372 fi
6373 FILECMD=$ac_cv_prog_FILECMD
6374 if test -n "$FILECMD"; then
6375 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6376 printf '%s\n' "$FILECMD" >&6; }
6377 else
6378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 printf '%s\n' "no" >&6; }
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389 if test -n "$ac_tool_prefix"; then
6390 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6391 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393 printf %s "checking for $ac_word... " >&6; }
6394 if test ${ac_cv_prog_OBJDUMP+y}
6395 then :
6396 printf %s "(cached) " >&6
6397 else case e in #(
6398 e) if test -n "$OBJDUMP"; then
6399 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6403 do
6404 IFS=$as_save_IFS
6405 case $as_dir in #(((
6406 '') as_dir=./ ;;
6407 */) ;;
6408 *) as_dir=$as_dir/ ;;
6409 esac
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6413 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi ;;
6421 esac
6422 fi
6423 OBJDUMP=$ac_cv_prog_OBJDUMP
6424 if test -n "$OBJDUMP"; then
6425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6426 printf '%s\n' "$OBJDUMP" >&6; }
6427 else
6428 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 printf '%s\n' "no" >&6; }
6430 fi
6431
6432
6433 fi
6434 if test -z "$ac_cv_prog_OBJDUMP"; then
6435 ac_ct_OBJDUMP=$OBJDUMP
6436 # Extract the first word of "objdump", so it can be a program name with args.
6437 set dummy objdump; ac_word=$2
6438 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 printf %s "checking for $ac_word... " >&6; }
6440 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6441 then :
6442 printf %s "(cached) " >&6
6443 else case e in #(
6444 e) if test -n "$ac_ct_OBJDUMP"; then
6445 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450 IFS=$as_save_IFS
6451 case $as_dir in #(((
6452 '') as_dir=./ ;;
6453 */) ;;
6454 *) as_dir=$as_dir/ ;;
6455 esac
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6459 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi ;;
6467 esac
6468 fi
6469 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6470 if test -n "$ac_ct_OBJDUMP"; then
6471 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6472 printf '%s\n' "$ac_ct_OBJDUMP" >&6; }
6473 else
6474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 printf '%s\n' "no" >&6; }
6476 fi
6477
6478 if test "x$ac_ct_OBJDUMP" = x; then
6479 OBJDUMP="false"
6480 else
6481 case $cross_compiling:$ac_tool_warned in
6482 yes:)
6483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6484 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6486 esac
6487 OBJDUMP=$ac_ct_OBJDUMP
6488 fi
6489 else
6490 OBJDUMP="$ac_cv_prog_OBJDUMP"
6491 fi
6492
6493 test -z "$OBJDUMP" && OBJDUMP=objdump
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6504 printf %s "checking how to recognize dependent libraries... " >&6; }
6505 if test ${lt_cv_deplibs_check_method+y}
6506 then :
6507 printf %s "(cached) " >&6
6508 else case e in #(
6509 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6510 lt_cv_file_magic_test_file=
6511 lt_cv_deplibs_check_method='unknown'
6512 # Need to set the preceding variable on all platforms that support
6513 # interlibrary dependencies.
6514 # 'none' -- dependencies not supported.
6515 # 'unknown' -- same as none, but documents that we really don't know.
6516 # 'pass_all' -- all dependencies passed with no checks.
6517 # 'file_magic [[regex]]' -- check by looking for files in library path
6518 # that responds to the $file_magic_cmd with a given extended regex.
6519 # If you have 'file' or equivalent on your system and you're not sure
6520 # whether 'pass_all' will *always* work, you probably want this one.
6521
6522 case $host_os in
6523 aix[4-9]*)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526
6527 beos*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
6530
6531 bsdi[45]*)
6532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6533 lt_cv_file_magic_cmd='$FILECMD -L'
6534 lt_cv_file_magic_test_file=/shlib/libc.so
6535 ;;
6536
6537 cygwin*)
6538 # func_win32_libid is a shell function defined in ltmain.sh
6539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6540 lt_cv_file_magic_cmd='func_win32_libid'
6541 ;;
6542
6543 mingw* | windows* | pw32*)
6544 # Base MSYS/MinGW do not provide the 'file' command needed by
6545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6546 # unless we find 'file', for example because we are cross-compiling.
6547 if ( file / ) >/dev/null 2>&1; then
6548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6549 lt_cv_file_magic_cmd='func_win32_libid'
6550 else
6551 # Keep this pattern in sync with the one in func_win32_libid.
6552 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6553 lt_cv_file_magic_cmd='$OBJDUMP -f'
6554 fi
6555 ;;
6556
6557 cegcc*)
6558 # use the weaker test based on 'objdump'. See mingw*.
6559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6560 lt_cv_file_magic_cmd='$OBJDUMP -f'
6561 ;;
6562
6563 darwin* | rhapsody*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566
6567 freebsd* | dragonfly* | midnightbsd*)
6568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6569 case $host_cpu in
6570 i*86 )
6571 # Not sure whether the presence of OpenBSD here was a mistake.
6572 # Let's accept both of them until this is cleared up.
6573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6574 lt_cv_file_magic_cmd=$FILECMD
6575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6576 ;;
6577 esac
6578 else
6579 lt_cv_deplibs_check_method=pass_all
6580 fi
6581 ;;
6582
6583 haiku*)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586
6587 hpux10.20* | hpux11*)
6588 lt_cv_file_magic_cmd=$FILECMD
6589 case $host_cpu in
6590 ia64*)
6591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6593 ;;
6594 hppa*64*)
6595 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]'
6596 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6597 ;;
6598 *)
6599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6601 ;;
6602 esac
6603 ;;
6604
6605 interix[3-9]*)
6606 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6608 ;;
6609
6610 irix5* | irix6* | nonstopux*)
6611 case $LD in
6612 *-32|*"-32 ") libmagic=32-bit;;
6613 *-n32|*"-n32 ") libmagic=N32;;
6614 *-64|*"-64 ") libmagic=64-bit;;
6615 *) libmagic=never-match;;
6616 esac
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6619
6620 *-mlibc)
6621 lt_cv_deplibs_check_method=pass_all
6622 ;;
6623
6624 # This must be glibc/ELF.
6625 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6626 lt_cv_deplibs_check_method=pass_all
6627 ;;
6628
6629 netbsd* | netbsdelf*-gnu)
6630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6632 else
6633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6634 fi
6635 ;;
6636
6637 newos6*)
6638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6639 lt_cv_file_magic_cmd=$FILECMD
6640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6641 ;;
6642
6643 *nto* | *qnx*)
6644 lt_cv_deplibs_check_method=pass_all
6645 ;;
6646
6647 openbsd*)
6648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6650 else
6651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6652 fi
6653 ;;
6654
6655 osf3* | osf4* | osf5*)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658
6659 rdos*)
6660 lt_cv_deplibs_check_method=pass_all
6661 ;;
6662
6663 serenity*)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666
6667 solaris*)
6668 lt_cv_deplibs_check_method=pass_all
6669 ;;
6670
6671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6672 lt_cv_deplibs_check_method=pass_all
6673 ;;
6674
6675 sysv4 | sysv4.3*)
6676 case $host_vendor in
6677 motorola)
6678 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]'
6679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6680 ;;
6681 ncr)
6682 lt_cv_deplibs_check_method=pass_all
6683 ;;
6684 sequent)
6685 lt_cv_file_magic_cmd='/bin/file'
6686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6687 ;;
6688 sni)
6689 lt_cv_file_magic_cmd='/bin/file'
6690 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6691 lt_cv_file_magic_test_file=/lib/libc.so
6692 ;;
6693 siemens)
6694 lt_cv_deplibs_check_method=pass_all
6695 ;;
6696 pc)
6697 lt_cv_deplibs_check_method=pass_all
6698 ;;
6699 esac
6700 ;;
6701
6702 tpf*)
6703 lt_cv_deplibs_check_method=pass_all
6704 ;;
6705 os2*)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
6708 esac
6709 ;;
6710 esac
6711 fi
6712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6713 printf '%s\n' "$lt_cv_deplibs_check_method" >&6; }
6714
6715 file_magic_glob=
6716 want_nocaseglob=no
6717 if test "$build" = "$host"; then
6718 case $host_os in
6719 mingw* | windows* | pw32*)
6720 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6721 want_nocaseglob=yes
6722 else
6723 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6724 fi
6725 ;;
6726 esac
6727 fi
6728
6729 file_magic_cmd=$lt_cv_file_magic_cmd
6730 deplibs_check_method=$lt_cv_deplibs_check_method
6731 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 printf %s "checking for $ac_word... " >&6; }
6759 if test ${ac_cv_prog_DLLTOOL+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else case e in #(
6763 e) if test -n "$DLLTOOL"; then
6764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 case $as_dir in #(((
6771 '') as_dir=./ ;;
6772 */) ;;
6773 *) as_dir=$as_dir/ ;;
6774 esac
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6778 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi ;;
6786 esac
6787 fi
6788 DLLTOOL=$ac_cv_prog_DLLTOOL
6789 if test -n "$DLLTOOL"; then
6790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6791 printf '%s\n' "$DLLTOOL" >&6; }
6792 else
6793 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 printf '%s\n' "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_DLLTOOL"; then
6800 ac_ct_DLLTOOL=$DLLTOOL
6801 # Extract the first word of "dlltool", so it can be a program name with args.
6802 set dummy dlltool; ac_word=$2
6803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 printf %s "checking for $ac_word... " >&6; }
6805 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6806 then :
6807 printf %s "(cached) " >&6
6808 else case e in #(
6809 e) if test -n "$ac_ct_DLLTOOL"; then
6810 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 case $as_dir in #(((
6817 '') as_dir=./ ;;
6818 */) ;;
6819 *) as_dir=$as_dir/ ;;
6820 esac
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6824 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi ;;
6832 esac
6833 fi
6834 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6835 if test -n "$ac_ct_DLLTOOL"; then
6836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6837 printf '%s\n' "$ac_ct_DLLTOOL" >&6; }
6838 else
6839 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 printf '%s\n' "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_DLLTOOL" = x; then
6844 DLLTOOL="false"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 DLLTOOL=$ac_ct_DLLTOOL
6853 fi
6854 else
6855 DLLTOOL="$ac_cv_prog_DLLTOOL"
6856 fi
6857
6858 test -z "$DLLTOOL" && DLLTOOL=dlltool
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6870 printf %s "checking how to associate runtime and link libraries... " >&6; }
6871 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6872 then :
6873 printf %s "(cached) " >&6
6874 else case e in #(
6875 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6876
6877 case $host_os in
6878 cygwin* | mingw* | windows* | pw32* | cegcc*)
6879 # two different shell functions defined in ltmain.sh;
6880 # decide which one to use based on capabilities of $DLLTOOL
6881 case `$DLLTOOL --help 2>&1` in
6882 *--identify-strict*)
6883 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6884 ;;
6885 *)
6886 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6887 ;;
6888 esac
6889 ;;
6890 *)
6891 # fallback: assume linklib IS sharedlib
6892 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6893 ;;
6894 esac
6895 ;;
6896 esac
6897 fi
6898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6899 printf '%s\n' "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6900 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6901 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6902
6903
6904
6905
6906
6907
6908
6909
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_RANLIB+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else case e in #(
6919 e) if test -n "$RANLIB"; then
6920 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 case $as_dir in #(((
6927 '') as_dir=./ ;;
6928 */) ;;
6929 *) as_dir=$as_dir/ ;;
6930 esac
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6934 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi ;;
6942 esac
6943 fi
6944 RANLIB=$ac_cv_prog_RANLIB
6945 if test -n "$RANLIB"; then
6946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6947 printf '%s\n' "$RANLIB" >&6; }
6948 else
6949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 printf '%s\n' "no" >&6; }
6951 fi
6952
6953
6954 fi
6955 if test -z "$ac_cv_prog_RANLIB"; then
6956 ac_ct_RANLIB=$RANLIB
6957 # Extract the first word of "ranlib", so it can be a program name with args.
6958 set dummy ranlib; ac_word=$2
6959 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 printf %s "checking for $ac_word... " >&6; }
6961 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6962 then :
6963 printf %s "(cached) " >&6
6964 else case e in #(
6965 e) if test -n "$ac_ct_RANLIB"; then
6966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971 IFS=$as_save_IFS
6972 case $as_dir in #(((
6973 '') as_dir=./ ;;
6974 */) ;;
6975 *) as_dir=$as_dir/ ;;
6976 esac
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_ac_ct_RANLIB="ranlib"
6980 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987 fi ;;
6988 esac
6989 fi
6990 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6991 if test -n "$ac_ct_RANLIB"; then
6992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6993 printf '%s\n' "$ac_ct_RANLIB" >&6; }
6994 else
6995 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 printf '%s\n' "no" >&6; }
6997 fi
6998
6999 if test "x$ac_ct_RANLIB" = x; then
7000 RANLIB=":"
7001 else
7002 case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008 RANLIB=$ac_ct_RANLIB
7009 fi
7010 else
7011 RANLIB="$ac_cv_prog_RANLIB"
7012 fi
7013
7014 if test -n "$ac_tool_prefix"; then
7015 for ac_prog in ar
7016 do
7017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7019 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 printf %s "checking for $ac_word... " >&6; }
7021 if test ${ac_cv_prog_AR+y}
7022 then :
7023 printf %s "(cached) " >&6
7024 else case e in #(
7025 e) if test -n "$AR"; then
7026 ac_cv_prog_AR="$AR" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 case $as_dir in #(((
7033 '') as_dir=./ ;;
7034 */) ;;
7035 *) as_dir=$as_dir/ ;;
7036 esac
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7040 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi ;;
7048 esac
7049 fi
7050 AR=$ac_cv_prog_AR
7051 if test -n "$AR"; then
7052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7053 printf '%s\n' "$AR" >&6; }
7054 else
7055 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 printf '%s\n' "no" >&6; }
7057 fi
7058
7059
7060 test -n "$AR" && break
7061 done
7062 fi
7063 if test -z "$AR"; then
7064 ac_ct_AR=$AR
7065 for ac_prog in ar
7066 do
7067 # Extract the first word of "$ac_prog", so it can be a program name with args.
7068 set dummy $ac_prog; ac_word=$2
7069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 printf %s "checking for $ac_word... " >&6; }
7071 if test ${ac_cv_prog_ac_ct_AR+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else case e in #(
7075 e) if test -n "$ac_ct_AR"; then
7076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 case $as_dir in #(((
7083 '') as_dir=./ ;;
7084 */) ;;
7085 *) as_dir=$as_dir/ ;;
7086 esac
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_ac_ct_AR="$ac_prog"
7090 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 fi ;;
7098 esac
7099 fi
7100 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7101 if test -n "$ac_ct_AR"; then
7102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7103 printf '%s\n' "$ac_ct_AR" >&6; }
7104 else
7105 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 printf '%s\n' "no" >&6; }
7107 fi
7108
7109
7110 test -n "$ac_ct_AR" && break
7111 done
7112
7113 if test "x$ac_ct_AR" = x; then
7114 AR="false"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 AR=$ac_ct_AR
7123 fi
7124 fi
7125
7126 : ${AR=ar}
7127
7128
7129
7130
7131
7132
7133 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7134 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7135 # higher priority because that's what people were doing historically (setting
7136 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7137 # variable obsoleted/removed.
7138
7139 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7140 lt_ar_flags=$AR_FLAGS
7141
7142
7143
7144
7145
7146
7147 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7148 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7149
7150
7151
7152
7153
7154
7155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7156 printf %s "checking for archiver @FILE support... " >&6; }
7157 if test ${lt_cv_ar_at_file+y}
7158 then :
7159 printf %s "(cached) " >&6
7160 else case e in #(
7161 e) lt_cv_ar_at_file=no
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164
7165 int
7166 main (void)
7167 {
7168
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 if ac_fn_c_try_compile "$LINENO"
7174 then :
7175 echo conftest.$ac_objext > conftest.lst
7176 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7178 (eval $lt_ar_try) 2>&5
7179 ac_status=$?
7180 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181 test $ac_status = 0; }
7182 if test 0 -eq "$ac_status"; then
7183 # Ensure the archiver fails upon bogus file names.
7184 rm -f conftest.$ac_objext libconftest.a
7185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7186 (eval $lt_ar_try) 2>&5
7187 ac_status=$?
7188 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }
7190 if test 0 -ne "$ac_status"; then
7191 lt_cv_ar_at_file=@
7192 fi
7193 fi
7194 rm -f conftest.* libconftest.a
7195
7196 fi
7197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7198 ;;
7199 esac
7200 fi
7201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7202 printf '%s\n' "$lt_cv_ar_at_file" >&6; }
7203
7204 if test no = "$lt_cv_ar_at_file"; then
7205 archiver_list_spec=
7206 else
7207 archiver_list_spec=$lt_cv_ar_at_file
7208 fi
7209
7210
7211
7212
7213
7214
7215
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}strip; ac_word=$2
7219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 printf %s "checking for $ac_word... " >&6; }
7221 if test ${ac_cv_prog_STRIP+y}
7222 then :
7223 printf %s "(cached) " >&6
7224 else case e in #(
7225 e) if test -n "$STRIP"; then
7226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 case $as_dir in #(((
7233 '') as_dir=./ ;;
7234 */) ;;
7235 *) as_dir=$as_dir/ ;;
7236 esac
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243 done
7244 done
7245 IFS=$as_save_IFS
7246
7247 fi ;;
7248 esac
7249 fi
7250 STRIP=$ac_cv_prog_STRIP
7251 if test -n "$STRIP"; then
7252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7253 printf '%s\n' "$STRIP" >&6; }
7254 else
7255 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 printf '%s\n' "no" >&6; }
7257 fi
7258
7259
7260 fi
7261 if test -z "$ac_cv_prog_STRIP"; then
7262 ac_ct_STRIP=$STRIP
7263 # Extract the first word of "strip", so it can be a program name with args.
7264 set dummy strip; ac_word=$2
7265 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 printf %s "checking for $ac_word... " >&6; }
7267 if test ${ac_cv_prog_ac_ct_STRIP+y}
7268 then :
7269 printf %s "(cached) " >&6
7270 else case e in #(
7271 e) if test -n "$ac_ct_STRIP"; then
7272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7276 do
7277 IFS=$as_save_IFS
7278 case $as_dir in #(((
7279 '') as_dir=./ ;;
7280 */) ;;
7281 *) as_dir=$as_dir/ ;;
7282 esac
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_STRIP="strip"
7286 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi ;;
7294 esac
7295 fi
7296 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7297 if test -n "$ac_ct_STRIP"; then
7298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7299 printf '%s\n' "$ac_ct_STRIP" >&6; }
7300 else
7301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 printf '%s\n' "no" >&6; }
7303 fi
7304
7305 if test "x$ac_ct_STRIP" = x; then
7306 STRIP=":"
7307 else
7308 case $cross_compiling:$ac_tool_warned in
7309 yes:)
7310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7311 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7312 ac_tool_warned=yes ;;
7313 esac
7314 STRIP=$ac_ct_STRIP
7315 fi
7316 else
7317 STRIP="$ac_cv_prog_STRIP"
7318 fi
7319
7320 test -z "$STRIP" && STRIP=:
7321
7322
7323
7324
7325
7326
7327
7328 test -z "$RANLIB" && RANLIB=:
7329
7330
7331
7332
7333
7334
7335 # Determine commands to create old-style static archives.
7336 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7337 old_postinstall_cmds='chmod 644 $oldlib'
7338 old_postuninstall_cmds=
7339
7340 if test -n "$RANLIB"; then
7341 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7343 fi
7344
7345 case $host_os in
7346 darwin*)
7347 lock_old_archive_extraction=yes ;;
7348 *)
7349 lock_old_archive_extraction=no ;;
7350 esac
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 # If no C compiler was specified, use CC.
7391 LTCC=${LTCC-"$CC"}
7392
7393 # If no C compiler flags were specified, use CFLAGS.
7394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7395
7396 # Allow CC to be a program name with arguments.
7397 compiler=$CC
7398
7399
7400 # Check for command to grab the raw symbol name followed by C symbol from nm.
7401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7402 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7403 if test ${lt_cv_sys_global_symbol_pipe+y}
7404 then :
7405 printf %s "(cached) " >&6
7406 else case e in #(
7407 e)
7408 # These are sane defaults that work on at least a few old systems.
7409 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7410
7411 # Character class describing NM global symbol codes.
7412 symcode='[BCDEGRST]'
7413
7414 # Regexp to match symbols that can be accessed directly from C.
7415 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7416
7417 # Define system-specific variables.
7418 case $host_os in
7419 aix*)
7420 symcode='[BCDT]'
7421 ;;
7422 cygwin* | mingw* | windows* | pw32* | cegcc*)
7423 symcode='[ABCDGISTW]'
7424 ;;
7425 hpux*)
7426 if test ia64 = "$host_cpu"; then
7427 symcode='[ABCDEGRST]'
7428 fi
7429 ;;
7430 irix* | nonstopux*)
7431 symcode='[BCDEGRST]'
7432 ;;
7433 osf*)
7434 symcode='[BCDEGQRST]'
7435 ;;
7436 solaris*)
7437 symcode='[BCDRT]'
7438 ;;
7439 sco3.2v5*)
7440 symcode='[DT]'
7441 ;;
7442 sysv4.2uw2*)
7443 symcode='[DT]'
7444 ;;
7445 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7446 symcode='[ABDT]'
7447 ;;
7448 sysv4)
7449 symcode='[DFNSTU]'
7450 ;;
7451 esac
7452
7453 # If we're using GNU nm, then use its standard symbol codes.
7454 case `$NM -V 2>&1` in
7455 *GNU* | *'with BFD'*)
7456 symcode='[ABCDGIRSTW]' ;;
7457 esac
7458
7459 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7460 # Gets list of data symbols to import.
7461 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/\1/p'"
7462 # Adjust the below global symbol transforms to fixup imported variables.
7463 lt_cdecl_hook=" -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/extern __declspec(dllimport) char \1;/p'"
7464 lt_c_name_hook=" -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) 0},/p'"
7465 lt_c_name_lib_hook="\
7466 -e 's/^I .* \(lib[a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) 0},/p'\
7467 -e 's/^I .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"lib\1\", (void *) 0},/p'"
7468 else
7469 # Disable hooks by default.
7470 lt_cv_sys_global_symbol_to_import=
7471 lt_cdecl_hook=
7472 lt_c_name_hook=
7473 lt_c_name_lib_hook=
7474 fi
7475
7476 # Transform an extracted symbol line into a proper C declaration.
7477 # Some systems (esp. on ia64) link data and code symbols differently,
7478 # so use this general approach.
7479 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7480 $lt_cdecl_hook\
7481 " -e 's/^T .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/extern int \1();/p'"\
7482 " -e 's/^$symcode$symcode* .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/extern char \1;/p'"
7483
7484 # Transform an extracted symbol line into symbol name and symbol address
7485 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7486 $lt_c_name_hook\
7487 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7488 " -e 's/^$symcode$symcode* .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) \&\1},/p'"
7489
7490 # Transform an extracted symbol line into symbol name with lib prefix and
7491 # symbol address.
7492 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7493 $lt_c_name_lib_hook\
7494 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7495 " -e 's/^$symcode$symcode* .* \(lib[a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"\1\", (void *) \&\1},/p'"\
7496 " -e 's/^$symcode$symcode* .* \([a-zA-Z_][a-zA-Z0-9_]*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7497
7498 # Handle CRLF in mingw tool chain
7499 opt_cr=
7500 case $build_os in
7501 mingw* | windows*)
7502 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7503 ;;
7504 esac
7505
7506 # Try without a prefix underscore, then with it.
7507 for ac_symprfx in "" "_"; do
7508
7509 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7510 symxfrm="\\1 $ac_symprfx\\2 \\2"
7511
7512 # Write the raw and C identifiers.
7513 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7514 # Fake it for dumpbin and say T for any non-static function,
7515 # D for any global variable and I for any imported variable.
7516 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7517 # which start with @ or ?. And Cygwin gawk-4.1.4-3 and newer
7518 # treats input as binary, have to drop carriage return first.
7519 lt_cv_sys_global_symbol_pipe="$AWK '"\
7520 " {sub(/\\r\$/,\"\")};"\
7521 " {last_section=section; section=\$ 3};"\
7522 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7523 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7524 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7525 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7526 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7527 " \$ 0!~/External *\|/{next};"\
7528 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7529 " {if(hide[section]) next};"\
7530 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7531 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7532 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7533 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7534 " ' prfx=^$ac_symprfx"
7535 else
7536 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7537 fi
7538 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7539
7540 # Check to see that the pipe works correctly.
7541 pipe_works=no
7542
7543 rm -f conftest*
7544 cat > conftest.$ac_ext <<_LT_EOF
7545 #ifdef __cplusplus
7546 extern "C" {
7547 #endif
7548 char nm_test_var;
7549 void nm_test_func(void);
7550 void nm_test_func(void){}
7551 #ifdef __cplusplus
7552 }
7553 #endif
7554 int main(void){nm_test_var='a';nm_test_func();return(0);}
7555 _LT_EOF
7556
7557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558 (eval $ac_compile) 2>&5
7559 ac_status=$?
7560 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561 test $ac_status = 0; }; then
7562 # Now try to grab the symbols.
7563 nlist=conftest.nm
7564 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7565 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7566 # Try sorting and uniquifying the output.
7567 if sort "$nlist" | uniq > "$nlist"T; then
7568 mv -f "$nlist"T "$nlist"
7569 else
7570 rm -f "$nlist"T
7571 fi
7572
7573 # Make sure that we snagged all the symbols we need.
7574 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7575 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7576 cat <<_LT_EOF > conftest.$ac_ext
7577 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7578 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7579 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7580 relocations are performed -- see ld's documentation on pseudo-relocs. */
7581 # define LT_DLSYM_CONST
7582 #elif defined __osf__
7583 /* This system does not cope well with relocations in const data. */
7584 # define LT_DLSYM_CONST
7585 #else
7586 # define LT_DLSYM_CONST const
7587 #endif
7588
7589 #ifdef __cplusplus
7590 extern "C" {
7591 #endif
7592
7593 _LT_EOF
7594 # Now generate the symbol file.
7595 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7596
7597 cat <<_LT_EOF >> conftest.$ac_ext
7598
7599 /* The mapping between symbol names and symbols. */
7600 LT_DLSYM_CONST struct {
7601 const char *name;
7602 void *address;
7603 }
7604 lt__PROGRAM__LTX_preloaded_symbols[] =
7605 {
7606 { "@PROGRAM@", (void *) 0 },
7607 _LT_EOF
7608 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7609 cat <<\_LT_EOF >> conftest.$ac_ext
7610 {0, (void *) 0}
7611 };
7612
7613 /* This works around a problem in FreeBSD linker */
7614 #ifdef FREEBSD_WORKAROUND
7615 static const void *lt_preloaded_setup() {
7616 return lt__PROGRAM__LTX_preloaded_symbols;
7617 }
7618 #endif
7619
7620 #ifdef __cplusplus
7621 }
7622 #endif
7623 _LT_EOF
7624 # Now try linking the two files.
7625 mv conftest.$ac_objext conftstm.$ac_objext
7626 lt_globsym_save_LIBS=$LIBS
7627 lt_globsym_save_CFLAGS=$CFLAGS
7628 LIBS=conftstm.$ac_objext
7629 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7631 (eval $ac_link) 2>&5
7632 ac_status=$?
7633 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7635 pipe_works=yes
7636 fi
7637 LIBS=$lt_globsym_save_LIBS
7638 CFLAGS=$lt_globsym_save_CFLAGS
7639 else
7640 echo "cannot find nm_test_func in $nlist" >&5
7641 fi
7642 else
7643 echo "cannot find nm_test_var in $nlist" >&5
7644 fi
7645 else
7646 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7647 fi
7648 else
7649 echo "$progname: failed program was:" >&5
7650 cat conftest.$ac_ext >&5
7651 fi
7652 rm -rf conftest* conftst*
7653
7654 # Do not use the global_symbol_pipe unless it works.
7655 if test yes = "$pipe_works"; then
7656 break
7657 else
7658 lt_cv_sys_global_symbol_pipe=
7659 fi
7660 done
7661 ;;
7662 esac
7663 fi
7664
7665 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7666 lt_cv_sys_global_symbol_to_cdecl=
7667 fi
7668 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7670 printf '%s\n' "failed" >&6; }
7671 else
7672 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7673 printf '%s\n' "ok" >&6; }
7674 fi
7675
7676 # Response file support.
7677 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7678 nm_file_list_spec='@'
7679 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7680 nm_file_list_spec='@'
7681 fi
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7720 printf %s "checking for sysroot... " >&6; }
7721
7722 # Check whether --with-sysroot was given.
7723 if test ${with_sysroot+y}
7724 then :
7725 withval=$with_sysroot;
7726 else case e in #(
7727 e) with_sysroot=no ;;
7728 esac
7729 fi
7730
7731
7732 lt_sysroot=
7733 case $with_sysroot in #(
7734 yes)
7735 if test yes = "$GCC"; then
7736 # Trim trailing / since we'll always append absolute paths and we want
7737 # to avoid //, if only for less confusing output for the user.
7738 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7739 fi
7740 ;; #(
7741 /*)
7742 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7743 ;; #(
7744 no|'')
7745 ;; #(
7746 *)
7747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7748 printf '%s\n' "$with_sysroot" >&6; }
7749 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7750 ;;
7751 esac
7752
7753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7754 printf '%s\n' "${lt_sysroot:-no}" >&6; }
7755
7756
7757
7758
7759
7760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7761 printf %s "checking for a working dd... " >&6; }
7762 if test ${ac_cv_path_lt_DD+y}
7763 then :
7764 printf %s "(cached) " >&6
7765 else case e in #(
7766 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7767 cat conftest.i conftest.i >conftest2.i
7768 : ${lt_DD:=$DD}
7769 if test -z "$lt_DD"; then
7770 ac_path_lt_DD_found=false
7771 # Loop through the user's path and test for each of PROGNAME-LIST
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775 IFS=$as_save_IFS
7776 case $as_dir in #(((
7777 '') as_dir=./ ;;
7778 */) ;;
7779 *) as_dir=$as_dir/ ;;
7780 esac
7781 for ac_prog in dd
7782 do
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7785 as_fn_executable_p "$ac_path_lt_DD" || continue
7786 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7787 cmp -s conftest.i conftest.out \
7788 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7789 fi
7790 $ac_path_lt_DD_found && break 3
7791 done
7792 done
7793 done
7794 IFS=$as_save_IFS
7795 if test -z "$ac_cv_path_lt_DD"; then
7796 :
7797 fi
7798 else
7799 ac_cv_path_lt_DD=$lt_DD
7800 fi
7801
7802 rm -f conftest.i conftest2.i conftest.out ;;
7803 esac
7804 fi
7805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7806 printf '%s\n' "$ac_cv_path_lt_DD" >&6; }
7807
7808
7809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7810 printf %s "checking how to truncate binary pipes... " >&6; }
7811 if test ${lt_cv_truncate_bin+y}
7812 then :
7813 printf %s "(cached) " >&6
7814 else case e in #(
7815 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7816 cat conftest.i conftest.i >conftest2.i
7817 lt_cv_truncate_bin=
7818 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7819 cmp -s conftest.i conftest.out \
7820 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7821 fi
7822 rm -f conftest.i conftest2.i conftest.out
7823 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7824 esac
7825 fi
7826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7827 printf '%s\n' "$lt_cv_truncate_bin" >&6; }
7828
7829
7830
7831
7832
7833
7834
7835 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7836 func_cc_basename ()
7837 {
7838 for cc_temp in $*""; do
7839 case $cc_temp in
7840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7842 \-*) ;;
7843 *) break;;
7844 esac
7845 done
7846 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7847 }
7848
7849 # Check whether --enable-libtool-lock was given.
7850 if test ${enable_libtool_lock+y}
7851 then :
7852 enableval=$enable_libtool_lock;
7853 fi
7854
7855 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7856
7857 # Some flags need to be propagated to the compiler or linker for good
7858 # libtool support.
7859 case $host in
7860 ia64-*-hpux*)
7861 # Find out what ABI is being produced by ac_compile, and set mode
7862 # options accordingly.
7863 echo 'int i;' > conftest.$ac_ext
7864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865 (eval $ac_compile) 2>&5
7866 ac_status=$?
7867 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }; then
7869 case `$FILECMD conftest.$ac_objext` in
7870 *ELF-32*)
7871 HPUX_IA64_MODE=32
7872 ;;
7873 *ELF-64*)
7874 HPUX_IA64_MODE=64
7875 ;;
7876 esac
7877 fi
7878 rm -rf conftest*
7879 ;;
7880 *-*-irix6*)
7881 # Find out what ABI is being produced by ac_compile, and set linker
7882 # options accordingly.
7883 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885 (eval $ac_compile) 2>&5
7886 ac_status=$?
7887 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888 test $ac_status = 0; }; then
7889 if test yes = "$lt_cv_prog_gnu_ld"; then
7890 case `$FILECMD conftest.$ac_objext` in
7891 *32-bit*)
7892 LD="${LD-ld} -melf32bsmip"
7893 ;;
7894 *N32*)
7895 LD="${LD-ld} -melf32bmipn32"
7896 ;;
7897 *64-bit*)
7898 LD="${LD-ld} -melf64bmip"
7899 ;;
7900 esac
7901 else
7902 case `$FILECMD conftest.$ac_objext` in
7903 *32-bit*)
7904 LD="${LD-ld} -32"
7905 ;;
7906 *N32*)
7907 LD="${LD-ld} -n32"
7908 ;;
7909 *64-bit*)
7910 LD="${LD-ld} -64"
7911 ;;
7912 esac
7913 fi
7914 fi
7915 rm -rf conftest*
7916 ;;
7917
7918 mips64*-*linux*)
7919 # Find out what ABI is being produced by ac_compile, and set linker
7920 # options accordingly.
7921 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923 (eval $ac_compile) 2>&5
7924 ac_status=$?
7925 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 test $ac_status = 0; }; then
7927 emul=elf
7928 case `$FILECMD conftest.$ac_objext` in
7929 *32-bit*)
7930 emul="${emul}32"
7931 ;;
7932 *64-bit*)
7933 emul="${emul}64"
7934 ;;
7935 esac
7936 case `$FILECMD conftest.$ac_objext` in
7937 *MSB*)
7938 emul="${emul}btsmip"
7939 ;;
7940 *LSB*)
7941 emul="${emul}ltsmip"
7942 ;;
7943 esac
7944 case `$FILECMD conftest.$ac_objext` in
7945 *N32*)
7946 emul="${emul}n32"
7947 ;;
7948 esac
7949 LD="${LD-ld} -m $emul"
7950 fi
7951 rm -rf conftest*
7952 ;;
7953
7954 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7955 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7956 # Find out what ABI is being produced by ac_compile, and set linker
7957 # options accordingly. Note that the listed cases only cover the
7958 # situations where additional linker options are needed (such as when
7959 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7960 # vice versa); the common cases where no linker options are needed do
7961 # not appear in the list.
7962 echo 'int i;' > conftest.$ac_ext
7963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7964 (eval $ac_compile) 2>&5
7965 ac_status=$?
7966 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7967 test $ac_status = 0; }; then
7968 case `$FILECMD conftest.o` in
7969 *32-bit*)
7970 case $host in
7971 x86_64-*kfreebsd*-gnu)
7972 LD="${LD-ld} -m elf_i386_fbsd"
7973 ;;
7974 x86_64-*linux*|x86_64-gnu*)
7975 case `$FILECMD conftest.o` in
7976 *x86-64*)
7977 LD="${LD-ld} -m elf32_x86_64"
7978 ;;
7979 *)
7980 LD="${LD-ld} -m elf_i386"
7981 ;;
7982 esac
7983 ;;
7984 powerpc64le-*linux*)
7985 LD="${LD-ld} -m elf32lppclinux"
7986 ;;
7987 powerpc64-*linux*)
7988 LD="${LD-ld} -m elf32ppclinux"
7989 ;;
7990 s390x-*linux*)
7991 LD="${LD-ld} -m elf_s390"
7992 ;;
7993 sparc64-*linux*)
7994 LD="${LD-ld} -m elf32_sparc"
7995 ;;
7996 esac
7997 ;;
7998 *64-bit*)
7999 case $host in
8000 x86_64-*kfreebsd*-gnu)
8001 LD="${LD-ld} -m elf_x86_64_fbsd"
8002 ;;
8003 x86_64-*linux*|x86_64-gnu*)
8004 LD="${LD-ld} -m elf_x86_64"
8005 ;;
8006 powerpcle-*linux*)
8007 LD="${LD-ld} -m elf64lppc"
8008 ;;
8009 powerpc-*linux*)
8010 LD="${LD-ld} -m elf64ppc"
8011 ;;
8012 s390*-*linux*|s390*-*tpf*)
8013 LD="${LD-ld} -m elf64_s390"
8014 ;;
8015 sparc*-*linux*)
8016 LD="${LD-ld} -m elf64_sparc"
8017 ;;
8018 esac
8019 ;;
8020 esac
8021 fi
8022 rm -rf conftest*
8023 ;;
8024
8025 *-*-sco3.2v5*)
8026 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8027 SAVE_CFLAGS=$CFLAGS
8028 CFLAGS="$CFLAGS -belf"
8029 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8030 printf %s "checking whether the C compiler needs -belf... " >&6; }
8031 if test ${lt_cv_cc_needs_belf+y}
8032 then :
8033 printf %s "(cached) " >&6
8034 else case e in #(
8035 e) ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043
8044 int
8045 main (void)
8046 {
8047
8048 ;
8049 return 0;
8050 }
8051 _ACEOF
8052 if ac_fn_c_try_link "$LINENO"
8053 then :
8054 lt_cv_cc_needs_belf=yes
8055 else case e in #(
8056 e) lt_cv_cc_needs_belf=no ;;
8057 esac
8058 fi
8059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8060 conftest$ac_exeext conftest.$ac_ext
8061 ac_ext=c
8062 ac_cpp='$CPP $CPPFLAGS'
8063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8066 ;;
8067 esac
8068 fi
8069 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8070 printf '%s\n' "$lt_cv_cc_needs_belf" >&6; }
8071 if test yes != "$lt_cv_cc_needs_belf"; then
8072 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8073 CFLAGS=$SAVE_CFLAGS
8074 fi
8075 ;;
8076 *-*solaris*)
8077 # Find out what ABI is being produced by ac_compile, and set linker
8078 # options accordingly.
8079 echo 'int i;' > conftest.$ac_ext
8080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081 (eval $ac_compile) 2>&5
8082 ac_status=$?
8083 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }; then
8085 case `$FILECMD conftest.o` in
8086 *64-bit*)
8087 case $lt_cv_prog_gnu_ld in
8088 yes*)
8089 case $host in
8090 i?86-*-solaris*|x86_64-*-solaris*)
8091 LD="${LD-ld} -m elf_x86_64"
8092 ;;
8093 sparc*-*-solaris*)
8094 LD="${LD-ld} -m elf64_sparc"
8095 ;;
8096 esac
8097 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8098 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8099 LD=${LD-ld}_sol2
8100 fi
8101 ;;
8102 *)
8103 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8104 LD="${LD-ld} -64"
8105 fi
8106 ;;
8107 esac
8108 ;;
8109 esac
8110 fi
8111 rm -rf conftest*
8112 ;;
8113 esac
8114
8115 need_locks=$enable_libtool_lock
8116
8117 if test -n "$ac_tool_prefix"; then
8118 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8119 set dummy ${ac_tool_prefix}mt; ac_word=$2
8120 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 printf %s "checking for $ac_word... " >&6; }
8122 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8123 then :
8124 printf %s "(cached) " >&6
8125 else case e in #(
8126 e) if test -n "$MANIFEST_TOOL"; then
8127 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8128 else
8129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 for as_dir in $PATH
8131 do
8132 IFS=$as_save_IFS
8133 case $as_dir in #(((
8134 '') as_dir=./ ;;
8135 */) ;;
8136 *) as_dir=$as_dir/ ;;
8137 esac
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8141 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8142 break 2
8143 fi
8144 done
8145 done
8146 IFS=$as_save_IFS
8147
8148 fi ;;
8149 esac
8150 fi
8151 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8152 if test -n "$MANIFEST_TOOL"; then
8153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8154 printf '%s\n' "$MANIFEST_TOOL" >&6; }
8155 else
8156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 printf '%s\n' "no" >&6; }
8158 fi
8159
8160
8161 fi
8162 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8163 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8164 # Extract the first word of "mt", so it can be a program name with args.
8165 set dummy mt; ac_word=$2
8166 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 printf %s "checking for $ac_word... " >&6; }
8168 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8169 then :
8170 printf %s "(cached) " >&6
8171 else case e in #(
8172 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8173 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8177 do
8178 IFS=$as_save_IFS
8179 case $as_dir in #(((
8180 '') as_dir=./ ;;
8181 */) ;;
8182 *) as_dir=$as_dir/ ;;
8183 esac
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8187 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8188 break 2
8189 fi
8190 done
8191 done
8192 IFS=$as_save_IFS
8193
8194 fi ;;
8195 esac
8196 fi
8197 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8198 if test -n "$ac_ct_MANIFEST_TOOL"; then
8199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8200 printf '%s\n' "$ac_ct_MANIFEST_TOOL" >&6; }
8201 else
8202 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 printf '%s\n' "no" >&6; }
8204 fi
8205
8206 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8207 MANIFEST_TOOL=":"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210 yes:)
8211 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213 ac_tool_warned=yes ;;
8214 esac
8215 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8216 fi
8217 else
8218 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8219 fi
8220
8221 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8222 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8223 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8224 if test ${lt_cv_path_manifest_tool+y}
8225 then :
8226 printf %s "(cached) " >&6
8227 else case e in #(
8228 e) lt_cv_path_manifest_tool=no
8229 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8230 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8231 cat conftest.err >&5
8232 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8233 lt_cv_path_manifest_tool=yes
8234 fi
8235 rm -f conftest* ;;
8236 esac
8237 fi
8238 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8239 printf '%s\n' "$lt_cv_path_manifest_tool" >&6; }
8240 if test yes != "$lt_cv_path_manifest_tool"; then
8241 MANIFEST_TOOL=:
8242 fi
8243
8244
8245
8246
8247
8248
8249 case $host_os in
8250 rhapsody* | darwin*)
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 printf %s "checking for $ac_word... " >&6; }
8256 if test ${ac_cv_prog_DSYMUTIL+y}
8257 then :
8258 printf %s "(cached) " >&6
8259 else case e in #(
8260 e) if test -n "$DSYMUTIL"; then
8261 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8262 else
8263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 for as_dir in $PATH
8265 do
8266 IFS=$as_save_IFS
8267 case $as_dir in #(((
8268 '') as_dir=./ ;;
8269 */) ;;
8270 *) as_dir=$as_dir/ ;;
8271 esac
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8275 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8276 break 2
8277 fi
8278 done
8279 done
8280 IFS=$as_save_IFS
8281
8282 fi ;;
8283 esac
8284 fi
8285 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8286 if test -n "$DSYMUTIL"; then
8287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8288 printf '%s\n' "$DSYMUTIL" >&6; }
8289 else
8290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 printf '%s\n' "no" >&6; }
8292 fi
8293
8294
8295 fi
8296 if test -z "$ac_cv_prog_DSYMUTIL"; then
8297 ac_ct_DSYMUTIL=$DSYMUTIL
8298 # Extract the first word of "dsymutil", so it can be a program name with args.
8299 set dummy dsymutil; ac_word=$2
8300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8303 then :
8304 printf %s "(cached) " >&6
8305 else case e in #(
8306 e) if test -n "$ac_ct_DSYMUTIL"; then
8307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 case $as_dir in #(((
8314 '') as_dir=./ ;;
8315 */) ;;
8316 *) as_dir=$as_dir/ ;;
8317 esac
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8321 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi ;;
8329 esac
8330 fi
8331 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8332 if test -n "$ac_ct_DSYMUTIL"; then
8333 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8334 printf '%s\n' "$ac_ct_DSYMUTIL" >&6; }
8335 else
8336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 printf '%s\n' "no" >&6; }
8338 fi
8339
8340 if test "x$ac_ct_DSYMUTIL" = x; then
8341 DSYMUTIL=":"
8342 else
8343 case $cross_compiling:$ac_tool_warned in
8344 yes:)
8345 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349 DSYMUTIL=$ac_ct_DSYMUTIL
8350 fi
8351 else
8352 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8353 fi
8354
8355 if test -n "$ac_tool_prefix"; then
8356 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8357 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8358 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 printf %s "checking for $ac_word... " >&6; }
8360 if test ${ac_cv_prog_NMEDIT+y}
8361 then :
8362 printf %s "(cached) " >&6
8363 else case e in #(
8364 e) if test -n "$NMEDIT"; then
8365 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370 IFS=$as_save_IFS
8371 case $as_dir in #(((
8372 '') as_dir=./ ;;
8373 */) ;;
8374 *) as_dir=$as_dir/ ;;
8375 esac
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8379 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi ;;
8387 esac
8388 fi
8389 NMEDIT=$ac_cv_prog_NMEDIT
8390 if test -n "$NMEDIT"; then
8391 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8392 printf '%s\n' "$NMEDIT" >&6; }
8393 else
8394 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 printf '%s\n' "no" >&6; }
8396 fi
8397
8398
8399 fi
8400 if test -z "$ac_cv_prog_NMEDIT"; then
8401 ac_ct_NMEDIT=$NMEDIT
8402 # Extract the first word of "nmedit", so it can be a program name with args.
8403 set dummy nmedit; ac_word=$2
8404 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 printf %s "checking for $ac_word... " >&6; }
8406 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8407 then :
8408 printf %s "(cached) " >&6
8409 else case e in #(
8410 e) if test -n "$ac_ct_NMEDIT"; then
8411 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8415 do
8416 IFS=$as_save_IFS
8417 case $as_dir in #(((
8418 '') as_dir=./ ;;
8419 */) ;;
8420 *) as_dir=$as_dir/ ;;
8421 esac
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8424 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8425 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8426 break 2
8427 fi
8428 done
8429 done
8430 IFS=$as_save_IFS
8431
8432 fi ;;
8433 esac
8434 fi
8435 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8436 if test -n "$ac_ct_NMEDIT"; then
8437 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8438 printf '%s\n' "$ac_ct_NMEDIT" >&6; }
8439 else
8440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 printf '%s\n' "no" >&6; }
8442 fi
8443
8444 if test "x$ac_ct_NMEDIT" = x; then
8445 NMEDIT=":"
8446 else
8447 case $cross_compiling:$ac_tool_warned in
8448 yes:)
8449 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8450 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8451 ac_tool_warned=yes ;;
8452 esac
8453 NMEDIT=$ac_ct_NMEDIT
8454 fi
8455 else
8456 NMEDIT="$ac_cv_prog_NMEDIT"
8457 fi
8458
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 printf %s "checking for $ac_word... " >&6; }
8464 if test ${ac_cv_prog_LIPO+y}
8465 then :
8466 printf %s "(cached) " >&6
8467 else case e in #(
8468 e) if test -n "$LIPO"; then
8469 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474 IFS=$as_save_IFS
8475 case $as_dir in #(((
8476 '') as_dir=./ ;;
8477 */) ;;
8478 *) as_dir=$as_dir/ ;;
8479 esac
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8482 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8483 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8484 break 2
8485 fi
8486 done
8487 done
8488 IFS=$as_save_IFS
8489
8490 fi ;;
8491 esac
8492 fi
8493 LIPO=$ac_cv_prog_LIPO
8494 if test -n "$LIPO"; then
8495 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8496 printf '%s\n' "$LIPO" >&6; }
8497 else
8498 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 printf '%s\n' "no" >&6; }
8500 fi
8501
8502
8503 fi
8504 if test -z "$ac_cv_prog_LIPO"; then
8505 ac_ct_LIPO=$LIPO
8506 # Extract the first word of "lipo", so it can be a program name with args.
8507 set dummy lipo; ac_word=$2
8508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 printf %s "checking for $ac_word... " >&6; }
8510 if test ${ac_cv_prog_ac_ct_LIPO+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else case e in #(
8514 e) if test -n "$ac_ct_LIPO"; then
8515 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8516 else
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8519 do
8520 IFS=$as_save_IFS
8521 case $as_dir in #(((
8522 '') as_dir=./ ;;
8523 */) ;;
8524 *) as_dir=$as_dir/ ;;
8525 esac
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_ac_ct_LIPO="lipo"
8529 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532 done
8533 done
8534 IFS=$as_save_IFS
8535
8536 fi ;;
8537 esac
8538 fi
8539 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8540 if test -n "$ac_ct_LIPO"; then
8541 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8542 printf '%s\n' "$ac_ct_LIPO" >&6; }
8543 else
8544 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 printf '%s\n' "no" >&6; }
8546 fi
8547
8548 if test "x$ac_ct_LIPO" = x; then
8549 LIPO=":"
8550 else
8551 case $cross_compiling:$ac_tool_warned in
8552 yes:)
8553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8554 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8555 ac_tool_warned=yes ;;
8556 esac
8557 LIPO=$ac_ct_LIPO
8558 fi
8559 else
8560 LIPO="$ac_cv_prog_LIPO"
8561 fi
8562
8563 if test -n "$ac_tool_prefix"; then
8564 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8565 set dummy ${ac_tool_prefix}otool; ac_word=$2
8566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 printf %s "checking for $ac_word... " >&6; }
8568 if test ${ac_cv_prog_OTOOL+y}
8569 then :
8570 printf %s "(cached) " >&6
8571 else case e in #(
8572 e) if test -n "$OTOOL"; then
8573 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8574 else
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8577 do
8578 IFS=$as_save_IFS
8579 case $as_dir in #(((
8580 '') as_dir=./ ;;
8581 */) ;;
8582 *) as_dir=$as_dir/ ;;
8583 esac
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8586 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8587 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8588 break 2
8589 fi
8590 done
8591 done
8592 IFS=$as_save_IFS
8593
8594 fi ;;
8595 esac
8596 fi
8597 OTOOL=$ac_cv_prog_OTOOL
8598 if test -n "$OTOOL"; then
8599 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8600 printf '%s\n' "$OTOOL" >&6; }
8601 else
8602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 printf '%s\n' "no" >&6; }
8604 fi
8605
8606
8607 fi
8608 if test -z "$ac_cv_prog_OTOOL"; then
8609 ac_ct_OTOOL=$OTOOL
8610 # Extract the first word of "otool", so it can be a program name with args.
8611 set dummy otool; ac_word=$2
8612 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613 printf %s "checking for $ac_word... " >&6; }
8614 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8615 then :
8616 printf %s "(cached) " >&6
8617 else case e in #(
8618 e) if test -n "$ac_ct_OTOOL"; then
8619 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8620 else
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624 IFS=$as_save_IFS
8625 case $as_dir in #(((
8626 '') as_dir=./ ;;
8627 */) ;;
8628 *) as_dir=$as_dir/ ;;
8629 esac
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8632 ac_cv_prog_ac_ct_OTOOL="otool"
8633 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8634 break 2
8635 fi
8636 done
8637 done
8638 IFS=$as_save_IFS
8639
8640 fi ;;
8641 esac
8642 fi
8643 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8644 if test -n "$ac_ct_OTOOL"; then
8645 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8646 printf '%s\n' "$ac_ct_OTOOL" >&6; }
8647 else
8648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 printf '%s\n' "no" >&6; }
8650 fi
8651
8652 if test "x$ac_ct_OTOOL" = x; then
8653 OTOOL=":"
8654 else
8655 case $cross_compiling:$ac_tool_warned in
8656 yes:)
8657 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8658 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8659 ac_tool_warned=yes ;;
8660 esac
8661 OTOOL=$ac_ct_OTOOL
8662 fi
8663 else
8664 OTOOL="$ac_cv_prog_OTOOL"
8665 fi
8666
8667 if test -n "$ac_tool_prefix"; then
8668 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8669 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8670 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8671 printf %s "checking for $ac_word... " >&6; }
8672 if test ${ac_cv_prog_OTOOL64+y}
8673 then :
8674 printf %s "(cached) " >&6
8675 else case e in #(
8676 e) if test -n "$OTOOL64"; then
8677 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682 IFS=$as_save_IFS
8683 case $as_dir in #(((
8684 '') as_dir=./ ;;
8685 */) ;;
8686 *) as_dir=$as_dir/ ;;
8687 esac
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8691 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694 done
8695 done
8696 IFS=$as_save_IFS
8697
8698 fi ;;
8699 esac
8700 fi
8701 OTOOL64=$ac_cv_prog_OTOOL64
8702 if test -n "$OTOOL64"; then
8703 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8704 printf '%s\n' "$OTOOL64" >&6; }
8705 else
8706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 printf '%s\n' "no" >&6; }
8708 fi
8709
8710
8711 fi
8712 if test -z "$ac_cv_prog_OTOOL64"; then
8713 ac_ct_OTOOL64=$OTOOL64
8714 # Extract the first word of "otool64", so it can be a program name with args.
8715 set dummy otool64; ac_word=$2
8716 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8717 printf %s "checking for $ac_word... " >&6; }
8718 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8719 then :
8720 printf %s "(cached) " >&6
8721 else case e in #(
8722 e) if test -n "$ac_ct_OTOOL64"; then
8723 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8724 else
8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726 for as_dir in $PATH
8727 do
8728 IFS=$as_save_IFS
8729 case $as_dir in #(((
8730 '') as_dir=./ ;;
8731 */) ;;
8732 *) as_dir=$as_dir/ ;;
8733 esac
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_ac_ct_OTOOL64="otool64"
8737 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8738 break 2
8739 fi
8740 done
8741 done
8742 IFS=$as_save_IFS
8743
8744 fi ;;
8745 esac
8746 fi
8747 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8748 if test -n "$ac_ct_OTOOL64"; then
8749 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8750 printf '%s\n' "$ac_ct_OTOOL64" >&6; }
8751 else
8752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 printf '%s\n' "no" >&6; }
8754 fi
8755
8756 if test "x$ac_ct_OTOOL64" = x; then
8757 OTOOL64=":"
8758 else
8759 case $cross_compiling:$ac_tool_warned in
8760 yes:)
8761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8762 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8763 ac_tool_warned=yes ;;
8764 esac
8765 OTOOL64=$ac_ct_OTOOL64
8766 fi
8767 else
8768 OTOOL64="$ac_cv_prog_OTOOL64"
8769 fi
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8798 printf %s "checking for -single_module linker flag... " >&6; }
8799 if test ${lt_cv_apple_cc_single_mod+y}
8800 then :
8801 printf %s "(cached) " >&6
8802 else case e in #(
8803 e) lt_cv_apple_cc_single_mod=no
8804 if test -z "$LT_MULTI_MODULE"; then
8805 # By default we will add the -single_module flag. You can override
8806 # by either setting the environment variable LT_MULTI_MODULE
8807 # non-empty at configure time, or by adding -multi_module to the
8808 # link flags.
8809 rm -rf libconftest.dylib*
8810 echo "int foo(void){return 1;}" > conftest.c
8811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8812 -dynamiclib -Wl,-single_module conftest.c" >&5
8813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8815 _lt_result=$?
8816 # If there is a non-empty error log, and "single_module"
8817 # appears in it, assume the flag caused a linker warning
8818 if test -s conftest.err && $GREP single_module conftest.err; then
8819 cat conftest.err >&5
8820 # Otherwise, if the output was created with a 0 exit code from
8821 # the compiler, it worked.
8822 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8823 lt_cv_apple_cc_single_mod=yes
8824 else
8825 cat conftest.err >&5
8826 fi
8827 rm -rf libconftest.dylib*
8828 rm -f conftest.*
8829 fi ;;
8830 esac
8831 fi
8832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8833 printf '%s\n' "$lt_cv_apple_cc_single_mod" >&6; }
8834
8835 # Feature test to disable chained fixups since it is not
8836 # compatible with '-undefined dynamic_lookup'
8837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8838 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8839 if test ${lt_cv_support_no_fixup_chains+y}
8840 then :
8841 printf %s "(cached) " >&6
8842 else case e in #(
8843 e) save_LDFLAGS=$LDFLAGS
8844 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847
8848 int
8849 main (void)
8850 {
8851
8852 ;
8853 return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_c_try_link "$LINENO"
8857 then :
8858 lt_cv_support_no_fixup_chains=yes
8859 else case e in #(
8860 e) lt_cv_support_no_fixup_chains=no
8861 ;;
8862 esac
8863 fi
8864 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8865 conftest$ac_exeext conftest.$ac_ext
8866 LDFLAGS=$save_LDFLAGS
8867
8868 ;;
8869 esac
8870 fi
8871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8872 printf '%s\n' "$lt_cv_support_no_fixup_chains" >&6; }
8873
8874 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8875 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8876 if test ${lt_cv_ld_exported_symbols_list+y}
8877 then :
8878 printf %s "(cached) " >&6
8879 else case e in #(
8880 e) lt_cv_ld_exported_symbols_list=no
8881 save_LDFLAGS=$LDFLAGS
8882 echo "_main" > conftest.sym
8883 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886
8887 int
8888 main (void)
8889 {
8890
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_link "$LINENO"
8896 then :
8897 lt_cv_ld_exported_symbols_list=yes
8898 else case e in #(
8899 e) lt_cv_ld_exported_symbols_list=no ;;
8900 esac
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8903 conftest$ac_exeext conftest.$ac_ext
8904 LDFLAGS=$save_LDFLAGS
8905 ;;
8906 esac
8907 fi
8908 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8909 printf '%s\n' "$lt_cv_ld_exported_symbols_list" >&6; }
8910
8911 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8912 printf %s "checking for -force_load linker flag... " >&6; }
8913 if test ${lt_cv_ld_force_load+y}
8914 then :
8915 printf %s "(cached) " >&6
8916 else case e in #(
8917 e) lt_cv_ld_force_load=no
8918 cat > conftest.c << _LT_EOF
8919 int forced_loaded() { return 2;}
8920 _LT_EOF
8921 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8922 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8923 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8924 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8925 echo "$RANLIB libconftest.a" >&5
8926 $RANLIB libconftest.a 2>&5
8927 cat > conftest.c << _LT_EOF
8928 int main(void) { return 0;}
8929 _LT_EOF
8930 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8931 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8932 _lt_result=$?
8933 if test -s conftest.err && $GREP force_load conftest.err; then
8934 cat conftest.err >&5
8935 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8936 lt_cv_ld_force_load=yes
8937 else
8938 cat conftest.err >&5
8939 fi
8940 rm -f conftest.err libconftest.a conftest conftest.c
8941 rm -rf conftest.dSYM
8942 ;;
8943 esac
8944 fi
8945 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8946 printf '%s\n' "$lt_cv_ld_force_load" >&6; }
8947 case $host_os in
8948 rhapsody* | darwin1.[012])
8949 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8950 darwin1.*)
8951 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8952 darwin*)
8953 case $MACOSX_DEPLOYMENT_TARGET,$host in
8954 10.[012],*|,*powerpc*-darwin[5-8]*)
8955 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8956 *)
8957 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8958 if test yes = "$lt_cv_support_no_fixup_chains"; then
8959 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8960 fi
8961 ;;
8962 esac
8963 ;;
8964 esac
8965 if test yes = "$lt_cv_apple_cc_single_mod"; then
8966 _lt_dar_single_mod='$single_module'
8967 fi
8968 _lt_dar_needs_single_mod=no
8969 case $host_os in
8970 rhapsody* | darwin1.*)
8971 _lt_dar_needs_single_mod=yes ;;
8972 darwin*)
8973 # When targeting Mac OS X 10.4 (darwin 8) or later,
8974 # -single_module is the default and -multi_module is unsupported.
8975 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8976 # target any OS version that needs -single_module.
8977 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8978 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8979 _lt_dar_needs_single_mod=yes ;;
8980 esac
8981 ;;
8982 esac
8983 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8984 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8985 else
8986 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8987 fi
8988 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8989 _lt_dsymutil='~$DSYMUTIL $lib || :'
8990 else
8991 _lt_dsymutil=
8992 fi
8993 ;;
8994 esac
8995
8996 # func_munge_path_list VARIABLE PATH
8997 # -----------------------------------
8998 # VARIABLE is name of variable containing _space_ separated list of
8999 # directories to be munged by the contents of PATH, which is string
9000 # having a format:
9001 # "DIR[:DIR]:"
9002 # string "DIR[ DIR]" will be prepended to VARIABLE
9003 # ":DIR[:DIR]"
9004 # string "DIR[ DIR]" will be appended to VARIABLE
9005 # "DIRP[:DIRP]::[DIRA:]DIRA"
9006 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9007 # "DIRA[ DIRA]" will be appended to VARIABLE
9008 # "DIR[:DIR]"
9009 # VARIABLE will be replaced by "DIR[ DIR]"
9010 func_munge_path_list ()
9011 {
9012 case x$2 in
9013 x)
9014 ;;
9015 *:)
9016 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9017 ;;
9018 x:*)
9019 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9020 ;;
9021 *::*)
9022 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9023 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9024 ;;
9025 *)
9026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9027 ;;
9028 esac
9029 }
9030
9031 ac_header= ac_cache=
9032 for ac_item in $ac_header_c_list
9033 do
9034 if test $ac_cache; then
9035 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9036 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9037 printf '%s\n' "#define $ac_item 1" >> confdefs.h
9038 fi
9039 ac_header= ac_cache=
9040 elif test $ac_header; then
9041 ac_cache=$ac_item
9042 else
9043 ac_header=$ac_item
9044 fi
9045 done
9046
9047
9048
9049
9050
9051
9052
9053
9054 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9055 then :
9056
9057 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
9058
9059 fi
9060 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9061 "
9062 if test "x$ac_cv_header_dlfcn_h" = xyes
9063 then :
9064 printf '%s\n' "#define HAVE_DLFCN_H 1" >>confdefs.h
9065
9066 fi
9067
9068
9069
9070
9071
9072 # Set options
9073
9074
9075
9076 enable_dlopen=no
9077
9078
9079 enable_win32_dll=no
9080
9081
9082 # Check whether --enable-shared was given.
9083 if test ${enable_shared+y}
9084 then :
9085 enableval=$enable_shared; p=${PACKAGE-default}
9086 case $enableval in
9087 yes) enable_shared=yes ;;
9088 no) enable_shared=no ;;
9089 *)
9090 enable_shared=no
9091 # Look at the argument we got. We use all the common list separators.
9092 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9093 for pkg in $enableval; do
9094 IFS=$lt_save_ifs
9095 if test "X$pkg" = "X$p"; then
9096 enable_shared=yes
9097 fi
9098 done
9099 IFS=$lt_save_ifs
9100 ;;
9101 esac
9102 else case e in #(
9103 e) enable_shared=yes ;;
9104 esac
9105 fi
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115 # Check whether --enable-static was given.
9116 if test ${enable_static+y}
9117 then :
9118 enableval=$enable_static; p=${PACKAGE-default}
9119 case $enableval in
9120 yes) enable_static=yes ;;
9121 no) enable_static=no ;;
9122 *)
9123 enable_static=no
9124 # Look at the argument we got. We use all the common list separators.
9125 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9126 for pkg in $enableval; do
9127 IFS=$lt_save_ifs
9128 if test "X$pkg" = "X$p"; then
9129 enable_static=yes
9130 fi
9131 done
9132 IFS=$lt_save_ifs
9133 ;;
9134 esac
9135 else case e in #(
9136 e) enable_static=yes ;;
9137 esac
9138 fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 # Check whether --enable-pic was given.
9149 if test ${enable_pic+y}
9150 then :
9151 enableval=$enable_pic; lt_p=${PACKAGE-default}
9152 case $enableval in
9153 yes|no) pic_mode=$enableval ;;
9154 *)
9155 pic_mode=default
9156 # Look at the argument we got. We use all the common list separators.
9157 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9158 for lt_pkg in $enableval; do
9159 IFS=$lt_save_ifs
9160 if test "X$lt_pkg" = "X$lt_p"; then
9161 pic_mode=yes
9162 fi
9163 done
9164 IFS=$lt_save_ifs
9165 ;;
9166 esac
9167 else case e in #(
9168 e) # Check whether --with-pic was given.
9169 if test ${with_pic+y}
9170 then :
9171 withval=$with_pic; lt_p=${PACKAGE-default}
9172 case $withval in
9173 yes|no) pic_mode=$withval ;;
9174 *)
9175 pic_mode=default
9176 # Look at the argument we got. We use all the common list separators.
9177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9178 for lt_pkg in $withval; do
9179 IFS=$lt_save_ifs
9180 if test "X$lt_pkg" = "X$lt_p"; then
9181 pic_mode=yes
9182 fi
9183 done
9184 IFS=$lt_save_ifs
9185 ;;
9186 esac
9187 else case e in #(
9188 e) pic_mode=default ;;
9189 esac
9190 fi
9191
9192 ;;
9193 esac
9194 fi
9195
9196
9197
9198
9199
9200
9201
9202
9203 stdlibflag=-nostdlib
9204 # Check whether --enable-cxx-stdlib was given.
9205 if test ${enable_cxx_stdlib+y}
9206 then :
9207 enableval=$enable_cxx_stdlib; p=${PACKAGE-default}
9208 case $enableval in
9209 yes) enable_cxx_stdlib=yes ;;
9210 no) enable_cxx_stdlib=no ;;
9211 *)
9212 enable_cxx_stdlib=no
9213 # Look at the argument we got. We use all the common list separators.
9214 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9215 for pkg in $enableval; do
9216 IFS=$lt_save_ifs
9217 if test "X$pkg" = "X$p"; then
9218 enable_cxx_stdlib=yes
9219 fi
9220 done
9221 IFS=$lt_save_ifs
9222 ;;
9223 esac
9224 else case e in #(
9225 e) enable_cxx_stdlib=no ;;
9226 esac
9227 fi
9228
9229
9230 if test yes = "$enable_cxx_stdlib"; then
9231 stdlibflag=
9232 fi
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244 # Check whether --enable-fast-install was given.
9245 if test ${enable_fast_install+y}
9246 then :
9247 enableval=$enable_fast_install; p=${PACKAGE-default}
9248 case $enableval in
9249 yes) enable_fast_install=yes ;;
9250 no) enable_fast_install=no ;;
9251 *)
9252 enable_fast_install=no
9253 # Look at the argument we got. We use all the common list separators.
9254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9255 for pkg in $enableval; do
9256 IFS=$lt_save_ifs
9257 if test "X$pkg" = "X$p"; then
9258 enable_fast_install=yes
9259 fi
9260 done
9261 IFS=$lt_save_ifs
9262 ;;
9263 esac
9264 else case e in #(
9265 e) enable_fast_install=yes ;;
9266 esac
9267 fi
9268
9269
9270
9271
9272
9273
9274
9275
9276 shared_archive_member_spec=
9277 case $host,$enable_shared in
9278 power*-*-aix[5-9]*,yes)
9279 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9280 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9281 # Check whether --enable-aix-soname was given.
9282 if test ${enable_aix_soname+y}
9283 then :
9284 enableval=$enable_aix_soname; case $enableval in
9285 aix|svr4|both)
9286 ;;
9287 *)
9288 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9289 ;;
9290 esac
9291 lt_cv_with_aix_soname=$enable_aix_soname
9292 else case e in #(
9293 e) # Check whether --with-aix-soname was given.
9294 if test ${with_aix_soname+y}
9295 then :
9296 withval=$with_aix_soname; case $withval in
9297 aix|svr4|both)
9298 ;;
9299 *)
9300 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9301 ;;
9302 esac
9303 lt_cv_with_aix_soname=$with_aix_soname
9304 else case e in #(
9305 e) if test ${lt_cv_with_aix_soname+y}
9306 then :
9307 printf %s "(cached) " >&6
9308 else case e in #(
9309 e) lt_cv_with_aix_soname=aix ;;
9310 esac
9311 fi
9312 ;;
9313 esac
9314 fi
9315
9316 enable_aix_soname=$lt_cv_with_aix_soname ;;
9317 esac
9318 fi
9319
9320 with_aix_soname=$enable_aix_soname
9321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9322 printf '%s\n' "$with_aix_soname" >&6; }
9323 if test aix != "$with_aix_soname"; then
9324 # For the AIX way of multilib, we name the shared archive member
9325 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9326 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9327 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9328 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9329 if test 64 = "${OBJECT_MODE-32}"; then
9330 shared_archive_member_spec=shr_64
9331 else
9332 shared_archive_member_spec=shr
9333 fi
9334 fi
9335 ;;
9336 power*-*-aix[5-9]*,'')
9337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: for $host, specify if building shared libraries for versioning (svr4|both)" >&5
9338 printf '%s\n' "$as_me: WARNING: for $host, specify if building shared libraries for versioning (svr4|both)" >&2;}
9339 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9340 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9341 with_aix_soname=aix
9342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: (default) $with_aix_soname" >&5
9343 printf '%s\n' "(default) $with_aix_soname" >&6; }
9344 ;;
9345 *)
9346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9347 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9348 with_aix_soname=aix
9349 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: (default) $with_aix_soname" >&5
9350 printf '%s\n' "(default) $with_aix_soname" >&6; }
9351 ;;
9352 esac
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363 # This can be used to rebuild libtool when needed
9364 LIBTOOL_DEPS=$ltmain
9365
9366 # Always use our own libtool.
9367 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398 test -z "$LN_S" && LN_S="ln -s"
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413 if test -n "${ZSH_VERSION+set}"; then
9414 setopt NO_GLOB_SUBST
9415 fi
9416
9417 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9418 printf %s "checking for objdir... " >&6; }
9419 if test ${lt_cv_objdir+y}
9420 then :
9421 printf %s "(cached) " >&6
9422 else case e in #(
9423 e) rm -f .libs 2>/dev/null
9424 mkdir .libs 2>/dev/null
9425 if test -d .libs; then
9426 lt_cv_objdir=.libs
9427 else
9428 # MS-DOS does not allow filenames that begin with a dot.
9429 lt_cv_objdir=_libs
9430 fi
9431 rmdir .libs 2>/dev/null ;;
9432 esac
9433 fi
9434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9435 printf '%s\n' "$lt_cv_objdir" >&6; }
9436 objdir=$lt_cv_objdir
9437
9438
9439
9440
9441
9442 printf '%s\n' "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9443
9444
9445
9446
9447 case $host_os in
9448 aix3*)
9449 # AIX sometimes has problems with the GCC collect2 program. For some
9450 # reason, if we set the COLLECT_NAMES environment variable, the problems
9451 # vanish in a puff of smoke.
9452 if test set != "${COLLECT_NAMES+set}"; then
9453 COLLECT_NAMES=
9454 export COLLECT_NAMES
9455 fi
9456 ;;
9457 esac
9458
9459 # Global variables:
9460 ofile=libtool
9461 can_build_shared=yes
9462
9463 # All known linkers require a '.a' archive for static linking (except MSVC and
9464 # ICC, which need '.lib').
9465 libext=a
9466
9467 with_gnu_ld=$lt_cv_prog_gnu_ld
9468
9469 old_CC=$CC
9470 old_CFLAGS=$CFLAGS
9471
9472 # Set sane defaults for various variables
9473 test -z "$CC" && CC=cc
9474 test -z "$LTCC" && LTCC=$CC
9475 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9476 test -z "$LD" && LD=ld
9477 test -z "$ac_objext" && ac_objext=o
9478
9479 func_cc_basename $compiler
9480 cc_basename=$func_cc_basename_result
9481
9482
9483 # Only perform the check for file, if the check method requires it
9484 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9485 case $deplibs_check_method in
9486 file_magic*)
9487 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9489 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9490 if test ${lt_cv_path_MAGIC_CMD+y}
9491 then :
9492 printf %s "(cached) " >&6
9493 else case e in #(
9494 e) case $MAGIC_CMD in
9495 [\\/*] | ?:[\\/]*)
9496 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9497 ;;
9498 *)
9499 lt_save_MAGIC_CMD=$MAGIC_CMD
9500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9502 for ac_dir in $ac_dummy; do
9503 IFS=$lt_save_ifs
9504 test -z "$ac_dir" && ac_dir=.
9505 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9506 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9507 if test -n "$file_magic_test_file"; then
9508 case $deplibs_check_method in
9509 "file_magic "*)
9510 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9511 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9513 $EGREP "$file_magic_regex" > /dev/null; then
9514 :
9515 else
9516 cat <<_LT_EOF 1>&2
9517
9518 *** Warning: the command libtool uses to detect shared libraries,
9519 *** $file_magic_cmd, produces output that libtool cannot recognize.
9520 *** The result is that libtool may fail to recognize shared libraries
9521 *** as such. This will affect the creation of libtool libraries that
9522 *** depend on shared libraries, but programs linked with such libtool
9523 *** libraries will work regardless of this problem. Nevertheless, you
9524 *** may want to report the problem to your system manager and/or to
9525 *** bug-libtool@gnu.org
9526
9527 _LT_EOF
9528 fi ;;
9529 esac
9530 fi
9531 break
9532 fi
9533 done
9534 IFS=$lt_save_ifs
9535 MAGIC_CMD=$lt_save_MAGIC_CMD
9536 ;;
9537 esac ;;
9538 esac
9539 fi
9540
9541 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9542 if test -n "$MAGIC_CMD"; then
9543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9544 printf '%s\n' "$MAGIC_CMD" >&6; }
9545 else
9546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 printf '%s\n' "no" >&6; }
9548 fi
9549
9550
9551
9552
9553
9554 if test -z "$lt_cv_path_MAGIC_CMD"; then
9555 if test -n "$ac_tool_prefix"; then
9556 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9557 printf %s "checking for file... " >&6; }
9558 if test ${lt_cv_path_MAGIC_CMD+y}
9559 then :
9560 printf %s "(cached) " >&6
9561 else case e in #(
9562 e) case $MAGIC_CMD in
9563 [\\/*] | ?:[\\/]*)
9564 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9565 ;;
9566 *)
9567 lt_save_MAGIC_CMD=$MAGIC_CMD
9568 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9570 for ac_dir in $ac_dummy; do
9571 IFS=$lt_save_ifs
9572 test -z "$ac_dir" && ac_dir=.
9573 if test -f "$ac_dir/file"; then
9574 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9575 if test -n "$file_magic_test_file"; then
9576 case $deplibs_check_method in
9577 "file_magic "*)
9578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9579 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9581 $EGREP "$file_magic_regex" > /dev/null; then
9582 :
9583 else
9584 cat <<_LT_EOF 1>&2
9585
9586 *** Warning: the command libtool uses to detect shared libraries,
9587 *** $file_magic_cmd, produces output that libtool cannot recognize.
9588 *** The result is that libtool may fail to recognize shared libraries
9589 *** as such. This will affect the creation of libtool libraries that
9590 *** depend on shared libraries, but programs linked with such libtool
9591 *** libraries will work regardless of this problem. Nevertheless, you
9592 *** may want to report the problem to your system manager and/or to
9593 *** bug-libtool@gnu.org
9594
9595 _LT_EOF
9596 fi ;;
9597 esac
9598 fi
9599 break
9600 fi
9601 done
9602 IFS=$lt_save_ifs
9603 MAGIC_CMD=$lt_save_MAGIC_CMD
9604 ;;
9605 esac ;;
9606 esac
9607 fi
9608
9609 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9610 if test -n "$MAGIC_CMD"; then
9611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9612 printf '%s\n' "$MAGIC_CMD" >&6; }
9613 else
9614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 printf '%s\n' "no" >&6; }
9616 fi
9617
9618
9619 else
9620 MAGIC_CMD=:
9621 fi
9622 fi
9623
9624 fi
9625 ;;
9626 esac
9627
9628 # Use C for the default configuration in the libtool script
9629
9630 lt_save_CC=$CC
9631 ac_ext=c
9632 ac_cpp='$CPP $CPPFLAGS'
9633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9636
9637
9638 # Source file extension for C test sources.
9639 ac_ext=c
9640
9641 # Object file extension for compiled C test sources.
9642 objext=o
9643 objext=$objext
9644
9645 # Code to be used in simple compile tests
9646 lt_simple_compile_test_code="int some_variable = 0;"
9647
9648 # Code to be used in simple link tests
9649 lt_simple_link_test_code='int main(void){return(0);}'
9650
9651
9652
9653
9654
9655
9656
9657 # If no C compiler was specified, use CC.
9658 LTCC=${LTCC-"$CC"}
9659
9660 # If no C compiler flags were specified, use CFLAGS.
9661 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9662
9663 # Allow CC to be a program name with arguments.
9664 compiler=$CC
9665
9666 # Save the default compiler, since it gets overwritten when the other
9667 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9668 compiler_DEFAULT=$CC
9669
9670 # save warnings/boilerplate of simple test code
9671 ac_outfile=conftest.$ac_objext
9672 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9673 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9674 _lt_compiler_boilerplate=`cat conftest.err`
9675 $RM conftest*
9676
9677 ac_outfile=conftest.$ac_objext
9678 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9679 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9680 _lt_linker_boilerplate=`cat conftest.err`
9681 $RM -r conftest*
9682
9683
9684 ## CAVEAT EMPTOR:
9685 ## There is no encapsulation within the following macros, do not change
9686 ## the running order or otherwise move them around unless you know exactly
9687 ## what you are doing...
9688 if test -n "$compiler"; then
9689
9690 lt_prog_compiler_no_builtin_flag=
9691
9692 if test yes = "$GCC"; then
9693 case $cc_basename in
9694 nvcc*)
9695 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9696 *)
9697 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9698 esac
9699
9700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9701 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9702 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9703 then :
9704 printf %s "(cached) " >&6
9705 else case e in #(
9706 e) lt_cv_prog_compiler_rtti_exceptions=no
9707 ac_outfile=conftest.$ac_objext
9708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9709 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9710 # Insert the option either (1) after the last *FLAGS variable, or
9711 # (2) before a word containing "conftest.", or (3) at the end.
9712 # Note that $ac_compile itself does not contain backslashes and begins
9713 # with a dollar sign (not a hyphen), so the echo should work correctly.
9714 # The option is referenced via a variable to avoid confusing sed.
9715 lt_compile=`echo "$ac_compile" | $SED \
9716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9718 -e 's:$: $lt_compiler_flag:'`
9719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9720 (eval "$lt_compile" 2>conftest.err)
9721 ac_status=$?
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 if (exit $ac_status) && test -s "$ac_outfile"; then
9725 # The compiler can only warn and ignore the option if not recognized
9726 # So say no if there are warnings other than the usual output.
9727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym
9728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9729 if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then
9730 lt_cv_prog_compiler_rtti_exceptions=yes
9731 fi
9732 fi
9733 $RM conftest*
9734 ;;
9735 esac
9736 fi
9737 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9738 printf '%s\n' "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9739
9740 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9741 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9742 else
9743 :
9744 fi
9745
9746 fi
9747
9748
9749
9750
9751
9752
9753 lt_prog_compiler_wl=
9754 lt_prog_compiler_pic=
9755 lt_prog_compiler_static=
9756
9757
9758 if test yes = "$GCC"; then
9759 lt_prog_compiler_wl='-Wl,'
9760 lt_prog_compiler_static='-static'
9761
9762 case $host_os in
9763 aix*)
9764 # All AIX code is PIC.
9765 if test ia64 = "$host_cpu"; then
9766 # AIX 5 now supports IA64 processor
9767 lt_prog_compiler_static='-Bstatic'
9768 fi
9769 lt_prog_compiler_pic='-fPIC'
9770 ;;
9771
9772 amigaos*)
9773 case $host_cpu in
9774 powerpc)
9775 # see comment about AmigaOS4 .so support
9776 lt_prog_compiler_pic='-fPIC'
9777 ;;
9778 m68k)
9779 # FIXME: we need at least 68020 code to build shared libraries, but
9780 # adding the '-m68020' flag to GCC prevents building anything better,
9781 # like '-m68040'.
9782 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9783 ;;
9784 esac
9785 ;;
9786
9787 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9788 # PIC is the default for these OSes.
9789 ;;
9790
9791 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9792 # This hack is so that the source file can tell whether it is being
9793 # built for inclusion in a dll (and should export symbols for example).
9794 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9795 # (--disable-auto-import) libraries
9796 lt_prog_compiler_pic='-DDLL_EXPORT'
9797 case $host_os in
9798 os2*)
9799 lt_prog_compiler_static='$wl-static'
9800 ;;
9801 esac
9802 ;;
9803
9804 darwin* | rhapsody*)
9805 # PIC is the default on this platform
9806 # Common symbols not allowed in MH_DYLIB files
9807 lt_prog_compiler_pic='-fno-common'
9808 ;;
9809
9810 haiku*)
9811 # PIC is the default for Haiku.
9812 # The "-static" flag exists, but is broken.
9813 lt_prog_compiler_static=
9814 ;;
9815
9816 hpux*)
9817 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9818 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9819 # sets the default TLS model and affects inlining.
9820 case $host_cpu in
9821 hppa*64*)
9822 # +Z the default
9823 ;;
9824 *)
9825 lt_prog_compiler_pic='-fPIC'
9826 ;;
9827 esac
9828 ;;
9829
9830 interix[3-9]*)
9831 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9832 # Instead, we relocate shared libraries at runtime.
9833 ;;
9834
9835 msdosdjgpp*)
9836 # Just because we use GCC doesn't mean we suddenly get shared libraries
9837 # on systems that don't support them.
9838 lt_prog_compiler_can_build_shared=no
9839 enable_shared=no
9840 ;;
9841
9842 *nto* | *qnx*)
9843 # QNX uses GNU C++, but need to define -shared option too, otherwise
9844 # it will coredump.
9845 lt_prog_compiler_pic='-fPIC -shared'
9846 ;;
9847
9848 sysv4*MP*)
9849 if test -d /usr/nec; then
9850 lt_prog_compiler_pic=-Kconform_pic
9851 fi
9852 ;;
9853
9854 *)
9855 lt_prog_compiler_pic='-fPIC'
9856 ;;
9857 esac
9858
9859 case $cc_basename in
9860 nvcc*) # Cuda Compiler Driver 2.2
9861 lt_prog_compiler_wl='-Xlinker '
9862 if test -n "$lt_prog_compiler_pic"; then
9863 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9864 fi
9865 ;;
9866 esac
9867 else
9868 # PORTME Check for flag to pass linker flags through the system compiler.
9869 case $host_os in
9870 aix*)
9871 lt_prog_compiler_wl='-Wl,'
9872 if test ia64 = "$host_cpu"; then
9873 # AIX 5 now supports IA64 processor
9874 lt_prog_compiler_static='-Bstatic'
9875 else
9876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.expsym'
9877 fi
9878 ;;
9879
9880 darwin* | rhapsody*)
9881 # PIC is the default on this platform
9882 # Common symbols not allowed in MH_DYLIB files
9883 lt_prog_compiler_pic='-fno-common'
9884 case $cc_basename in
9885 nagfor*)
9886 # NAG Fortran compiler
9887 lt_prog_compiler_wl='-Wl,-Wl,,'
9888 lt_prog_compiler_pic='-PIC'
9889 lt_prog_compiler_static='-Bstatic'
9890 ;;
9891 esac
9892 ;;
9893
9894 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9895 # This hack is so that the source file can tell whether it is being
9896 # built for inclusion in a dll (and should export symbols for example).
9897 lt_prog_compiler_pic='-DDLL_EXPORT'
9898 case $host_os in
9899 os2*)
9900 lt_prog_compiler_static='$wl-static'
9901 ;;
9902 esac
9903 ;;
9904
9905 hpux9* | hpux10* | hpux11*)
9906 lt_prog_compiler_wl='-Wl,'
9907 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9908 # not for PA HP-UX.
9909 case $host_cpu in
9910 hppa*64*|ia64*)
9911 # +Z the default
9912 ;;
9913 *)
9914 lt_prog_compiler_pic='+Z'
9915 ;;
9916 esac
9917 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9918 lt_prog_compiler_static='$wl-a ${wl}archive'
9919 ;;
9920
9921 irix5* | irix6* | nonstopux*)
9922 lt_prog_compiler_wl='-Wl,'
9923 # PIC (with -KPIC) is the default.
9924 lt_prog_compiler_static='-non_shared'
9925 ;;
9926
9927 *-mlibc)
9928 lt_prog_compiler_wl='-Wl,'
9929 lt_prog_compiler_pic='-fPIC'
9930 lt_prog_compiler_static='-static'
9931 ;;
9932
9933 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu* | freebsd*)
9934 case $cc_basename in
9935 # old Intel for x86_64, which still supported -KPIC.
9936 ecc*)
9937 lt_prog_compiler_wl='-Wl,'
9938 lt_prog_compiler_pic='-KPIC'
9939 lt_prog_compiler_static='-static'
9940 ;;
9941 *flang* | ftn | f18* | f95*)
9942 # Flang compiler.
9943 lt_prog_compiler_wl='-Wl,'
9944 lt_prog_compiler_pic='-fPIC'
9945 lt_prog_compiler_static='-static'
9946 ;;
9947 # icc used to be incompatible with GCC.
9948 # ICC 10 doesn't accept -KPIC any more.
9949 icc* | ifort* | icx* | ifx*)
9950 lt_prog_compiler_wl='-Wl,'
9951 lt_prog_compiler_pic='-fPIC'
9952 lt_prog_compiler_static='-static'
9953 ;;
9954 # Lahey Fortran 8.1.
9955 lf95*)
9956 lt_prog_compiler_wl='-Wl,'
9957 lt_prog_compiler_pic='--shared'
9958 lt_prog_compiler_static='--static'
9959 ;;
9960 nagfor*)
9961 # NAG Fortran compiler
9962 lt_prog_compiler_wl='-Wl,-Wl,,'
9963 lt_prog_compiler_pic='-PIC'
9964 lt_prog_compiler_static='-Bstatic'
9965 ;;
9966 tcc*)
9967 # Fabrice Bellard et al's Tiny C Compiler
9968 lt_prog_compiler_wl='-Wl,'
9969 lt_prog_compiler_pic='-fPIC'
9970 lt_prog_compiler_static='-static'
9971 ;;
9972 slimcc*)
9973 # Hsiang-Ying Fu and Jim Huang's x86_64 SlimCC compiler
9974 lt_prog_compiler_wl='-Wl,'
9975 lt_prog_compiler_pic='-fPIC'
9976 lt_prog_compiler_static='-static'
9977 ;;
9978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9979 # Portland Group compilers (*not* the Pentium gcc compiler,
9980 # which looks to be a dead project)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_pic='-fpic'
9983 lt_prog_compiler_static='-Bstatic'
9984 ;;
9985 ccc*)
9986 lt_prog_compiler_wl='-Wl,'
9987 # All Alpha code is PIC.
9988 lt_prog_compiler_static='-non_shared'
9989 ;;
9990 xl* | bgxl* | bgf* | mpixl*)
9991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9992 lt_prog_compiler_wl='-Wl,'
9993 lt_prog_compiler_pic='-qpic'
9994 lt_prog_compiler_static='-qstaticlink'
9995 ;;
9996 *)
9997 case `$CC -V 2>&1 | $SED 5q` in
9998 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10000 lt_prog_compiler_pic='-KPIC'
10001 lt_prog_compiler_static='-Bstatic'
10002 lt_prog_compiler_wl=''
10003 ;;
10004 *Sun\ F* | *Sun*Fortran*)
10005 lt_prog_compiler_pic='-KPIC'
10006 lt_prog_compiler_static='-Bstatic'
10007 lt_prog_compiler_wl='-Qoption ld '
10008 ;;
10009 *Sun\ C*)
10010 # Sun C 5.9
10011 lt_prog_compiler_pic='-KPIC'
10012 lt_prog_compiler_static='-Bstatic'
10013 lt_prog_compiler_wl='-Wl,'
10014 ;;
10015 *Intel*\ [CF]*Compiler*)
10016 lt_prog_compiler_wl='-Wl,'
10017 lt_prog_compiler_pic='-fPIC'
10018 lt_prog_compiler_static='-static'
10019 ;;
10020 *Portland\ Group*)
10021 lt_prog_compiler_wl='-Wl,'
10022 lt_prog_compiler_pic='-fpic'
10023 lt_prog_compiler_static='-Bstatic'
10024 ;;
10025 esac
10026 ;;
10027 esac
10028 ;;
10029
10030 newsos6)
10031 lt_prog_compiler_pic='-KPIC'
10032 lt_prog_compiler_static='-Bstatic'
10033 ;;
10034
10035 *nto* | *qnx*)
10036 # QNX uses GNU C++, but need to define -shared option too, otherwise
10037 # it will coredump.
10038 lt_prog_compiler_pic='-fPIC -shared'
10039 ;;
10040
10041 osf3* | osf4* | osf5*)
10042 lt_prog_compiler_wl='-Wl,'
10043 # All OSF/1 code is PIC.
10044 lt_prog_compiler_static='-non_shared'
10045 ;;
10046
10047 rdos*)
10048 lt_prog_compiler_static='-non_shared'
10049 ;;
10050
10051 serenity*)
10052 ;;
10053
10054 solaris*)
10055 lt_prog_compiler_pic='-KPIC'
10056 lt_prog_compiler_static='-Bstatic'
10057 case $cc_basename in
10058 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10059 lt_prog_compiler_wl='-Qoption ld ';;
10060 *)
10061 lt_prog_compiler_wl='-Wl,';;
10062 esac
10063 ;;
10064
10065 sunos4*)
10066 lt_prog_compiler_wl='-Qoption ld '
10067 lt_prog_compiler_pic='-PIC'
10068 lt_prog_compiler_static='-Bstatic'
10069 ;;
10070
10071 sysv4 | sysv4.2uw2* | sysv4.3*)
10072 lt_prog_compiler_wl='-Wl,'
10073 lt_prog_compiler_pic='-KPIC'
10074 lt_prog_compiler_static='-Bstatic'
10075 ;;
10076
10077 sysv4*MP*)
10078 if test -d /usr/nec; then
10079 lt_prog_compiler_pic='-Kconform_pic'
10080 lt_prog_compiler_static='-Bstatic'
10081 fi
10082 ;;
10083
10084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10085 lt_prog_compiler_wl='-Wl,'
10086 lt_prog_compiler_pic='-KPIC'
10087 lt_prog_compiler_static='-Bstatic'
10088 ;;
10089
10090 unicos*)
10091 lt_prog_compiler_wl='-Wl,'
10092 lt_prog_compiler_can_build_shared=no
10093 ;;
10094
10095 uts4*)
10096 lt_prog_compiler_pic='-pic'
10097 lt_prog_compiler_static='-Bstatic'
10098 ;;
10099
10100 *)
10101 lt_prog_compiler_can_build_shared=no
10102 ;;
10103 esac
10104 fi
10105
10106 case $host_os in
10107 # For platforms that do not support PIC, -DPIC is meaningless:
10108 *djgpp*)
10109 lt_prog_compiler_pic=
10110 ;;
10111 *)
10112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10113 ;;
10114 esac
10115
10116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10117 printf %s "checking for $compiler option to produce PIC... " >&6; }
10118 if test ${lt_cv_prog_compiler_pic+y}
10119 then :
10120 printf %s "(cached) " >&6
10121 else case e in #(
10122 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10123 esac
10124 fi
10125 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10126 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
10127 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10128
10129 #
10130 # Check to make sure the PIC flag actually works.
10131 #
10132 if test -n "$lt_prog_compiler_pic"; then
10133 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10134 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10135 if test ${lt_cv_prog_compiler_pic_works+y}
10136 then :
10137 printf %s "(cached) " >&6
10138 else case e in #(
10139 e) lt_cv_prog_compiler_pic_works=no
10140 ac_outfile=conftest.$ac_objext
10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10143 # Insert the option either (1) after the last *FLAGS variable, or
10144 # (2) before a word containing "conftest.", or (3) at the end.
10145 # Note that $ac_compile itself does not contain backslashes and begins
10146 # with a dollar sign (not a hyphen), so the echo should work correctly.
10147 # The option is referenced via a variable to avoid confusing sed.
10148 lt_compile=`echo "$ac_compile" | $SED \
10149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10151 -e 's:$: $lt_compiler_flag:'`
10152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10153 (eval "$lt_compile" 2>conftest.err)
10154 ac_status=$?
10155 cat conftest.err >&5
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 if (exit $ac_status) && test -s "$ac_outfile"; then
10158 # The compiler can only warn and ignore the option if not recognized
10159 # So say no if there are warnings other than the usual output.
10160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym
10161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10162 if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then
10163 lt_cv_prog_compiler_pic_works=yes
10164 fi
10165 fi
10166 $RM conftest*
10167 ;;
10168 esac
10169 fi
10170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10171 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
10172
10173 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10174 case $lt_prog_compiler_pic in
10175 "" | " "*) ;;
10176 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10177 esac
10178 else
10179 lt_prog_compiler_pic=
10180 lt_prog_compiler_can_build_shared=no
10181 fi
10182
10183 fi
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195 #
10196 # Check to make sure the static flag actually works.
10197 #
10198 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10199 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10200 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10201 if test ${lt_cv_prog_compiler_static_works+y}
10202 then :
10203 printf %s "(cached) " >&6
10204 else case e in #(
10205 e) lt_cv_prog_compiler_static_works=no
10206 save_LDFLAGS=$LDFLAGS
10207 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10208 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10209 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10210 # The linker can only warn and ignore the option if not recognized
10211 # So say no if there are warnings
10212 if test -s conftest.err; then
10213 # Append any errors to the config.log.
10214 cat conftest.err 1>&5
10215 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym
10216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10217 if diff conftest.expsym conftest.er2 >/dev/null; then
10218 lt_cv_prog_compiler_static_works=yes
10219 fi
10220 else
10221 lt_cv_prog_compiler_static_works=yes
10222 fi
10223 fi
10224 $RM -r conftest*
10225 LDFLAGS=$save_LDFLAGS
10226 ;;
10227 esac
10228 fi
10229 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10230 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
10231
10232 if test yes = "$lt_cv_prog_compiler_static_works"; then
10233 :
10234 else
10235 lt_prog_compiler_static=
10236 fi
10237
10238
10239
10240
10241
10242
10243
10244 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10245 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10246 if test ${lt_cv_prog_compiler_c_o+y}
10247 then :
10248 printf %s "(cached) " >&6
10249 else case e in #(
10250 e) lt_cv_prog_compiler_c_o=no
10251 $RM -r conftest 2>/dev/null
10252 mkdir conftest
10253 cd conftest
10254 mkdir out
10255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10256
10257 lt_compiler_flag="-o out/conftest2.$ac_objext"
10258 # Insert the option either (1) after the last *FLAGS variable, or
10259 # (2) before a word containing "conftest.", or (3) at the end.
10260 # Note that $ac_compile itself does not contain backslashes and begins
10261 # with a dollar sign (not a hyphen), so the echo should work correctly.
10262 lt_compile=`echo "$ac_compile" | $SED \
10263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10265 -e 's:$: $lt_compiler_flag:'`
10266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10267 (eval "$lt_compile" 2>out/conftest.err)
10268 ac_status=$?
10269 cat out/conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10272 then
10273 # The compiler can only warn and ignore the option if not recognized
10274 # So say no if there are warnings
10275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.expsym
10276 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10277 if test ! -s out/conftest.er2 || diff out/conftest.expsym out/conftest.er2 >/dev/null; then
10278 lt_cv_prog_compiler_c_o=yes
10279 fi
10280 fi
10281 chmod u+w . 2>&5
10282 $RM conftest*
10283 # SGI C++ compiler will create directory out/ii_files/ for
10284 # template instantiation
10285 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10286 $RM out/* && rmdir out
10287 cd ..
10288 $RM -r conftest
10289 $RM conftest*
10290 ;;
10291 esac
10292 fi
10293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10294 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
10295
10296
10297
10298
10299
10300
10301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10302 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10303 if test ${lt_cv_prog_compiler_c_o+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else case e in #(
10307 e) lt_cv_prog_compiler_c_o=no
10308 $RM -r conftest 2>/dev/null
10309 mkdir conftest
10310 cd conftest
10311 mkdir out
10312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10313
10314 lt_compiler_flag="-o out/conftest2.$ac_objext"
10315 # Insert the option either (1) after the last *FLAGS variable, or
10316 # (2) before a word containing "conftest.", or (3) at the end.
10317 # Note that $ac_compile itself does not contain backslashes and begins
10318 # with a dollar sign (not a hyphen), so the echo should work correctly.
10319 lt_compile=`echo "$ac_compile" | $SED \
10320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10322 -e 's:$: $lt_compiler_flag:'`
10323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10324 (eval "$lt_compile" 2>out/conftest.err)
10325 ac_status=$?
10326 cat out/conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10329 then
10330 # The compiler can only warn and ignore the option if not recognized
10331 # So say no if there are warnings
10332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.expsym
10333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10334 if test ! -s out/conftest.er2 || diff out/conftest.expsym out/conftest.er2 >/dev/null; then
10335 lt_cv_prog_compiler_c_o=yes
10336 fi
10337 fi
10338 chmod u+w . 2>&5
10339 $RM conftest*
10340 # SGI C++ compiler will create directory out/ii_files/ for
10341 # template instantiation
10342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10343 $RM out/* && rmdir out
10344 cd ..
10345 $RM -r conftest
10346 $RM conftest*
10347 ;;
10348 esac
10349 fi
10350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10351 printf '%s\n' "$lt_cv_prog_compiler_c_o" >&6; }
10352
10353
10354
10355
10356 hard_links=nottested
10357 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10358 # do not overwrite the value of need_locks provided by the user
10359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10360 printf %s "checking if we can lock with hard links... " >&6; }
10361 hard_links=yes
10362 $RM conftest*
10363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10364 touch conftest.a
10365 ln conftest.a conftest.b 2>&5 || hard_links=no
10366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10368 printf '%s\n' "$hard_links" >&6; }
10369 if test no = "$hard_links"; then
10370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10371 printf '%s\n' "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10372 need_locks=warn
10373 fi
10374 else
10375 need_locks=no
10376 fi
10377
10378
10379
10380
10381
10382
10383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10384 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10385
10386 runpath_var=
10387 allow_undefined_flag=
10388 always_export_symbols=no
10389 archive_cmds=
10390 archive_expsym_cmds=
10391 compiler_needs_object=no
10392 enable_shared_with_static_runtimes=no
10393 export_dynamic_flag_spec=
10394 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10395 hardcode_automatic=no
10396 hardcode_direct=no
10397 hardcode_direct_absolute=no
10398 hardcode_libdir_flag_spec=
10399 hardcode_libdir_separator=
10400 hardcode_minus_L=no
10401 hardcode_shlibpath_var=unsupported
10402 inherit_rpath=no
10403 link_all_deplibs=unknown
10404 module_cmds=
10405 module_expsym_cmds=
10406 old_archive_from_new_cmds=
10407 old_archive_from_expsyms_cmds=
10408 thread_safe_flag_spec=
10409 whole_archive_flag_spec=
10410 # include_expsyms should be a list of space-separated symbols to be *always*
10411 # included in the symbol list
10412 include_expsyms=
10413 # exclude_expsyms can be an extended regexp of symbols to exclude
10414 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10415 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10416 # as well as any symbol that contains 'd'.
10417 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10418 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10419 # platforms (ab)use it in PIC code, but their linkers get confused if
10420 # the symbol is explicitly referenced. Since portable code cannot
10421 # rely on this symbol name, it's probably fine to never include it in
10422 # preloaded symbol tables.
10423 # Exclude shared library initialization/finalization symbols.
10424 extract_expsyms_cmds=
10425
10426 case $host_os in
10427 cygwin* | mingw* | windows* | pw32* | cegcc*)
10428 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10429 # When not using gcc, we currently assume that we are using
10430 # Microsoft Visual C++ or Intel C++ Compiler.
10431 if test yes != "$GCC"; then
10432 with_gnu_ld=no
10433 fi
10434 ;;
10435 interix*)
10436 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10437 with_gnu_ld=yes
10438 ;;
10439 esac
10440
10441 ld_shlibs=yes
10442
10443 # On some targets, GNU ld is compatible enough with the native linker
10444 # that we're better off using the native interface for both.
10445 lt_use_gnu_ld_interface=no
10446 if test yes = "$with_gnu_ld"; then
10447 case $host_os in
10448 aix*)
10449 # The AIX port of GNU ld has always aspired to compatibility
10450 # with the native linker. However, as the warning in the GNU ld
10451 # block says, versions before 2.19.5* couldn't really create working
10452 # shared libraries, regardless of the interface used.
10453 case `$LD -v 2>&1` in
10454 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10455 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10456 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10457 *)
10458 lt_use_gnu_ld_interface=yes
10459 ;;
10460 esac
10461 ;;
10462 *)
10463 lt_use_gnu_ld_interface=yes
10464 ;;
10465 esac
10466 fi
10467
10468 if test yes = "$lt_use_gnu_ld_interface"; then
10469 # If archive_cmds runs LD, not CC, wlarc should be empty
10470 wlarc='$wl'
10471
10472 # Set some defaults for GNU ld with shared library support. These
10473 # are reset later if shared libraries are not supported. Putting them
10474 # here allows them to be overridden if necessary.
10475 runpath_var=LD_RUN_PATH
10476 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10477 export_dynamic_flag_spec='$wl--export-dynamic'
10478 # ancient GNU ld didn't support --whole-archive et. al.
10479 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10480 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10481 else
10482 whole_archive_flag_spec=
10483 fi
10484 supports_anon_versioning=no
10485 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10486 *GNU\ gold*) supports_anon_versioning=yes ;;
10487 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10488 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10489 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10490 *\ 2.11.*) ;; # other 2.11 versions
10491 *) supports_anon_versioning=yes ;;
10492 esac
10493
10494 # See if GNU ld supports shared libraries.
10495 case $host_os in
10496 aix[3-9]*)
10497 # On AIX/PPC, the GNU linker is very broken
10498 if test ia64 != "$host_cpu"; then
10499 ld_shlibs=no
10500 cat <<_LT_EOF 1>&2
10501
10502 *** Warning: the GNU linker, at least up to release 2.19, is reported
10503 *** to be unable to reliably create shared libraries on AIX.
10504 *** Therefore, libtool is disabling shared libraries support. If you
10505 *** really care for shared libraries, you may want to install binutils
10506 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10507 *** You will then need to restart the configuration process.
10508
10509 _LT_EOF
10510 fi
10511 ;;
10512
10513 amigaos*)
10514 case $host_cpu in
10515 powerpc)
10516 # see comment about AmigaOS4 .so support
10517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10518 archive_expsym_cmds=''
10519 ;;
10520 m68k)
10521 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)'
10522 hardcode_libdir_flag_spec='-L$libdir'
10523 hardcode_minus_L=yes
10524 ;;
10525 esac
10526 ;;
10527
10528 beos*)
10529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10530 allow_undefined_flag=unsupported
10531 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10532 # support --undefined. This deserves some investigation. FIXME
10533 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10534 else
10535 ld_shlibs=no
10536 fi
10537 ;;
10538
10539 cygwin* | mingw* | windows* | pw32* | cegcc*)
10540 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10541 # as there is no search path for DLLs.
10542 hardcode_libdir_flag_spec='-L$libdir'
10543 export_dynamic_flag_spec='$wl--export-all-symbols'
10544 allow_undefined_flag=unsupported
10545 always_export_symbols=no
10546 enable_shared_with_static_runtimes=yes
10547 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'
10548 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10549 file_list_spec='@'
10550
10551 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10553 # If the export-symbols file already is a .def file, use it as
10554 # is; otherwise, prepend EXPORTS...
10555 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10556 cp $export_symbols $output_objdir/$soname.def;
10557 else
10558 echo EXPORTS > $output_objdir/$soname.def;
10559 cat $export_symbols >> $output_objdir/$soname.def;
10560 fi~
10561 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10562 else
10563 ld_shlibs=no
10564 fi
10565 ;;
10566
10567 haiku*)
10568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10569 link_all_deplibs=no
10570 ;;
10571
10572 os2*)
10573 hardcode_libdir_flag_spec='-L$libdir'
10574 hardcode_minus_L=yes
10575 allow_undefined_flag=unsupported
10576 shrext_cmds=.dll
10577 archive_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10578 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10579 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10580 echo EXPORTS >> $output_objdir/$libname.def~
10581 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10582 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10583 emximp -o $lib $output_objdir/$libname.def'
10584 archive_expsym_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10585 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10586 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10587 echo EXPORTS >> $output_objdir/$libname.def~
10588 prefix_cmds="$SED"~
10589 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10590 prefix_cmds="$prefix_cmds -e 1d";
10591 fi~
10592 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10593 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10594 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10595 emximp -o $lib $output_objdir/$libname.def'
10596 enable_shared_with_static_runtimes=yes
10597 file_list_spec='@'
10598 ;;
10599
10600 interix[3-9]*)
10601 hardcode_direct=no
10602 hardcode_shlibpath_var=no
10603 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10604 export_dynamic_flag_spec='$wl-E'
10605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10606 # Instead, shared libraries are loaded at an image base (0x10000000 by
10607 # default) and relocated if they conflict, which is a slow very memory
10608 # consuming and fragmenting process. To avoid this, we pick a random,
10609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10612 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'
10613 ;;
10614
10615 *-mlibc)
10616 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10617 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10618 ;;
10619
10620 gnu* | linux* | tpf* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu)
10621 tmp_diet=no
10622 if test linux-dietlibc = "$host_os"; then
10623 case $cc_basename in
10624 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10625 esac
10626 fi
10627 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10628 && test no = "$tmp_diet"
10629 then
10630 tmp_addflag=' $pic_flag'
10631 tmp_sharedflag='-shared'
10632 case $cc_basename,$host_cpu in
10633 pgcc*) # Portland Group C compiler
10634 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'
10635 tmp_addflag=' $pic_flag'
10636 ;;
10637 pgf77* | pgf90* | pgf95* | pgfortran*)
10638 # Portland Group f77 and f90 compilers
10639 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'
10640 tmp_addflag=' $pic_flag -Mnomain' ;;
10641 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10642 tmp_addflag=' -i_dynamic' ;;
10643 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10644 tmp_addflag=' -i_dynamic -nofor_main' ;;
10645 ifc* | ifort* | ifx*) # Intel Fortran compiler
10646 tmp_addflag=' -nofor_main' ;;
10647 lf95*) # Lahey Fortran 8.1
10648 whole_archive_flag_spec=
10649 tmp_sharedflag='--shared' ;;
10650 nagfor*) # NAGFOR 5.3
10651 tmp_sharedflag='-Wl,-shared' ;;
10652 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10653 tmp_sharedflag='-qmkshrobj'
10654 tmp_addflag= ;;
10655 nvcc*) # Cuda Compiler Driver 2.2
10656 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'
10657 compiler_needs_object=yes
10658 ;;
10659 esac
10660 case `$CC -V 2>&1 | $SED 5q` in
10661 *Sun\ C*) # Sun C 5.9
10662 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'
10663 compiler_needs_object=yes
10664 tmp_sharedflag='-G' ;;
10665 *Sun\ F*) # Sun Fortran 8.3
10666 tmp_sharedflag='-G' ;;
10667 esac
10668 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10669
10670 if test yes = "$supports_anon_versioning"; then
10671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10672 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10673 echo "local: *; };" >> $output_objdir/$libname.ver~
10674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10675 fi
10676
10677 case $cc_basename in
10678 tcc*)
10679 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10680 export_dynamic_flag_spec='-rdynamic'
10681 ;;
10682 xlf* | bgf* | bgxlf* | mpixlf*)
10683 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10684 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10686 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10687 if test yes = "$supports_anon_versioning"; then
10688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10689 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10690 echo "local: *; };" >> $output_objdir/$libname.ver~
10691 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10692 fi
10693 ;;
10694 esac
10695 else
10696 ld_shlibs=no
10697 fi
10698 ;;
10699
10700 netbsd* | netbsdelf*-gnu)
10701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10703 wlarc=
10704 else
10705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10707 fi
10708 ;;
10709
10710 solaris*)
10711 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10712 ld_shlibs=no
10713 cat <<_LT_EOF 1>&2
10714
10715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10716 *** create shared libraries on Solaris systems. Therefore, libtool
10717 *** is disabling shared libraries support. We urge you to upgrade GNU
10718 *** binutils to release 2.9.1 or newer. Another option is to modify
10719 *** your PATH or compiler configuration so that the native linker is
10720 *** used, and then restart.
10721
10722 _LT_EOF
10723 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10726 else
10727 ld_shlibs=no
10728 fi
10729 ;;
10730
10731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10732 case `$LD -v 2>&1` in
10733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10734 ld_shlibs=no
10735 cat <<_LT_EOF 1>&2
10736
10737 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10738 *** reliably create shared libraries on SCO systems. Therefore, libtool
10739 *** is disabling shared libraries support. We urge you to upgrade GNU
10740 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10741 *** your PATH or compiler configuration so that the native linker is
10742 *** used, and then restart.
10743
10744 _LT_EOF
10745 ;;
10746 *)
10747 # For security reasons, it is highly recommended that you always
10748 # use absolute paths for naming shared libraries, and exclude the
10749 # DT_RUNPATH tag from executables and libraries. But doing so
10750 # requires that you compile everything twice, which is a pain.
10751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10755 else
10756 ld_shlibs=no
10757 fi
10758 ;;
10759 esac
10760 ;;
10761
10762 sunos4*)
10763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10764 wlarc=
10765 hardcode_direct=yes
10766 hardcode_shlibpath_var=no
10767 ;;
10768
10769 *)
10770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10773 else
10774 ld_shlibs=no
10775 fi
10776 ;;
10777 esac
10778
10779 if test no = "$ld_shlibs"; then
10780 runpath_var=
10781 hardcode_libdir_flag_spec=
10782 export_dynamic_flag_spec=
10783 whole_archive_flag_spec=
10784 fi
10785 else
10786 # PORTME fill in a description of your system's linker (not GNU ld)
10787 case $host_os in
10788 aix3*)
10789 allow_undefined_flag=unsupported
10790 always_export_symbols=yes
10791 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'
10792 # Note: this linker hardcodes the directories in LIBPATH if there
10793 # are no directories specified by -L.
10794 hardcode_minus_L=yes
10795 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10796 # Neither direct hardcoding nor static linking is supported with a
10797 # broken collect2.
10798 hardcode_direct=unsupported
10799 fi
10800 ;;
10801
10802 aix[4-9]*)
10803 if test ia64 = "$host_cpu"; then
10804 # On IA64, the linker does run time linking by default, so we don't
10805 # have to do anything special.
10806 aix_use_runtimelinking=no
10807 exp_sym_flag='-Bexport'
10808 no_entry_flag=
10809 else
10810 # If we're using GNU nm, then we don't want the "-C" option.
10811 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10812 # Without the "-l" option, or with the "-B" option, AIX nm treats
10813 # weak defined symbols like other global defined symbols, whereas
10814 # GNU nm marks them as "W".
10815 # While the 'weak' keyword is ignored in the Export File, we need
10816 # it in the Import File for the 'aix-soname' feature, so we have
10817 # to replace the "-B" option with "-P" for AIX nm.
10818 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10819 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'
10820 else
10821 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'
10822 fi
10823 aix_use_runtimelinking=no
10824
10825 # Test if we are trying to use run time linking or normal
10826 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10827 # have runtime linking enabled, and use it for executables.
10828 # For shared libraries, we enable/disable runtime linking
10829 # depending on the kind of the shared library created -
10830 # when "with_aix_soname,aix_use_runtimelinking" is:
10831 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10832 # "aix,yes" lib.so shared, rtl:yes, for executables
10833 # lib.a static archive
10834 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10835 # lib.a(lib.so.V) shared, rtl:no, for executables
10836 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10837 # lib.a(lib.so.V) shared, rtl:no
10838 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10839 # lib.a static archive
10840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10841 for ld_flag in $LDFLAGS; do
10842 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10843 aix_use_runtimelinking=yes
10844 break
10845 fi
10846 done
10847 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10848 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10849 # so we don't have lib.a shared libs to link our executables.
10850 # We have to force runtime linking in this case.
10851 aix_use_runtimelinking=yes
10852 LDFLAGS="$LDFLAGS -Wl,-brtl"
10853 fi
10854 ;;
10855 esac
10856
10857 exp_sym_flag='-bexport'
10858 no_entry_flag='-bnoentry'
10859 fi
10860
10861 # When large executables or shared objects are built, AIX ld can
10862 # have problems creating the table of contents. If linking a library
10863 # or program results in "error TOC overflow" add -mminimal-toc to
10864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10866
10867 archive_cmds=''
10868 hardcode_direct=yes
10869 hardcode_direct_absolute=yes
10870 hardcode_libdir_separator=':'
10871 link_all_deplibs=yes
10872 file_list_spec='$wl-f,'
10873 case $with_aix_soname,$aix_use_runtimelinking in
10874 aix,*) ;; # traditional, no import file
10875 svr4,* | *,yes) # use import file
10876 # The Import File defines what to hardcode.
10877 hardcode_direct=no
10878 hardcode_direct_absolute=no
10879 ;;
10880 esac
10881
10882 if test yes = "$GCC"; then
10883 case $host_os in aix4.[012]|aix4.[012].*)
10884 # We only want to do this on AIX 4.2 and lower, the check
10885 # below for broken collect2 doesn't work under 4.3+
10886 collect2name=`$CC -print-prog-name=collect2`
10887 if test -f "$collect2name" &&
10888 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10889 then
10890 # We have reworked collect2
10891 :
10892 else
10893 # We have old collect2
10894 hardcode_direct=unsupported
10895 # It fails to find uninstalled libraries when the uninstalled
10896 # path is not listed in the libpath. Setting hardcode_minus_L
10897 # to unsupported forces relinking
10898 hardcode_minus_L=yes
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_libdir_separator=
10901 fi
10902 ;;
10903 esac
10904 shared_flag='-shared'
10905 if test yes = "$aix_use_runtimelinking"; then
10906 shared_flag="$shared_flag "'$wl-G'
10907 fi
10908 # Need to ensure runtime linking is disabled for the traditional
10909 # shared library, or the linker may eventually find shared libraries
10910 # /with/ Import File - we do not want to mix them.
10911 shared_flag_aix='-shared'
10912 shared_flag_svr4='-shared $wl-G'
10913 else
10914 # not using gcc
10915 if test ia64 = "$host_cpu"; then
10916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10917 # chokes on -Wl,-G. The following line is correct:
10918 shared_flag='-G'
10919 else
10920 if test yes = "$aix_use_runtimelinking"; then
10921 shared_flag='$wl-G'
10922 else
10923 shared_flag='$wl-bM:SRE'
10924 fi
10925 shared_flag_aix='$wl-bM:SRE'
10926 shared_flag_svr4='$wl-G'
10927 fi
10928 fi
10929
10930 export_dynamic_flag_spec='$wl-bexpall'
10931 # It seems that -bexpall does not export symbols beginning with
10932 # underscore (_), so it is better to generate a list of symbols to export.
10933 always_export_symbols=yes
10934 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10935 # Warning - without using the other runtime loading flags (-brtl),
10936 # -berok will link without error, but may produce a broken library.
10937 allow_undefined_flag='-berok'
10938 # Determine the default libpath from the value encoded in an
10939 # empty executable.
10940 if test set = "${lt_cv_aix_libpath+set}"; then
10941 aix_libpath=$lt_cv_aix_libpath
10942 else
10943 if test ${lt_cv_aix_libpath_+y}
10944 then :
10945 printf %s "(cached) " >&6
10946 else case e in #(
10947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949
10950 int
10951 main (void)
10952 {
10953
10954 ;
10955 return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"
10959 then :
10960
10961 lt_aix_libpath_sed='
10962 /Import File Strings/,/^$/ {
10963 /^0/ {
10964 s/^0 *\([^ ]*\) *$/\1/
10965 p
10966 }
10967 }'
10968 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10969 # Check for a 64-bit object if we didn't find anything.
10970 if test -z "$lt_cv_aix_libpath_"; then
10971 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10972 fi
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10975 conftest$ac_exeext conftest.$ac_ext
10976 if test -z "$lt_cv_aix_libpath_"; then
10977 lt_cv_aix_libpath_=/usr/lib:/lib
10978 fi
10979 ;;
10980 esac
10981 fi
10982
10983 aix_libpath=$lt_cv_aix_libpath_
10984 fi
10985
10986 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10987 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
10988 else
10989 if test ia64 = "$host_cpu"; then
10990 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10991 allow_undefined_flag="-z nodefs"
10992 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"
10993 else
10994 # Determine the default libpath from the value encoded in an
10995 # empty executable.
10996 if test set = "${lt_cv_aix_libpath+set}"; then
10997 aix_libpath=$lt_cv_aix_libpath
10998 else
10999 if test ${lt_cv_aix_libpath_+y}
11000 then :
11001 printf %s "(cached) " >&6
11002 else case e in #(
11003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 int
11007 main (void)
11008 {
11009
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"
11015 then :
11016
11017 lt_aix_libpath_sed='
11018 /Import File Strings/,/^$/ {
11019 /^0/ {
11020 s/^0 *\([^ ]*\) *$/\1/
11021 p
11022 }
11023 }'
11024 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11025 # Check for a 64-bit object if we didn't find anything.
11026 if test -z "$lt_cv_aix_libpath_"; then
11027 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11028 fi
11029 fi
11030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11031 conftest$ac_exeext conftest.$ac_ext
11032 if test -z "$lt_cv_aix_libpath_"; then
11033 lt_cv_aix_libpath_=/usr/lib:/lib
11034 fi
11035 ;;
11036 esac
11037 fi
11038
11039 aix_libpath=$lt_cv_aix_libpath_
11040 fi
11041
11042 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11043 # Warning - without using the other run time loading flags,
11044 # -berok will link without error, but may produce a broken library.
11045 no_undefined_flag=' $wl-bernotok'
11046 allow_undefined_flag=' $wl-berok'
11047 if test yes = "$with_gnu_ld"; then
11048 # We only use this code for GNU lds that support --whole-archive.
11049 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11050 else
11051 # Exported symbols can be pulled into shared objects from archives
11052 whole_archive_flag_spec='$convenience'
11053 fi
11054 archive_cmds_need_lc=yes
11055 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11056 # -brtl affects multiple linker settings, -berok does not and is overridden later
11057 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11058 if test svr4 != "$with_aix_soname"; then
11059 # This is similar to how AIX traditionally builds its shared libraries.
11060 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'
11061 fi
11062 if test aix != "$with_aix_soname"; then
11063 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'
11064 else
11065 # used by -dlpreopen to get the symbols
11066 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11067 fi
11068 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11069 fi
11070 fi
11071 ;;
11072
11073 amigaos*)
11074 case $host_cpu in
11075 powerpc)
11076 # see comment about AmigaOS4 .so support
11077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11078 archive_expsym_cmds=''
11079 ;;
11080 m68k)
11081 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)'
11082 hardcode_libdir_flag_spec='-L$libdir'
11083 hardcode_minus_L=yes
11084 ;;
11085 esac
11086 ;;
11087
11088 bsdi[45]*)
11089 export_dynamic_flag_spec=-rdynamic
11090 ;;
11091
11092 cygwin* | mingw* | windows* | pw32* | cegcc*)
11093 # When not using gcc, we currently assume that we are using
11094 # Microsoft Visual C++ or Intel C++ Compiler.
11095 # hardcode_libdir_flag_spec is actually meaningless, as there is
11096 # no search path for DLLs.
11097 case $cc_basename in
11098 cl* | icl* | icx* | icpx*)
11099 # Native MSVC and Intel compilers
11100 hardcode_libdir_flag_spec=' '
11101 allow_undefined_flag=unsupported
11102 always_export_symbols=yes
11103 file_list_spec='@'
11104 # Tell ltmain to make .lib files, not .a files.
11105 libext=lib
11106 # Tell ltmain to make .dll files, not .so files.
11107 shrext_cmds=.dll
11108 # FIXME: Setting linknames here is a bad hack.
11109 # A check exists to verify if there are linker flags, which will use
11110 # different commands when linking.
11111 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11112 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11113 cp "$export_symbols" "$output_objdir/$soname.def";
11114 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.expsym";
11115 else
11116 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.expsym;
11117 fi~
11118 if test -z "$linker_flags"; then
11119 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
11120 else
11121 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.expsym" -Wl,$linker_flags-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib";
11122 fi~
11123 linknames='
11124 # The linker will not automatically build a static lib if we build a DLL.
11125 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11126 enable_shared_with_static_runtimes=yes
11127 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11129 # Don't use ranlib
11130 old_postinstall_cmds='chmod 644 $oldlib'
11131 postlink_cmds='lt_outputfile="@OUTPUT@"~
11132 lt_tool_outputfile="@TOOL_OUTPUT@"~
11133 case $lt_outputfile in
11134 *.exe|*.EXE) ;;
11135 *)
11136 lt_outputfile=$lt_outputfile.exe
11137 lt_tool_outputfile=$lt_tool_outputfile.exe
11138 ;;
11139 esac~
11140 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11141 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11142 $RM "$lt_outputfile.manifest";
11143 fi'
11144 ;;
11145 *)
11146 # Assume MSVC and ICC wrapper
11147 hardcode_libdir_flag_spec=' '
11148 allow_undefined_flag=unsupported
11149 # Tell ltmain to make .lib files, not .a files.
11150 libext=lib
11151 # Tell ltmain to make .dll files, not .so files.
11152 shrext_cmds=.dll
11153 # FIXME: Setting linknames here is a bad hack.
11154 archive_cmds='$CC -Fe$lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11155 # The linker will automatically build a .lib file if we build a DLL.
11156 old_archive_from_new_cmds='true'
11157 # FIXME: Should let the user specify the lib program.
11158 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11159 enable_shared_with_static_runtimes=yes
11160 ;;
11161 esac
11162 ;;
11163
11164 darwin* | rhapsody*)
11165
11166
11167 archive_cmds_need_lc=no
11168 hardcode_direct=no
11169 hardcode_automatic=yes
11170 hardcode_shlibpath_var=unsupported
11171 if test yes = "$lt_cv_ld_force_load"; then
11172 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\"`'
11173
11174 else
11175 whole_archive_flag_spec=''
11176 fi
11177 link_all_deplibs=yes
11178 allow_undefined_flag=$_lt_dar_allow_undefined
11179 case $cc_basename in
11180 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11181 *) _lt_dar_can_shared=$GCC ;;
11182 esac
11183 if test yes = "$_lt_dar_can_shared"; then
11184 output_verbose_link_cmd=func_echo_all
11185 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11186 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11187 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"
11188 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"
11189
11190 else
11191 ld_shlibs=no
11192 fi
11193
11194 ;;
11195
11196 dgux*)
11197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11198 hardcode_libdir_flag_spec='-L$libdir'
11199 hardcode_shlibpath_var=no
11200 ;;
11201
11202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11203 # support. Future versions do this automatically, but an explicit c++rt0.o
11204 # does not break anything, and helps significantly (at the cost of a little
11205 # extra space).
11206 freebsd2.2*)
11207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11208 hardcode_libdir_flag_spec='-R$libdir'
11209 hardcode_direct=yes
11210 hardcode_shlibpath_var=no
11211 ;;
11212
11213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11214 freebsd2.*)
11215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11216 hardcode_direct=yes
11217 hardcode_minus_L=yes
11218 hardcode_shlibpath_var=no
11219 ;;
11220
11221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11222 freebsd* | dragonfly* | midnightbsd*)
11223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11224 hardcode_libdir_flag_spec='-R$libdir'
11225 hardcode_direct=yes
11226 hardcode_shlibpath_var=no
11227 ;;
11228
11229 hpux9*)
11230 if test yes = "$GCC"; then
11231 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'
11232 else
11233 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'
11234 fi
11235 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11236 hardcode_libdir_separator=:
11237 hardcode_direct=yes
11238
11239 # hardcode_minus_L: Not really in the search PATH,
11240 # but as the default location of the library.
11241 hardcode_minus_L=yes
11242 export_dynamic_flag_spec='$wl-E'
11243 ;;
11244
11245 hpux10*)
11246 if test yes,no = "$GCC,$with_gnu_ld"; then
11247 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11248 else
11249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11250 fi
11251 if test no = "$with_gnu_ld"; then
11252 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11253 hardcode_libdir_separator=:
11254 hardcode_direct=yes
11255 hardcode_direct_absolute=yes
11256 export_dynamic_flag_spec='$wl-E'
11257 # hardcode_minus_L: Not really in the search PATH,
11258 # but as the default location of the library.
11259 hardcode_minus_L=yes
11260 fi
11261 ;;
11262
11263 hpux11*)
11264 if test yes,no = "$GCC,$with_gnu_ld"; then
11265 case $host_cpu in
11266 hppa*64*)
11267 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 ;;
11269 ia64*)
11270 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11271 ;;
11272 *)
11273 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11274 ;;
11275 esac
11276 else
11277 case $host_cpu in
11278 hppa*64*)
11279 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11280 ;;
11281 ia64*)
11282 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11283 ;;
11284 *)
11285
11286 # Older versions of the 11.00 compiler do not understand -b yet
11287 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11288 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11289 printf %s "checking if $CC understands -b... " >&6; }
11290 if test ${lt_cv_prog_compiler__b+y}
11291 then :
11292 printf %s "(cached) " >&6
11293 else case e in #(
11294 e) lt_cv_prog_compiler__b=no
11295 save_LDFLAGS=$LDFLAGS
11296 LDFLAGS="$LDFLAGS -b"
11297 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11298 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11299 # The linker can only warn and ignore the option if not recognized
11300 # So say no if there are warnings
11301 if test -s conftest.err; then
11302 # Append any errors to the config.log.
11303 cat conftest.err 1>&5
11304 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym
11305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11306 if diff conftest.expsym conftest.er2 >/dev/null; then
11307 lt_cv_prog_compiler__b=yes
11308 fi
11309 else
11310 lt_cv_prog_compiler__b=yes
11311 fi
11312 fi
11313 $RM -r conftest*
11314 LDFLAGS=$save_LDFLAGS
11315 ;;
11316 esac
11317 fi
11318 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11319 printf '%s\n' "$lt_cv_prog_compiler__b" >&6; }
11320
11321 if test yes = "$lt_cv_prog_compiler__b"; then
11322 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11323 else
11324 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11325 fi
11326
11327 ;;
11328 esac
11329 fi
11330 if test no = "$with_gnu_ld"; then
11331 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11332 hardcode_libdir_separator=:
11333
11334 case $host_cpu in
11335 hppa*64*|ia64*)
11336 hardcode_direct=no
11337 hardcode_shlibpath_var=no
11338 ;;
11339 *)
11340 hardcode_direct=yes
11341 hardcode_direct_absolute=yes
11342 export_dynamic_flag_spec='$wl-E'
11343
11344 # hardcode_minus_L: Not really in the search PATH,
11345 # but as the default location of the library.
11346 hardcode_minus_L=yes
11347 ;;
11348 esac
11349 fi
11350 ;;
11351
11352 irix5* | irix6* | nonstopux*)
11353 if test yes = "$GCC"; then
11354 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'
11355 # Try to use the -exported_symbol ld option, if it does not
11356 # work, assume that -exports_file does not work either and
11357 # implicitly export all symbols.
11358 # This should be the same for all languages, so no per-tag cache variable.
11359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11360 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11361 if test ${lt_cv_irix_exported_symbol+y}
11362 then :
11363 printf %s "(cached) " >&6
11364 else case e in #(
11365 e) save_LDFLAGS=$LDFLAGS
11366 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 int foo (void) { return 0; }
11370 _ACEOF
11371 if ac_fn_c_try_link "$LINENO"
11372 then :
11373 lt_cv_irix_exported_symbol=yes
11374 else case e in #(
11375 e) lt_cv_irix_exported_symbol=no ;;
11376 esac
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11379 conftest$ac_exeext conftest.$ac_ext
11380 LDFLAGS=$save_LDFLAGS ;;
11381 esac
11382 fi
11383 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11384 printf '%s\n' "$lt_cv_irix_exported_symbol" >&6; }
11385 if test yes = "$lt_cv_irix_exported_symbol"; then
11386 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'
11387 fi
11388 else
11389 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'
11390 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'
11391 fi
11392 archive_cmds_need_lc='no'
11393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11394 hardcode_libdir_separator=:
11395 inherit_rpath=yes
11396 link_all_deplibs=yes
11397 ;;
11398
11399 *-mlibc)
11400 ;;
11401
11402 linux*)
11403 case $cc_basename in
11404 tcc*)
11405 # Fabrice Bellard et al's Tiny C Compiler
11406 ld_shlibs=yes
11407 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11409 ;;
11410 esac
11411 ;;
11412
11413 netbsd* | netbsdelf*-gnu)
11414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11415 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11416 else
11417 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11418 fi
11419 hardcode_libdir_flag_spec='-R$libdir'
11420 hardcode_direct=yes
11421 hardcode_shlibpath_var=no
11422 ;;
11423
11424 newsos6)
11425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11426 hardcode_direct=yes
11427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11428 hardcode_libdir_separator=:
11429 hardcode_shlibpath_var=no
11430 ;;
11431
11432 *nto* | *qnx*)
11433 ;;
11434
11435 openbsd*)
11436 if test -f /usr/libexec/ld.so; then
11437 hardcode_direct=yes
11438 hardcode_shlibpath_var=no
11439 hardcode_direct_absolute=yes
11440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11441 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11442 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11443 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11444 export_dynamic_flag_spec='$wl-E'
11445 else
11446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11447 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11448 fi
11449 else
11450 ld_shlibs=no
11451 fi
11452 ;;
11453
11454 os2*)
11455 hardcode_libdir_flag_spec='-L$libdir'
11456 hardcode_minus_L=yes
11457 allow_undefined_flag=unsupported
11458 shrext_cmds=.dll
11459 archive_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11460 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11461 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11462 echo EXPORTS >> $output_objdir/$libname.def~
11463 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11464 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11465 emximp -o $lib $output_objdir/$libname.def'
11466 archive_expsym_cmds='echo "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11467 echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11468 echo "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11469 echo EXPORTS >> $output_objdir/$libname.def~
11470 prefix_cmds="$SED"~
11471 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11472 prefix_cmds="$prefix_cmds -e 1d";
11473 fi~
11474 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11475 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11477 emximp -o $lib $output_objdir/$libname.def'
11478 enable_shared_with_static_runtimes=yes
11479 file_list_spec='@'
11480 ;;
11481
11482 osf3*)
11483 if test yes = "$GCC"; then
11484 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11485 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'
11486 else
11487 allow_undefined_flag=' -expect_unresolved \*'
11488 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'
11489 fi
11490 archive_cmds_need_lc='no'
11491 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11492 hardcode_libdir_separator=:
11493 ;;
11494
11495 osf4* | osf5*) # as osf3* with the addition of -msym flag
11496 if test yes = "$GCC"; then
11497 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11498 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'
11499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11500 else
11501 allow_undefined_flag=' -expect_unresolved \*'
11502 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'
11503 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.expsym; done; printf "%s\\n" "-hidden">> $lib.expsym~
11504 $CC -shared$allow_undefined_flag $wl-input $wl$lib.expsym $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.expsym'
11505
11506 # Both c and cxx compiler support -rpath directly
11507 hardcode_libdir_flag_spec='-rpath $libdir'
11508 fi
11509 archive_cmds_need_lc='no'
11510 hardcode_libdir_separator=:
11511 ;;
11512
11513 serenity*)
11514 ;;
11515
11516 solaris*)
11517 no_undefined_flag=' -z defs'
11518 if test yes = "$GCC"; then
11519 wlarc='$wl'
11520 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11521 archive_expsym_cmds='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
11522 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.expsym $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.expsym'
11523 else
11524 case `$CC -V 2>&1` in
11525 *"Compilers 5.0"*)
11526 wlarc=''
11527 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11528 archive_expsym_cmds='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
11529 $LD -G$allow_undefined_flag -M $lib.expsym -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.expsym'
11530 ;;
11531 *)
11532 wlarc='$wl'
11533 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11534 archive_expsym_cmds='echo "{ global:" > $lib.expsym~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.expsym~echo "local: *; };" >> $lib.expsym~
11535 $CC -G$allow_undefined_flag -M $lib.expsym -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.expsym'
11536 ;;
11537 esac
11538 fi
11539 hardcode_libdir_flag_spec='-R$libdir'
11540 hardcode_shlibpath_var=no
11541 case $host_os in
11542 solaris2.[0-5] | solaris2.[0-5].*) ;;
11543 *)
11544 # The compiler driver will combine and reorder linker options,
11545 # but understands '-z linker_flag'. GCC discards it without '$wl',
11546 # but is careful enough not to reorder.
11547 # Supported since Solaris 2.6 (maybe 2.5.1?)
11548 if test yes = "$GCC"; then
11549 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11550 else
11551 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11552 fi
11553 ;;
11554 esac
11555 link_all_deplibs=yes
11556 ;;
11557
11558 sunos4*)
11559 if test sequent = "$host_vendor"; then
11560 # Use $CC to link under sequent, because it throws in some extra .o
11561 # files that make .init and .fini sections work.
11562 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11563 else
11564 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11565 fi
11566 hardcode_libdir_flag_spec='-L$libdir'
11567 hardcode_direct=yes
11568 hardcode_minus_L=yes
11569 hardcode_shlibpath_var=no
11570 ;;
11571
11572 sysv4)
11573 case $host_vendor in
11574 sni)
11575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11576 hardcode_direct=yes # is this really true???
11577 ;;
11578 siemens)
11579 ## LD is ld it makes a PLAMLIB
11580 ## CC just makes a GrossModule.
11581 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11582 reload_cmds='$CC -r -o $output$reload_objs'
11583 hardcode_direct=no
11584 ;;
11585 motorola)
11586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11587 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11588 ;;
11589 esac
11590 runpath_var='LD_RUN_PATH'
11591 hardcode_shlibpath_var=no
11592 ;;
11593
11594 sysv4.3*)
11595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11596 hardcode_shlibpath_var=no
11597 export_dynamic_flag_spec='-Bexport'
11598 ;;
11599
11600 sysv4*MP*)
11601 if test -d /usr/nec; then
11602 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11603 hardcode_shlibpath_var=no
11604 runpath_var=LD_RUN_PATH
11605 hardcode_runpath_var=yes
11606 ld_shlibs=yes
11607 fi
11608 ;;
11609
11610 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11611 no_undefined_flag='$wl-z,text'
11612 archive_cmds_need_lc=no
11613 hardcode_shlibpath_var=no
11614 runpath_var='LD_RUN_PATH'
11615
11616 if test yes = "$GCC"; then
11617 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 else
11620 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11621 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11622 fi
11623 ;;
11624
11625 sysv5* | sco3.2v5* | sco5v6*)
11626 # Note: We CANNOT use -z defs as we might desire, because we do not
11627 # link with -lc, and that would cause any symbols used from libc to
11628 # always be unresolved, which means just about no library would
11629 # ever link correctly. If we're not using GNU ld we use -z text
11630 # though, which does catch some bad symbols but isn't as heavy-handed
11631 # as -z defs.
11632 no_undefined_flag='$wl-z,text'
11633 allow_undefined_flag='$wl-z,nodefs'
11634 archive_cmds_need_lc=no
11635 hardcode_shlibpath_var=no
11636 hardcode_libdir_flag_spec='$wl-R,$libdir'
11637 hardcode_libdir_separator=':'
11638 link_all_deplibs=yes
11639 export_dynamic_flag_spec='$wl-Bexport'
11640 runpath_var='LD_RUN_PATH'
11641
11642 if test yes = "$GCC"; then
11643 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11644 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 else
11646 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 fi
11649 ;;
11650
11651 uts4*)
11652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11653 hardcode_libdir_flag_spec='-L$libdir'
11654 hardcode_shlibpath_var=no
11655 ;;
11656
11657 *)
11658 ld_shlibs=no
11659 ;;
11660 esac
11661
11662 if test sni = "$host_vendor"; then
11663 case $host in
11664 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11665 export_dynamic_flag_spec='$wl-Blargedynsym'
11666 ;;
11667 esac
11668 fi
11669 fi
11670
11671 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11672 printf '%s\n' "$ld_shlibs" >&6; }
11673 test no = "$ld_shlibs" && can_build_shared=no
11674
11675 with_gnu_ld=$with_gnu_ld
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691 #
11692 # Do we need to explicitly link libc?
11693 #
11694 case "x$archive_cmds_need_lc" in
11695 x|xyes)
11696 # Assume -lc should be added
11697 archive_cmds_need_lc=yes
11698
11699 if test yes,yes = "$GCC,$enable_shared"; then
11700 case $archive_cmds in
11701 *'~'*)
11702 # FIXME: we may have to deal with multi-command sequences.
11703 ;;
11704 '$CC '*)
11705 # Test whether the compiler implicitly links with -lc since on some
11706 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11707 # to ld, don't add -lc before -lgcc.
11708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11709 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11710 if test ${lt_cv_archive_cmds_need_lc+y}
11711 then :
11712 printf %s "(cached) " >&6
11713 else case e in #(
11714 e) $RM conftest*
11715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11716
11717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11718 (eval $ac_compile) 2>&5
11719 ac_status=$?
11720 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721 test $ac_status = 0; } 2>conftest.err; then
11722 soname=conftest
11723 lib=conftest
11724 libobjs=conftest.$ac_objext
11725 deplibs=
11726 wl=$lt_prog_compiler_wl
11727 pic_flag=$lt_prog_compiler_pic
11728 compiler_flags=-v
11729 linker_flags=-v
11730 verstring=
11731 output_objdir=.
11732 libname=conftest
11733 lt_save_allow_undefined_flag=$allow_undefined_flag
11734 allow_undefined_flag=
11735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11736 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11737 ac_status=$?
11738 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11739 test $ac_status = 0; }
11740 then
11741 lt_cv_archive_cmds_need_lc=no
11742 else
11743 lt_cv_archive_cmds_need_lc=yes
11744 fi
11745 allow_undefined_flag=$lt_save_allow_undefined_flag
11746 else
11747 cat conftest.err 1>&5
11748 fi
11749 $RM conftest*
11750 ;;
11751 esac
11752 fi
11753 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11754 printf '%s\n' "$lt_cv_archive_cmds_need_lc" >&6; }
11755 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11756 ;;
11757 esac
11758 fi
11759 ;;
11760 esac
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11914 printf %s "checking dynamic linker characteristics... " >&6; }
11915
11916 if test yes = "$GCC"; then
11917 case $host_os in
11918 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11919 *) lt_awk_arg='/^libraries:/' ;;
11920 esac
11921 case $host_os in
11922 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11923 *) lt_sed_strip_eq='s|=/|/|g' ;;
11924 esac
11925 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11926 case $lt_search_path_spec in
11927 *\;*)
11928 # if the path contains ";" then we assume it to be the separator
11929 # otherwise default to the standard path separator (i.e. ":") - it is
11930 # assumed that no part of a normal pathname contains ";" but that should
11931 # okay in the real world where ";" in dirpaths is itself problematic.
11932 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11933 ;;
11934 *)
11935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11936 ;;
11937 esac
11938 # Ok, now we have the path, separated by spaces, we can step through it
11939 # and add multilib dir if necessary...
11940 lt_tmp_lt_search_path_spec=
11941 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11942 # ...but if some path component already ends with the multilib dir we assume
11943 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11944 case "$lt_multi_os_dir; $lt_search_path_spec " in
11945 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11946 lt_multi_os_dir=
11947 ;;
11948 esac
11949 for lt_sys_path in $lt_search_path_spec; do
11950 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11952 elif test -n "$lt_multi_os_dir"; then
11953 test -d "$lt_sys_path" && \
11954 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11955 fi
11956 done
11957 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11958 BEGIN {RS = " "; FS = "/|\n";} {
11959 lt_foo = "";
11960 lt_count = 0;
11961 for (lt_i = NF; lt_i > 0; lt_i--) {
11962 if ($lt_i != "" && $lt_i != ".") {
11963 if ($lt_i == "..") {
11964 lt_count++;
11965 } else {
11966 if (lt_count == 0) {
11967 lt_foo = "/" $lt_i lt_foo;
11968 } else {
11969 lt_count--;
11970 }
11971 }
11972 }
11973 }
11974 if (lt_foo != "") { lt_freq[lt_foo]++; }
11975 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11976 }'`
11977 # AWK program above erroneously prepends '/' to C:/dos/paths
11978 # for these hosts.
11979 case $host_os in
11980 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11981 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11982 esac
11983 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11984 else
11985 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11986 fi
11987 library_names_spec=
11988 libname_spec='lib$name'
11989 soname_spec=
11990 shrext_cmds=.so
11991 postinstall_cmds=
11992 postuninstall_cmds=
11993 finish_cmds=
11994 finish_eval=
11995 shlibpath_var=
11996 shlibpath_overrides_runpath=unknown
11997 version_type=none
11998 dynamic_linker="$host_os ld.so"
11999 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12000 need_lib_prefix=unknown
12001 hardcode_into_libs=no
12002
12003 # when you set need_version to no, make sure it does not cause -set_version
12004 # flags to be left without arguments
12005 need_version=unknown
12006
12007
12008
12009 case $host_os in
12010 aix3*)
12011 version_type=linux # correct to gnu/linux during the next big refactor
12012 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12013 shlibpath_var=LIBPATH
12014
12015 # AIX 3 has no versioning support, so we append a major version to the name.
12016 soname_spec='$libname$release$shared_ext$major'
12017 ;;
12018
12019 aix[4-9]*)
12020 version_type=linux # correct to gnu/linux during the next big refactor
12021 need_lib_prefix=no
12022 need_version=no
12023 hardcode_into_libs=yes
12024 if test ia64 = "$host_cpu"; then
12025 # AIX 5 supports IA64
12026 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12027 shlibpath_var=LD_LIBRARY_PATH
12028 else
12029 # With GCC up to 2.95.x, collect2 would create an import file
12030 # for dependence libraries. The import file would start with
12031 # the line '#! .'. This would cause the generated library to
12032 # depend on '.', always an invalid library. This was fixed in
12033 # development snapshots of GCC prior to 3.0.
12034 case $host_os in
12035 aix4 | aix4.[01] | aix4.[01].*)
12036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12037 echo ' yes '
12038 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12039 :
12040 else
12041 can_build_shared=no
12042 fi
12043 ;;
12044 esac
12045 # Using Import Files as archive members, it is possible to support
12046 # filename-based versioning of shared library archives on AIX. While
12047 # this would work for both with and without runtime linking, it will
12048 # prevent static linking of such archives. So we do filename-based
12049 # shared library versioning with .so extension only, which is used
12050 # when both runtime linking and shared linking is enabled.
12051 # Unfortunately, runtime linking may impact performance, so we do
12052 # not want this to be the default eventually. Also, we use the
12053 # versioned .so libs for executables only if there is the -brtl
12054 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12055 # To allow for filename-based versioning support, we need to create
12056 # libNAME.so.V as an archive file, containing:
12057 # *) an Import File, referring to the versioned filename of the
12058 # archive as well as the shared archive member, telling the
12059 # bitwidth (32 or 64) of that shared object, and providing the
12060 # list of exported symbols of that shared object, eventually
12061 # decorated with the 'weak' keyword
12062 # *) the shared object with the F_LOADONLY flag set, to really avoid
12063 # it being seen by the linker.
12064 # At run time we better use the real file rather than another symlink,
12065 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12066
12067 case $with_aix_soname,$aix_use_runtimelinking in
12068 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12069 # soname into executable. Probably we can add versioning support to
12070 # collect2, so additional links can be useful in future.
12071 aix,yes) # traditional libtool
12072 dynamic_linker='AIX unversionable lib.so'
12073 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12074 # instead of lib<name>.a to let people know that these are not
12075 # typical AIX shared libraries.
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12077 ;;
12078 aix,no) # traditional AIX only
12079 dynamic_linker='AIX lib.a(lib.so.V)'
12080 # We preserve .a as extension for shared libraries through AIX4.2
12081 # and later when we are not doing run time linking.
12082 library_names_spec='$libname$release.a $libname.a'
12083 soname_spec='$libname$release$shared_ext$major'
12084 ;;
12085 svr4,*) # full svr4 only
12086 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12087 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12088 # We do not specify a path in Import Files, so LIBPATH fires.
12089 shlibpath_overrides_runpath=yes
12090 ;;
12091 *,yes) # both, prefer svr4
12092 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12093 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12094 # unpreferred sharedlib libNAME.a needs extra handling
12095 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"'
12096 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"'
12097 # We do not specify a path in Import Files, so LIBPATH fires.
12098 shlibpath_overrides_runpath=yes
12099 ;;
12100 *,no) # both, prefer aix
12101 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12102 library_names_spec='$libname$release.a $libname.a'
12103 soname_spec='$libname$release$shared_ext$major'
12104 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12105 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)'
12106 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"'
12107 ;;
12108 esac
12109 shlibpath_var=LIBPATH
12110 fi
12111 ;;
12112
12113 amigaos*)
12114 case $host_cpu in
12115 powerpc)
12116 # Since July 2007 AmigaOS4 officially supports .so libraries.
12117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119 ;;
12120 m68k)
12121 library_names_spec='$libname.ixlibrary $libname.a'
12122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12123 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'
12124 ;;
12125 esac
12126 ;;
12127
12128 beos*)
12129 library_names_spec='$libname$shared_ext'
12130 dynamic_linker="$host_os ld.so"
12131 shlibpath_var=LIBRARY_PATH
12132 ;;
12133
12134 bsdi[45]*)
12135 version_type=linux # correct to gnu/linux during the next big refactor
12136 need_version=no
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 soname_spec='$libname$release$shared_ext$major'
12139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12143 # the default ld.so.conf also contains /usr/contrib/lib and
12144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12145 # libtool to hard-code these into programs
12146 ;;
12147
12148 cygwin* | mingw* | windows* | pw32* | cegcc*)
12149 version_type=windows
12150 shrext_cmds=.dll
12151 need_version=no
12152 need_lib_prefix=no
12153
12154 case $GCC,$cc_basename in
12155 yes,*)
12156 # gcc
12157 library_names_spec='$libname.dll.a'
12158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159 # If user builds GCC with multilib enabled,
12160 # it should just install on $(libdir)
12161 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12162 if test xyes = x"$multilib"; then
12163 postinstall_cmds='base_file=`basename \$file`~
12164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12165 dldir=$destdir/`dirname \$dlpath`~
12166 $install_prog $dir/$dlname $destdir/$dlname~
12167 chmod a+x $destdir/$dlname~
12168 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12169 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12170 fi'
12171 else
12172 postinstall_cmds='base_file=`basename \$file`~
12173 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12174 dldir=$destdir/`dirname \$dlpath`~
12175 test -d \$dldir || mkdir -p \$dldir~
12176 $install_prog $dir/$dlname \$dldir/$dlname~
12177 chmod a+x \$dldir/$dlname~
12178 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12179 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12180 fi'
12181 fi
12182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12183 dlpath=$dir/\$dldll~
12184 $RM \$dlpath'
12185 shlibpath_overrides_runpath=yes
12186
12187 case $host_os in
12188 cygwin*)
12189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12190 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12191
12192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12193 ;;
12194 mingw* | windows* | cegcc*)
12195 # MinGW DLLs use traditional 'lib' prefix
12196 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12197 ;;
12198 pw32*)
12199 # pw32 DLLs use 'pw' prefix rather than 'lib'
12200 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12201 ;;
12202 esac
12203 dynamic_linker='Win32 ld.exe'
12204 ;;
12205
12206 *,cl* | *,icl* | *,icx*)
12207 # Native MSVC and Intel compilers
12208 libname_spec='$name'
12209 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12210 library_names_spec='$libname.dll.lib'
12211
12212 case $build_os in
12213 mingw* | windows*)
12214 sys_lib_search_path_spec=
12215 lt_save_ifs=$IFS
12216 IFS=';'
12217 for lt_path in $LIB
12218 do
12219 IFS=$lt_save_ifs
12220 # Let DOS variable expansion print the short 8.3 style file name.
12221 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12222 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12223 done
12224 IFS=$lt_save_ifs
12225 # Convert to MSYS style.
12226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12227 ;;
12228 cygwin*)
12229 # Convert to unix form, then to dos form, then back to unix form
12230 # but this time dos style (no spaces!) so that the unix form looks
12231 # like /cygdrive/c/PROGRA~1:/cygdr...
12232 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12233 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12234 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12235 ;;
12236 *)
12237 sys_lib_search_path_spec=$LIB
12238 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12239 # It is most probably a Windows format PATH.
12240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12241 else
12242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12243 fi
12244 # FIXME: find the short name or the path components, as spaces are
12245 # common. (e.g. "Program Files" -> "PROGRA~1")
12246 ;;
12247 esac
12248
12249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12250 postinstall_cmds='base_file=`basename \$file`~
12251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12252 dldir=$destdir/`dirname \$dlpath`~
12253 test -d \$dldir || mkdir -p \$dldir~
12254 $install_prog $dir/$dlname \$dldir/$dlname'
12255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12256 dlpath=$dir/\$dldll~
12257 $RM \$dlpath'
12258 shlibpath_overrides_runpath=yes
12259 dynamic_linker='Win32 link.exe'
12260 ;;
12261
12262 *)
12263 # Assume MSVC and ICC wrapper
12264 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12265 dynamic_linker='Win32 ld.exe'
12266 ;;
12267 esac
12268 # FIXME: first we should search . and the directory the executable is in
12269 shlibpath_var=PATH
12270 ;;
12271
12272 darwin* | rhapsody*)
12273 dynamic_linker="$host_os dyld"
12274 version_type=darwin
12275 need_lib_prefix=no
12276 need_version=no
12277 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12278 soname_spec='$libname$release$major$shared_ext'
12279 shlibpath_overrides_runpath=yes
12280 shlibpath_var=DYLD_LIBRARY_PATH
12281 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12282
12283 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12284 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12285 ;;
12286
12287 dgux*)
12288 version_type=linux # correct to gnu/linux during the next big refactor
12289 need_lib_prefix=no
12290 need_version=no
12291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12292 soname_spec='$libname$release$shared_ext$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 ;;
12295
12296 freebsd* | dragonfly* | midnightbsd*)
12297 # DragonFly does not have aout. When/if they implement a new
12298 # versioning mechanism, adjust this.
12299 if test -x /usr/bin/objformat; then
12300 objformat=`/usr/bin/objformat`
12301 else
12302 case $host_os in
12303 freebsd[23].*) objformat=aout ;;
12304 *) objformat=elf ;;
12305 esac
12306 fi
12307 version_type=freebsd-$objformat
12308 case $version_type in
12309 freebsd-elf*)
12310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12311 soname_spec='$libname$release$shared_ext$major'
12312 need_version=no
12313 need_lib_prefix=no
12314 ;;
12315 freebsd-*)
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12317 need_version=yes
12318 ;;
12319 esac
12320 case $host_cpu in
12321 powerpc64)
12322 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12323 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 int test_pointer_size[sizeof (void *) - 5];
12327
12328 _ACEOF
12329 if ac_fn_c_try_compile "$LINENO"
12330 then :
12331 shlibpath_var=LD_LIBRARY_PATH
12332 else case e in #(
12333 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12334 esac
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12337 ;;
12338 *)
12339 shlibpath_var=LD_LIBRARY_PATH
12340 ;;
12341 esac
12342 case $host_os in
12343 freebsd2.*)
12344 shlibpath_overrides_runpath=yes
12345 ;;
12346 freebsd3.[01]* | freebsdelf3.[01]*)
12347 shlibpath_overrides_runpath=yes
12348 hardcode_into_libs=yes
12349 ;;
12350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12352 shlibpath_overrides_runpath=no
12353 hardcode_into_libs=yes
12354 ;;
12355 *) # from 4.6 on, and DragonFly
12356 shlibpath_overrides_runpath=yes
12357 hardcode_into_libs=yes
12358 ;;
12359 esac
12360 ;;
12361
12362 haiku*)
12363 version_type=linux # correct to gnu/linux during the next big refactor
12364 need_lib_prefix=no
12365 need_version=no
12366 dynamic_linker="$host_os runtime_loader"
12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368 soname_spec='$libname$release$shared_ext$major'
12369 shlibpath_var=LIBRARY_PATH
12370 shlibpath_overrides_runpath=no
12371 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12372 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12373 hardcode_into_libs=no
12374 ;;
12375
12376 hpux9* | hpux10* | hpux11*)
12377 # Give a soname corresponding to the major version so that dld.sl refuses to
12378 # link against other versions.
12379 version_type=sunos
12380 need_lib_prefix=no
12381 need_version=no
12382 case $host_cpu in
12383 ia64*)
12384 shrext_cmds='.so'
12385 hardcode_into_libs=yes
12386 dynamic_linker="$host_os dld.so"
12387 shlibpath_var=LD_LIBRARY_PATH
12388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12390 soname_spec='$libname$release$shared_ext$major'
12391 if test 32 = "$HPUX_IA64_MODE"; then
12392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12393 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12394 else
12395 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12396 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12397 fi
12398 ;;
12399 hppa*64*)
12400 shrext_cmds='.sl'
12401 hardcode_into_libs=yes
12402 dynamic_linker="$host_os dld.sl"
12403 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406 soname_spec='$libname$release$shared_ext$major'
12407 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12408 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12409 ;;
12410 *)
12411 shrext_cmds='.sl'
12412 dynamic_linker="$host_os dld.sl"
12413 shlibpath_var=SHLIB_PATH
12414 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416 soname_spec='$libname$release$shared_ext$major'
12417 ;;
12418 esac
12419 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12420 postinstall_cmds='chmod 555 $lib'
12421 # or fails outright, so override atomically:
12422 install_override_mode=555
12423 ;;
12424
12425 interix[3-9]*)
12426 version_type=linux # correct to gnu/linux during the next big refactor
12427 need_lib_prefix=no
12428 need_version=no
12429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12430 soname_spec='$libname$release$shared_ext$major'
12431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath=no
12434 hardcode_into_libs=yes
12435 ;;
12436
12437 irix5* | irix6* | nonstopux*)
12438 case $host_os in
12439 nonstopux*) version_type=nonstopux ;;
12440 *)
12441 if test yes = "$lt_cv_prog_gnu_ld"; then
12442 version_type=linux # correct to gnu/linux during the next big refactor
12443 else
12444 version_type=irix
12445 fi ;;
12446 esac
12447 need_lib_prefix=no
12448 need_version=no
12449 soname_spec='$libname$release$shared_ext$major'
12450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12451 case $host_os in
12452 irix5* | nonstopux*)
12453 libsuff= shlibsuff=
12454 ;;
12455 *)
12456 case $LD in # libtool.m4 will add one of these switches to LD
12457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12458 libsuff= shlibsuff= libmagic=32-bit;;
12459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12460 libsuff=32 shlibsuff=N32 libmagic=N32;;
12461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12463 *) libsuff= shlibsuff= libmagic=never-match;;
12464 esac
12465 ;;
12466 esac
12467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12468 shlibpath_overrides_runpath=no
12469 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12470 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12471 hardcode_into_libs=yes
12472 ;;
12473
12474 *-mlibc)
12475 version_type=linux # correct to gnu/linux during the next big refactor
12476 need_lib_prefix=no
12477 need_version=no
12478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12479 soname_spec='$libname$release$shared_ext$major'
12480 dynamic_linker='mlibc ld.so'
12481 shlibpath_var=LD_LIBRARY_PATH
12482 shlibpath_overrides_runpath=no
12483 hardcode_into_libs=yes
12484 ;;
12485
12486 # No shared lib support for Linux oldld, aout, or coff.
12487 linux*oldld* | linux*aout* | linux*coff*)
12488 dynamic_linker=no
12489 ;;
12490
12491 linux*android*)
12492 version_type=none # Android doesn't support versioned libraries.
12493 need_lib_prefix=no
12494 need_version=no
12495 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12496 soname_spec='$libname$release$shared_ext'
12497 finish_cmds=
12498 shlibpath_var=LD_LIBRARY_PATH
12499 shlibpath_overrides_runpath=yes
12500
12501 # This implies no fast_install, which is unacceptable.
12502 # Some rework will be needed to allow for fast_install
12503 # before this can be enabled.
12504 hardcode_into_libs=yes
12505
12506 dynamic_linker='Android linker'
12507 # -rpath works at least for libraries that are not overridden by
12508 # libraries installed in system locations.
12509 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12510 ;;
12511
12512 # This must be glibc/ELF.
12513 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12514 version_type=linux # correct to gnu/linux during the next big refactor
12515 need_lib_prefix=no
12516 need_version=no
12517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12518 soname_spec='$libname$release$shared_ext$major'
12519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12520 shlibpath_var=LD_LIBRARY_PATH
12521 shlibpath_overrides_runpath=no
12522
12523 # Some binutils ld are patched to set DT_RUNPATH
12524 if test ${lt_cv_shlibpath_overrides_runpath+y}
12525 then :
12526 printf %s "(cached) " >&6
12527 else case e in #(
12528 e) lt_cv_shlibpath_overrides_runpath=no
12529 save_LDFLAGS=$LDFLAGS
12530 save_libdir=$libdir
12531 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12532 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535
12536 int
12537 main (void)
12538 {
12539
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"
12545 then :
12546 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12547 then :
12548 lt_cv_shlibpath_overrides_runpath=yes
12549 fi
12550 fi
12551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12552 conftest$ac_exeext conftest.$ac_ext
12553 LDFLAGS=$save_LDFLAGS
12554 libdir=$save_libdir
12555 ;;
12556 esac
12557 fi
12558
12559 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12560
12561 # This implies no fast_install, which is unacceptable.
12562 # Some rework will be needed to allow for fast_install
12563 # before this can be enabled.
12564 hardcode_into_libs=yes
12565
12566 # Ideally, we could use ldconfig to report *all* directories which are
12567 # searched for libraries, however this is still not possible. Aside from not
12568 # being certain /sbin/ldconfig is available, command
12569 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12570 # even though it is searched at run-time. Try to do the best guess by
12571 # appending ld.so.conf contents (and includes) to the search path.
12572 if test -f /etc/ld.so.conf; then
12573 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' ' '`
12574 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12575 fi
12576
12577 # We used to test for /lib/ld.so.1 and disable shared libraries on
12578 # powerpc, because MkLinux only supported shared libraries with the
12579 # GNU dynamic linker. Since this was broken with cross compilers,
12580 # most powerpc-linux boxes support dynamic linking these days and
12581 # people can always --disable-shared, the test was removed, and we
12582 # assume the GNU/Linux dynamic linker is in use.
12583 dynamic_linker='GNU/Linux ld.so'
12584 ;;
12585
12586 netbsdelf*-gnu)
12587 version_type=linux
12588 need_lib_prefix=no
12589 need_version=no
12590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591 soname_spec='$libname$release$shared_ext$major'
12592 shlibpath_var=LD_LIBRARY_PATH
12593 shlibpath_overrides_runpath=no
12594 hardcode_into_libs=yes
12595 dynamic_linker='NetBSD ld.elf_so'
12596 enable_cxx_stdlib=yes
12597 stdlibflag=
12598 ;;
12599
12600 netbsd*)
12601 version_type=sunos
12602 need_lib_prefix=no
12603 need_version=no
12604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12605 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12607 dynamic_linker='NetBSD (a.out) ld.so'
12608 else
12609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12610 soname_spec='$libname$release$shared_ext$major'
12611 dynamic_linker='NetBSD ld.elf_so'
12612 fi
12613 shlibpath_var=LD_LIBRARY_PATH
12614 shlibpath_overrides_runpath=yes
12615 hardcode_into_libs=yes
12616 enable_cxx_stdlib=yes
12617 stdlibflag=
12618 ;;
12619
12620 newsos6)
12621 version_type=linux # correct to gnu/linux during the next big refactor
12622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12623 shlibpath_var=LD_LIBRARY_PATH
12624 shlibpath_overrides_runpath=yes
12625 ;;
12626
12627 *nto* | *qnx*)
12628 version_type=qnx
12629 need_lib_prefix=no
12630 need_version=no
12631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12632 soname_spec='$libname$release$shared_ext$major'
12633 shlibpath_var=LD_LIBRARY_PATH
12634 shlibpath_overrides_runpath=no
12635 hardcode_into_libs=yes
12636 dynamic_linker='ldqnx.so'
12637 ;;
12638
12639 openbsd*)
12640 version_type=sunos
12641 sys_lib_dlsearch_path_spec=/usr/lib
12642 need_lib_prefix=no
12643 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12644 need_version=no
12645 else
12646 need_version=yes
12647 fi
12648 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12650 shlibpath_var=LD_LIBRARY_PATH
12651 shlibpath_overrides_runpath=yes
12652 ;;
12653
12654 os2*)
12655 libname_spec='$name'
12656 version_type=windows
12657 shrext_cmds=.dll
12658 need_version=no
12659 need_lib_prefix=no
12660 # OS/2 can only load a DLL with a base name of 8 characters or less.
12661 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12662 n=$($ECHO $libname | tr -d .-);
12663 l=${#n}; test 3 -lt "$l" && l=3; mr=$((8 - $l));
12664 r=$($ECHO $release | tr -d .-);
12665 l=${#r}; test 2 -lt "$l" && l=2; mv=$(($mr - $l));
12666 v=$($ECHO $versuffix | tr -d .- | cut -b -$mv);
12667 r=$($ECHO $r | cut -b -$(($mr - ${#v})));
12668 n=$($ECHO $n | cut -b -$((8 - ${#r} - ${#v})));
12669 $ECHO $n$r$v`$shared_ext'
12670 library_names_spec='${libname}_dll.$libext'
12671 dynamic_linker='OS/2 ld.exe'
12672 shlibpath_var=BEGINLIBPATH
12673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12675 postinstall_cmds='base_file=`basename \$file`~
12676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12677 dldir=$destdir/`dirname \$dlpath`~
12678 test -d \$dldir || mkdir -p \$dldir~
12679 $install_prog $dir/$dlname \$dldir/$dlname~
12680 chmod a+x \$dldir/$dlname~
12681 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12682 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12683 fi'
12684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12685 dlpath=$dir/\$dldll~
12686 $RM \$dlpath'
12687 ;;
12688
12689 osf3* | osf4* | osf5*)
12690 version_type=osf
12691 need_lib_prefix=no
12692 need_version=no
12693 soname_spec='$libname$release$shared_ext$major'
12694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12698 ;;
12699
12700 rdos*)
12701 dynamic_linker=no
12702 ;;
12703
12704 serenity*)
12705 version_type=linux # correct to gnu/linux during the next big refactor
12706 need_lib_prefix=no
12707 need_version=no
12708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12709 soname_spec='$libname$release$shared_ext$major'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 shlibpath_overrides_runpath=no
12712 dynamic_linker='SerenityOS LibELF'
12713 ;;
12714
12715 solaris*)
12716 version_type=linux # correct to gnu/linux during the next big refactor
12717 need_lib_prefix=no
12718 need_version=no
12719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12720 soname_spec='$libname$release$shared_ext$major'
12721 shlibpath_var=LD_LIBRARY_PATH
12722 shlibpath_overrides_runpath=yes
12723 hardcode_into_libs=yes
12724 # ldd complains unless libraries are executable
12725 postinstall_cmds='chmod +x $lib'
12726 ;;
12727
12728 sunos4*)
12729 version_type=sunos
12730 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=yes
12734 if test yes = "$with_gnu_ld"; then
12735 need_lib_prefix=no
12736 fi
12737 need_version=yes
12738 ;;
12739
12740 sysv4 | sysv4.3*)
12741 version_type=linux # correct to gnu/linux during the next big refactor
12742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12743 soname_spec='$libname$release$shared_ext$major'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 case $host_vendor in
12746 sni)
12747 shlibpath_overrides_runpath=no
12748 need_lib_prefix=no
12749 runpath_var=LD_RUN_PATH
12750 ;;
12751 siemens)
12752 need_lib_prefix=no
12753 ;;
12754 motorola)
12755 need_lib_prefix=no
12756 need_version=no
12757 shlibpath_overrides_runpath=no
12758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12759 ;;
12760 esac
12761 ;;
12762
12763 sysv4*MP*)
12764 if test -d /usr/nec; then
12765 version_type=linux # correct to gnu/linux during the next big refactor
12766 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12767 soname_spec='$libname$shared_ext.$major'
12768 shlibpath_var=LD_LIBRARY_PATH
12769 fi
12770 ;;
12771
12772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12773 version_type=sco
12774 need_lib_prefix=no
12775 need_version=no
12776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12777 soname_spec='$libname$release$shared_ext$major'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 shlibpath_overrides_runpath=yes
12780 hardcode_into_libs=yes
12781 if test yes = "$with_gnu_ld"; then
12782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12783 else
12784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12785 case $host_os in
12786 sco3.2v5*)
12787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12788 ;;
12789 esac
12790 fi
12791 sys_lib_dlsearch_path_spec='/usr/lib'
12792 ;;
12793
12794 tpf*)
12795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12796 version_type=linux # correct to gnu/linux during the next big refactor
12797 need_lib_prefix=no
12798 need_version=no
12799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=no
12802 hardcode_into_libs=yes
12803 ;;
12804
12805 uts4*)
12806 version_type=linux # correct to gnu/linux during the next big refactor
12807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12808 soname_spec='$libname$release$shared_ext$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 ;;
12811
12812 emscripten*)
12813 version_type=none
12814 need_lib_prefix=no
12815 need_version=no
12816 library_names_spec='$libname$release$shared_ext'
12817 soname_spec='$libname$release$shared_ext'
12818 finish_cmds=
12819 dynamic_linker="Emscripten linker"
12820 lt_prog_compiler_wl=
12821 lt_prog_compiler_pic=
12822 lt_prog_compiler_static=
12823
12824
12825 if test yes = "$GCC"; then
12826 lt_prog_compiler_wl='-Wl,'
12827 lt_prog_compiler_static='-static'
12828
12829 case $host_os in
12830 aix*)
12831 # All AIX code is PIC.
12832 if test ia64 = "$host_cpu"; then
12833 # AIX 5 now supports IA64 processor
12834 lt_prog_compiler_static='-Bstatic'
12835 fi
12836 lt_prog_compiler_pic='-fPIC'
12837 ;;
12838
12839 amigaos*)
12840 case $host_cpu in
12841 powerpc)
12842 # see comment about AmigaOS4 .so support
12843 lt_prog_compiler_pic='-fPIC'
12844 ;;
12845 m68k)
12846 # FIXME: we need at least 68020 code to build shared libraries, but
12847 # adding the '-m68020' flag to GCC prevents building anything better,
12848 # like '-m68040'.
12849 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12850 ;;
12851 esac
12852 ;;
12853
12854 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12855 # PIC is the default for these OSes.
12856 ;;
12857
12858 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12859 # This hack is so that the source file can tell whether it is being
12860 # built for inclusion in a dll (and should export symbols for example).
12861 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12862 # (--disable-auto-import) libraries
12863 lt_prog_compiler_pic='-DDLL_EXPORT'
12864 case $host_os in
12865 os2*)
12866 lt_prog_compiler_static='$wl-static'
12867 ;;
12868 esac
12869 ;;
12870
12871 darwin* | rhapsody*)
12872 # PIC is the default on this platform
12873 # Common symbols not allowed in MH_DYLIB files
12874 lt_prog_compiler_pic='-fno-common'
12875 ;;
12876
12877 haiku*)
12878 # PIC is the default for Haiku.
12879 # The "-static" flag exists, but is broken.
12880 lt_prog_compiler_static=
12881 ;;
12882
12883 hpux*)
12884 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12885 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12886 # sets the default TLS model and affects inlining.
12887 case $host_cpu in
12888 hppa*64*)
12889 # +Z the default
12890 ;;
12891 *)
12892 lt_prog_compiler_pic='-fPIC'
12893 ;;
12894 esac
12895 ;;
12896
12897 interix[3-9]*)
12898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12899 # Instead, we relocate shared libraries at runtime.
12900 ;;
12901
12902 msdosdjgpp*)
12903 # Just because we use GCC doesn't mean we suddenly get shared libraries
12904 # on systems that don't support them.
12905 lt_prog_compiler_can_build_shared=no
12906 enable_shared=no
12907 ;;
12908
12909 *nto* | *qnx*)
12910 # QNX uses GNU C++, but need to define -shared option too, otherwise
12911 # it will coredump.
12912 lt_prog_compiler_pic='-fPIC -shared'
12913 ;;
12914
12915 sysv4*MP*)
12916 if test -d /usr/nec; then
12917 lt_prog_compiler_pic=-Kconform_pic
12918 fi
12919 ;;
12920
12921 *)
12922 lt_prog_compiler_pic='-fPIC'
12923 ;;
12924 esac
12925
12926 case $cc_basename in
12927 nvcc*) # Cuda Compiler Driver 2.2
12928 lt_prog_compiler_wl='-Xlinker '
12929 if test -n "$lt_prog_compiler_pic"; then
12930 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12931 fi
12932 ;;
12933 esac
12934 else
12935 # PORTME Check for flag to pass linker flags through the system compiler.
12936 case $host_os in
12937 aix*)
12938 lt_prog_compiler_wl='-Wl,'
12939 if test ia64 = "$host_cpu"; then
12940 # AIX 5 now supports IA64 processor
12941 lt_prog_compiler_static='-Bstatic'
12942 else
12943 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.expsym'
12944 fi
12945 ;;
12946
12947 darwin* | rhapsody*)
12948 # PIC is the default on this platform
12949 # Common symbols not allowed in MH_DYLIB files
12950 lt_prog_compiler_pic='-fno-common'
12951 case $cc_basename in
12952 nagfor*)
12953 # NAG Fortran compiler
12954 lt_prog_compiler_wl='-Wl,-Wl,,'
12955 lt_prog_compiler_pic='-PIC'
12956 lt_prog_compiler_static='-Bstatic'
12957 ;;
12958 esac
12959 ;;
12960
12961 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12962 # This hack is so that the source file can tell whether it is being
12963 # built for inclusion in a dll (and should export symbols for example).
12964 lt_prog_compiler_pic='-DDLL_EXPORT'
12965 case $host_os in
12966 os2*)
12967 lt_prog_compiler_static='$wl-static'
12968 ;;
12969 esac
12970 ;;
12971
12972 hpux9* | hpux10* | hpux11*)
12973 lt_prog_compiler_wl='-Wl,'
12974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12975 # not for PA HP-UX.
12976 case $host_cpu in
12977 hppa*64*|ia64*)
12978 # +Z the default
12979 ;;
12980 *)
12981 lt_prog_compiler_pic='+Z'
12982 ;;
12983 esac
12984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12985 lt_prog_compiler_static='$wl-a ${wl}archive'
12986 ;;
12987
12988 irix5* | irix6* | nonstopux*)
12989 lt_prog_compiler_wl='-Wl,'
12990 # PIC (with -KPIC) is the default.
12991 lt_prog_compiler_static='-non_shared'
12992 ;;
12993
12994 *-mlibc)
12995 lt_prog_compiler_wl='-Wl,'
12996 lt_prog_compiler_pic='-fPIC'
12997 lt_prog_compiler_static='-static'
12998 ;;
12999
13000 linux* | ironclad*-gnu | k*bsd*-gnu | kopensolaris*-gnu | gnu* | freebsd*)
13001 case $cc_basename in
13002 # old Intel for x86_64, which still supported -KPIC.
13003 ecc*)
13004 lt_prog_compiler_wl='-Wl,'
13005 lt_prog_compiler_pic='-KPIC'
13006 lt_prog_compiler_static='-static'
13007 ;;
13008 *flang* | ftn | f18* | f95*)
13009 # Flang compiler.
13010 lt_prog_compiler_wl='-Wl,'
13011 lt_prog_compiler_pic='-fPIC'
13012 lt_prog_compiler_static='-static'
13013 ;;
13014 # icc used to be incompatible with GCC.
13015 # ICC 10 doesn't accept -KPIC any more.
13016 icc* | ifort* | icx* | ifx*)
13017 lt_prog_compiler_wl='-Wl,'
13018 lt_prog_compiler_pic='-fPIC'
13019 lt_prog_compiler_static='-static'
13020 ;;
13021 # Lahey Fortran 8.1.
13022 lf95*)
13023 lt_prog_compiler_wl='-Wl,'
13024 lt_prog_compiler_pic='--shared'
13025 lt_prog_compiler_static='--static'
13026 ;;
13027 nagfor*)
13028 # NAG Fortran compiler
13029 lt_prog_compiler_wl='-Wl,-Wl,,'
13030 lt_prog_compiler_pic='-PIC'
13031 lt_prog_compiler_static='-Bstatic'
13032 ;;
13033 tcc*)
13034 # Fabrice Bellard et al's Tiny C Compiler
13035 lt_prog_compiler_wl='-Wl,'
13036 lt_prog_compiler_pic='-fPIC'
13037 lt_prog_compiler_static='-static'
13038 ;;
13039 slimcc*)
13040 # Hsiang-Ying Fu and Jim Huang's x86_64 SlimCC compiler
13041 lt_prog_compiler_wl='-Wl,'
13042 lt_prog_compiler_pic='-fPIC'
13043 lt_prog_compiler_static='-static'
13044 ;;
13045 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13046 # Portland Group compilers (*not* the Pentium gcc compiler,
13047 # which looks to be a dead project)
13048 lt_prog_compiler_wl='-Wl,'
13049 lt_prog_compiler_pic='-fpic'
13050 lt_prog_compiler_static='-Bstatic'
13051 ;;
13052 ccc*)
13053 lt_prog_compiler_wl='-Wl,'
13054 # All Alpha code is PIC.
13055 lt_prog_compiler_static='-non_shared'
13056 ;;
13057 xl* | bgxl* | bgf* | mpixl*)
13058 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13059 lt_prog_compiler_wl='-Wl,'
13060 lt_prog_compiler_pic='-qpic'
13061 lt_prog_compiler_static='-qstaticlink'
13062 ;;
13063 *)
13064 case `$CC -V 2>&1 | $SED 5q` in
13065 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13066 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13067 lt_prog_compiler_pic='-KPIC'
13068 lt_prog_compiler_static='-Bstatic'
13069 lt_prog_compiler_wl=''
13070 ;;
13071 *Sun\ F* | *Sun*Fortran*)
13072 lt_prog_compiler_pic='-KPIC'
13073 lt_prog_compiler_static='-Bstatic'
13074 lt_prog_compiler_wl='-Qoption ld '
13075 ;;
13076 *Sun\ C*)
13077 # Sun C 5.9
13078 lt_prog_compiler_pic='-KPIC'
13079 lt_prog_compiler_static='-Bstatic'
13080 lt_prog_compiler_wl='-Wl,'
13081 ;;
13082 *Intel*\ [CF]*Compiler*)
13083 lt_prog_compiler_wl='-Wl,'
13084 lt_prog_compiler_pic='-fPIC'
13085 lt_prog_compiler_static='-static'
13086 ;;
13087 *Portland\ Group*)
13088 lt_prog_compiler_wl='-Wl,'
13089 lt_prog_compiler_pic='-fpic'
13090 lt_prog_compiler_static='-Bstatic'
13091 ;;
13092 esac
13093 ;;
13094 esac
13095 ;;
13096
13097 newsos6)
13098 lt_prog_compiler_pic='-KPIC'
13099 lt_prog_compiler_static='-Bstatic'
13100 ;;
13101
13102 *nto* | *qnx*)
13103 # QNX uses GNU C++, but need to define -shared option too, otherwise
13104 # it will coredump.
13105 lt_prog_compiler_pic='-fPIC -shared'
13106 ;;
13107
13108 osf3* | osf4* | osf5*)
13109 lt_prog_compiler_wl='-Wl,'
13110 # All OSF/1 code is PIC.
13111 lt_prog_compiler_static='-non_shared'
13112 ;;
13113
13114 rdos*)
13115 lt_prog_compiler_static='-non_shared'
13116 ;;
13117
13118 serenity*)
13119 ;;
13120
13121 solaris*)
13122 lt_prog_compiler_pic='-KPIC'
13123 lt_prog_compiler_static='-Bstatic'
13124 case $cc_basename in
13125 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13126 lt_prog_compiler_wl='-Qoption ld ';;
13127 *)
13128 lt_prog_compiler_wl='-Wl,';;
13129 esac
13130 ;;
13131
13132 sunos4*)
13133 lt_prog_compiler_wl='-Qoption ld '
13134 lt_prog_compiler_pic='-PIC'
13135 lt_prog_compiler_static='-Bstatic'
13136 ;;
13137
13138 sysv4 | sysv4.2uw2* | sysv4.3*)
13139 lt_prog_compiler_wl='-Wl,'
13140 lt_prog_compiler_pic='-KPIC'
13141 lt_prog_compiler_static='-Bstatic'
13142 ;;
13143
13144 sysv4*MP*)
13145 if test -d /usr/nec; then
13146 lt_prog_compiler_pic='-Kconform_pic'
13147 lt_prog_compiler_static='-Bstatic'
13148 fi
13149 ;;
13150
13151 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13152 lt_prog_compiler_wl='-Wl,'
13153 lt_prog_compiler_pic='-KPIC'
13154 lt_prog_compiler_static='-Bstatic'
13155 ;;
13156
13157 unicos*)
13158 lt_prog_compiler_wl='-Wl,'
13159 lt_prog_compiler_can_build_shared=no
13160 ;;
13161
13162 uts4*)
13163 lt_prog_compiler_pic='-pic'
13164 lt_prog_compiler_static='-Bstatic'
13165 ;;
13166
13167 *)
13168 lt_prog_compiler_can_build_shared=no
13169 ;;
13170 esac
13171 fi
13172
13173 case $host_os in
13174 # For platforms that do not support PIC, -DPIC is meaningless:
13175 *djgpp*)
13176 lt_prog_compiler_pic=
13177 ;;
13178 *)
13179 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13180 ;;
13181 esac
13182
13183 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13184 printf %s "checking for $compiler option to produce PIC... " >&6; }
13185 if test ${lt_cv_prog_compiler_pic+y}
13186 then :
13187 printf %s "(cached) " >&6
13188 else case e in #(
13189 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13190 esac
13191 fi
13192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13193 printf '%s\n' "$lt_cv_prog_compiler_pic" >&6; }
13194 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13195
13196 #
13197 # Check to make sure the PIC flag actually works.
13198 #
13199 if test -n "$lt_prog_compiler_pic"; then
13200 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13201 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13202 if test ${lt_cv_prog_compiler_pic_works+y}
13203 then :
13204 printf %s "(cached) " >&6
13205 else case e in #(
13206 e) lt_cv_prog_compiler_pic_works=no
13207 ac_outfile=conftest.$ac_objext
13208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13209 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13210 # Insert the option either (1) after the last *FLAGS variable, or
13211 # (2) before a word containing "conftest.", or (3) at the end.
13212 # Note that $ac_compile itself does not contain backslashes and begins
13213 # with a dollar sign (not a hyphen), so the echo should work correctly.
13214 # The option is referenced via a variable to avoid confusing sed.
13215 lt_compile=`echo "$ac_compile" | $SED \
13216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13218 -e 's:$: $lt_compiler_flag:'`
13219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13220 (eval "$lt_compile" 2>conftest.err)
13221 ac_status=$?
13222 cat conftest.err >&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 if (exit $ac_status) && test -s "$ac_outfile"; then
13225 # The compiler can only warn and ignore the option if not recognized
13226 # So say no if there are warnings other than the usual output.
13227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.expsym
13228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13229 if test ! -s conftest.er2 || diff conftest.expsym conftest.er2 >/dev/null; then
13230 lt_cv_prog_compiler_pic_works=yes
13231 fi
13232 fi
13233 $RM conftest*
13234 ;;
13235 esac
13236 fi
13237 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13238 printf '%s\n' "$lt_cv_prog_compiler_pic_works" >&6; }
13239
13240 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13241 case $lt_prog_compiler_pic in
13242 "" | " "*) ;;
13243 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13244 esac
13245 else
13246 lt_prog_compiler_pic=
13247 lt_prog_compiler_can_build_shared=no
13248 fi
13249
13250 fi
13251
13252
13253
13254
13255
13256 #
13257 # Check to make sure the static flag actually works.
13258 #
13259 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13261 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13262 if test ${lt_cv_prog_compiler_static_works+y}
13263 then :
13264 printf %s "(cached) " >&6
13265 else case e in #(
13266 e) lt_cv_prog_compiler_static_works=no
13267 save_LDFLAGS=$LDFLAGS
13268 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13269 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13270 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13271 # The linker can only warn and ignore the option if not recognized
13272 # So say no if there are warnings
13273 if test -s conftest.err; then
13274 # Append any errors to the config.log.
13275 cat conftest.err 1>&5
13276 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.expsym
13277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13278 if diff conftest.expsym conftest.er2 >/dev/null; then
13279 lt_cv_prog_compiler_static_works=yes
13280 fi
13281 else
13282 lt_cv_prog_compiler_static_works=yes
13283 fi
13284 fi
13285 $RM -r conftest*
13286 LDFLAGS=$save_LDFLAGS
13287 ;;
13288 esac
13289 fi
13290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13291 printf '%s\n' "$lt_cv_prog_compiler_static_works" >&6; }
13292
13293 if test yes = "$lt_cv_prog_compiler_static_works"; then
13294 :
13295 else
13296 lt_prog_compiler_static=
13297 fi
13298
13299
13300
13301 ='-fPIC'
13302 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13303 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'
13304 archive_cmds_need_lc=no
13305 no_undefined_flag=
13306 ;;
13307
13308 *)
13309 dynamic_linker=no
13310 ;;
13311 esac
13312 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13313 printf '%s\n' "$dynamic_linker" >&6; }
13314 test no = "$dynamic_linker" && can_build_shared=no
13315
13316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13317 if test yes = "$GCC"; then
13318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13319 fi
13320
13321 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13322 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13323 fi
13324
13325 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13326 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13327 fi
13328
13329 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13330 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13331
13332 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13333 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13334
13335 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13336 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13435 printf %s "checking how to hardcode library paths into programs... " >&6; }
13436 hardcode_action=
13437 if test -n "$hardcode_libdir_flag_spec" ||
13438 test -n "$runpath_var" ||
13439 test yes = "$hardcode_automatic"; then
13440
13441 # We can hardcode non-existent directories.
13442 if test no != "$hardcode_direct" &&
13443 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13444 # have to relink, otherwise we might link with an installed library
13445 # when we should be linking with a yet-to-be-installed one
13446 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13447 test no != "$hardcode_minus_L"; then
13448 # Linking always hardcodes the temporary library directory.
13449 hardcode_action=relink
13450 else
13451 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13452 hardcode_action=immediate
13453 fi
13454 else
13455 # We cannot hardcode anything, or else we can only hardcode existing
13456 # directories.
13457 hardcode_action=unsupported
13458 fi
13459 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13460 printf '%s\n' "$hardcode_action" >&6; }
13461
13462 if test relink = "$hardcode_action" ||
13463 test yes = "$inherit_rpath"; then
13464 # Fast installation is not supported
13465 enable_fast_install=no
13466 elif test yes = "$shlibpath_overrides_runpath" ||
13467 test no = "$enable_shared"; then
13468 # Fast installation is not necessary
13469 enable_fast_install=needless
13470 fi
13471
13472
13473
13474
13475
13476
13477 if test yes != "$enable_dlopen"; then
13478 enable_dlopen=unknown
13479 enable_dlopen_self=unknown
13480 enable_dlopen_self_static=unknown
13481 else
13482 lt_cv_dlopen=no
13483 lt_cv_dlopen_libs=
13484
13485 case $host_os in
13486 beos*)
13487 lt_cv_dlopen=load_add_on
13488 lt_cv_dlopen_libs=
13489 lt_cv_dlopen_self=yes
13490 ;;
13491
13492 mingw* | windows* | pw32* | cegcc*)
13493 lt_cv_dlopen=LoadLibrary
13494 lt_cv_dlopen_libs=
13495 ;;
13496
13497 cygwin*)
13498 lt_cv_dlopen=dlopen
13499 lt_cv_dlopen_libs=
13500 ;;
13501
13502 darwin*)
13503 # if libdl is installed we need to link against it
13504 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13505 printf %s "checking for dlopen in -ldl... " >&6; }
13506 if test ${ac_cv_lib_dl_dlopen+y}
13507 then :
13508 printf %s "(cached) " >&6
13509 else case e in #(
13510 e) ac_check_lib_save_LIBS=$LIBS
13511 LIBS="-ldl $LIBS"
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514
13515 /* Override any GCC internal prototype to avoid an error.
13516 Use char because int might match the return type of a GCC
13517 builtin and then its argument prototype would still apply.
13518 The 'extern "C"' is for builds by C++ compilers;
13519 although this is not generally supported in C code supporting it here
13520 has little cost and some practical benefit (sr 110532). */
13521 #ifdef __cplusplus
13522 extern "C"
13523 #endif
13524 char dlopen (void);
13525 int
13526 main (void)
13527 {
13528 return dlopen ();
13529 ;
13530 return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_c_try_link "$LINENO"
13534 then :
13535 ac_cv_lib_dl_dlopen=yes
13536 else case e in #(
13537 e) ac_cv_lib_dl_dlopen=no ;;
13538 esac
13539 fi
13540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13541 conftest$ac_exeext conftest.$ac_ext
13542 LIBS=$ac_check_lib_save_LIBS ;;
13543 esac
13544 fi
13545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13546 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
13547 if test "x$ac_cv_lib_dl_dlopen" = xyes
13548 then :
13549 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13550 else case e in #(
13551 e)
13552 lt_cv_dlopen=dyld
13553 lt_cv_dlopen_libs=
13554 lt_cv_dlopen_self=yes
13555 ;;
13556 esac
13557 fi
13558
13559 ;;
13560
13561 tpf*)
13562 # Don't try to run any link tests for TPF. We know it's impossible
13563 # because TPF is a cross-compiler, and we know how we open DSOs.
13564 lt_cv_dlopen=dlopen
13565 lt_cv_dlopen_libs=
13566 lt_cv_dlopen_self=no
13567 ;;
13568
13569 *)
13570 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13571 if test "x$ac_cv_func_shl_load" = xyes
13572 then :
13573 lt_cv_dlopen=shl_load
13574 else case e in #(
13575 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13576 printf %s "checking for shl_load in -ldld... " >&6; }
13577 if test ${ac_cv_lib_dld_shl_load+y}
13578 then :
13579 printf %s "(cached) " >&6
13580 else case e in #(
13581 e) ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-ldld $LIBS"
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585
13586 /* Override any GCC internal prototype to avoid an error.
13587 Use char because int might match the return type of a GCC
13588 builtin and then its argument prototype would still apply.
13589 The 'extern "C"' is for builds by C++ compilers;
13590 although this is not generally supported in C code supporting it here
13591 has little cost and some practical benefit (sr 110532). */
13592 #ifdef __cplusplus
13593 extern "C"
13594 #endif
13595 char shl_load (void);
13596 int
13597 main (void)
13598 {
13599 return shl_load ();
13600 ;
13601 return 0;
13602 }
13603 _ACEOF
13604 if ac_fn_c_try_link "$LINENO"
13605 then :
13606 ac_cv_lib_dld_shl_load=yes
13607 else case e in #(
13608 e) ac_cv_lib_dld_shl_load=no ;;
13609 esac
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13612 conftest$ac_exeext conftest.$ac_ext
13613 LIBS=$ac_check_lib_save_LIBS ;;
13614 esac
13615 fi
13616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13617 printf '%s\n' "$ac_cv_lib_dld_shl_load" >&6; }
13618 if test "x$ac_cv_lib_dld_shl_load" = xyes
13619 then :
13620 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13621 else case e in #(
13622 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13623 if test "x$ac_cv_func_dlopen" = xyes
13624 then :
13625 lt_cv_dlopen=dlopen
13626 else case e in #(
13627 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13628 printf %s "checking for dlopen in -ldl... " >&6; }
13629 if test ${ac_cv_lib_dl_dlopen+y}
13630 then :
13631 printf %s "(cached) " >&6
13632 else case e in #(
13633 e) ac_check_lib_save_LIBS=$LIBS
13634 LIBS="-ldl $LIBS"
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply.
13641 The 'extern "C"' is for builds by C++ compilers;
13642 although this is not generally supported in C code supporting it here
13643 has little cost and some practical benefit (sr 110532). */
13644 #ifdef __cplusplus
13645 extern "C"
13646 #endif
13647 char dlopen (void);
13648 int
13649 main (void)
13650 {
13651 return dlopen ();
13652 ;
13653 return 0;
13654 }
13655 _ACEOF
13656 if ac_fn_c_try_link "$LINENO"
13657 then :
13658 ac_cv_lib_dl_dlopen=yes
13659 else case e in #(
13660 e) ac_cv_lib_dl_dlopen=no ;;
13661 esac
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13664 conftest$ac_exeext conftest.$ac_ext
13665 LIBS=$ac_check_lib_save_LIBS ;;
13666 esac
13667 fi
13668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13669 printf '%s\n' "$ac_cv_lib_dl_dlopen" >&6; }
13670 if test "x$ac_cv_lib_dl_dlopen" = xyes
13671 then :
13672 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13673 else case e in #(
13674 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13675 printf %s "checking for dlopen in -lsvld... " >&6; }
13676 if test ${ac_cv_lib_svld_dlopen+y}
13677 then :
13678 printf %s "(cached) " >&6
13679 else case e in #(
13680 e) ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-lsvld $LIBS"
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply.
13688 The 'extern "C"' is for builds by C++ compilers;
13689 although this is not generally supported in C code supporting it here
13690 has little cost and some practical benefit (sr 110532). */
13691 #ifdef __cplusplus
13692 extern "C"
13693 #endif
13694 char dlopen (void);
13695 int
13696 main (void)
13697 {
13698 return dlopen ();
13699 ;
13700 return 0;
13701 }
13702 _ACEOF
13703 if ac_fn_c_try_link "$LINENO"
13704 then :
13705 ac_cv_lib_svld_dlopen=yes
13706 else case e in #(
13707 e) ac_cv_lib_svld_dlopen=no ;;
13708 esac
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS ;;
13713 esac
13714 fi
13715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13716 printf '%s\n' "$ac_cv_lib_svld_dlopen" >&6; }
13717 if test "x$ac_cv_lib_svld_dlopen" = xyes
13718 then :
13719 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13720 else case e in #(
13721 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13722 printf %s "checking for dld_link in -ldld... " >&6; }
13723 if test ${ac_cv_lib_dld_dld_link+y}
13724 then :
13725 printf %s "(cached) " >&6
13726 else case e in #(
13727 e) ac_check_lib_save_LIBS=$LIBS
13728 LIBS="-ldld $LIBS"
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731
13732 /* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply.
13735 The 'extern "C"' is for builds by C++ compilers;
13736 although this is not generally supported in C code supporting it here
13737 has little cost and some practical benefit (sr 110532). */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char dld_link (void);
13742 int
13743 main (void)
13744 {
13745 return dld_link ();
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"
13751 then :
13752 ac_cv_lib_dld_dld_link=yes
13753 else case e in #(
13754 e) ac_cv_lib_dld_dld_link=no ;;
13755 esac
13756 fi
13757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13758 conftest$ac_exeext conftest.$ac_ext
13759 LIBS=$ac_check_lib_save_LIBS ;;
13760 esac
13761 fi
13762 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13763 printf '%s\n' "$ac_cv_lib_dld_dld_link" >&6; }
13764 if test "x$ac_cv_lib_dld_dld_link" = xyes
13765 then :
13766 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13767 fi
13768
13769 ;;
13770 esac
13771 fi
13772
13773 ;;
13774 esac
13775 fi
13776
13777 ;;
13778 esac
13779 fi
13780
13781 ;;
13782 esac
13783 fi
13784
13785 ;;
13786 esac
13787 fi
13788
13789 ;;
13790 esac
13791
13792 if test no = "$lt_cv_dlopen"; then
13793 enable_dlopen=no
13794 else
13795 enable_dlopen=yes
13796 fi
13797
13798 case $lt_cv_dlopen in
13799 dlopen)
13800 save_CPPFLAGS=$CPPFLAGS
13801 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13802
13803 save_LDFLAGS=$LDFLAGS
13804 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13805
13806 save_LIBS=$LIBS
13807 LIBS="$lt_cv_dlopen_libs $LIBS"
13808
13809 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13810 printf %s "checking whether a program can dlopen itself... " >&6; }
13811 if test ${lt_cv_dlopen_self+y}
13812 then :
13813 printf %s "(cached) " >&6
13814 else case e in #(
13815 e) if test yes = "$cross_compiling"; then :
13816 lt_cv_dlopen_self=cross
13817 else
13818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13819 lt_status=$lt_dlunknown
13820 cat > conftest.$ac_ext <<_LT_EOF
13821 #line $LINENO "configure"
13822 #include "confdefs.h"
13823
13824 #if HAVE_DLFCN_H
13825 #include <dlfcn.h>
13826 #endif
13827
13828 #include <stdio.h>
13829
13830 #ifdef RTLD_GLOBAL
13831 # define LT_DLGLOBAL RTLD_GLOBAL
13832 #else
13833 # ifdef DL_GLOBAL
13834 # define LT_DLGLOBAL DL_GLOBAL
13835 # else
13836 # define LT_DLGLOBAL 0
13837 # endif
13838 #endif
13839
13840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13841 find out it does not work in some platform. */
13842 #ifndef LT_DLLAZY_OR_NOW
13843 # ifdef RTLD_LAZY
13844 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13845 # else
13846 # ifdef DL_LAZY
13847 # define LT_DLLAZY_OR_NOW DL_LAZY
13848 # else
13849 # ifdef RTLD_NOW
13850 # define LT_DLLAZY_OR_NOW RTLD_NOW
13851 # else
13852 # ifdef DL_NOW
13853 # define LT_DLLAZY_OR_NOW DL_NOW
13854 # else
13855 # define LT_DLLAZY_OR_NOW 0
13856 # endif
13857 # endif
13858 # endif
13859 # endif
13860 #endif
13861
13862 /* When -fvisibility=hidden is used, assume the code has been annotated
13863 correspondingly for the symbols needed. */
13864 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13865 int fnord (void) __attribute__((visibility("default")));
13866 #endif
13867
13868 int fnord (void) { return 42; }
13869 int main (void)
13870 {
13871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13872 int status = $lt_dlunknown;
13873
13874 if (self)
13875 {
13876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13877 else
13878 {
13879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13880 else puts (dlerror ());
13881 }
13882 /* dlclose (self); */
13883 }
13884 else
13885 puts (dlerror ());
13886
13887 return status;
13888 }
13889 _LT_EOF
13890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13894 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13895 (./conftest; exit; ) >&5 2>/dev/null
13896 lt_status=$?
13897 case x$lt_status in
13898 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13899 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13900 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13901 esac
13902 else :
13903 # compilation failed
13904 lt_cv_dlopen_self=no
13905 fi
13906 fi
13907 rm -fr conftest*
13908
13909 ;;
13910 esac
13911 fi
13912 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13913 printf '%s\n' "$lt_cv_dlopen_self" >&6; }
13914
13915 if test yes = "$lt_cv_dlopen_self"; then
13916 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13917 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13918 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13919 if test ${lt_cv_dlopen_self_static+y}
13920 then :
13921 printf %s "(cached) " >&6
13922 else case e in #(
13923 e) if test yes = "$cross_compiling"; then :
13924 lt_cv_dlopen_self_static=cross
13925 else
13926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13927 lt_status=$lt_dlunknown
13928 cat > conftest.$ac_ext <<_LT_EOF
13929 #line $LINENO "configure"
13930 #include "confdefs.h"
13931
13932 #if HAVE_DLFCN_H
13933 #include <dlfcn.h>
13934 #endif
13935
13936 #include <stdio.h>
13937
13938 #ifdef RTLD_GLOBAL
13939 # define LT_DLGLOBAL RTLD_GLOBAL
13940 #else
13941 # ifdef DL_GLOBAL
13942 # define LT_DLGLOBAL DL_GLOBAL
13943 # else
13944 # define LT_DLGLOBAL 0
13945 # endif
13946 #endif
13947
13948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13949 find out it does not work in some platform. */
13950 #ifndef LT_DLLAZY_OR_NOW
13951 # ifdef RTLD_LAZY
13952 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13953 # else
13954 # ifdef DL_LAZY
13955 # define LT_DLLAZY_OR_NOW DL_LAZY
13956 # else
13957 # ifdef RTLD_NOW
13958 # define LT_DLLAZY_OR_NOW RTLD_NOW
13959 # else
13960 # ifdef DL_NOW
13961 # define LT_DLLAZY_OR_NOW DL_NOW
13962 # else
13963 # define LT_DLLAZY_OR_NOW 0
13964 # endif
13965 # endif
13966 # endif
13967 # endif
13968 #endif
13969
13970 /* When -fvisibility=hidden is used, assume the code has been annotated
13971 correspondingly for the symbols needed. */
13972 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13973 int fnord (void) __attribute__((visibility("default")));
13974 #endif
13975
13976 int fnord (void) { return 42; }
13977 int main (void)
13978 {
13979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13980 int status = $lt_dlunknown;
13981
13982 if (self)
13983 {
13984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13985 else
13986 {
13987 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13988 else puts (dlerror ());
13989 }
13990 /* dlclose (self); */
13991 }
13992 else
13993 puts (dlerror ());
13994
13995 return status;
13996 }
13997 _LT_EOF
13998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13999 (eval $ac_link) 2>&5
14000 ac_status=$?
14001 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14003 (./conftest; exit; ) >&5 2>/dev/null
14004 lt_status=$?
14005 case x$lt_status in
14006 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14007 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14008 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14009 esac
14010 else :
14011 # compilation failed
14012 lt_cv_dlopen_self_static=no
14013 fi
14014 fi
14015 rm -fr conftest*
14016
14017 ;;
14018 esac
14019 fi
14020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14021 printf '%s\n' "$lt_cv_dlopen_self_static" >&6; }
14022 fi
14023
14024 CPPFLAGS=$save_CPPFLAGS
14025 LDFLAGS=$save_LDFLAGS
14026 LIBS=$save_LIBS
14027 ;;
14028 esac
14029
14030 case $lt_cv_dlopen_self in
14031 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14032 *) enable_dlopen_self=unknown ;;
14033 esac
14034
14035 case $lt_cv_dlopen_self_static in
14036 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14037 *) enable_dlopen_self_static=unknown ;;
14038 esac
14039 fi
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057 striplib=
14058 old_striplib=
14059 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14060 printf %s "checking whether stripping libraries is possible... " >&6; }
14061 if test -z "$STRIP"; then
14062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063 printf '%s\n' "no" >&6; }
14064 else
14065 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14066 old_striplib="$STRIP --strip-debug"
14067 striplib="$STRIP --strip-unneeded"
14068 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14069 printf '%s\n' "yes" >&6; }
14070 else
14071 case $host_os in
14072 darwin*)
14073 # FIXME - insert some real tests, host_os isn't really good enough
14074 striplib="$STRIP -x"
14075 old_striplib="$STRIP -S"
14076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14077 printf '%s\n' "yes" >&6; }
14078 ;;
14079 freebsd*)
14080 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14081 old_striplib="$STRIP --strip-debug"
14082 striplib="$STRIP --strip-unneeded"
14083 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14084 printf '%s\n' "yes" >&6; }
14085 else
14086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087 printf '%s\n' "no" >&6; }
14088 fi
14089 ;;
14090 *)
14091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 printf '%s\n' "no" >&6; }
14093 ;;
14094 esac
14095 fi
14096 fi
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109 # Report what library types will actually be built
14110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14111 printf %s "checking if libtool supports shared libraries... " >&6; }
14112 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14113 printf '%s\n' "$can_build_shared" >&6; }
14114
14115 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14116 printf %s "checking whether to build shared libraries... " >&6; }
14117 test no = "$can_build_shared" && enable_shared=no
14118
14119 # On AIX, shared libraries and static libraries use the same namespace, and
14120 # are all built from PIC.
14121 case $host_os in
14122 aix3*)
14123 test yes = "$enable_shared" && enable_static=no
14124 if test -n "$RANLIB"; then
14125 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14126 postinstall_cmds='$RANLIB $lib'
14127 fi
14128 ;;
14129
14130 aix[4-9]*)
14131 if test ia64 != "$host_cpu"; then
14132 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14133 yes,aix,yes) ;; # shared object as lib.so file only
14134 yes,svr4,*) ;; # shared object as lib.so archive member only
14135 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14136 esac
14137 fi
14138 ;;
14139 esac
14140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14141 printf '%s\n' "$enable_shared" >&6; }
14142
14143 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14144 printf %s "checking whether to build static libraries... " >&6; }
14145 # Make sure either enable_shared or enable_static is yes.
14146 test yes = "$enable_shared" || enable_static=yes
14147 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14148 printf '%s\n' "$enable_static" >&6; }
14149
14150
14151
14152
14153 fi
14154 ac_ext=c
14155 ac_cpp='$CPP $CPPFLAGS'
14156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14159
14160 CC=$lt_save_CC
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183 ac_config_commands="$ac_config_commands libtool"
14184
14185
14186
14187
14188 # Only expand once:
14189
14190
14191
14192 # Require xorg-macros minimum of 1.12 for DocBook external references
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
14205 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
14206 if test ${ac_cv_c_undeclared_builtin_options+y}
14207 then :
14208 printf %s "(cached) " >&6
14209 else case e in #(
14210 e) ac_save_CFLAGS=$CFLAGS
14211 ac_cv_c_undeclared_builtin_options='cannot detect'
14212 for ac_arg in '' -fno-builtin; do
14213 CFLAGS="$ac_save_CFLAGS $ac_arg"
14214 # This test program should *not* compile successfully.
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217
14218 int
14219 main (void)
14220 {
14221 (void) strchr;
14222 ;
14223 return 0;
14224 }
14225 _ACEOF
14226 if ac_fn_c_try_compile "$LINENO"
14227 then :
14228
14229 else case e in #(
14230 e) # This test program should compile successfully.
14231 # No library function is consistently available on
14232 # freestanding implementations, so test against a dummy
14233 # declaration. Include always-available headers on the
14234 # off chance that they somehow elicit warnings.
14235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h. */
14237 #include <float.h>
14238 #include <limits.h>
14239 #include <stdarg.h>
14240 #include <stddef.h>
14241 extern void ac_decl (int, char *);
14242
14243 int
14244 main (void)
14245 {
14246 (void) ac_decl (0, (char *) 0);
14247 (void) ac_decl;
14248
14249 ;
14250 return 0;
14251 }
14252 _ACEOF
14253 if ac_fn_c_try_compile "$LINENO"
14254 then :
14255 if test x"$ac_arg" = x
14256 then :
14257 ac_cv_c_undeclared_builtin_options='none needed'
14258 else case e in #(
14259 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
14260 esac
14261 fi
14262 break
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14265 esac
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14268 done
14269 CFLAGS=$ac_save_CFLAGS
14270 ;;
14271 esac
14272 fi
14273 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14274 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
14275 case $ac_cv_c_undeclared_builtin_options in #(
14276 'cannot detect') :
14277 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14278 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
14279 as_fn_error $? "cannot make $CC report undeclared builtins
14280 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14281 'none needed') :
14282 ac_c_undeclared_builtin_options='' ;; #(
14283 *) :
14284 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14285 esac
14286
14287 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
14288 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
14289 if test ${ac_cv_c_future_darwin_options+y}
14290 then :
14291 printf %s "(cached) " >&6
14292 else case e in #(
14293 e) ac_compile_saved="$ac_compile"
14294 ac_compile="$ac_compile -Werror=unguarded-availability-new"
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 #if ! (defined __APPLE__ && defined __MACH__)
14298 #error "-Werror=unguarded-availability-new not needed here"
14299 #endif
14300
14301 int
14302 main (void)
14303 {
14304
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_c_try_compile "$LINENO"
14310 then :
14311 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
14312 else case e in #(
14313 e) ac_cv_c_future_darwin_options='none needed' ;;
14314 esac
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14317 ac_compile="$ac_compile_saved"
14318 ;;
14319 esac
14320 fi
14321 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
14322 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
14323 case $ac_cv_c_future_darwin_options in #(
14324 'none needed') :
14325 ac_c_future_darwin_options='' ;; #(
14326 *) :
14327 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
14328 esac
14329
14330
14331
14332
14333
14334 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
14335 if test "x$ac_cv_have_decl___clang__" = xyes
14336 then :
14337 CLANGCC="yes"
14338 else case e in #(
14339 e) CLANGCC="no" ;;
14340 esac
14341 fi
14342 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
14343 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
14344 then :
14345 INTELCC="yes"
14346 else case e in #(
14347 e) INTELCC="no" ;;
14348 esac
14349 fi
14350 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
14351 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
14352 then :
14353 SUNCC="yes"
14354 else case e in #(
14355 e) SUNCC="no" ;;
14356 esac
14357 fi
14358
14359
14360
14361
14362
14363
14364
14365
14366 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14367 if test -n "$ac_tool_prefix"; then
14368 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14369 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14371 printf %s "checking for $ac_word... " >&6; }
14372 if test ${ac_cv_path_PKG_CONFIG+y}
14373 then :
14374 printf %s "(cached) " >&6
14375 else case e in #(
14376 e) case $PKG_CONFIG in
14377 [\\/]* | ?:[\\/]*)
14378 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14379 ;;
14380 *)
14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382 for as_dir in $PATH
14383 do
14384 IFS=$as_save_IFS
14385 case $as_dir in #(((
14386 '') as_dir=./ ;;
14387 */) ;;
14388 *) as_dir=$as_dir/ ;;
14389 esac
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14392 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14393 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14394 break 2
14395 fi
14396 done
14397 done
14398 IFS=$as_save_IFS
14399
14400 ;;
14401 esac ;;
14402 esac
14403 fi
14404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14405 if test -n "$PKG_CONFIG"; then
14406 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14407 printf '%s\n' "$PKG_CONFIG" >&6; }
14408 else
14409 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 printf '%s\n' "no" >&6; }
14411 fi
14412
14413
14414 fi
14415 if test -z "$ac_cv_path_PKG_CONFIG"; then
14416 ac_pt_PKG_CONFIG=$PKG_CONFIG
14417 # Extract the first word of "pkg-config", so it can be a program name with args.
14418 set dummy pkg-config; ac_word=$2
14419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14420 printf %s "checking for $ac_word... " >&6; }
14421 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14422 then :
14423 printf %s "(cached) " >&6
14424 else case e in #(
14425 e) case $ac_pt_PKG_CONFIG in
14426 [\\/]* | ?:[\\/]*)
14427 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14428 ;;
14429 *)
14430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431 for as_dir in $PATH
14432 do
14433 IFS=$as_save_IFS
14434 case $as_dir in #(((
14435 '') as_dir=./ ;;
14436 */) ;;
14437 *) as_dir=$as_dir/ ;;
14438 esac
14439 for ac_exec_ext in '' $ac_executable_extensions; do
14440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14441 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14442 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14443 break 2
14444 fi
14445 done
14446 done
14447 IFS=$as_save_IFS
14448
14449 ;;
14450 esac ;;
14451 esac
14452 fi
14453 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14454 if test -n "$ac_pt_PKG_CONFIG"; then
14455 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14456 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
14457 else
14458 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14459 printf '%s\n' "no" >&6; }
14460 fi
14461
14462 if test "x$ac_pt_PKG_CONFIG" = x; then
14463 PKG_CONFIG=""
14464 else
14465 case $cross_compiling:$ac_tool_warned in
14466 yes:)
14467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14468 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14469 ac_tool_warned=yes ;;
14470 esac
14471 PKG_CONFIG=$ac_pt_PKG_CONFIG
14472 fi
14473 else
14474 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14475 fi
14476
14477 fi
14478 if test -n "$PKG_CONFIG"; then
14479 _pkg_min_version=0.9.0
14480 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14481 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14482 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14483 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14484 printf '%s\n' "yes" >&6; }
14485 else
14486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 printf '%s\n' "no" >&6; }
14488 PKG_CONFIG=""
14489 fi
14490 fi
14491
14492
14493
14494
14495
14496 # Check whether --enable-selective-werror was given.
14497 if test ${enable_selective_werror+y}
14498 then :
14499 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14500 else case e in #(
14501 e) SELECTIVE_WERROR=yes ;;
14502 esac
14503 fi
14504
14505
14506
14507
14508
14509 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14510 if test "x$SUNCC" = "xyes"; then
14511 BASE_CFLAGS="-v"
14512 else
14513 BASE_CFLAGS=""
14514 fi
14515
14516 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530 xorg_testset_save_CFLAGS="$CFLAGS"
14531
14532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14536 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14537 then :
14538 printf %s "(cached) " >&6
14539 else case e in #(
14540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 int i;
14543 _ACEOF
14544 if ac_fn_c_try_compile "$LINENO"
14545 then :
14546 xorg_cv_cc_flag_unknown_warning_option=yes
14547 else case e in #(
14548 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14549 esac
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14552 esac
14553 fi
14554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14555 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14557 CFLAGS="$xorg_testset_save_CFLAGS"
14558 fi
14559
14560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14563 fi
14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14568 then :
14569 printf %s "(cached) " >&6
14570 else case e in #(
14571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14572 /* end confdefs.h. */
14573 int i;
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"
14576 then :
14577 xorg_cv_cc_flag_unused_command_line_argument=yes
14578 else case e in #(
14579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14580 esac
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14583 esac
14584 fi
14585 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14586 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14588 CFLAGS="$xorg_testset_save_CFLAGS"
14589 fi
14590
14591 found="no"
14592
14593 if test $found = "no" ; then
14594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14596 fi
14597
14598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14600 fi
14601
14602 CFLAGS="$CFLAGS -Wall"
14603
14604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14605 printf %s "checking if $CC supports -Wall... " >&6; }
14606 cacheid=xorg_cv_cc_flag__Wall
14607 if eval test \${$cacheid+y}
14608 then :
14609 printf %s "(cached) " >&6
14610 else case e in #(
14611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 int i;
14614 int
14615 main (void)
14616 {
14617
14618 ;
14619 return 0;
14620 }
14621 _ACEOF
14622 if ac_fn_c_try_link "$LINENO"
14623 then :
14624 eval $cacheid=yes
14625 else case e in #(
14626 e) eval $cacheid=no ;;
14627 esac
14628 fi
14629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14630 conftest$ac_exeext conftest.$ac_ext ;;
14631 esac
14632 fi
14633
14634
14635 CFLAGS="$xorg_testset_save_CFLAGS"
14636
14637 eval supported=\$$cacheid
14638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14639 printf '%s\n' "$supported" >&6; }
14640 if test "$supported" = "yes" ; then
14641 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14642 found="yes"
14643 fi
14644 fi
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660 xorg_testset_save_CFLAGS="$CFLAGS"
14661
14662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14666 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14667 then :
14668 printf %s "(cached) " >&6
14669 else case e in #(
14670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 int i;
14673 _ACEOF
14674 if ac_fn_c_try_compile "$LINENO"
14675 then :
14676 xorg_cv_cc_flag_unknown_warning_option=yes
14677 else case e in #(
14678 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14679 esac
14680 fi
14681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14682 esac
14683 fi
14684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14685 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14687 CFLAGS="$xorg_testset_save_CFLAGS"
14688 fi
14689
14690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693 fi
14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14698 then :
14699 printf %s "(cached) " >&6
14700 else case e in #(
14701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 int i;
14704 _ACEOF
14705 if ac_fn_c_try_compile "$LINENO"
14706 then :
14707 xorg_cv_cc_flag_unused_command_line_argument=yes
14708 else case e in #(
14709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14710 esac
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14713 esac
14714 fi
14715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14716 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14718 CFLAGS="$xorg_testset_save_CFLAGS"
14719 fi
14720
14721 found="no"
14722
14723 if test $found = "no" ; then
14724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726 fi
14727
14728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730 fi
14731
14732 CFLAGS="$CFLAGS -Wpointer-arith"
14733
14734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14735 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14736 cacheid=xorg_cv_cc_flag__Wpointer_arith
14737 if eval test \${$cacheid+y}
14738 then :
14739 printf %s "(cached) " >&6
14740 else case e in #(
14741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 int i;
14744 int
14745 main (void)
14746 {
14747
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_link "$LINENO"
14753 then :
14754 eval $cacheid=yes
14755 else case e in #(
14756 e) eval $cacheid=no ;;
14757 esac
14758 fi
14759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14760 conftest$ac_exeext conftest.$ac_ext ;;
14761 esac
14762 fi
14763
14764
14765 CFLAGS="$xorg_testset_save_CFLAGS"
14766
14767 eval supported=\$$cacheid
14768 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14769 printf '%s\n' "$supported" >&6; }
14770 if test "$supported" = "yes" ; then
14771 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14772 found="yes"
14773 fi
14774 fi
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790 xorg_testset_save_CFLAGS="$CFLAGS"
14791
14792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14794 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14796 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14797 then :
14798 printf %s "(cached) " >&6
14799 else case e in #(
14800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14802 int i;
14803 _ACEOF
14804 if ac_fn_c_try_compile "$LINENO"
14805 then :
14806 xorg_cv_cc_flag_unknown_warning_option=yes
14807 else case e in #(
14808 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14809 esac
14810 fi
14811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14812 esac
14813 fi
14814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14815 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818 fi
14819
14820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14823 fi
14824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14828 then :
14829 printf %s "(cached) " >&6
14830 else case e in #(
14831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 int i;
14834 _ACEOF
14835 if ac_fn_c_try_compile "$LINENO"
14836 then :
14837 xorg_cv_cc_flag_unused_command_line_argument=yes
14838 else case e in #(
14839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14840 esac
14841 fi
14842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14843 esac
14844 fi
14845 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14846 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14848 CFLAGS="$xorg_testset_save_CFLAGS"
14849 fi
14850
14851 found="no"
14852
14853 if test $found = "no" ; then
14854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14856 fi
14857
14858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14860 fi
14861
14862 CFLAGS="$CFLAGS -Wmissing-declarations"
14863
14864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14865 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14866 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14867 if eval test \${$cacheid+y}
14868 then :
14869 printf %s "(cached) " >&6
14870 else case e in #(
14871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 int i;
14874 int
14875 main (void)
14876 {
14877
14878 ;
14879 return 0;
14880 }
14881 _ACEOF
14882 if ac_fn_c_try_link "$LINENO"
14883 then :
14884 eval $cacheid=yes
14885 else case e in #(
14886 e) eval $cacheid=no ;;
14887 esac
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14890 conftest$ac_exeext conftest.$ac_ext ;;
14891 esac
14892 fi
14893
14894
14895 CFLAGS="$xorg_testset_save_CFLAGS"
14896
14897 eval supported=\$$cacheid
14898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14899 printf '%s\n' "$supported" >&6; }
14900 if test "$supported" = "yes" ; then
14901 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14902 found="yes"
14903 fi
14904 fi
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920 xorg_testset_save_CFLAGS="$CFLAGS"
14921
14922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14927 then :
14928 printf %s "(cached) " >&6
14929 else case e in #(
14930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932 int i;
14933 _ACEOF
14934 if ac_fn_c_try_compile "$LINENO"
14935 then :
14936 xorg_cv_cc_flag_unknown_warning_option=yes
14937 else case e in #(
14938 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14939 esac
14940 fi
14941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14942 esac
14943 fi
14944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14945 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14947 CFLAGS="$xorg_testset_save_CFLAGS"
14948 fi
14949
14950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14953 fi
14954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14955 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14956 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14957 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14958 then :
14959 printf %s "(cached) " >&6
14960 else case e in #(
14961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 int i;
14964 _ACEOF
14965 if ac_fn_c_try_compile "$LINENO"
14966 then :
14967 xorg_cv_cc_flag_unused_command_line_argument=yes
14968 else case e in #(
14969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14970 esac
14971 fi
14972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14973 esac
14974 fi
14975 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14976 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14978 CFLAGS="$xorg_testset_save_CFLAGS"
14979 fi
14980
14981 found="no"
14982
14983 if test $found = "no" ; then
14984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14986 fi
14987
14988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14990 fi
14991
14992 CFLAGS="$CFLAGS -Wformat=2"
14993
14994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14995 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14996 cacheid=xorg_cv_cc_flag__Wformat_2
14997 if eval test \${$cacheid+y}
14998 then :
14999 printf %s "(cached) " >&6
15000 else case e in #(
15001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 int i;
15004 int
15005 main (void)
15006 {
15007
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 if ac_fn_c_try_link "$LINENO"
15013 then :
15014 eval $cacheid=yes
15015 else case e in #(
15016 e) eval $cacheid=no ;;
15017 esac
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15020 conftest$ac_exeext conftest.$ac_ext ;;
15021 esac
15022 fi
15023
15024
15025 CFLAGS="$xorg_testset_save_CFLAGS"
15026
15027 eval supported=\$$cacheid
15028 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15029 printf '%s\n' "$supported" >&6; }
15030 if test "$supported" = "yes" ; then
15031 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
15032 found="yes"
15033 fi
15034 fi
15035
15036 if test $found = "no" ; then
15037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15039 fi
15040
15041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15043 fi
15044
15045 CFLAGS="$CFLAGS -Wformat"
15046
15047 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
15048 printf %s "checking if $CC supports -Wformat... " >&6; }
15049 cacheid=xorg_cv_cc_flag__Wformat
15050 if eval test \${$cacheid+y}
15051 then :
15052 printf %s "(cached) " >&6
15053 else case e in #(
15054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15056 int i;
15057 int
15058 main (void)
15059 {
15060
15061 ;
15062 return 0;
15063 }
15064 _ACEOF
15065 if ac_fn_c_try_link "$LINENO"
15066 then :
15067 eval $cacheid=yes
15068 else case e in #(
15069 e) eval $cacheid=no ;;
15070 esac
15071 fi
15072 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15073 conftest$ac_exeext conftest.$ac_ext ;;
15074 esac
15075 fi
15076
15077
15078 CFLAGS="$xorg_testset_save_CFLAGS"
15079
15080 eval supported=\$$cacheid
15081 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15082 printf '%s\n' "$supported" >&6; }
15083 if test "$supported" = "yes" ; then
15084 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
15085 found="yes"
15086 fi
15087 fi
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105 xorg_testset_save_CFLAGS="$CFLAGS"
15106
15107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15109 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15112 then :
15113 printf %s "(cached) " >&6
15114 else case e in #(
15115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 int i;
15118 _ACEOF
15119 if ac_fn_c_try_compile "$LINENO"
15120 then :
15121 xorg_cv_cc_flag_unknown_warning_option=yes
15122 else case e in #(
15123 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15124 esac
15125 fi
15126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15127 esac
15128 fi
15129 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15130 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15132 CFLAGS="$xorg_testset_save_CFLAGS"
15133 fi
15134
15135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15138 fi
15139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15143 then :
15144 printf %s "(cached) " >&6
15145 else case e in #(
15146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 int i;
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"
15151 then :
15152 xorg_cv_cc_flag_unused_command_line_argument=yes
15153 else case e in #(
15154 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15155 esac
15156 fi
15157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15158 esac
15159 fi
15160 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15161 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15163 CFLAGS="$xorg_testset_save_CFLAGS"
15164 fi
15165
15166 found="no"
15167
15168 if test $found = "no" ; then
15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171 fi
15172
15173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15175 fi
15176
15177 CFLAGS="$CFLAGS -Wstrict-prototypes"
15178
15179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
15180 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
15181 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
15182 if eval test \${$cacheid+y}
15183 then :
15184 printf %s "(cached) " >&6
15185 else case e in #(
15186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187 /* end confdefs.h. */
15188 int i;
15189 int
15190 main (void)
15191 {
15192
15193 ;
15194 return 0;
15195 }
15196 _ACEOF
15197 if ac_fn_c_try_link "$LINENO"
15198 then :
15199 eval $cacheid=yes
15200 else case e in #(
15201 e) eval $cacheid=no ;;
15202 esac
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15205 conftest$ac_exeext conftest.$ac_ext ;;
15206 esac
15207 fi
15208
15209
15210 CFLAGS="$xorg_testset_save_CFLAGS"
15211
15212 eval supported=\$$cacheid
15213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15214 printf '%s\n' "$supported" >&6; }
15215 if test "$supported" = "yes" ; then
15216 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
15217 found="yes"
15218 fi
15219 fi
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235 xorg_testset_save_CFLAGS="$CFLAGS"
15236
15237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15239 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15242 then :
15243 printf %s "(cached) " >&6
15244 else case e in #(
15245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 int i;
15248 _ACEOF
15249 if ac_fn_c_try_compile "$LINENO"
15250 then :
15251 xorg_cv_cc_flag_unknown_warning_option=yes
15252 else case e in #(
15253 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15254 esac
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15257 esac
15258 fi
15259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15260 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15262 CFLAGS="$xorg_testset_save_CFLAGS"
15263 fi
15264
15265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15268 fi
15269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15271 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15272 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15273 then :
15274 printf %s "(cached) " >&6
15275 else case e in #(
15276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h. */
15278 int i;
15279 _ACEOF
15280 if ac_fn_c_try_compile "$LINENO"
15281 then :
15282 xorg_cv_cc_flag_unused_command_line_argument=yes
15283 else case e in #(
15284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15285 esac
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15288 esac
15289 fi
15290 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15291 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15293 CFLAGS="$xorg_testset_save_CFLAGS"
15294 fi
15295
15296 found="no"
15297
15298 if test $found = "no" ; then
15299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301 fi
15302
15303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15305 fi
15306
15307 CFLAGS="$CFLAGS -Wmissing-prototypes"
15308
15309 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
15310 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
15311 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
15312 if eval test \${$cacheid+y}
15313 then :
15314 printf %s "(cached) " >&6
15315 else case e in #(
15316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 int i;
15319 int
15320 main (void)
15321 {
15322
15323 ;
15324 return 0;
15325 }
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"
15328 then :
15329 eval $cacheid=yes
15330 else case e in #(
15331 e) eval $cacheid=no ;;
15332 esac
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15335 conftest$ac_exeext conftest.$ac_ext ;;
15336 esac
15337 fi
15338
15339
15340 CFLAGS="$xorg_testset_save_CFLAGS"
15341
15342 eval supported=\$$cacheid
15343 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15344 printf '%s\n' "$supported" >&6; }
15345 if test "$supported" = "yes" ; then
15346 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
15347 found="yes"
15348 fi
15349 fi
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365 xorg_testset_save_CFLAGS="$CFLAGS"
15366
15367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15372 then :
15373 printf %s "(cached) " >&6
15374 else case e in #(
15375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 int i;
15378 _ACEOF
15379 if ac_fn_c_try_compile "$LINENO"
15380 then :
15381 xorg_cv_cc_flag_unknown_warning_option=yes
15382 else case e in #(
15383 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15384 esac
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15387 esac
15388 fi
15389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15390 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15392 CFLAGS="$xorg_testset_save_CFLAGS"
15393 fi
15394
15395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15398 fi
15399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15400 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15401 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15402 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15403 then :
15404 printf %s "(cached) " >&6
15405 else case e in #(
15406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407 /* end confdefs.h. */
15408 int i;
15409 _ACEOF
15410 if ac_fn_c_try_compile "$LINENO"
15411 then :
15412 xorg_cv_cc_flag_unused_command_line_argument=yes
15413 else case e in #(
15414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15415 esac
15416 fi
15417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15418 esac
15419 fi
15420 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15421 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15423 CFLAGS="$xorg_testset_save_CFLAGS"
15424 fi
15425
15426 found="no"
15427
15428 if test $found = "no" ; then
15429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15431 fi
15432
15433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15435 fi
15436
15437 CFLAGS="$CFLAGS -Wnested-externs"
15438
15439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15440 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15441 cacheid=xorg_cv_cc_flag__Wnested_externs
15442 if eval test \${$cacheid+y}
15443 then :
15444 printf %s "(cached) " >&6
15445 else case e in #(
15446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15448 int i;
15449 int
15450 main (void)
15451 {
15452
15453 ;
15454 return 0;
15455 }
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"
15458 then :
15459 eval $cacheid=yes
15460 else case e in #(
15461 e) eval $cacheid=no ;;
15462 esac
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465 conftest$ac_exeext conftest.$ac_ext ;;
15466 esac
15467 fi
15468
15469
15470 CFLAGS="$xorg_testset_save_CFLAGS"
15471
15472 eval supported=\$$cacheid
15473 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15474 printf '%s\n' "$supported" >&6; }
15475 if test "$supported" = "yes" ; then
15476 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15477 found="yes"
15478 fi
15479 fi
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495 xorg_testset_save_CFLAGS="$CFLAGS"
15496
15497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15499 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15501 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15502 then :
15503 printf %s "(cached) " >&6
15504 else case e in #(
15505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507 int i;
15508 _ACEOF
15509 if ac_fn_c_try_compile "$LINENO"
15510 then :
15511 xorg_cv_cc_flag_unknown_warning_option=yes
15512 else case e in #(
15513 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15514 esac
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15517 esac
15518 fi
15519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15520 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15522 CFLAGS="$xorg_testset_save_CFLAGS"
15523 fi
15524
15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15528 fi
15529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15530 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15533 then :
15534 printf %s "(cached) " >&6
15535 else case e in #(
15536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 int i;
15539 _ACEOF
15540 if ac_fn_c_try_compile "$LINENO"
15541 then :
15542 xorg_cv_cc_flag_unused_command_line_argument=yes
15543 else case e in #(
15544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15545 esac
15546 fi
15547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15548 esac
15549 fi
15550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15551 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15553 CFLAGS="$xorg_testset_save_CFLAGS"
15554 fi
15555
15556 found="no"
15557
15558 if test $found = "no" ; then
15559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15561 fi
15562
15563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15565 fi
15566
15567 CFLAGS="$CFLAGS -Wbad-function-cast"
15568
15569 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15570 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15571 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15572 if eval test \${$cacheid+y}
15573 then :
15574 printf %s "(cached) " >&6
15575 else case e in #(
15576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15577 /* end confdefs.h. */
15578 int i;
15579 int
15580 main (void)
15581 {
15582
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"
15588 then :
15589 eval $cacheid=yes
15590 else case e in #(
15591 e) eval $cacheid=no ;;
15592 esac
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595 conftest$ac_exeext conftest.$ac_ext ;;
15596 esac
15597 fi
15598
15599
15600 CFLAGS="$xorg_testset_save_CFLAGS"
15601
15602 eval supported=\$$cacheid
15603 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15604 printf '%s\n' "$supported" >&6; }
15605 if test "$supported" = "yes" ; then
15606 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15607 found="yes"
15608 fi
15609 fi
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625 xorg_testset_save_CFLAGS="$CFLAGS"
15626
15627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15631 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15632 then :
15633 printf %s "(cached) " >&6
15634 else case e in #(
15635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637 int i;
15638 _ACEOF
15639 if ac_fn_c_try_compile "$LINENO"
15640 then :
15641 xorg_cv_cc_flag_unknown_warning_option=yes
15642 else case e in #(
15643 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15644 esac
15645 fi
15646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15647 esac
15648 fi
15649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15650 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15658 fi
15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15663 then :
15664 printf %s "(cached) " >&6
15665 else case e in #(
15666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 int i;
15669 _ACEOF
15670 if ac_fn_c_try_compile "$LINENO"
15671 then :
15672 xorg_cv_cc_flag_unused_command_line_argument=yes
15673 else case e in #(
15674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15675 esac
15676 fi
15677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15678 esac
15679 fi
15680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15681 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15683 CFLAGS="$xorg_testset_save_CFLAGS"
15684 fi
15685
15686 found="no"
15687
15688 if test $found = "no" ; then
15689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15691 fi
15692
15693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15695 fi
15696
15697 CFLAGS="$CFLAGS -Wold-style-definition"
15698
15699 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15700 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15701 cacheid=xorg_cv_cc_flag__Wold_style_definition
15702 if eval test \${$cacheid+y}
15703 then :
15704 printf %s "(cached) " >&6
15705 else case e in #(
15706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 int i;
15709 int
15710 main (void)
15711 {
15712
15713 ;
15714 return 0;
15715 }
15716 _ACEOF
15717 if ac_fn_c_try_link "$LINENO"
15718 then :
15719 eval $cacheid=yes
15720 else case e in #(
15721 e) eval $cacheid=no ;;
15722 esac
15723 fi
15724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15725 conftest$ac_exeext conftest.$ac_ext ;;
15726 esac
15727 fi
15728
15729
15730 CFLAGS="$xorg_testset_save_CFLAGS"
15731
15732 eval supported=\$$cacheid
15733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15734 printf '%s\n' "$supported" >&6; }
15735 if test "$supported" = "yes" ; then
15736 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15737 found="yes"
15738 fi
15739 fi
15740
15741 if test $found = "no" ; then
15742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15744 fi
15745
15746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15748 fi
15749
15750 CFLAGS="$CFLAGS -fd"
15751
15752 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15753 printf %s "checking if $CC supports -fd... " >&6; }
15754 cacheid=xorg_cv_cc_flag__fd
15755 if eval test \${$cacheid+y}
15756 then :
15757 printf %s "(cached) " >&6
15758 else case e in #(
15759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 int
15763 main (void)
15764 {
15765
15766 ;
15767 return 0;
15768 }
15769 _ACEOF
15770 if ac_fn_c_try_link "$LINENO"
15771 then :
15772 eval $cacheid=yes
15773 else case e in #(
15774 e) eval $cacheid=no ;;
15775 esac
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15778 conftest$ac_exeext conftest.$ac_ext ;;
15779 esac
15780 fi
15781
15782
15783 CFLAGS="$xorg_testset_save_CFLAGS"
15784
15785 eval supported=\$$cacheid
15786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15787 printf '%s\n' "$supported" >&6; }
15788 if test "$supported" = "yes" ; then
15789 BASE_CFLAGS="$BASE_CFLAGS -fd"
15790 found="yes"
15791 fi
15792 fi
15793
15794
15795
15796
15797
15798 # This chunk adds additional warnings that could catch undesired effects.
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812 xorg_testset_save_CFLAGS="$CFLAGS"
15813
15814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15819 then :
15820 printf %s "(cached) " >&6
15821 else case e in #(
15822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 int i;
15825 _ACEOF
15826 if ac_fn_c_try_compile "$LINENO"
15827 then :
15828 xorg_cv_cc_flag_unknown_warning_option=yes
15829 else case e in #(
15830 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15831 esac
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15834 esac
15835 fi
15836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15837 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15839 CFLAGS="$xorg_testset_save_CFLAGS"
15840 fi
15841
15842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 fi
15846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15847 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15850 then :
15851 printf %s "(cached) " >&6
15852 else case e in #(
15853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 int i;
15856 _ACEOF
15857 if ac_fn_c_try_compile "$LINENO"
15858 then :
15859 xorg_cv_cc_flag_unused_command_line_argument=yes
15860 else case e in #(
15861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15862 esac
15863 fi
15864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15865 esac
15866 fi
15867 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15868 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15870 CFLAGS="$xorg_testset_save_CFLAGS"
15871 fi
15872
15873 found="no"
15874
15875 if test $found = "no" ; then
15876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15878 fi
15879
15880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15882 fi
15883
15884 CFLAGS="$CFLAGS -Wunused"
15885
15886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15887 printf %s "checking if $CC supports -Wunused... " >&6; }
15888 cacheid=xorg_cv_cc_flag__Wunused
15889 if eval test \${$cacheid+y}
15890 then :
15891 printf %s "(cached) " >&6
15892 else case e in #(
15893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15895 int i;
15896 int
15897 main (void)
15898 {
15899
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 if ac_fn_c_try_link "$LINENO"
15905 then :
15906 eval $cacheid=yes
15907 else case e in #(
15908 e) eval $cacheid=no ;;
15909 esac
15910 fi
15911 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15912 conftest$ac_exeext conftest.$ac_ext ;;
15913 esac
15914 fi
15915
15916
15917 CFLAGS="$xorg_testset_save_CFLAGS"
15918
15919 eval supported=\$$cacheid
15920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15921 printf '%s\n' "$supported" >&6; }
15922 if test "$supported" = "yes" ; then
15923 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15924 found="yes"
15925 fi
15926 fi
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942 xorg_testset_save_CFLAGS="$CFLAGS"
15943
15944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15948 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15949 then :
15950 printf %s "(cached) " >&6
15951 else case e in #(
15952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 int i;
15955 _ACEOF
15956 if ac_fn_c_try_compile "$LINENO"
15957 then :
15958 xorg_cv_cc_flag_unknown_warning_option=yes
15959 else case e in #(
15960 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15961 esac
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15964 esac
15965 fi
15966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15967 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15969 CFLAGS="$xorg_testset_save_CFLAGS"
15970 fi
15971
15972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15975 fi
15976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15977 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15980 then :
15981 printf %s "(cached) " >&6
15982 else case e in #(
15983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 int i;
15986 _ACEOF
15987 if ac_fn_c_try_compile "$LINENO"
15988 then :
15989 xorg_cv_cc_flag_unused_command_line_argument=yes
15990 else case e in #(
15991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15992 esac
15993 fi
15994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15995 esac
15996 fi
15997 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15998 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16000 CFLAGS="$xorg_testset_save_CFLAGS"
16001 fi
16002
16003 found="no"
16004
16005 if test $found = "no" ; then
16006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16008 fi
16009
16010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16012 fi
16013
16014 CFLAGS="$CFLAGS -Wuninitialized"
16015
16016 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
16017 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
16018 cacheid=xorg_cv_cc_flag__Wuninitialized
16019 if eval test \${$cacheid+y}
16020 then :
16021 printf %s "(cached) " >&6
16022 else case e in #(
16023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 int i;
16026 int
16027 main (void)
16028 {
16029
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"
16035 then :
16036 eval $cacheid=yes
16037 else case e in #(
16038 e) eval $cacheid=no ;;
16039 esac
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16042 conftest$ac_exeext conftest.$ac_ext ;;
16043 esac
16044 fi
16045
16046
16047 CFLAGS="$xorg_testset_save_CFLAGS"
16048
16049 eval supported=\$$cacheid
16050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16051 printf '%s\n' "$supported" >&6; }
16052 if test "$supported" = "yes" ; then
16053 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
16054 found="yes"
16055 fi
16056 fi
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072 xorg_testset_save_CFLAGS="$CFLAGS"
16073
16074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16076 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16078 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16079 then :
16080 printf %s "(cached) " >&6
16081 else case e in #(
16082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 int i;
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"
16087 then :
16088 xorg_cv_cc_flag_unknown_warning_option=yes
16089 else case e in #(
16090 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16091 esac
16092 fi
16093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16094 esac
16095 fi
16096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16097 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16100 fi
16101
16102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16105 fi
16106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16110 then :
16111 printf %s "(cached) " >&6
16112 else case e in #(
16113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 _ACEOF
16117 if ac_fn_c_try_compile "$LINENO"
16118 then :
16119 xorg_cv_cc_flag_unused_command_line_argument=yes
16120 else case e in #(
16121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16122 esac
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16125 esac
16126 fi
16127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16128 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16130 CFLAGS="$xorg_testset_save_CFLAGS"
16131 fi
16132
16133 found="no"
16134
16135 if test $found = "no" ; then
16136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16138 fi
16139
16140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16142 fi
16143
16144 CFLAGS="$CFLAGS -Wshadow"
16145
16146 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
16147 printf %s "checking if $CC supports -Wshadow... " >&6; }
16148 cacheid=xorg_cv_cc_flag__Wshadow
16149 if eval test \${$cacheid+y}
16150 then :
16151 printf %s "(cached) " >&6
16152 else case e in #(
16153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 int i;
16156 int
16157 main (void)
16158 {
16159
16160 ;
16161 return 0;
16162 }
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"
16165 then :
16166 eval $cacheid=yes
16167 else case e in #(
16168 e) eval $cacheid=no ;;
16169 esac
16170 fi
16171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16172 conftest$ac_exeext conftest.$ac_ext ;;
16173 esac
16174 fi
16175
16176
16177 CFLAGS="$xorg_testset_save_CFLAGS"
16178
16179 eval supported=\$$cacheid
16180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16181 printf '%s\n' "$supported" >&6; }
16182 if test "$supported" = "yes" ; then
16183 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
16184 found="yes"
16185 fi
16186 fi
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202 xorg_testset_save_CFLAGS="$CFLAGS"
16203
16204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16208 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16209 then :
16210 printf %s "(cached) " >&6
16211 else case e in #(
16212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16214 int i;
16215 _ACEOF
16216 if ac_fn_c_try_compile "$LINENO"
16217 then :
16218 xorg_cv_cc_flag_unknown_warning_option=yes
16219 else case e in #(
16220 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16221 esac
16222 fi
16223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16224 esac
16225 fi
16226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16227 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16229 CFLAGS="$xorg_testset_save_CFLAGS"
16230 fi
16231
16232 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16235 fi
16236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16237 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16238 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16239 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16240 then :
16241 printf %s "(cached) " >&6
16242 else case e in #(
16243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16245 int i;
16246 _ACEOF
16247 if ac_fn_c_try_compile "$LINENO"
16248 then :
16249 xorg_cv_cc_flag_unused_command_line_argument=yes
16250 else case e in #(
16251 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16252 esac
16253 fi
16254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16255 esac
16256 fi
16257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16258 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16260 CFLAGS="$xorg_testset_save_CFLAGS"
16261 fi
16262
16263 found="no"
16264
16265 if test $found = "no" ; then
16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16268 fi
16269
16270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16272 fi
16273
16274 CFLAGS="$CFLAGS -Wmissing-noreturn"
16275
16276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
16277 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
16278 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
16279 if eval test \${$cacheid+y}
16280 then :
16281 printf %s "(cached) " >&6
16282 else case e in #(
16283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 int i;
16286 int
16287 main (void)
16288 {
16289
16290 ;
16291 return 0;
16292 }
16293 _ACEOF
16294 if ac_fn_c_try_link "$LINENO"
16295 then :
16296 eval $cacheid=yes
16297 else case e in #(
16298 e) eval $cacheid=no ;;
16299 esac
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16302 conftest$ac_exeext conftest.$ac_ext ;;
16303 esac
16304 fi
16305
16306
16307 CFLAGS="$xorg_testset_save_CFLAGS"
16308
16309 eval supported=\$$cacheid
16310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16311 printf '%s\n' "$supported" >&6; }
16312 if test "$supported" = "yes" ; then
16313 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
16314 found="yes"
16315 fi
16316 fi
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332 xorg_testset_save_CFLAGS="$CFLAGS"
16333
16334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16339 then :
16340 printf %s "(cached) " >&6
16341 else case e in #(
16342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16344 int i;
16345 _ACEOF
16346 if ac_fn_c_try_compile "$LINENO"
16347 then :
16348 xorg_cv_cc_flag_unknown_warning_option=yes
16349 else case e in #(
16350 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16351 esac
16352 fi
16353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16354 esac
16355 fi
16356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16357 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16359 CFLAGS="$xorg_testset_save_CFLAGS"
16360 fi
16361
16362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16365 fi
16366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16370 then :
16371 printf %s "(cached) " >&6
16372 else case e in #(
16373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16375 int i;
16376 _ACEOF
16377 if ac_fn_c_try_compile "$LINENO"
16378 then :
16379 xorg_cv_cc_flag_unused_command_line_argument=yes
16380 else case e in #(
16381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16382 esac
16383 fi
16384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16385 esac
16386 fi
16387 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16388 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16390 CFLAGS="$xorg_testset_save_CFLAGS"
16391 fi
16392
16393 found="no"
16394
16395 if test $found = "no" ; then
16396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16398 fi
16399
16400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16402 fi
16403
16404 CFLAGS="$CFLAGS -Wmissing-format-attribute"
16405
16406 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
16407 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
16408 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
16409 if eval test \${$cacheid+y}
16410 then :
16411 printf %s "(cached) " >&6
16412 else case e in #(
16413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 int i;
16416 int
16417 main (void)
16418 {
16419
16420 ;
16421 return 0;
16422 }
16423 _ACEOF
16424 if ac_fn_c_try_link "$LINENO"
16425 then :
16426 eval $cacheid=yes
16427 else case e in #(
16428 e) eval $cacheid=no ;;
16429 esac
16430 fi
16431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16432 conftest$ac_exeext conftest.$ac_ext ;;
16433 esac
16434 fi
16435
16436
16437 CFLAGS="$xorg_testset_save_CFLAGS"
16438
16439 eval supported=\$$cacheid
16440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16441 printf '%s\n' "$supported" >&6; }
16442 if test "$supported" = "yes" ; then
16443 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16444 found="yes"
16445 fi
16446 fi
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462 xorg_testset_save_CFLAGS="$CFLAGS"
16463
16464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16469 then :
16470 printf %s "(cached) " >&6
16471 else case e in #(
16472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16473 /* end confdefs.h. */
16474 int i;
16475 _ACEOF
16476 if ac_fn_c_try_compile "$LINENO"
16477 then :
16478 xorg_cv_cc_flag_unknown_warning_option=yes
16479 else case e in #(
16480 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16481 esac
16482 fi
16483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16484 esac
16485 fi
16486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16487 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16489 CFLAGS="$xorg_testset_save_CFLAGS"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495 fi
16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16500 then :
16501 printf %s "(cached) " >&6
16502 else case e in #(
16503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 int i;
16506 _ACEOF
16507 if ac_fn_c_try_compile "$LINENO"
16508 then :
16509 xorg_cv_cc_flag_unused_command_line_argument=yes
16510 else case e in #(
16511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16512 esac
16513 fi
16514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16515 esac
16516 fi
16517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16518 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16520 CFLAGS="$xorg_testset_save_CFLAGS"
16521 fi
16522
16523 found="no"
16524
16525 if test $found = "no" ; then
16526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16528 fi
16529
16530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16532 fi
16533
16534 CFLAGS="$CFLAGS -Wredundant-decls"
16535
16536 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16537 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16538 cacheid=xorg_cv_cc_flag__Wredundant_decls
16539 if eval test \${$cacheid+y}
16540 then :
16541 printf %s "(cached) " >&6
16542 else case e in #(
16543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545 int i;
16546 int
16547 main (void)
16548 {
16549
16550 ;
16551 return 0;
16552 }
16553 _ACEOF
16554 if ac_fn_c_try_link "$LINENO"
16555 then :
16556 eval $cacheid=yes
16557 else case e in #(
16558 e) eval $cacheid=no ;;
16559 esac
16560 fi
16561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16562 conftest$ac_exeext conftest.$ac_ext ;;
16563 esac
16564 fi
16565
16566
16567 CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569 eval supported=\$$cacheid
16570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571 printf '%s\n' "$supported" >&6; }
16572 if test "$supported" = "yes" ; then
16573 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16574 found="yes"
16575 fi
16576 fi
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592 xorg_testset_save_CFLAGS="$CFLAGS"
16593
16594 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16597 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16598 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16599 then :
16600 printf %s "(cached) " >&6
16601 else case e in #(
16602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604 int i;
16605 _ACEOF
16606 if ac_fn_c_try_compile "$LINENO"
16607 then :
16608 xorg_cv_cc_flag_unknown_warning_option=yes
16609 else case e in #(
16610 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16611 esac
16612 fi
16613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16614 esac
16615 fi
16616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16617 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16619 CFLAGS="$xorg_testset_save_CFLAGS"
16620 fi
16621
16622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16625 fi
16626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16627 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16630 then :
16631 printf %s "(cached) " >&6
16632 else case e in #(
16633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16635 int i;
16636 _ACEOF
16637 if ac_fn_c_try_compile "$LINENO"
16638 then :
16639 xorg_cv_cc_flag_unused_command_line_argument=yes
16640 else case e in #(
16641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16642 esac
16643 fi
16644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16645 esac
16646 fi
16647 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16648 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16650 CFLAGS="$xorg_testset_save_CFLAGS"
16651 fi
16652
16653 found="no"
16654
16655 if test $found = "no" ; then
16656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16658 fi
16659
16660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16662 fi
16663
16664 CFLAGS="$CFLAGS -Wlogical-op"
16665
16666 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16667 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16668 cacheid=xorg_cv_cc_flag__Wlogical_op
16669 if eval test \${$cacheid+y}
16670 then :
16671 printf %s "(cached) " >&6
16672 else case e in #(
16673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 int
16677 main (void)
16678 {
16679
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"
16685 then :
16686 eval $cacheid=yes
16687 else case e in #(
16688 e) eval $cacheid=no ;;
16689 esac
16690 fi
16691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16692 conftest$ac_exeext conftest.$ac_ext ;;
16693 esac
16694 fi
16695
16696
16697 CFLAGS="$xorg_testset_save_CFLAGS"
16698
16699 eval supported=\$$cacheid
16700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16701 printf '%s\n' "$supported" >&6; }
16702 if test "$supported" = "yes" ; then
16703 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16704 found="yes"
16705 fi
16706 fi
16707
16708
16709
16710 # These are currently disabled because they are noisy. They will be enabled
16711 # in the future once the codebase is sufficiently modernized to silence
16712 # them. For now, I don't want them to drown out the other warnings.
16713 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16714 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16715 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16716
16717 # Turn some warnings into errors, so we don't accidentally get successful builds
16718 # when there are problems that should be fixed.
16719
16720 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734 xorg_testset_save_CFLAGS="$CFLAGS"
16735
16736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16738 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16741 then :
16742 printf %s "(cached) " >&6
16743 else case e in #(
16744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h. */
16746 int i;
16747 _ACEOF
16748 if ac_fn_c_try_compile "$LINENO"
16749 then :
16750 xorg_cv_cc_flag_unknown_warning_option=yes
16751 else case e in #(
16752 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16753 esac
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16756 esac
16757 fi
16758 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16759 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16761 CFLAGS="$xorg_testset_save_CFLAGS"
16762 fi
16763
16764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16767 fi
16768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16769 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16770 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16771 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16772 then :
16773 printf %s "(cached) " >&6
16774 else case e in #(
16775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16776 /* end confdefs.h. */
16777 int i;
16778 _ACEOF
16779 if ac_fn_c_try_compile "$LINENO"
16780 then :
16781 xorg_cv_cc_flag_unused_command_line_argument=yes
16782 else case e in #(
16783 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16784 esac
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16787 esac
16788 fi
16789 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16790 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16792 CFLAGS="$xorg_testset_save_CFLAGS"
16793 fi
16794
16795 found="no"
16796
16797 if test $found = "no" ; then
16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16800 fi
16801
16802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16804 fi
16805
16806 CFLAGS="$CFLAGS -Werror=implicit"
16807
16808 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16809 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16810 cacheid=xorg_cv_cc_flag__Werror_implicit
16811 if eval test \${$cacheid+y}
16812 then :
16813 printf %s "(cached) " >&6
16814 else case e in #(
16815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16816 /* end confdefs.h. */
16817 int i;
16818 int
16819 main (void)
16820 {
16821
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 if ac_fn_c_try_link "$LINENO"
16827 then :
16828 eval $cacheid=yes
16829 else case e in #(
16830 e) eval $cacheid=no ;;
16831 esac
16832 fi
16833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16834 conftest$ac_exeext conftest.$ac_ext ;;
16835 esac
16836 fi
16837
16838
16839 CFLAGS="$xorg_testset_save_CFLAGS"
16840
16841 eval supported=\$$cacheid
16842 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16843 printf '%s\n' "$supported" >&6; }
16844 if test "$supported" = "yes" ; then
16845 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16846 found="yes"
16847 fi
16848 fi
16849
16850 if test $found = "no" ; then
16851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16853 fi
16854
16855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16857 fi
16858
16859 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16860
16861 { 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
16862 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16863 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16864 if eval test \${$cacheid+y}
16865 then :
16866 printf %s "(cached) " >&6
16867 else case e in #(
16868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 int i;
16871 int
16872 main (void)
16873 {
16874
16875 ;
16876 return 0;
16877 }
16878 _ACEOF
16879 if ac_fn_c_try_link "$LINENO"
16880 then :
16881 eval $cacheid=yes
16882 else case e in #(
16883 e) eval $cacheid=no ;;
16884 esac
16885 fi
16886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16887 conftest$ac_exeext conftest.$ac_ext ;;
16888 esac
16889 fi
16890
16891
16892 CFLAGS="$xorg_testset_save_CFLAGS"
16893
16894 eval supported=\$$cacheid
16895 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16896 printf '%s\n' "$supported" >&6; }
16897 if test "$supported" = "yes" ; then
16898 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16899 found="yes"
16900 fi
16901 fi
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917 xorg_testset_save_CFLAGS="$CFLAGS"
16918
16919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16923 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16924 then :
16925 printf %s "(cached) " >&6
16926 else case e in #(
16927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 int i;
16930 _ACEOF
16931 if ac_fn_c_try_compile "$LINENO"
16932 then :
16933 xorg_cv_cc_flag_unknown_warning_option=yes
16934 else case e in #(
16935 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16936 esac
16937 fi
16938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16939 esac
16940 fi
16941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16942 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945 fi
16946
16947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950 fi
16951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16952 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16955 then :
16956 printf %s "(cached) " >&6
16957 else case e in #(
16958 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 int i;
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"
16963 then :
16964 xorg_cv_cc_flag_unused_command_line_argument=yes
16965 else case e in #(
16966 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16967 esac
16968 fi
16969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16970 esac
16971 fi
16972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16973 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16975 CFLAGS="$xorg_testset_save_CFLAGS"
16976 fi
16977
16978 found="no"
16979
16980 if test $found = "no" ; then
16981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16983 fi
16984
16985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16987 fi
16988
16989 CFLAGS="$CFLAGS -Werror=nonnull"
16990
16991 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16992 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16993 cacheid=xorg_cv_cc_flag__Werror_nonnull
16994 if eval test \${$cacheid+y}
16995 then :
16996 printf %s "(cached) " >&6
16997 else case e in #(
16998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17000 int i;
17001 int
17002 main (void)
17003 {
17004
17005 ;
17006 return 0;
17007 }
17008 _ACEOF
17009 if ac_fn_c_try_link "$LINENO"
17010 then :
17011 eval $cacheid=yes
17012 else case e in #(
17013 e) eval $cacheid=no ;;
17014 esac
17015 fi
17016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17017 conftest$ac_exeext conftest.$ac_ext ;;
17018 esac
17019 fi
17020
17021
17022 CFLAGS="$xorg_testset_save_CFLAGS"
17023
17024 eval supported=\$$cacheid
17025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17026 printf '%s\n' "$supported" >&6; }
17027 if test "$supported" = "yes" ; then
17028 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
17029 found="yes"
17030 fi
17031 fi
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047 xorg_testset_save_CFLAGS="$CFLAGS"
17048
17049 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17052 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17053 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17054 then :
17055 printf %s "(cached) " >&6
17056 else case e in #(
17057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059 int i;
17060 _ACEOF
17061 if ac_fn_c_try_compile "$LINENO"
17062 then :
17063 xorg_cv_cc_flag_unknown_warning_option=yes
17064 else case e in #(
17065 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17066 esac
17067 fi
17068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17069 esac
17070 fi
17071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074 CFLAGS="$xorg_testset_save_CFLAGS"
17075 fi
17076
17077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080 fi
17081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17085 then :
17086 printf %s "(cached) " >&6
17087 else case e in #(
17088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 int i;
17091 _ACEOF
17092 if ac_fn_c_try_compile "$LINENO"
17093 then :
17094 xorg_cv_cc_flag_unused_command_line_argument=yes
17095 else case e in #(
17096 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17097 esac
17098 fi
17099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17100 esac
17101 fi
17102 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17103 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17104 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17105 CFLAGS="$xorg_testset_save_CFLAGS"
17106 fi
17107
17108 found="no"
17109
17110 if test $found = "no" ; then
17111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17113 fi
17114
17115 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17117 fi
17118
17119 CFLAGS="$CFLAGS -Werror=init-self"
17120
17121 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
17122 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
17123 cacheid=xorg_cv_cc_flag__Werror_init_self
17124 if eval test \${$cacheid+y}
17125 then :
17126 printf %s "(cached) " >&6
17127 else case e in #(
17128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17129 /* end confdefs.h. */
17130 int i;
17131 int
17132 main (void)
17133 {
17134
17135 ;
17136 return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_link "$LINENO"
17140 then :
17141 eval $cacheid=yes
17142 else case e in #(
17143 e) eval $cacheid=no ;;
17144 esac
17145 fi
17146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17147 conftest$ac_exeext conftest.$ac_ext ;;
17148 esac
17149 fi
17150
17151
17152 CFLAGS="$xorg_testset_save_CFLAGS"
17153
17154 eval supported=\$$cacheid
17155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17156 printf '%s\n' "$supported" >&6; }
17157 if test "$supported" = "yes" ; then
17158 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
17159 found="yes"
17160 fi
17161 fi
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177 xorg_testset_save_CFLAGS="$CFLAGS"
17178
17179 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17180 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17182 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17183 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17184 then :
17185 printf %s "(cached) " >&6
17186 else case e in #(
17187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17189 int i;
17190 _ACEOF
17191 if ac_fn_c_try_compile "$LINENO"
17192 then :
17193 xorg_cv_cc_flag_unknown_warning_option=yes
17194 else case e in #(
17195 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17196 esac
17197 fi
17198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17199 esac
17200 fi
17201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17202 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17204 CFLAGS="$xorg_testset_save_CFLAGS"
17205 fi
17206
17207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17210 fi
17211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17215 then :
17216 printf %s "(cached) " >&6
17217 else case e in #(
17218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17220 int i;
17221 _ACEOF
17222 if ac_fn_c_try_compile "$LINENO"
17223 then :
17224 xorg_cv_cc_flag_unused_command_line_argument=yes
17225 else case e in #(
17226 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17227 esac
17228 fi
17229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17230 esac
17231 fi
17232 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17233 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17235 CFLAGS="$xorg_testset_save_CFLAGS"
17236 fi
17237
17238 found="no"
17239
17240 if test $found = "no" ; then
17241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243 fi
17244
17245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17247 fi
17248
17249 CFLAGS="$CFLAGS -Werror=main"
17250
17251 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
17252 printf %s "checking if $CC supports -Werror=main... " >&6; }
17253 cacheid=xorg_cv_cc_flag__Werror_main
17254 if eval test \${$cacheid+y}
17255 then :
17256 printf %s "(cached) " >&6
17257 else case e in #(
17258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260 int i;
17261 int
17262 main (void)
17263 {
17264
17265 ;
17266 return 0;
17267 }
17268 _ACEOF
17269 if ac_fn_c_try_link "$LINENO"
17270 then :
17271 eval $cacheid=yes
17272 else case e in #(
17273 e) eval $cacheid=no ;;
17274 esac
17275 fi
17276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17277 conftest$ac_exeext conftest.$ac_ext ;;
17278 esac
17279 fi
17280
17281
17282 CFLAGS="$xorg_testset_save_CFLAGS"
17283
17284 eval supported=\$$cacheid
17285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17286 printf '%s\n' "$supported" >&6; }
17287 if test "$supported" = "yes" ; then
17288 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
17289 found="yes"
17290 fi
17291 fi
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307 xorg_testset_save_CFLAGS="$CFLAGS"
17308
17309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17314 then :
17315 printf %s "(cached) " >&6
17316 else case e in #(
17317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17319 int i;
17320 _ACEOF
17321 if ac_fn_c_try_compile "$LINENO"
17322 then :
17323 xorg_cv_cc_flag_unknown_warning_option=yes
17324 else case e in #(
17325 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17326 esac
17327 fi
17328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17329 esac
17330 fi
17331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17332 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17334 CFLAGS="$xorg_testset_save_CFLAGS"
17335 fi
17336
17337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17340 fi
17341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17342 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else case e in #(
17348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"
17353 then :
17354 xorg_cv_cc_flag_unused_command_line_argument=yes
17355 else case e in #(
17356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17357 esac
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17360 esac
17361 fi
17362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17363 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17365 CFLAGS="$xorg_testset_save_CFLAGS"
17366 fi
17367
17368 found="no"
17369
17370 if test $found = "no" ; then
17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17373 fi
17374
17375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17377 fi
17378
17379 CFLAGS="$CFLAGS -Werror=missing-braces"
17380
17381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
17382 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
17383 cacheid=xorg_cv_cc_flag__Werror_missing_braces
17384 if eval test \${$cacheid+y}
17385 then :
17386 printf %s "(cached) " >&6
17387 else case e in #(
17388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17389 /* end confdefs.h. */
17390 int i;
17391 int
17392 main (void)
17393 {
17394
17395 ;
17396 return 0;
17397 }
17398 _ACEOF
17399 if ac_fn_c_try_link "$LINENO"
17400 then :
17401 eval $cacheid=yes
17402 else case e in #(
17403 e) eval $cacheid=no ;;
17404 esac
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17407 conftest$ac_exeext conftest.$ac_ext ;;
17408 esac
17409 fi
17410
17411
17412 CFLAGS="$xorg_testset_save_CFLAGS"
17413
17414 eval supported=\$$cacheid
17415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17416 printf '%s\n' "$supported" >&6; }
17417 if test "$supported" = "yes" ; then
17418 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17419 found="yes"
17420 fi
17421 fi
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437 xorg_testset_save_CFLAGS="$CFLAGS"
17438
17439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17441 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17444 then :
17445 printf %s "(cached) " >&6
17446 else case e in #(
17447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17449 int i;
17450 _ACEOF
17451 if ac_fn_c_try_compile "$LINENO"
17452 then :
17453 xorg_cv_cc_flag_unknown_warning_option=yes
17454 else case e in #(
17455 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17456 esac
17457 fi
17458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17459 esac
17460 fi
17461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17462 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17464 CFLAGS="$xorg_testset_save_CFLAGS"
17465 fi
17466
17467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17470 fi
17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17472 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17475 then :
17476 printf %s "(cached) " >&6
17477 else case e in #(
17478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 int i;
17481 _ACEOF
17482 if ac_fn_c_try_compile "$LINENO"
17483 then :
17484 xorg_cv_cc_flag_unused_command_line_argument=yes
17485 else case e in #(
17486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17487 esac
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17490 esac
17491 fi
17492 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17493 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17495 CFLAGS="$xorg_testset_save_CFLAGS"
17496 fi
17497
17498 found="no"
17499
17500 if test $found = "no" ; then
17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17503 fi
17504
17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17507 fi
17508
17509 CFLAGS="$CFLAGS -Werror=sequence-point"
17510
17511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17512 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17513 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17514 if eval test \${$cacheid+y}
17515 then :
17516 printf %s "(cached) " >&6
17517 else case e in #(
17518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 int i;
17521 int
17522 main (void)
17523 {
17524
17525 ;
17526 return 0;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_link "$LINENO"
17530 then :
17531 eval $cacheid=yes
17532 else case e in #(
17533 e) eval $cacheid=no ;;
17534 esac
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17537 conftest$ac_exeext conftest.$ac_ext ;;
17538 esac
17539 fi
17540
17541
17542 CFLAGS="$xorg_testset_save_CFLAGS"
17543
17544 eval supported=\$$cacheid
17545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17546 printf '%s\n' "$supported" >&6; }
17547 if test "$supported" = "yes" ; then
17548 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17549 found="yes"
17550 fi
17551 fi
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567 xorg_testset_save_CFLAGS="$CFLAGS"
17568
17569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17571 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17573 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17574 then :
17575 printf %s "(cached) " >&6
17576 else case e in #(
17577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h. */
17579 int i;
17580 _ACEOF
17581 if ac_fn_c_try_compile "$LINENO"
17582 then :
17583 xorg_cv_cc_flag_unknown_warning_option=yes
17584 else case e in #(
17585 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17586 esac
17587 fi
17588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17589 esac
17590 fi
17591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17592 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17594 CFLAGS="$xorg_testset_save_CFLAGS"
17595 fi
17596
17597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17600 fi
17601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17605 then :
17606 printf %s "(cached) " >&6
17607 else case e in #(
17608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 int i;
17611 _ACEOF
17612 if ac_fn_c_try_compile "$LINENO"
17613 then :
17614 xorg_cv_cc_flag_unused_command_line_argument=yes
17615 else case e in #(
17616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17617 esac
17618 fi
17619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17620 esac
17621 fi
17622 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17623 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17625 CFLAGS="$xorg_testset_save_CFLAGS"
17626 fi
17627
17628 found="no"
17629
17630 if test $found = "no" ; then
17631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17633 fi
17634
17635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17637 fi
17638
17639 CFLAGS="$CFLAGS -Werror=return-type"
17640
17641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17642 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17643 cacheid=xorg_cv_cc_flag__Werror_return_type
17644 if eval test \${$cacheid+y}
17645 then :
17646 printf %s "(cached) " >&6
17647 else case e in #(
17648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650 int i;
17651 int
17652 main (void)
17653 {
17654
17655 ;
17656 return 0;
17657 }
17658 _ACEOF
17659 if ac_fn_c_try_link "$LINENO"
17660 then :
17661 eval $cacheid=yes
17662 else case e in #(
17663 e) eval $cacheid=no ;;
17664 esac
17665 fi
17666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17667 conftest$ac_exeext conftest.$ac_ext ;;
17668 esac
17669 fi
17670
17671
17672 CFLAGS="$xorg_testset_save_CFLAGS"
17673
17674 eval supported=\$$cacheid
17675 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17676 printf '%s\n' "$supported" >&6; }
17677 if test "$supported" = "yes" ; then
17678 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17679 found="yes"
17680 fi
17681 fi
17682
17683 if test $found = "no" ; then
17684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17686 fi
17687
17688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17690 fi
17691
17692 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17693
17694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17695 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17696 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17697 if eval test \${$cacheid+y}
17698 then :
17699 printf %s "(cached) " >&6
17700 else case e in #(
17701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17703 int i;
17704 int
17705 main (void)
17706 {
17707
17708 ;
17709 return 0;
17710 }
17711 _ACEOF
17712 if ac_fn_c_try_link "$LINENO"
17713 then :
17714 eval $cacheid=yes
17715 else case e in #(
17716 e) eval $cacheid=no ;;
17717 esac
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17720 conftest$ac_exeext conftest.$ac_ext ;;
17721 esac
17722 fi
17723
17724
17725 CFLAGS="$xorg_testset_save_CFLAGS"
17726
17727 eval supported=\$$cacheid
17728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17729 printf '%s\n' "$supported" >&6; }
17730 if test "$supported" = "yes" ; then
17731 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17732 found="yes"
17733 fi
17734 fi
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750 xorg_testset_save_CFLAGS="$CFLAGS"
17751
17752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17754 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17755 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17756 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17757 then :
17758 printf %s "(cached) " >&6
17759 else case e in #(
17760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 int i;
17763 _ACEOF
17764 if ac_fn_c_try_compile "$LINENO"
17765 then :
17766 xorg_cv_cc_flag_unknown_warning_option=yes
17767 else case e in #(
17768 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17769 esac
17770 fi
17771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17772 esac
17773 fi
17774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17775 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17777 CFLAGS="$xorg_testset_save_CFLAGS"
17778 fi
17779
17780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17783 fi
17784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17785 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17786 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17787 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17788 then :
17789 printf %s "(cached) " >&6
17790 else case e in #(
17791 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17793 int i;
17794 _ACEOF
17795 if ac_fn_c_try_compile "$LINENO"
17796 then :
17797 xorg_cv_cc_flag_unused_command_line_argument=yes
17798 else case e in #(
17799 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17800 esac
17801 fi
17802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17803 esac
17804 fi
17805 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17806 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17808 CFLAGS="$xorg_testset_save_CFLAGS"
17809 fi
17810
17811 found="no"
17812
17813 if test $found = "no" ; then
17814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17816 fi
17817
17818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17820 fi
17821
17822 CFLAGS="$CFLAGS -Werror=trigraphs"
17823
17824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17825 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17826 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17827 if eval test \${$cacheid+y}
17828 then :
17829 printf %s "(cached) " >&6
17830 else case e in #(
17831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17833 int i;
17834 int
17835 main (void)
17836 {
17837
17838 ;
17839 return 0;
17840 }
17841 _ACEOF
17842 if ac_fn_c_try_link "$LINENO"
17843 then :
17844 eval $cacheid=yes
17845 else case e in #(
17846 e) eval $cacheid=no ;;
17847 esac
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17850 conftest$ac_exeext conftest.$ac_ext ;;
17851 esac
17852 fi
17853
17854
17855 CFLAGS="$xorg_testset_save_CFLAGS"
17856
17857 eval supported=\$$cacheid
17858 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17859 printf '%s\n' "$supported" >&6; }
17860 if test "$supported" = "yes" ; then
17861 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17862 found="yes"
17863 fi
17864 fi
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880 xorg_testset_save_CFLAGS="$CFLAGS"
17881
17882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17885 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17886 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17887 then :
17888 printf %s "(cached) " >&6
17889 else case e in #(
17890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17892 int i;
17893 _ACEOF
17894 if ac_fn_c_try_compile "$LINENO"
17895 then :
17896 xorg_cv_cc_flag_unknown_warning_option=yes
17897 else case e in #(
17898 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17899 esac
17900 fi
17901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17902 esac
17903 fi
17904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17905 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908 fi
17909
17910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17913 fi
17914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17915 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17918 then :
17919 printf %s "(cached) " >&6
17920 else case e in #(
17921 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17923 int i;
17924 _ACEOF
17925 if ac_fn_c_try_compile "$LINENO"
17926 then :
17927 xorg_cv_cc_flag_unused_command_line_argument=yes
17928 else case e in #(
17929 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17930 esac
17931 fi
17932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17933 esac
17934 fi
17935 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17936 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17938 CFLAGS="$xorg_testset_save_CFLAGS"
17939 fi
17940
17941 found="no"
17942
17943 if test $found = "no" ; then
17944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17946 fi
17947
17948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17950 fi
17951
17952 CFLAGS="$CFLAGS -Werror=array-bounds"
17953
17954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17955 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17956 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17957 if eval test \${$cacheid+y}
17958 then :
17959 printf %s "(cached) " >&6
17960 else case e in #(
17961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962 /* end confdefs.h. */
17963 int i;
17964 int
17965 main (void)
17966 {
17967
17968 ;
17969 return 0;
17970 }
17971 _ACEOF
17972 if ac_fn_c_try_link "$LINENO"
17973 then :
17974 eval $cacheid=yes
17975 else case e in #(
17976 e) eval $cacheid=no ;;
17977 esac
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17980 conftest$ac_exeext conftest.$ac_ext ;;
17981 esac
17982 fi
17983
17984
17985 CFLAGS="$xorg_testset_save_CFLAGS"
17986
17987 eval supported=\$$cacheid
17988 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17989 printf '%s\n' "$supported" >&6; }
17990 if test "$supported" = "yes" ; then
17991 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17992 found="yes"
17993 fi
17994 fi
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010 xorg_testset_save_CFLAGS="$CFLAGS"
18011
18012 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18014 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18015 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18016 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18017 then :
18018 printf %s "(cached) " >&6
18019 else case e in #(
18020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 int i;
18023 _ACEOF
18024 if ac_fn_c_try_compile "$LINENO"
18025 then :
18026 xorg_cv_cc_flag_unknown_warning_option=yes
18027 else case e in #(
18028 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18029 esac
18030 fi
18031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18032 esac
18033 fi
18034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18035 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18037 CFLAGS="$xorg_testset_save_CFLAGS"
18038 fi
18039
18040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18043 fi
18044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18045 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18048 then :
18049 printf %s "(cached) " >&6
18050 else case e in #(
18051 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18053 int i;
18054 _ACEOF
18055 if ac_fn_c_try_compile "$LINENO"
18056 then :
18057 xorg_cv_cc_flag_unused_command_line_argument=yes
18058 else case e in #(
18059 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18060 esac
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18063 esac
18064 fi
18065 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18066 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18068 CFLAGS="$xorg_testset_save_CFLAGS"
18069 fi
18070
18071 found="no"
18072
18073 if test $found = "no" ; then
18074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18076 fi
18077
18078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18080 fi
18081
18082 CFLAGS="$CFLAGS -Werror=write-strings"
18083
18084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
18085 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
18086 cacheid=xorg_cv_cc_flag__Werror_write_strings
18087 if eval test \${$cacheid+y}
18088 then :
18089 printf %s "(cached) " >&6
18090 else case e in #(
18091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18093 int i;
18094 int
18095 main (void)
18096 {
18097
18098 ;
18099 return 0;
18100 }
18101 _ACEOF
18102 if ac_fn_c_try_link "$LINENO"
18103 then :
18104 eval $cacheid=yes
18105 else case e in #(
18106 e) eval $cacheid=no ;;
18107 esac
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18110 conftest$ac_exeext conftest.$ac_ext ;;
18111 esac
18112 fi
18113
18114
18115 CFLAGS="$xorg_testset_save_CFLAGS"
18116
18117 eval supported=\$$cacheid
18118 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18119 printf '%s\n' "$supported" >&6; }
18120 if test "$supported" = "yes" ; then
18121 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
18122 found="yes"
18123 fi
18124 fi
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140 xorg_testset_save_CFLAGS="$CFLAGS"
18141
18142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18144 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18145 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18146 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18147 then :
18148 printf %s "(cached) " >&6
18149 else case e in #(
18150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18151 /* end confdefs.h. */
18152 int i;
18153 _ACEOF
18154 if ac_fn_c_try_compile "$LINENO"
18155 then :
18156 xorg_cv_cc_flag_unknown_warning_option=yes
18157 else case e in #(
18158 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18159 esac
18160 fi
18161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18162 esac
18163 fi
18164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18165 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18167 CFLAGS="$xorg_testset_save_CFLAGS"
18168 fi
18169
18170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18173 fi
18174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18178 then :
18179 printf %s "(cached) " >&6
18180 else case e in #(
18181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h. */
18183 int i;
18184 _ACEOF
18185 if ac_fn_c_try_compile "$LINENO"
18186 then :
18187 xorg_cv_cc_flag_unused_command_line_argument=yes
18188 else case e in #(
18189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18190 esac
18191 fi
18192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18193 esac
18194 fi
18195 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18196 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18198 CFLAGS="$xorg_testset_save_CFLAGS"
18199 fi
18200
18201 found="no"
18202
18203 if test $found = "no" ; then
18204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18206 fi
18207
18208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18210 fi
18211
18212 CFLAGS="$CFLAGS -Werror=address"
18213
18214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
18215 printf %s "checking if $CC supports -Werror=address... " >&6; }
18216 cacheid=xorg_cv_cc_flag__Werror_address
18217 if eval test \${$cacheid+y}
18218 then :
18219 printf %s "(cached) " >&6
18220 else case e in #(
18221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18223 int i;
18224 int
18225 main (void)
18226 {
18227
18228 ;
18229 return 0;
18230 }
18231 _ACEOF
18232 if ac_fn_c_try_link "$LINENO"
18233 then :
18234 eval $cacheid=yes
18235 else case e in #(
18236 e) eval $cacheid=no ;;
18237 esac
18238 fi
18239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18240 conftest$ac_exeext conftest.$ac_ext ;;
18241 esac
18242 fi
18243
18244
18245 CFLAGS="$xorg_testset_save_CFLAGS"
18246
18247 eval supported=\$$cacheid
18248 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18249 printf '%s\n' "$supported" >&6; }
18250 if test "$supported" = "yes" ; then
18251 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
18252 found="yes"
18253 fi
18254 fi
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270 xorg_testset_save_CFLAGS="$CFLAGS"
18271
18272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18276 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18277 then :
18278 printf %s "(cached) " >&6
18279 else case e in #(
18280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18282 int i;
18283 _ACEOF
18284 if ac_fn_c_try_compile "$LINENO"
18285 then :
18286 xorg_cv_cc_flag_unknown_warning_option=yes
18287 else case e in #(
18288 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18289 esac
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18292 esac
18293 fi
18294 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18295 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18297 CFLAGS="$xorg_testset_save_CFLAGS"
18298 fi
18299
18300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18303 fi
18304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18306 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18307 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18308 then :
18309 printf %s "(cached) " >&6
18310 else case e in #(
18311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 int i;
18314 _ACEOF
18315 if ac_fn_c_try_compile "$LINENO"
18316 then :
18317 xorg_cv_cc_flag_unused_command_line_argument=yes
18318 else case e in #(
18319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18320 esac
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18323 esac
18324 fi
18325 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18326 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329 fi
18330
18331 found="no"
18332
18333 if test $found = "no" ; then
18334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336 fi
18337
18338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18340 fi
18341
18342 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
18343
18344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
18345 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
18346 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
18347 if eval test \${$cacheid+y}
18348 then :
18349 printf %s "(cached) " >&6
18350 else case e in #(
18351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353 int i;
18354 int
18355 main (void)
18356 {
18357
18358 ;
18359 return 0;
18360 }
18361 _ACEOF
18362 if ac_fn_c_try_link "$LINENO"
18363 then :
18364 eval $cacheid=yes
18365 else case e in #(
18366 e) eval $cacheid=no ;;
18367 esac
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18370 conftest$ac_exeext conftest.$ac_ext ;;
18371 esac
18372 fi
18373
18374
18375 CFLAGS="$xorg_testset_save_CFLAGS"
18376
18377 eval supported=\$$cacheid
18378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18379 printf '%s\n' "$supported" >&6; }
18380 if test "$supported" = "yes" ; then
18381 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
18382 found="yes"
18383 fi
18384 fi
18385
18386 if test $found = "no" ; then
18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389 fi
18390
18391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18393 fi
18394
18395 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18396
18397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
18398 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
18399 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
18400 if eval test \${$cacheid+y}
18401 then :
18402 printf %s "(cached) " >&6
18403 else case e in #(
18404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 int i;
18407 int
18408 main (void)
18409 {
18410
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"
18416 then :
18417 eval $cacheid=yes
18418 else case e in #(
18419 e) eval $cacheid=no ;;
18420 esac
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18423 conftest$ac_exeext conftest.$ac_ext ;;
18424 esac
18425 fi
18426
18427
18428 CFLAGS="$xorg_testset_save_CFLAGS"
18429
18430 eval supported=\$$cacheid
18431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18432 printf '%s\n' "$supported" >&6; }
18433 if test "$supported" = "yes" ; then
18434 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18435 found="yes"
18436 fi
18437 fi
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453 xorg_testset_save_CFLAGS="$CFLAGS"
18454
18455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18458 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18459 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18460 then :
18461 printf %s "(cached) " >&6
18462 else case e in #(
18463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465 int i;
18466 _ACEOF
18467 if ac_fn_c_try_compile "$LINENO"
18468 then :
18469 xorg_cv_cc_flag_unknown_warning_option=yes
18470 else case e in #(
18471 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18472 esac
18473 fi
18474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18475 esac
18476 fi
18477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18478 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18480 CFLAGS="$xorg_testset_save_CFLAGS"
18481 fi
18482
18483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18486 fi
18487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18488 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18491 then :
18492 printf %s "(cached) " >&6
18493 else case e in #(
18494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18496 int i;
18497 _ACEOF
18498 if ac_fn_c_try_compile "$LINENO"
18499 then :
18500 xorg_cv_cc_flag_unused_command_line_argument=yes
18501 else case e in #(
18502 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18503 esac
18504 fi
18505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18506 esac
18507 fi
18508 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18509 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18511 CFLAGS="$xorg_testset_save_CFLAGS"
18512 fi
18513
18514 found="no"
18515
18516 if test $found = "no" ; then
18517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18519 fi
18520
18521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18523 fi
18524
18525 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18526
18527 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18528 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18529 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18530 if eval test \${$cacheid+y}
18531 then :
18532 printf %s "(cached) " >&6
18533 else case e in #(
18534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18536 int i;
18537 int
18538 main (void)
18539 {
18540
18541 ;
18542 return 0;
18543 }
18544 _ACEOF
18545 if ac_fn_c_try_link "$LINENO"
18546 then :
18547 eval $cacheid=yes
18548 else case e in #(
18549 e) eval $cacheid=no ;;
18550 esac
18551 fi
18552 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18553 conftest$ac_exeext conftest.$ac_ext ;;
18554 esac
18555 fi
18556
18557
18558 CFLAGS="$xorg_testset_save_CFLAGS"
18559
18560 eval supported=\$$cacheid
18561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18562 printf '%s\n' "$supported" >&6; }
18563 if test "$supported" = "yes" ; then
18564 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18565 found="yes"
18566 fi
18567 fi
18568
18569 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18570 else
18571 { 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
18572 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;}
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586 xorg_testset_save_CFLAGS="$CFLAGS"
18587
18588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18590 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18592 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18593 then :
18594 printf %s "(cached) " >&6
18595 else case e in #(
18596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598 int i;
18599 _ACEOF
18600 if ac_fn_c_try_compile "$LINENO"
18601 then :
18602 xorg_cv_cc_flag_unknown_warning_option=yes
18603 else case e in #(
18604 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18605 esac
18606 fi
18607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18608 esac
18609 fi
18610 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18611 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18613 CFLAGS="$xorg_testset_save_CFLAGS"
18614 fi
18615
18616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18619 fi
18620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18621 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18624 then :
18625 printf %s "(cached) " >&6
18626 else case e in #(
18627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18629 int i;
18630 _ACEOF
18631 if ac_fn_c_try_compile "$LINENO"
18632 then :
18633 xorg_cv_cc_flag_unused_command_line_argument=yes
18634 else case e in #(
18635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18636 esac
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18639 esac
18640 fi
18641 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18642 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18644 CFLAGS="$xorg_testset_save_CFLAGS"
18645 fi
18646
18647 found="no"
18648
18649 if test $found = "no" ; then
18650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18652 fi
18653
18654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18656 fi
18657
18658 CFLAGS="$CFLAGS -Wimplicit"
18659
18660 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18661 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18662 cacheid=xorg_cv_cc_flag__Wimplicit
18663 if eval test \${$cacheid+y}
18664 then :
18665 printf %s "(cached) " >&6
18666 else case e in #(
18667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668 /* end confdefs.h. */
18669 int i;
18670 int
18671 main (void)
18672 {
18673
18674 ;
18675 return 0;
18676 }
18677 _ACEOF
18678 if ac_fn_c_try_link "$LINENO"
18679 then :
18680 eval $cacheid=yes
18681 else case e in #(
18682 e) eval $cacheid=no ;;
18683 esac
18684 fi
18685 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18686 conftest$ac_exeext conftest.$ac_ext ;;
18687 esac
18688 fi
18689
18690
18691 CFLAGS="$xorg_testset_save_CFLAGS"
18692
18693 eval supported=\$$cacheid
18694 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18695 printf '%s\n' "$supported" >&6; }
18696 if test "$supported" = "yes" ; then
18697 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18698 found="yes"
18699 fi
18700 fi
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716 xorg_testset_save_CFLAGS="$CFLAGS"
18717
18718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18720 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18722 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18723 then :
18724 printf %s "(cached) " >&6
18725 else case e in #(
18726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 int i;
18729 _ACEOF
18730 if ac_fn_c_try_compile "$LINENO"
18731 then :
18732 xorg_cv_cc_flag_unknown_warning_option=yes
18733 else case e in #(
18734 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18735 esac
18736 fi
18737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18738 esac
18739 fi
18740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18741 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18743 CFLAGS="$xorg_testset_save_CFLAGS"
18744 fi
18745
18746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18749 fi
18750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18751 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18754 then :
18755 printf %s "(cached) " >&6
18756 else case e in #(
18757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18758 /* end confdefs.h. */
18759 int i;
18760 _ACEOF
18761 if ac_fn_c_try_compile "$LINENO"
18762 then :
18763 xorg_cv_cc_flag_unused_command_line_argument=yes
18764 else case e in #(
18765 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18766 esac
18767 fi
18768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18769 esac
18770 fi
18771 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18772 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18774 CFLAGS="$xorg_testset_save_CFLAGS"
18775 fi
18776
18777 found="no"
18778
18779 if test $found = "no" ; then
18780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18782 fi
18783
18784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18786 fi
18787
18788 CFLAGS="$CFLAGS -Wnonnull"
18789
18790 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18791 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18792 cacheid=xorg_cv_cc_flag__Wnonnull
18793 if eval test \${$cacheid+y}
18794 then :
18795 printf %s "(cached) " >&6
18796 else case e in #(
18797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h. */
18799 int i;
18800 int
18801 main (void)
18802 {
18803
18804 ;
18805 return 0;
18806 }
18807 _ACEOF
18808 if ac_fn_c_try_link "$LINENO"
18809 then :
18810 eval $cacheid=yes
18811 else case e in #(
18812 e) eval $cacheid=no ;;
18813 esac
18814 fi
18815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18816 conftest$ac_exeext conftest.$ac_ext ;;
18817 esac
18818 fi
18819
18820
18821 CFLAGS="$xorg_testset_save_CFLAGS"
18822
18823 eval supported=\$$cacheid
18824 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18825 printf '%s\n' "$supported" >&6; }
18826 if test "$supported" = "yes" ; then
18827 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18828 found="yes"
18829 fi
18830 fi
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846 xorg_testset_save_CFLAGS="$CFLAGS"
18847
18848 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18850 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18851 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18852 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18853 then :
18854 printf %s "(cached) " >&6
18855 else case e in #(
18856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18857 /* end confdefs.h. */
18858 int i;
18859 _ACEOF
18860 if ac_fn_c_try_compile "$LINENO"
18861 then :
18862 xorg_cv_cc_flag_unknown_warning_option=yes
18863 else case e in #(
18864 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18865 esac
18866 fi
18867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18868 esac
18869 fi
18870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18871 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18873 CFLAGS="$xorg_testset_save_CFLAGS"
18874 fi
18875
18876 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18879 fi
18880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18881 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18882 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18883 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18884 then :
18885 printf %s "(cached) " >&6
18886 else case e in #(
18887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18889 int i;
18890 _ACEOF
18891 if ac_fn_c_try_compile "$LINENO"
18892 then :
18893 xorg_cv_cc_flag_unused_command_line_argument=yes
18894 else case e in #(
18895 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18896 esac
18897 fi
18898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18899 esac
18900 fi
18901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18902 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18904 CFLAGS="$xorg_testset_save_CFLAGS"
18905 fi
18906
18907 found="no"
18908
18909 if test $found = "no" ; then
18910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18912 fi
18913
18914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18916 fi
18917
18918 CFLAGS="$CFLAGS -Winit-self"
18919
18920 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18921 printf %s "checking if $CC supports -Winit-self... " >&6; }
18922 cacheid=xorg_cv_cc_flag__Winit_self
18923 if eval test \${$cacheid+y}
18924 then :
18925 printf %s "(cached) " >&6
18926 else case e in #(
18927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928 /* end confdefs.h. */
18929 int i;
18930 int
18931 main (void)
18932 {
18933
18934 ;
18935 return 0;
18936 }
18937 _ACEOF
18938 if ac_fn_c_try_link "$LINENO"
18939 then :
18940 eval $cacheid=yes
18941 else case e in #(
18942 e) eval $cacheid=no ;;
18943 esac
18944 fi
18945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18946 conftest$ac_exeext conftest.$ac_ext ;;
18947 esac
18948 fi
18949
18950
18951 CFLAGS="$xorg_testset_save_CFLAGS"
18952
18953 eval supported=\$$cacheid
18954 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18955 printf '%s\n' "$supported" >&6; }
18956 if test "$supported" = "yes" ; then
18957 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18958 found="yes"
18959 fi
18960 fi
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976 xorg_testset_save_CFLAGS="$CFLAGS"
18977
18978 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18980 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18981 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18982 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18983 then :
18984 printf %s "(cached) " >&6
18985 else case e in #(
18986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18988 int i;
18989 _ACEOF
18990 if ac_fn_c_try_compile "$LINENO"
18991 then :
18992 xorg_cv_cc_flag_unknown_warning_option=yes
18993 else case e in #(
18994 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18995 esac
18996 fi
18997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18998 esac
18999 fi
19000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19001 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19003 CFLAGS="$xorg_testset_save_CFLAGS"
19004 fi
19005
19006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19009 fi
19010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19011 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19012 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19013 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19014 then :
19015 printf %s "(cached) " >&6
19016 else case e in #(
19017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018 /* end confdefs.h. */
19019 int i;
19020 _ACEOF
19021 if ac_fn_c_try_compile "$LINENO"
19022 then :
19023 xorg_cv_cc_flag_unused_command_line_argument=yes
19024 else case e in #(
19025 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19026 esac
19027 fi
19028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19029 esac
19030 fi
19031 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19032 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19034 CFLAGS="$xorg_testset_save_CFLAGS"
19035 fi
19036
19037 found="no"
19038
19039 if test $found = "no" ; then
19040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19042 fi
19043
19044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19046 fi
19047
19048 CFLAGS="$CFLAGS -Wmain"
19049
19050 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
19051 printf %s "checking if $CC supports -Wmain... " >&6; }
19052 cacheid=xorg_cv_cc_flag__Wmain
19053 if eval test \${$cacheid+y}
19054 then :
19055 printf %s "(cached) " >&6
19056 else case e in #(
19057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19059 int i;
19060 int
19061 main (void)
19062 {
19063
19064 ;
19065 return 0;
19066 }
19067 _ACEOF
19068 if ac_fn_c_try_link "$LINENO"
19069 then :
19070 eval $cacheid=yes
19071 else case e in #(
19072 e) eval $cacheid=no ;;
19073 esac
19074 fi
19075 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19076 conftest$ac_exeext conftest.$ac_ext ;;
19077 esac
19078 fi
19079
19080
19081 CFLAGS="$xorg_testset_save_CFLAGS"
19082
19083 eval supported=\$$cacheid
19084 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19085 printf '%s\n' "$supported" >&6; }
19086 if test "$supported" = "yes" ; then
19087 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
19088 found="yes"
19089 fi
19090 fi
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106 xorg_testset_save_CFLAGS="$CFLAGS"
19107
19108 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19110 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19111 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19112 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19113 then :
19114 printf %s "(cached) " >&6
19115 else case e in #(
19116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118 int i;
19119 _ACEOF
19120 if ac_fn_c_try_compile "$LINENO"
19121 then :
19122 xorg_cv_cc_flag_unknown_warning_option=yes
19123 else case e in #(
19124 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19125 esac
19126 fi
19127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19128 esac
19129 fi
19130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19131 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19133 CFLAGS="$xorg_testset_save_CFLAGS"
19134 fi
19135
19136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19139 fi
19140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19141 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19144 then :
19145 printf %s "(cached) " >&6
19146 else case e in #(
19147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19149 int i;
19150 _ACEOF
19151 if ac_fn_c_try_compile "$LINENO"
19152 then :
19153 xorg_cv_cc_flag_unused_command_line_argument=yes
19154 else case e in #(
19155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19156 esac
19157 fi
19158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19159 esac
19160 fi
19161 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19162 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19164 CFLAGS="$xorg_testset_save_CFLAGS"
19165 fi
19166
19167 found="no"
19168
19169 if test $found = "no" ; then
19170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19172 fi
19173
19174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19176 fi
19177
19178 CFLAGS="$CFLAGS -Wmissing-braces"
19179
19180 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
19181 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
19182 cacheid=xorg_cv_cc_flag__Wmissing_braces
19183 if eval test \${$cacheid+y}
19184 then :
19185 printf %s "(cached) " >&6
19186 else case e in #(
19187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19189 int i;
19190 int
19191 main (void)
19192 {
19193
19194 ;
19195 return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_link "$LINENO"
19199 then :
19200 eval $cacheid=yes
19201 else case e in #(
19202 e) eval $cacheid=no ;;
19203 esac
19204 fi
19205 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19206 conftest$ac_exeext conftest.$ac_ext ;;
19207 esac
19208 fi
19209
19210
19211 CFLAGS="$xorg_testset_save_CFLAGS"
19212
19213 eval supported=\$$cacheid
19214 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19215 printf '%s\n' "$supported" >&6; }
19216 if test "$supported" = "yes" ; then
19217 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
19218 found="yes"
19219 fi
19220 fi
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236 xorg_testset_save_CFLAGS="$CFLAGS"
19237
19238 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19240 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19241 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19242 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19243 then :
19244 printf %s "(cached) " >&6
19245 else case e in #(
19246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19248 int i;
19249 _ACEOF
19250 if ac_fn_c_try_compile "$LINENO"
19251 then :
19252 xorg_cv_cc_flag_unknown_warning_option=yes
19253 else case e in #(
19254 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19255 esac
19256 fi
19257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19258 esac
19259 fi
19260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19261 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19263 CFLAGS="$xorg_testset_save_CFLAGS"
19264 fi
19265
19266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19269 fi
19270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19271 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19274 then :
19275 printf %s "(cached) " >&6
19276 else case e in #(
19277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 int i;
19280 _ACEOF
19281 if ac_fn_c_try_compile "$LINENO"
19282 then :
19283 xorg_cv_cc_flag_unused_command_line_argument=yes
19284 else case e in #(
19285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19286 esac
19287 fi
19288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19289 esac
19290 fi
19291 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19292 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19294 CFLAGS="$xorg_testset_save_CFLAGS"
19295 fi
19296
19297 found="no"
19298
19299 if test $found = "no" ; then
19300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19302 fi
19303
19304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19306 fi
19307
19308 CFLAGS="$CFLAGS -Wsequence-point"
19309
19310 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
19311 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
19312 cacheid=xorg_cv_cc_flag__Wsequence_point
19313 if eval test \${$cacheid+y}
19314 then :
19315 printf %s "(cached) " >&6
19316 else case e in #(
19317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19318 /* end confdefs.h. */
19319 int i;
19320 int
19321 main (void)
19322 {
19323
19324 ;
19325 return 0;
19326 }
19327 _ACEOF
19328 if ac_fn_c_try_link "$LINENO"
19329 then :
19330 eval $cacheid=yes
19331 else case e in #(
19332 e) eval $cacheid=no ;;
19333 esac
19334 fi
19335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19336 conftest$ac_exeext conftest.$ac_ext ;;
19337 esac
19338 fi
19339
19340
19341 CFLAGS="$xorg_testset_save_CFLAGS"
19342
19343 eval supported=\$$cacheid
19344 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19345 printf '%s\n' "$supported" >&6; }
19346 if test "$supported" = "yes" ; then
19347 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
19348 found="yes"
19349 fi
19350 fi
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366 xorg_testset_save_CFLAGS="$CFLAGS"
19367
19368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19370 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19373 then :
19374 printf %s "(cached) " >&6
19375 else case e in #(
19376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378 int i;
19379 _ACEOF
19380 if ac_fn_c_try_compile "$LINENO"
19381 then :
19382 xorg_cv_cc_flag_unknown_warning_option=yes
19383 else case e in #(
19384 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19385 esac
19386 fi
19387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19388 esac
19389 fi
19390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19391 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19393 CFLAGS="$xorg_testset_save_CFLAGS"
19394 fi
19395
19396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19399 fi
19400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19401 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19402 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19403 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19404 then :
19405 printf %s "(cached) " >&6
19406 else case e in #(
19407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19408 /* end confdefs.h. */
19409 int i;
19410 _ACEOF
19411 if ac_fn_c_try_compile "$LINENO"
19412 then :
19413 xorg_cv_cc_flag_unused_command_line_argument=yes
19414 else case e in #(
19415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19416 esac
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19419 esac
19420 fi
19421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19422 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19424 CFLAGS="$xorg_testset_save_CFLAGS"
19425 fi
19426
19427 found="no"
19428
19429 if test $found = "no" ; then
19430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19432 fi
19433
19434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19436 fi
19437
19438 CFLAGS="$CFLAGS -Wreturn-type"
19439
19440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19441 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19442 cacheid=xorg_cv_cc_flag__Wreturn_type
19443 if eval test \${$cacheid+y}
19444 then :
19445 printf %s "(cached) " >&6
19446 else case e in #(
19447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448 /* end confdefs.h. */
19449 int i;
19450 int
19451 main (void)
19452 {
19453
19454 ;
19455 return 0;
19456 }
19457 _ACEOF
19458 if ac_fn_c_try_link "$LINENO"
19459 then :
19460 eval $cacheid=yes
19461 else case e in #(
19462 e) eval $cacheid=no ;;
19463 esac
19464 fi
19465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19466 conftest$ac_exeext conftest.$ac_ext ;;
19467 esac
19468 fi
19469
19470
19471 CFLAGS="$xorg_testset_save_CFLAGS"
19472
19473 eval supported=\$$cacheid
19474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19475 printf '%s\n' "$supported" >&6; }
19476 if test "$supported" = "yes" ; then
19477 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19478 found="yes"
19479 fi
19480 fi
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496 xorg_testset_save_CFLAGS="$CFLAGS"
19497
19498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19500 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19502 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19503 then :
19504 printf %s "(cached) " >&6
19505 else case e in #(
19506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 int i;
19509 _ACEOF
19510 if ac_fn_c_try_compile "$LINENO"
19511 then :
19512 xorg_cv_cc_flag_unknown_warning_option=yes
19513 else case e in #(
19514 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19515 esac
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19518 esac
19519 fi
19520 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19521 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19523 CFLAGS="$xorg_testset_save_CFLAGS"
19524 fi
19525
19526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19529 fi
19530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19531 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19534 then :
19535 printf %s "(cached) " >&6
19536 else case e in #(
19537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h. */
19539 int i;
19540 _ACEOF
19541 if ac_fn_c_try_compile "$LINENO"
19542 then :
19543 xorg_cv_cc_flag_unused_command_line_argument=yes
19544 else case e in #(
19545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19546 esac
19547 fi
19548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19549 esac
19550 fi
19551 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19552 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19554 CFLAGS="$xorg_testset_save_CFLAGS"
19555 fi
19556
19557 found="no"
19558
19559 if test $found = "no" ; then
19560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19562 fi
19563
19564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19566 fi
19567
19568 CFLAGS="$CFLAGS -Wtrigraphs"
19569
19570 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19571 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19572 cacheid=xorg_cv_cc_flag__Wtrigraphs
19573 if eval test \${$cacheid+y}
19574 then :
19575 printf %s "(cached) " >&6
19576 else case e in #(
19577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19579 int i;
19580 int
19581 main (void)
19582 {
19583
19584 ;
19585 return 0;
19586 }
19587 _ACEOF
19588 if ac_fn_c_try_link "$LINENO"
19589 then :
19590 eval $cacheid=yes
19591 else case e in #(
19592 e) eval $cacheid=no ;;
19593 esac
19594 fi
19595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19596 conftest$ac_exeext conftest.$ac_ext ;;
19597 esac
19598 fi
19599
19600
19601 CFLAGS="$xorg_testset_save_CFLAGS"
19602
19603 eval supported=\$$cacheid
19604 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19605 printf '%s\n' "$supported" >&6; }
19606 if test "$supported" = "yes" ; then
19607 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19608 found="yes"
19609 fi
19610 fi
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626 xorg_testset_save_CFLAGS="$CFLAGS"
19627
19628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19630 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19633 then :
19634 printf %s "(cached) " >&6
19635 else case e in #(
19636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19638 int i;
19639 _ACEOF
19640 if ac_fn_c_try_compile "$LINENO"
19641 then :
19642 xorg_cv_cc_flag_unknown_warning_option=yes
19643 else case e in #(
19644 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19645 esac
19646 fi
19647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19648 esac
19649 fi
19650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19651 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19653 CFLAGS="$xorg_testset_save_CFLAGS"
19654 fi
19655
19656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19659 fi
19660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19661 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19663 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19664 then :
19665 printf %s "(cached) " >&6
19666 else case e in #(
19667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668 /* end confdefs.h. */
19669 int i;
19670 _ACEOF
19671 if ac_fn_c_try_compile "$LINENO"
19672 then :
19673 xorg_cv_cc_flag_unused_command_line_argument=yes
19674 else case e in #(
19675 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19676 esac
19677 fi
19678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19679 esac
19680 fi
19681 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19682 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19684 CFLAGS="$xorg_testset_save_CFLAGS"
19685 fi
19686
19687 found="no"
19688
19689 if test $found = "no" ; then
19690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19692 fi
19693
19694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19696 fi
19697
19698 CFLAGS="$CFLAGS -Warray-bounds"
19699
19700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19701 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19702 cacheid=xorg_cv_cc_flag__Warray_bounds
19703 if eval test \${$cacheid+y}
19704 then :
19705 printf %s "(cached) " >&6
19706 else case e in #(
19707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708 /* end confdefs.h. */
19709 int i;
19710 int
19711 main (void)
19712 {
19713
19714 ;
19715 return 0;
19716 }
19717 _ACEOF
19718 if ac_fn_c_try_link "$LINENO"
19719 then :
19720 eval $cacheid=yes
19721 else case e in #(
19722 e) eval $cacheid=no ;;
19723 esac
19724 fi
19725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19726 conftest$ac_exeext conftest.$ac_ext ;;
19727 esac
19728 fi
19729
19730
19731 CFLAGS="$xorg_testset_save_CFLAGS"
19732
19733 eval supported=\$$cacheid
19734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19735 printf '%s\n' "$supported" >&6; }
19736 if test "$supported" = "yes" ; then
19737 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19738 found="yes"
19739 fi
19740 fi
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756 xorg_testset_save_CFLAGS="$CFLAGS"
19757
19758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19762 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19763 then :
19764 printf %s "(cached) " >&6
19765 else case e in #(
19766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19767 /* end confdefs.h. */
19768 int i;
19769 _ACEOF
19770 if ac_fn_c_try_compile "$LINENO"
19771 then :
19772 xorg_cv_cc_flag_unknown_warning_option=yes
19773 else case e in #(
19774 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19775 esac
19776 fi
19777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19778 esac
19779 fi
19780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19781 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19783 CFLAGS="$xorg_testset_save_CFLAGS"
19784 fi
19785
19786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19789 fi
19790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19791 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19794 then :
19795 printf %s "(cached) " >&6
19796 else case e in #(
19797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19799 int i;
19800 _ACEOF
19801 if ac_fn_c_try_compile "$LINENO"
19802 then :
19803 xorg_cv_cc_flag_unused_command_line_argument=yes
19804 else case e in #(
19805 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19806 esac
19807 fi
19808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19809 esac
19810 fi
19811 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19812 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19814 CFLAGS="$xorg_testset_save_CFLAGS"
19815 fi
19816
19817 found="no"
19818
19819 if test $found = "no" ; then
19820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19822 fi
19823
19824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19826 fi
19827
19828 CFLAGS="$CFLAGS -Wwrite-strings"
19829
19830 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19831 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19832 cacheid=xorg_cv_cc_flag__Wwrite_strings
19833 if eval test \${$cacheid+y}
19834 then :
19835 printf %s "(cached) " >&6
19836 else case e in #(
19837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h. */
19839 int i;
19840 int
19841 main (void)
19842 {
19843
19844 ;
19845 return 0;
19846 }
19847 _ACEOF
19848 if ac_fn_c_try_link "$LINENO"
19849 then :
19850 eval $cacheid=yes
19851 else case e in #(
19852 e) eval $cacheid=no ;;
19853 esac
19854 fi
19855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19856 conftest$ac_exeext conftest.$ac_ext ;;
19857 esac
19858 fi
19859
19860
19861 CFLAGS="$xorg_testset_save_CFLAGS"
19862
19863 eval supported=\$$cacheid
19864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19865 printf '%s\n' "$supported" >&6; }
19866 if test "$supported" = "yes" ; then
19867 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19868 found="yes"
19869 fi
19870 fi
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886 xorg_testset_save_CFLAGS="$CFLAGS"
19887
19888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19890 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19891 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19892 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19893 then :
19894 printf %s "(cached) " >&6
19895 else case e in #(
19896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19898 int i;
19899 _ACEOF
19900 if ac_fn_c_try_compile "$LINENO"
19901 then :
19902 xorg_cv_cc_flag_unknown_warning_option=yes
19903 else case e in #(
19904 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19905 esac
19906 fi
19907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19908 esac
19909 fi
19910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19911 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19913 CFLAGS="$xorg_testset_save_CFLAGS"
19914 fi
19915
19916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19919 fi
19920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19921 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19922 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19923 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19924 then :
19925 printf %s "(cached) " >&6
19926 else case e in #(
19927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19929 int i;
19930 _ACEOF
19931 if ac_fn_c_try_compile "$LINENO"
19932 then :
19933 xorg_cv_cc_flag_unused_command_line_argument=yes
19934 else case e in #(
19935 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19936 esac
19937 fi
19938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19939 esac
19940 fi
19941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19942 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19944 CFLAGS="$xorg_testset_save_CFLAGS"
19945 fi
19946
19947 found="no"
19948
19949 if test $found = "no" ; then
19950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19952 fi
19953
19954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19956 fi
19957
19958 CFLAGS="$CFLAGS -Waddress"
19959
19960 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19961 printf %s "checking if $CC supports -Waddress... " >&6; }
19962 cacheid=xorg_cv_cc_flag__Waddress
19963 if eval test \${$cacheid+y}
19964 then :
19965 printf %s "(cached) " >&6
19966 else case e in #(
19967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19969 int i;
19970 int
19971 main (void)
19972 {
19973
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 if ac_fn_c_try_link "$LINENO"
19979 then :
19980 eval $cacheid=yes
19981 else case e in #(
19982 e) eval $cacheid=no ;;
19983 esac
19984 fi
19985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19986 conftest$ac_exeext conftest.$ac_ext ;;
19987 esac
19988 fi
19989
19990
19991 CFLAGS="$xorg_testset_save_CFLAGS"
19992
19993 eval supported=\$$cacheid
19994 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19995 printf '%s\n' "$supported" >&6; }
19996 if test "$supported" = "yes" ; then
19997 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19998 found="yes"
19999 fi
20000 fi
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016 xorg_testset_save_CFLAGS="$CFLAGS"
20017
20018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20020 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20021 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20022 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20023 then :
20024 printf %s "(cached) " >&6
20025 else case e in #(
20026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 int i;
20029 _ACEOF
20030 if ac_fn_c_try_compile "$LINENO"
20031 then :
20032 xorg_cv_cc_flag_unknown_warning_option=yes
20033 else case e in #(
20034 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20035 esac
20036 fi
20037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20038 esac
20039 fi
20040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20041 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20043 CFLAGS="$xorg_testset_save_CFLAGS"
20044 fi
20045
20046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20049 fi
20050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20051 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20054 then :
20055 printf %s "(cached) " >&6
20056 else case e in #(
20057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20059 int i;
20060 _ACEOF
20061 if ac_fn_c_try_compile "$LINENO"
20062 then :
20063 xorg_cv_cc_flag_unused_command_line_argument=yes
20064 else case e in #(
20065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20066 esac
20067 fi
20068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20069 esac
20070 fi
20071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20072 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20074 CFLAGS="$xorg_testset_save_CFLAGS"
20075 fi
20076
20077 found="no"
20078
20079 if test $found = "no" ; then
20080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20082 fi
20083
20084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20086 fi
20087
20088 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
20089
20090 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
20091 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
20092 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
20093 if eval test \${$cacheid+y}
20094 then :
20095 printf %s "(cached) " >&6
20096 else case e in #(
20097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099 int i;
20100 int
20101 main (void)
20102 {
20103
20104 ;
20105 return 0;
20106 }
20107 _ACEOF
20108 if ac_fn_c_try_link "$LINENO"
20109 then :
20110 eval $cacheid=yes
20111 else case e in #(
20112 e) eval $cacheid=no ;;
20113 esac
20114 fi
20115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20116 conftest$ac_exeext conftest.$ac_ext ;;
20117 esac
20118 fi
20119
20120
20121 CFLAGS="$xorg_testset_save_CFLAGS"
20122
20123 eval supported=\$$cacheid
20124 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20125 printf '%s\n' "$supported" >&6; }
20126 if test "$supported" = "yes" ; then
20127 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
20128 found="yes"
20129 fi
20130 fi
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146 xorg_testset_save_CFLAGS="$CFLAGS"
20147
20148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20150 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20152 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
20160 if ac_fn_c_try_compile "$LINENO"
20161 then :
20162 xorg_cv_cc_flag_unknown_warning_option=yes
20163 else case e in #(
20164 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20165 esac
20166 fi
20167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20168 esac
20169 fi
20170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20171 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20173 CFLAGS="$xorg_testset_save_CFLAGS"
20174 fi
20175
20176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20179 fi
20180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20181 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20182 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20183 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20184 then :
20185 printf %s "(cached) " >&6
20186 else case e in #(
20187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h. */
20189 int i;
20190 _ACEOF
20191 if ac_fn_c_try_compile "$LINENO"
20192 then :
20193 xorg_cv_cc_flag_unused_command_line_argument=yes
20194 else case e in #(
20195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20196 esac
20197 fi
20198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20199 esac
20200 fi
20201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20202 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20204 CFLAGS="$xorg_testset_save_CFLAGS"
20205 fi
20206
20207 found="no"
20208
20209 if test $found = "no" ; then
20210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20212 fi
20213
20214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20216 fi
20217
20218 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
20219
20220 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
20221 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
20222 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
20223 if eval test \${$cacheid+y}
20224 then :
20225 printf %s "(cached) " >&6
20226 else case e in #(
20227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20228 /* end confdefs.h. */
20229 int i;
20230 int
20231 main (void)
20232 {
20233
20234 ;
20235 return 0;
20236 }
20237 _ACEOF
20238 if ac_fn_c_try_link "$LINENO"
20239 then :
20240 eval $cacheid=yes
20241 else case e in #(
20242 e) eval $cacheid=no ;;
20243 esac
20244 fi
20245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20246 conftest$ac_exeext conftest.$ac_ext ;;
20247 esac
20248 fi
20249
20250
20251 CFLAGS="$xorg_testset_save_CFLAGS"
20252
20253 eval supported=\$$cacheid
20254 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20255 printf '%s\n' "$supported" >&6; }
20256 if test "$supported" = "yes" ; then
20257 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
20258 found="yes"
20259 fi
20260 fi
20261
20262
20263 fi
20264
20265
20266
20267
20268
20269
20270
20271 CWARNFLAGS="$BASE_CFLAGS"
20272 if test "x$GCC" = xyes ; then
20273 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
20274 fi
20275
20276
20277
20278
20279
20280
20281
20282
20283 # Check whether --enable-strict-compilation was given.
20284 if test ${enable_strict_compilation+y}
20285 then :
20286 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
20287 else case e in #(
20288 e) STRICT_COMPILE=no ;;
20289 esac
20290 fi
20291
20292
20293
20294
20295
20296
20297 STRICT_CFLAGS=""
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311 xorg_testset_save_CFLAGS="$CFLAGS"
20312
20313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20315 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20317 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20318 then :
20319 printf %s "(cached) " >&6
20320 else case e in #(
20321 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20323 int i;
20324 _ACEOF
20325 if ac_fn_c_try_compile "$LINENO"
20326 then :
20327 xorg_cv_cc_flag_unknown_warning_option=yes
20328 else case e in #(
20329 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20330 esac
20331 fi
20332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20333 esac
20334 fi
20335 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20336 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20338 CFLAGS="$xorg_testset_save_CFLAGS"
20339 fi
20340
20341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20344 fi
20345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20346 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20349 then :
20350 printf %s "(cached) " >&6
20351 else case e in #(
20352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h. */
20354 int i;
20355 _ACEOF
20356 if ac_fn_c_try_compile "$LINENO"
20357 then :
20358 xorg_cv_cc_flag_unused_command_line_argument=yes
20359 else case e in #(
20360 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20361 esac
20362 fi
20363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20364 esac
20365 fi
20366 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20367 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20369 CFLAGS="$xorg_testset_save_CFLAGS"
20370 fi
20371
20372 found="no"
20373
20374 if test $found = "no" ; then
20375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20377 fi
20378
20379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20381 fi
20382
20383 CFLAGS="$CFLAGS -pedantic"
20384
20385 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
20386 printf %s "checking if $CC supports -pedantic... " >&6; }
20387 cacheid=xorg_cv_cc_flag__pedantic
20388 if eval test \${$cacheid+y}
20389 then :
20390 printf %s "(cached) " >&6
20391 else case e in #(
20392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20393 /* end confdefs.h. */
20394 int i;
20395 int
20396 main (void)
20397 {
20398
20399 ;
20400 return 0;
20401 }
20402 _ACEOF
20403 if ac_fn_c_try_link "$LINENO"
20404 then :
20405 eval $cacheid=yes
20406 else case e in #(
20407 e) eval $cacheid=no ;;
20408 esac
20409 fi
20410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20411 conftest$ac_exeext conftest.$ac_ext ;;
20412 esac
20413 fi
20414
20415
20416 CFLAGS="$xorg_testset_save_CFLAGS"
20417
20418 eval supported=\$$cacheid
20419 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20420 printf '%s\n' "$supported" >&6; }
20421 if test "$supported" = "yes" ; then
20422 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20423 found="yes"
20424 fi
20425 fi
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441 xorg_testset_save_CFLAGS="$CFLAGS"
20442
20443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20445 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20447 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20448 then :
20449 printf %s "(cached) " >&6
20450 else case e in #(
20451 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452 /* end confdefs.h. */
20453 int i;
20454 _ACEOF
20455 if ac_fn_c_try_compile "$LINENO"
20456 then :
20457 xorg_cv_cc_flag_unknown_warning_option=yes
20458 else case e in #(
20459 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20460 esac
20461 fi
20462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20463 esac
20464 fi
20465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20466 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20468 CFLAGS="$xorg_testset_save_CFLAGS"
20469 fi
20470
20471 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20474 fi
20475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20476 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20477 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20478 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20479 then :
20480 printf %s "(cached) " >&6
20481 else case e in #(
20482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20484 int i;
20485 _ACEOF
20486 if ac_fn_c_try_compile "$LINENO"
20487 then :
20488 xorg_cv_cc_flag_unused_command_line_argument=yes
20489 else case e in #(
20490 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20491 esac
20492 fi
20493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20494 esac
20495 fi
20496 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20497 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20499 CFLAGS="$xorg_testset_save_CFLAGS"
20500 fi
20501
20502 found="no"
20503
20504 if test $found = "no" ; then
20505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20507 fi
20508
20509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20511 fi
20512
20513 CFLAGS="$CFLAGS -Werror"
20514
20515 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20516 printf %s "checking if $CC supports -Werror... " >&6; }
20517 cacheid=xorg_cv_cc_flag__Werror
20518 if eval test \${$cacheid+y}
20519 then :
20520 printf %s "(cached) " >&6
20521 else case e in #(
20522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h. */
20524 int i;
20525 int
20526 main (void)
20527 {
20528
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 if ac_fn_c_try_link "$LINENO"
20534 then :
20535 eval $cacheid=yes
20536 else case e in #(
20537 e) eval $cacheid=no ;;
20538 esac
20539 fi
20540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20541 conftest$ac_exeext conftest.$ac_ext ;;
20542 esac
20543 fi
20544
20545
20546 CFLAGS="$xorg_testset_save_CFLAGS"
20547
20548 eval supported=\$$cacheid
20549 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20550 printf '%s\n' "$supported" >&6; }
20551 if test "$supported" = "yes" ; then
20552 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20553 found="yes"
20554 fi
20555 fi
20556
20557 if test $found = "no" ; then
20558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20560 fi
20561
20562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20564 fi
20565
20566 CFLAGS="$CFLAGS -errwarn"
20567
20568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20569 printf %s "checking if $CC supports -errwarn... " >&6; }
20570 cacheid=xorg_cv_cc_flag__errwarn
20571 if eval test \${$cacheid+y}
20572 then :
20573 printf %s "(cached) " >&6
20574 else case e in #(
20575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20576 /* end confdefs.h. */
20577 int i;
20578 int
20579 main (void)
20580 {
20581
20582 ;
20583 return 0;
20584 }
20585 _ACEOF
20586 if ac_fn_c_try_link "$LINENO"
20587 then :
20588 eval $cacheid=yes
20589 else case e in #(
20590 e) eval $cacheid=no ;;
20591 esac
20592 fi
20593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20594 conftest$ac_exeext conftest.$ac_ext ;;
20595 esac
20596 fi
20597
20598
20599 CFLAGS="$xorg_testset_save_CFLAGS"
20600
20601 eval supported=\$$cacheid
20602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20603 printf '%s\n' "$supported" >&6; }
20604 if test "$supported" = "yes" ; then
20605 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20606 found="yes"
20607 fi
20608 fi
20609
20610
20611
20612 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20613 # activate it with -Werror, so we add it here explicitly.
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627 xorg_testset_save_CFLAGS="$CFLAGS"
20628
20629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20632 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20633 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20634 then :
20635 printf %s "(cached) " >&6
20636 else case e in #(
20637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638 /* end confdefs.h. */
20639 int i;
20640 _ACEOF
20641 if ac_fn_c_try_compile "$LINENO"
20642 then :
20643 xorg_cv_cc_flag_unknown_warning_option=yes
20644 else case e in #(
20645 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20646 esac
20647 fi
20648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20649 esac
20650 fi
20651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20652 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20653 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20654 CFLAGS="$xorg_testset_save_CFLAGS"
20655 fi
20656
20657 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20660 fi
20661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20663 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20664 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20665 then :
20666 printf %s "(cached) " >&6
20667 else case e in #(
20668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20669 /* end confdefs.h. */
20670 int i;
20671 _ACEOF
20672 if ac_fn_c_try_compile "$LINENO"
20673 then :
20674 xorg_cv_cc_flag_unused_command_line_argument=yes
20675 else case e in #(
20676 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20677 esac
20678 fi
20679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20680 esac
20681 fi
20682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20683 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20685 CFLAGS="$xorg_testset_save_CFLAGS"
20686 fi
20687
20688 found="no"
20689
20690 if test $found = "no" ; then
20691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20693 fi
20694
20695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20697 fi
20698
20699 CFLAGS="$CFLAGS -Werror=attributes"
20700
20701 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20702 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20703 cacheid=xorg_cv_cc_flag__Werror_attributes
20704 if eval test \${$cacheid+y}
20705 then :
20706 printf %s "(cached) " >&6
20707 else case e in #(
20708 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h. */
20710 int i;
20711 int
20712 main (void)
20713 {
20714
20715 ;
20716 return 0;
20717 }
20718 _ACEOF
20719 if ac_fn_c_try_link "$LINENO"
20720 then :
20721 eval $cacheid=yes
20722 else case e in #(
20723 e) eval $cacheid=no ;;
20724 esac
20725 fi
20726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20727 conftest$ac_exeext conftest.$ac_ext ;;
20728 esac
20729 fi
20730
20731
20732 CFLAGS="$xorg_testset_save_CFLAGS"
20733
20734 eval supported=\$$cacheid
20735 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20736 printf '%s\n' "$supported" >&6; }
20737 if test "$supported" = "yes" ; then
20738 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20739 found="yes"
20740 fi
20741 fi
20742
20743
20744
20745 if test "x$STRICT_COMPILE" = "xyes"; then
20746 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20747 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20748 fi
20749
20750
20751
20752
20753
20754
20755
20756
20757 cat >>confdefs.h <<_ACEOF
20758 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20759 _ACEOF
20760
20761 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20762 if test "x$PVM" = "x"; then
20763 PVM="0"
20764 fi
20765
20766 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20767
20768 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20769 if test "x$PVP" = "x"; then
20770 PVP="0"
20771 fi
20772
20773 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20774
20775
20776
20777 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20778 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20779 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20780 touch \$(top_srcdir)/ChangeLog; \
20781 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20782
20783
20784
20785
20786 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20787 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20788 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20789 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20790 touch \$(top_srcdir)/INSTALL; \
20791 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20792
20793
20794
20795
20796
20797
20798 case $host_os in
20799 solaris*)
20800 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20801 # check for a man page file found in later versions that use
20802 # traditional section numbers instead
20803 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20804 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20805 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20806 then :
20807 printf %s "(cached) " >&6
20808 else case e in #(
20809 e) test "$cross_compiling" = yes &&
20810 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20811 if test -r "/usr/share/man/man7/attributes.7"; then
20812 ac_cv_file__usr_share_man_man7_attributes_7=yes
20813 else
20814 ac_cv_file__usr_share_man_man7_attributes_7=no
20815 fi ;;
20816 esac
20817 fi
20818 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20819 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20820 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20821 then :
20822 SYSV_MAN_SECTIONS=false
20823 else case e in #(
20824 e) SYSV_MAN_SECTIONS=true ;;
20825 esac
20826 fi
20827
20828 ;;
20829 *) SYSV_MAN_SECTIONS=false ;;
20830 esac
20831
20832 if test x$APP_MAN_SUFFIX = x ; then
20833 APP_MAN_SUFFIX=1
20834 fi
20835 if test x$APP_MAN_DIR = x ; then
20836 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20837 fi
20838
20839 if test x$LIB_MAN_SUFFIX = x ; then
20840 LIB_MAN_SUFFIX=3
20841 fi
20842 if test x$LIB_MAN_DIR = x ; then
20843 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20844 fi
20845
20846 if test x$FILE_MAN_SUFFIX = x ; then
20847 case $SYSV_MAN_SECTIONS in
20848 true) FILE_MAN_SUFFIX=4 ;;
20849 *) FILE_MAN_SUFFIX=5 ;;
20850 esac
20851 fi
20852 if test x$FILE_MAN_DIR = x ; then
20853 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20854 fi
20855
20856 if test x$MISC_MAN_SUFFIX = x ; then
20857 case $SYSV_MAN_SECTIONS in
20858 true) MISC_MAN_SUFFIX=5 ;;
20859 *) MISC_MAN_SUFFIX=7 ;;
20860 esac
20861 fi
20862 if test x$MISC_MAN_DIR = x ; then
20863 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20864 fi
20865
20866 if test x$DRIVER_MAN_SUFFIX = x ; then
20867 case $SYSV_MAN_SECTIONS in
20868 true) DRIVER_MAN_SUFFIX=7 ;;
20869 *) DRIVER_MAN_SUFFIX=4 ;;
20870 esac
20871 fi
20872 if test x$DRIVER_MAN_DIR = x ; then
20873 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20874 fi
20875
20876 if test x$ADMIN_MAN_SUFFIX = x ; then
20877 case $SYSV_MAN_SECTIONS in
20878 true) ADMIN_MAN_SUFFIX=1m ;;
20879 *) ADMIN_MAN_SUFFIX=8 ;;
20880 esac
20881 fi
20882 if test x$ADMIN_MAN_DIR = x ; then
20883 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20884 fi
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900 XORG_MAN_PAGE="X Version 11"
20901
20902 MAN_SUBSTS="\
20903 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20904 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20905 -e 's|__xservername__|Xorg|g' \
20906 -e 's|__xconfigfile__|xorg.conf|g' \
20907 -e 's|__projectroot__|\$(prefix)|g' \
20908 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20909 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20910 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20911 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20912 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20913 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20914 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20915
20916
20917
20918
20919 AM_DEFAULT_VERBOSITY=0
20920
20921
20922
20923
20924
20925
20926 # Check whether --enable-specs was given.
20927 if test ${enable_specs+y}
20928 then :
20929 enableval=$enable_specs; build_specs=$enableval
20930 else case e in #(
20931 e) build_specs=yes ;;
20932 esac
20933 fi
20934
20935
20936 if test x$build_specs = xyes; then
20937 ENABLE_SPECS_TRUE=
20938 ENABLE_SPECS_FALSE='#'
20939 else
20940 ENABLE_SPECS_TRUE='#'
20941 ENABLE_SPECS_FALSE=
20942 fi
20943
20944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
20945 printf %s "checking whether to build functional specifications... " >&6; }
20946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
20947 printf '%s\n' "$build_specs" >&6; }
20948
20949
20950
20951
20952
20953 # Check whether --with-xmlto was given.
20954 if test ${with_xmlto+y}
20955 then :
20956 withval=$with_xmlto; use_xmlto=$withval
20957 else case e in #(
20958 e) use_xmlto=auto ;;
20959 esac
20960 fi
20961
20962
20963
20964 if test "x$use_xmlto" = x"auto"; then
20965 # Extract the first word of "xmlto", so it can be a program name with args.
20966 set dummy xmlto; ac_word=$2
20967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20968 printf %s "checking for $ac_word... " >&6; }
20969 if test ${ac_cv_path_XMLTO+y}
20970 then :
20971 printf %s "(cached) " >&6
20972 else case e in #(
20973 e) case $XMLTO in
20974 [\\/]* | ?:[\\/]*)
20975 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20976 ;;
20977 *)
20978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20979 for as_dir in $PATH
20980 do
20981 IFS=$as_save_IFS
20982 case $as_dir in #(((
20983 '') as_dir=./ ;;
20984 */) ;;
20985 *) as_dir=$as_dir/ ;;
20986 esac
20987 for ac_exec_ext in '' $ac_executable_extensions; do
20988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20989 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20990 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20991 break 2
20992 fi
20993 done
20994 done
20995 IFS=$as_save_IFS
20996
20997 ;;
20998 esac ;;
20999 esac
21000 fi
21001 XMLTO=$ac_cv_path_XMLTO
21002 if test -n "$XMLTO"; then
21003 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
21004 printf '%s\n' "$XMLTO" >&6; }
21005 else
21006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21007 printf '%s\n' "no" >&6; }
21008 fi
21009
21010
21011 if test "x$XMLTO" = "x"; then
21012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
21013 printf '%s\n' "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
21014 have_xmlto=no
21015 else
21016 have_xmlto=yes
21017 fi
21018 elif test "x$use_xmlto" = x"yes" ; then
21019 # Extract the first word of "xmlto", so it can be a program name with args.
21020 set dummy xmlto; ac_word=$2
21021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21022 printf %s "checking for $ac_word... " >&6; }
21023 if test ${ac_cv_path_XMLTO+y}
21024 then :
21025 printf %s "(cached) " >&6
21026 else case e in #(
21027 e) case $XMLTO in
21028 [\\/]* | ?:[\\/]*)
21029 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
21030 ;;
21031 *)
21032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033 for as_dir in $PATH
21034 do
21035 IFS=$as_save_IFS
21036 case $as_dir in #(((
21037 '') as_dir=./ ;;
21038 */) ;;
21039 *) as_dir=$as_dir/ ;;
21040 esac
21041 for ac_exec_ext in '' $ac_executable_extensions; do
21042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21043 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
21044 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21045 break 2
21046 fi
21047 done
21048 done
21049 IFS=$as_save_IFS
21050
21051 ;;
21052 esac ;;
21053 esac
21054 fi
21055 XMLTO=$ac_cv_path_XMLTO
21056 if test -n "$XMLTO"; then
21057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
21058 printf '%s\n' "$XMLTO" >&6; }
21059 else
21060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21061 printf '%s\n' "no" >&6; }
21062 fi
21063
21064
21065 if test "x$XMLTO" = "x"; then
21066 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
21067 fi
21068 have_xmlto=yes
21069 elif test "x$use_xmlto" = x"no" ; then
21070 if test "x$XMLTO" != "x"; then
21071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
21072 printf '%s\n' "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
21073 fi
21074 have_xmlto=no
21075 else
21076 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
21077 fi
21078
21079 # Test for a minimum version of xmlto, if provided.
21080 if test "$have_xmlto" = yes; then
21081 # scrape the xmlto version
21082 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
21083 printf %s "checking the xmlto version... " >&6; }
21084 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
21085 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
21086 printf '%s\n' "$xmlto_version" >&6; }
21087 as_arg_v1=$xmlto_version
21088 as_arg_v2=0.0.22
21089 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
21090 case $? in #(
21091 1) :
21092 if test "x$use_xmlto" = xauto; then
21093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
21094 printf '%s\n' "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
21095 have_xmlto=no
21096 else
21097 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
21098 fi ;; #(
21099 0) :
21100 ;; #(
21101 2) :
21102 ;; #(
21103 *) :
21104 ;;
21105 esac
21106 fi
21107
21108 # Test for the ability of xmlto to generate a text target
21109 #
21110 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
21111 # following test for empty XML docbook files.
21112 # For compatibility reasons use the following empty XML docbook file and if
21113 # it fails try it again with a non-empty XML file.
21114 have_xmlto_text=no
21115 cat > conftest.xml << "EOF"
21116 EOF
21117 if test "$have_xmlto" = yes
21118 then :
21119 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
21120 then :
21121 have_xmlto_text=yes
21122 else case e in #(
21123 e) # Try it again with a non-empty XML file.
21124 cat > conftest.xml << "EOF"
21125 <x></x>
21126 EOF
21127 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
21128 then :
21129 have_xmlto_text=yes
21130 else case e in #(
21131 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
21132 printf '%s\n' "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
21133 esac
21134 fi ;;
21135 esac
21136 fi
21137 fi
21138 rm -f conftest.xml
21139 if test $have_xmlto_text = yes; then
21140 HAVE_XMLTO_TEXT_TRUE=
21141 HAVE_XMLTO_TEXT_FALSE='#'
21142 else
21143 HAVE_XMLTO_TEXT_TRUE='#'
21144 HAVE_XMLTO_TEXT_FALSE=
21145 fi
21146
21147 if test "$have_xmlto" = yes; then
21148 HAVE_XMLTO_TRUE=
21149 HAVE_XMLTO_FALSE='#'
21150 else
21151 HAVE_XMLTO_TRUE='#'
21152 HAVE_XMLTO_FALSE=
21153 fi
21154
21155
21156
21157
21158
21159
21160 # Check whether --with-fop was given.
21161 if test ${with_fop+y}
21162 then :
21163 withval=$with_fop; use_fop=$withval
21164 else case e in #(
21165 e) use_fop=auto ;;
21166 esac
21167 fi
21168
21169
21170
21171 if test "x$use_fop" = x"auto"; then
21172 # Extract the first word of "fop", so it can be a program name with args.
21173 set dummy fop; ac_word=$2
21174 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21175 printf %s "checking for $ac_word... " >&6; }
21176 if test ${ac_cv_path_FOP+y}
21177 then :
21178 printf %s "(cached) " >&6
21179 else case e in #(
21180 e) case $FOP in
21181 [\\/]* | ?:[\\/]*)
21182 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
21183 ;;
21184 *)
21185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21186 for as_dir in $PATH
21187 do
21188 IFS=$as_save_IFS
21189 case $as_dir in #(((
21190 '') as_dir=./ ;;
21191 */) ;;
21192 *) as_dir=$as_dir/ ;;
21193 esac
21194 for ac_exec_ext in '' $ac_executable_extensions; do
21195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21196 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
21197 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21198 break 2
21199 fi
21200 done
21201 done
21202 IFS=$as_save_IFS
21203
21204 ;;
21205 esac ;;
21206 esac
21207 fi
21208 FOP=$ac_cv_path_FOP
21209 if test -n "$FOP"; then
21210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
21211 printf '%s\n' "$FOP" >&6; }
21212 else
21213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21214 printf '%s\n' "no" >&6; }
21215 fi
21216
21217
21218 if test "x$FOP" = "x"; then
21219 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
21220 printf '%s\n' "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
21221 have_fop=no
21222 else
21223 have_fop=yes
21224 fi
21225 elif test "x$use_fop" = x"yes" ; then
21226 # Extract the first word of "fop", so it can be a program name with args.
21227 set dummy fop; ac_word=$2
21228 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21229 printf %s "checking for $ac_word... " >&6; }
21230 if test ${ac_cv_path_FOP+y}
21231 then :
21232 printf %s "(cached) " >&6
21233 else case e in #(
21234 e) case $FOP in
21235 [\\/]* | ?:[\\/]*)
21236 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
21237 ;;
21238 *)
21239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21240 for as_dir in $PATH
21241 do
21242 IFS=$as_save_IFS
21243 case $as_dir in #(((
21244 '') as_dir=./ ;;
21245 */) ;;
21246 *) as_dir=$as_dir/ ;;
21247 esac
21248 for ac_exec_ext in '' $ac_executable_extensions; do
21249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21250 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
21251 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21252 break 2
21253 fi
21254 done
21255 done
21256 IFS=$as_save_IFS
21257
21258 ;;
21259 esac ;;
21260 esac
21261 fi
21262 FOP=$ac_cv_path_FOP
21263 if test -n "$FOP"; then
21264 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
21265 printf '%s\n' "$FOP" >&6; }
21266 else
21267 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21268 printf '%s\n' "no" >&6; }
21269 fi
21270
21271
21272 if test "x$FOP" = "x"; then
21273 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
21274 fi
21275 have_fop=yes
21276 elif test "x$use_fop" = x"no" ; then
21277 if test "x$FOP" != "x"; then
21278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
21279 printf '%s\n' "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
21280 fi
21281 have_fop=no
21282 else
21283 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
21284 fi
21285
21286 # Test for a minimum version of fop, if provided.
21287
21288 if test "$have_fop" = yes; then
21289 HAVE_FOP_TRUE=
21290 HAVE_FOP_FALSE='#'
21291 else
21292 HAVE_FOP_TRUE='#'
21293 HAVE_FOP_FALSE=
21294 fi
21295
21296
21297
21298
21299 # Preserves the interface, should it be implemented later
21300
21301
21302
21303 # Check whether --with-xsltproc was given.
21304 if test ${with_xsltproc+y}
21305 then :
21306 withval=$with_xsltproc; use_xsltproc=$withval
21307 else case e in #(
21308 e) use_xsltproc=auto ;;
21309 esac
21310 fi
21311
21312
21313
21314 if test "x$use_xsltproc" = x"auto"; then
21315 # Extract the first word of "xsltproc", so it can be a program name with args.
21316 set dummy xsltproc; ac_word=$2
21317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21318 printf %s "checking for $ac_word... " >&6; }
21319 if test ${ac_cv_path_XSLTPROC+y}
21320 then :
21321 printf %s "(cached) " >&6
21322 else case e in #(
21323 e) case $XSLTPROC in
21324 [\\/]* | ?:[\\/]*)
21325 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21326 ;;
21327 *)
21328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21330 do
21331 IFS=$as_save_IFS
21332 case $as_dir in #(((
21333 '') as_dir=./ ;;
21334 */) ;;
21335 *) as_dir=$as_dir/ ;;
21336 esac
21337 for ac_exec_ext in '' $ac_executable_extensions; do
21338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21339 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
21340 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21341 break 2
21342 fi
21343 done
21344 done
21345 IFS=$as_save_IFS
21346
21347 ;;
21348 esac ;;
21349 esac
21350 fi
21351 XSLTPROC=$ac_cv_path_XSLTPROC
21352 if test -n "$XSLTPROC"; then
21353 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21354 printf '%s\n' "$XSLTPROC" >&6; }
21355 else
21356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21357 printf '%s\n' "no" >&6; }
21358 fi
21359
21360
21361 if test "x$XSLTPROC" = "x"; then
21362 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
21363 printf '%s\n' "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
21364 have_xsltproc=no
21365 else
21366 have_xsltproc=yes
21367 fi
21368 elif test "x$use_xsltproc" = x"yes" ; then
21369 # Extract the first word of "xsltproc", so it can be a program name with args.
21370 set dummy xsltproc; ac_word=$2
21371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21372 printf %s "checking for $ac_word... " >&6; }
21373 if test ${ac_cv_path_XSLTPROC+y}
21374 then :
21375 printf %s "(cached) " >&6
21376 else case e in #(
21377 e) case $XSLTPROC in
21378 [\\/]* | ?:[\\/]*)
21379 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
21380 ;;
21381 *)
21382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21383 for as_dir in $PATH
21384 do
21385 IFS=$as_save_IFS
21386 case $as_dir in #(((
21387 '') as_dir=./ ;;
21388 */) ;;
21389 *) as_dir=$as_dir/ ;;
21390 esac
21391 for ac_exec_ext in '' $ac_executable_extensions; do
21392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21393 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
21394 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21395 break 2
21396 fi
21397 done
21398 done
21399 IFS=$as_save_IFS
21400
21401 ;;
21402 esac ;;
21403 esac
21404 fi
21405 XSLTPROC=$ac_cv_path_XSLTPROC
21406 if test -n "$XSLTPROC"; then
21407 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21408 printf '%s\n' "$XSLTPROC" >&6; }
21409 else
21410 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411 printf '%s\n' "no" >&6; }
21412 fi
21413
21414
21415 if test "x$XSLTPROC" = "x"; then
21416 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
21417 fi
21418 have_xsltproc=yes
21419 elif test "x$use_xsltproc" = x"no" ; then
21420 if test "x$XSLTPROC" != "x"; then
21421 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
21422 printf '%s\n' "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
21423 fi
21424 have_xsltproc=no
21425 else
21426 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
21427 fi
21428
21429 if test "$have_xsltproc" = yes; then
21430 HAVE_XSLTPROC_TRUE=
21431 HAVE_XSLTPROC_FALSE='#'
21432 else
21433 HAVE_XSLTPROC_TRUE='#'
21434 HAVE_XSLTPROC_FALSE=
21435 fi
21436
21437
21438
21439 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
21440 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
21441 XORG_SGML_PATH=
21442 if test -n "$PKG_CONFIG" && \
21443 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
21444 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
21445 ac_status=$?
21446 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21447 test $ac_status = 0; }; then
21448 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
21449 else
21450 :
21451
21452 fi
21453
21454 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
21455 # the path and the name of the doc stylesheet
21456 if test "x$XORG_SGML_PATH" != "x" ; then
21457 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
21458 printf '%s\n' "$XORG_SGML_PATH" >&6; }
21459 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
21460 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
21461 else
21462 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21463 printf '%s\n' "no" >&6; }
21464 fi
21465
21466
21467
21468
21469 if test "x$XSL_STYLESHEET" != "x"; then
21470 HAVE_STYLESHEETS_TRUE=
21471 HAVE_STYLESHEETS_FALSE='#'
21472 else
21473 HAVE_STYLESHEETS_TRUE='#'
21474 HAVE_STYLESHEETS_FALSE=
21475 fi
21476
21477
21478
21479 # Obtain compiler/linker options for dependencies
21480
21481 pkg_failed=no
21482 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5
21483 printf %s "checking for XTST... " >&6; }
21484
21485 if test -n "$XTST_CFLAGS"; then
21486 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS"
21487 elif test -n "$PKG_CONFIG"; then
21488 if test -n "$PKG_CONFIG" && \
21489 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5
21490 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5
21491 ac_status=$?
21492 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21493 test $ac_status = 0; }; then
21494 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null`
21495 test "x$?" != "x0" && pkg_failed=yes
21496 else
21497 pkg_failed=yes
21498 fi
21499 else
21500 pkg_failed=untried
21501 fi
21502 if test -n "$XTST_LIBS"; then
21503 pkg_cv_XTST_LIBS="$XTST_LIBS"
21504 elif test -n "$PKG_CONFIG"; then
21505 if test -n "$PKG_CONFIG" && \
21506 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5
21507 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5
21508 ac_status=$?
21509 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21510 test $ac_status = 0; }; then
21511 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null`
21512 test "x$?" != "x0" && pkg_failed=yes
21513 else
21514 pkg_failed=yes
21515 fi
21516 else
21517 pkg_failed=untried
21518 fi
21519
21520
21521
21522 if test $pkg_failed = yes; then
21523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21524 printf '%s\n' "no" >&6; }
21525
21526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21527 _pkg_short_errors_supported=yes
21528 else
21529 _pkg_short_errors_supported=no
21530 fi
21531 if test $_pkg_short_errors_supported = yes; then
21532 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1`
21533 else
21534 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1`
21535 fi
21536 # Put the nasty error message in config.log where it belongs
21537 echo "$XTST_PKG_ERRORS" >&5
21538
21539 as_fn_error $? "Package requirements (x11 >= 1.6 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met:
21540
21541 $XTST_PKG_ERRORS
21542
21543 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21544 installed software in a non-standard prefix.
21545
21546 Alternatively, you may set the environment variables XTST_CFLAGS
21547 and XTST_LIBS to avoid the need to call pkg-config.
21548 See the pkg-config man page for more details." "$LINENO" 5
21549 elif test $pkg_failed = untried; then
21550 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21551 printf '%s\n' "no" >&6; }
21552 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21553 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
21554 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21555 is in your PATH or set the PKG_CONFIG environment variable to the full
21556 path to pkg-config.
21557
21558 Alternatively, you may set the environment variables XTST_CFLAGS
21559 and XTST_LIBS to avoid the need to call pkg-config.
21560 See the pkg-config man page for more details.
21561
21562 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21563 See 'config.log' for more details" "$LINENO" 5; }
21564 else
21565 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS
21566 XTST_LIBS=$pkg_cv_XTST_LIBS
21567 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21568 printf '%s\n' "yes" >&6; }
21569
21570 fi
21571
21572 # Determine if the source for man pages is available
21573 # It may already be present (tarball) or can be generated using xmlto
21574 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then
21575 INSTALL_MANPAGES_TRUE=
21576 INSTALL_MANPAGES_FALSE='#'
21577 else
21578 INSTALL_MANPAGES_TRUE='#'
21579 INSTALL_MANPAGES_FALSE=
21580 fi
21581
21582
21583 # Allow checking code with lint, sparse, etc.
21584
21585
21586
21587
21588
21589 # Check whether --with-lint was given.
21590 if test ${with_lint+y}
21591 then :
21592 withval=$with_lint; use_lint=$withval
21593 else case e in #(
21594 e) use_lint=no ;;
21595 esac
21596 fi
21597
21598
21599 # Obtain platform specific info like program name and options
21600 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
21601 case $host_os in
21602 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21603 lint_name=splint
21604 lint_options="-badflag"
21605 ;;
21606 *freebsd* | *netbsd*)
21607 lint_name=lint
21608 lint_options="-u -b"
21609 ;;
21610 *solaris*)
21611 lint_name=lint
21612 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21613 ;;
21614 esac
21615
21616 # Test for the presence of the program (either guessed by the code or spelled out by the user)
21617 if test "x$use_lint" = x"yes" ; then
21618 # Extract the first word of "$lint_name", so it can be a program name with args.
21619 set dummy $lint_name; ac_word=$2
21620 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21621 printf %s "checking for $ac_word... " >&6; }
21622 if test ${ac_cv_path_LINT+y}
21623 then :
21624 printf %s "(cached) " >&6
21625 else case e in #(
21626 e) case $LINT in
21627 [\\/]* | ?:[\\/]*)
21628 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21629 ;;
21630 *)
21631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21632 for as_dir in $PATH
21633 do
21634 IFS=$as_save_IFS
21635 case $as_dir in #(((
21636 '') as_dir=./ ;;
21637 */) ;;
21638 *) as_dir=$as_dir/ ;;
21639 esac
21640 for ac_exec_ext in '' $ac_executable_extensions; do
21641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21642 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21643 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21644 break 2
21645 fi
21646 done
21647 done
21648 IFS=$as_save_IFS
21649
21650 ;;
21651 esac ;;
21652 esac
21653 fi
21654 LINT=$ac_cv_path_LINT
21655 if test -n "$LINT"; then
21656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21657 printf '%s\n' "$LINT" >&6; }
21658 else
21659 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 printf '%s\n' "no" >&6; }
21661 fi
21662
21663
21664 if test "x$LINT" = "x"; then
21665 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21666 fi
21667 elif test "x$use_lint" = x"no" ; then
21668 if test "x$LINT" != "x"; then
21669 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21670 printf '%s\n' "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21671 fi
21672 else
21673 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21674 fi
21675
21676 # User supplied flags override default flags
21677 if test "x$LINT_FLAGS" != "x"; then
21678 lint_options=$LINT_FLAGS
21679 fi
21680
21681 LINT_FLAGS=$lint_options
21682
21683 if test "x$LINT" != x; then
21684 LINT_TRUE=
21685 LINT_FALSE='#'
21686 else
21687 LINT_TRUE='#'
21688 LINT_FALSE=
21689 fi
21690
21691
21692
21693
21694
21695 # Check whether --enable-lint-library was given.
21696 if test ${enable_lint_library+y}
21697 then :
21698 enableval=$enable_lint_library; make_lint_lib=$enableval
21699 else case e in #(
21700 e) make_lint_lib=no ;;
21701 esac
21702 fi
21703
21704
21705 if test "x$make_lint_lib" = x"yes" ; then
21706 LINTLIB=llib-lXtst.ln
21707 if test "x$LINT" = "x"; then
21708 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21709 fi
21710 elif test "x$make_lint_lib" != x"no" ; then
21711 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21712 fi
21713
21714
21715 if test x$make_lint_lib != xno; then
21716 MAKE_LINT_LIB_TRUE=
21717 MAKE_LINT_LIB_FALSE='#'
21718 else
21719 MAKE_LINT_LIB_TRUE='#'
21720 MAKE_LINT_LIB_FALSE=
21721 fi
21722
21723
21724
21725 LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}"
21726
21727 ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc"
21728
21729 cat >confcache <<\_ACEOF
21730 # This file is a shell script that caches the results of configure
21731 # tests run on this system so they can be shared between configure
21732 # scripts and configure runs, see configure's option --config-cache.
21733 # It is not useful on other systems. If it contains results you don't
21734 # want to keep, you may remove or edit it.
21735 #
21736 # config.status only pays attention to the cache file if you give it
21737 # the --recheck option to rerun configure.
21738 #
21739 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21740 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21741 # following values.
21742
21743 _ACEOF
21744
21745 ac_cache_dump |
21746 sed '
21747 /^ac_cv_env_/b end
21748 t clear
21749 :clear
21750 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21751 t end
21752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21753 :end' >>confcache
21754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21755 if test -w "$cache_file"; then
21756 if test "x$cache_file" != "x/dev/null"; then
21757 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21758 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
21759 if test ! -f "$cache_file" || test -h "$cache_file"; then
21760 cat confcache >"$cache_file"
21761 else
21762 case $cache_file in #(
21763 */* | ?:*)
21764 mv -f confcache "$cache_file"$$ &&
21765 mv -f "$cache_file"$$ "$cache_file" ;; #(
21766 *)
21767 mv -f confcache "$cache_file" ;;
21768 esac
21769 fi
21770 fi
21771 else
21772 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21773 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
21774 fi
21775 fi
21776 rm -f confcache
21777
21778 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21779 # Let make expand exec_prefix.
21780 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21781
21782 DEFS=-DHAVE_CONFIG_H
21783
21784 ac_libobjs=
21785 ac_ltlibobjs=
21786 U=
21787 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21788 # 1. Remove the extension, and $U if already installed.
21789 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21790 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
21791 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21792 # will be set to the directory where LIBOBJS objects are built.
21793 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21794 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21795 done
21796 LIBOBJS=$ac_libobjs
21797
21798 LTLIBOBJS=$ac_ltlibobjs
21799
21800
21801 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21802 printf %s "checking that generated files are newer than configure... " >&6; }
21803 if test -n "$am_sleep_pid"; then
21804 # Hide warnings about reused PIDs.
21805 wait $am_sleep_pid 2>/dev/null
21806 fi
21807 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
21808 printf '%s\n' "done" >&6; }
21809 case $enable_silent_rules in # (((
21810 yes) AM_DEFAULT_VERBOSITY=0;;
21811 no) AM_DEFAULT_VERBOSITY=1;;
21812 esac
21813 if test $am_cv_make_support_nested_variables = yes; then
21814 AM_V='$(V)'
21815 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21816 else
21817 AM_V=$AM_DEFAULT_VERBOSITY
21818 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21819 fi
21820
21821 if test -n "$EXEEXT"; then
21822 am__EXEEXT_TRUE=
21823 am__EXEEXT_FALSE='#'
21824 else
21825 am__EXEEXT_TRUE='#'
21826 am__EXEEXT_FALSE=
21827 fi
21828
21829 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21830 as_fn_error $? "conditional \"AMDEP\" was never defined.
21831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21832 fi
21833 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21834 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21836 fi
21837 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21838 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21840 fi
21841 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21842 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21844 fi
21845 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21846 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21848 fi
21849 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21850 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21852 fi
21853 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21854 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21856 fi
21857 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21858 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21860 fi
21861 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
21862 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
21863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21864 fi
21865 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21866 as_fn_error $? "conditional \"LINT\" was never defined.
21867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21868 fi
21869 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21870 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21872 fi
21873
21874 : "${CONFIG_STATUS=./config.status}"
21875 case $CONFIG_STATUS in #(
21876 -*) :
21877 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
21878 */*) :
21879 ;; #(
21880 *) :
21881 CONFIG_STATUS=./$CONFIG_STATUS ;;
21882 esac
21883
21884 ac_write_fail=0
21885 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
21886 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21887 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
21888 as_write_fail=0
21889 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
21890 #! $SHELL
21891 # Generated by $as_me.
21892 # Run this file to recreate the current configuration.
21893 # Compiler output produced by configure, useful for debugging
21894 # configure, is in config.log if it exists.
21895
21896 debug=false
21897 ac_cs_recheck=false
21898 ac_cs_silent=false
21899
21900 SHELL=\${CONFIG_SHELL-$SHELL}
21901 export SHELL
21902 _ASEOF
21903 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
21904 ## -------------------- ##
21905 ## M4sh Initialization. ##
21906 ## -------------------- ##
21907
21908 # Be more Bourne compatible
21909 DUALCASE=1; export DUALCASE # for MKS sh
21910 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21911 then :
21912 emulate sh
21913 NULLCMD=:
21914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21915 # contradicts POSIX and common usage. Disable this.
21916 alias -g '${1+"$@"}'='"$@"'
21917 setopt NO_GLOB_SUBST
21918 else case e in #(
21919 e) case `(set -o) 2>/dev/null` in #(
21920 *posix*) :
21921 set -o posix ;; #(
21922 *) :
21923 ;;
21924 esac ;;
21925 esac
21926 fi
21927
21928
21929
21930 # Reset variables that may have inherited troublesome values from
21931 # the environment.
21932
21933 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21934 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21935 # side effect of setting IFS to empty, thus disabling word splitting.)
21936 # Quoting is to prevent editors from complaining about space-tab.
21937 as_nl='
21938 '
21939 export as_nl
21940 IFS=" "" $as_nl"
21941
21942 PS1='$ '
21943 PS2='> '
21944 PS4='+ '
21945
21946 # Ensure predictable behavior from utilities with locale-dependent output.
21947 LC_ALL=C
21948 export LC_ALL
21949 LANGUAGE=C
21950 export LANGUAGE
21951
21952 # We cannot yet rely on "unset" to work, but we need these variables
21953 # to be unset--not just set to an empty or harmless value--now, to
21954 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21955 # also avoids known problems related to "unset" and subshell syntax
21956 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21957 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21958 do eval test \${$as_var+y} \
21959 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21960 done
21961
21962 # Ensure that fds 0, 1, and 2 are open.
21963 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21964 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21965 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21966
21967 # The user is always right.
21968 if ${PATH_SEPARATOR+false} :; then
21969 PATH_SEPARATOR=:
21970 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21971 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21972 PATH_SEPARATOR=';'
21973 }
21974 fi
21975
21976
21977 # Find who we are. Look in the path if we contain no directory separator.
21978 as_myself=
21979 case $0 in #((
21980 *[\\/]* ) as_myself=$0 ;;
21981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21982 for as_dir in $PATH
21983 do
21984 IFS=$as_save_IFS
21985 case $as_dir in #(((
21986 '') as_dir=./ ;;
21987 */) ;;
21988 *) as_dir=$as_dir/ ;;
21989 esac
21990 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21991 done
21992 IFS=$as_save_IFS
21993
21994 ;;
21995 esac
21996 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21997 # in which case we are not to be found in the path.
21998 if test "x$as_myself" = x; then
21999 as_myself=$0
22000 fi
22001 if test ! -f "$as_myself"; then
22002 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22003 exit 1
22004 fi
22005
22006
22007
22008 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22009 # ----------------------------------------
22010 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22011 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22012 # script with STATUS, using 1 if that was 0.
22013 as_fn_error ()
22014 {
22015 as_status=$1; test $as_status -eq 0 && as_status=1
22016 if test "$4"; then
22017 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22018 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22019 fi
22020 printf '%s\n' "$as_me: error: $2" >&2
22021 as_fn_exit $as_status
22022 } # as_fn_error
22023
22024
22025 # as_fn_set_status STATUS
22026 # -----------------------
22027 # Set $? to STATUS, without forking.
22028 as_fn_set_status ()
22029 {
22030 return $1
22031 } # as_fn_set_status
22032
22033 # as_fn_exit STATUS
22034 # -----------------
22035 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22036 as_fn_exit ()
22037 {
22038 set +e
22039 as_fn_set_status $1
22040 exit $1
22041 } # as_fn_exit
22042
22043 # as_fn_unset VAR
22044 # ---------------
22045 # Portably unset VAR.
22046 as_fn_unset ()
22047 {
22048 { eval $1=; unset $1;}
22049 }
22050 as_unset=as_fn_unset
22051
22052 # as_fn_append VAR VALUE
22053 # ----------------------
22054 # Append the text in VALUE to the end of the definition contained in VAR. Take
22055 # advantage of any shell optimizations that allow amortized linear growth over
22056 # repeated appends, instead of the typical quadratic growth present in naive
22057 # implementations.
22058 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22059 then :
22060 eval 'as_fn_append ()
22061 {
22062 eval $1+=\$2
22063 }'
22064 else case e in #(
22065 e) as_fn_append ()
22066 {
22067 eval $1=\$$1\$2
22068 } ;;
22069 esac
22070 fi # as_fn_append
22071
22072 # as_fn_arith ARG...
22073 # ------------------
22074 # Perform arithmetic evaluation on the ARGs, and store the result in the
22075 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22076 # must be portable across $(()) and expr.
22077 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22078 then :
22079 eval 'as_fn_arith ()
22080 {
22081 as_val=$(( $* ))
22082 }'
22083 else case e in #(
22084 e) as_fn_arith ()
22085 {
22086 as_val=`expr "$@" || test $? -eq 1`
22087 } ;;
22088 esac
22089 fi # as_fn_arith
22090
22091
22092 if expr a : '\(a\)' >/dev/null 2>&1 &&
22093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22094 as_expr=expr
22095 else
22096 as_expr=false
22097 fi
22098
22099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22100 as_basename=basename
22101 else
22102 as_basename=false
22103 fi
22104
22105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22106 as_dirname=dirname
22107 else
22108 as_dirname=false
22109 fi
22110
22111 as_me=`$as_basename -- "$0" ||
22112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22113 X"$0" : 'X\(//\)$' \| \
22114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22115 printf '%s\n' X/"$0" |
22116 sed '/^.*\/\([^/][^/]*\)\/*$/{
22117 s//\1/
22118 q
22119 }
22120 /^X\/\(\/\/\)$/{
22121 s//\1/
22122 q
22123 }
22124 /^X\/\(\/\).*/{
22125 s//\1/
22126 q
22127 }
22128 s/.*/./; q'`
22129
22130 # Avoid depending upon Character Ranges.
22131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22134 as_cr_digits='0123456789'
22135 as_cr_alnum=$as_cr_Letters$as_cr_digits
22136
22137 rm -f conf$$ conf$$.exe conf$$.file
22138 if test -d conf$$.dir; then
22139 rm -f conf$$.dir/conf$$.file
22140 else
22141 rm -f conf$$.dir
22142 mkdir conf$$.dir 2>/dev/null
22143 fi
22144 if (echo >conf$$.file) 2>/dev/null; then
22145 if ln -s conf$$.file conf$$ 2>/dev/null; then
22146 as_ln_s='ln -s'
22147 # ... but there are two gotchas:
22148 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
22149 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
22150 # In both cases, we have to default to 'cp -pR'.
22151 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22152 as_ln_s='cp -pR'
22153 elif ln conf$$.file conf$$ 2>/dev/null; then
22154 as_ln_s=ln
22155 else
22156 as_ln_s='cp -pR'
22157 fi
22158 else
22159 as_ln_s='cp -pR'
22160 fi
22161 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22162 rmdir conf$$.dir 2>/dev/null
22163
22164
22165 # as_fn_mkdir_p
22166 # -------------
22167 # Create "$as_dir" as a directory, including parents if necessary.
22168 as_fn_mkdir_p ()
22169 {
22170
22171 case $as_dir in #(
22172 -*) as_dir=./$as_dir;;
22173 esac
22174 test -d "$as_dir" || eval $as_mkdir_p || {
22175 as_dirs=
22176 while :; do
22177 case $as_dir in #(
22178 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22179 *) as_qdir=$as_dir;;
22180 esac
22181 as_dirs="'$as_qdir' $as_dirs"
22182 as_dir=`$as_dirname -- "$as_dir" ||
22183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22184 X"$as_dir" : 'X\(//\)[^/]' \| \
22185 X"$as_dir" : 'X\(//\)$' \| \
22186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22187 printf '%s\n' X"$as_dir" |
22188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22189 s//\1/
22190 q
22191 }
22192 /^X\(\/\/\)[^/].*/{
22193 s//\1/
22194 q
22195 }
22196 /^X\(\/\/\)$/{
22197 s//\1/
22198 q
22199 }
22200 /^X\(\/\).*/{
22201 s//\1/
22202 q
22203 }
22204 s/.*/./; q'`
22205 test -d "$as_dir" && break
22206 done
22207 test -z "$as_dirs" || eval "mkdir $as_dirs"
22208 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22209
22210
22211 } # as_fn_mkdir_p
22212 if mkdir -p . 2>/dev/null; then
22213 as_mkdir_p='mkdir -p "$as_dir"'
22214 else
22215 test -d ./-p && rmdir ./-p
22216 as_mkdir_p=false
22217 fi
22218
22219
22220 # as_fn_executable_p FILE
22221 # -----------------------
22222 # Test if FILE is an executable regular file.
22223 as_fn_executable_p ()
22224 {
22225 test -f "$1" && test -x "$1"
22226 } # as_fn_executable_p
22227 as_test_x='test -x'
22228 as_executable_p=as_fn_executable_p
22229
22230 # Sed expression to map a string onto a valid CPP name.
22231 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22232 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22233
22234 # Sed expression to map a string onto a valid variable name.
22235 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22236 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22237
22238
22239 exec 6>&1
22240 ## ------------------------------------- ##
22241 ## Main body of "$CONFIG_STATUS" script. ##
22242 ## ------------------------------------- ##
22243 _ASEOF
22244 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
22245
22246 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22247 # Save the log message, to keep $0 and so on meaningful, and to
22248 # report actual input values of CONFIG_FILES etc. instead of their
22249 # values after options handling.
22250 ac_log="
22251 This file was extended by libXtst $as_me 1.2.6, which was
22252 generated by GNU Autoconf 2.73. Invocation command line was
22253
22254 CONFIG_FILES = $CONFIG_FILES
22255 CONFIG_HEADERS = $CONFIG_HEADERS
22256 CONFIG_LINKS = $CONFIG_LINKS
22257 CONFIG_COMMANDS = $CONFIG_COMMANDS
22258 $ $0 $@
22259
22260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22261 "
22262
22263 _ACEOF
22264
22265 case $ac_config_files in *"
22266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22267 esac
22268
22269 case $ac_config_headers in *"
22270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22271 esac
22272
22273
22274 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22275 # Files that config.status was made for.
22276 config_files="$ac_config_files"
22277 config_headers="$ac_config_headers"
22278 config_commands="$ac_config_commands"
22279
22280 _ACEOF
22281
22282 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22283 ac_cs_usage="\
22284 '$as_me' instantiates files and other configuration actions
22285 from templates according to the current configuration. Unless the files
22286 and actions are specified as TAGs, all are instantiated by default.
22287
22288 Usage: $0 [OPTION]... [TAG]...
22289
22290 -h, --help print this help, then exit
22291 -V, --version print version number and configuration settings, then exit
22292 --config print configuration, then exit
22293 -q, --quiet, --silent
22294 do not print progress messages
22295 -d, --debug don't remove temporary files
22296 --recheck update $as_me by reconfiguring in the same conditions
22297 --file=FILE[:TEMPLATE]
22298 instantiate the configuration file FILE
22299 --header=FILE[:TEMPLATE]
22300 instantiate the configuration header FILE
22301
22302 Configuration files:
22303 $config_files
22304
22305 Configuration headers:
22306 $config_headers
22307
22308 Configuration commands:
22309 $config_commands
22310
22311 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxtst/-/issues>."
22312
22313 _ACEOF
22314 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
22315 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22316 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22317 ac_cs_config='$ac_cs_config_escaped'
22318 ac_cs_version="\\
22319 libXtst config.status 1.2.6
22320 configured by $0, generated by GNU Autoconf 2.73,
22321 with options \\"\$ac_cs_config\\"
22322
22323 Copyright (C) 2026 Free Software Foundation, Inc.
22324 This config.status script is free software; the Free Software Foundation
22325 gives unlimited permission to copy, distribute and modify it."
22326
22327 ac_pwd='$ac_pwd'
22328 srcdir='$srcdir'
22329 INSTALL='$INSTALL'
22330 MKDIR_P='$MKDIR_P'
22331 AWK='$AWK'
22332 test -n "\$AWK" || {
22333 awk '' </dev/null ||
22334 as_fn_error \$? "try installing gawk"
22335 AWK=awk
22336 }
22337 _ACEOF
22338
22339 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22340 # The default lists apply if the user does not specify any file.
22341 ac_need_defaults=:
22342 while test $# != 0
22343 do
22344 case $1 in
22345 --*=?*)
22346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22348 ac_shift=:
22349 ;;
22350 --*=)
22351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22352 ac_optarg=
22353 ac_shift=:
22354 ;;
22355 *)
22356 ac_option=$1
22357 ac_optarg=$2
22358 ac_shift=shift
22359 ;;
22360 esac
22361
22362 case $ac_option in
22363 # Handling of the options.
22364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22365 ac_cs_recheck=: ;;
22366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22367 printf '%s\n' "$ac_cs_version"; exit ;;
22368 --config | --confi | --conf | --con | --co | --c )
22369 printf '%s\n' "$ac_cs_config"; exit ;;
22370 --debug | --debu | --deb | --de | --d | -d )
22371 debug=: ;;
22372 --file | --fil | --fi | --f )
22373 $ac_shift
22374 case $ac_optarg in
22375 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22376 '') as_fn_error $? "missing file argument" ;;
22377 esac
22378 as_fn_append CONFIG_FILES " '$ac_optarg'"
22379 ac_need_defaults=false;;
22380 --header | --heade | --head | --hea )
22381 $ac_shift
22382 case $ac_optarg in
22383 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22384 esac
22385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22386 ac_need_defaults=false;;
22387 --he | --h)
22388 # Conflict between --help and --header
22389 as_fn_error $? "ambiguous option: '$1'
22390 Try '$0 --help' for more information.";;
22391 --help | --hel | -h )
22392 printf '%s\n' "$ac_cs_usage"; exit ;;
22393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22395 ac_cs_silent=: ;;
22396
22397 # This is an error.
22398 -*) as_fn_error $? "unrecognized option: '$1'
22399 Try '$0 --help' for more information." ;;
22400
22401 *) as_fn_append ac_config_targets " $1"
22402 ac_need_defaults=false ;;
22403
22404 esac
22405 shift
22406 done
22407
22408 ac_configure_extra_args=
22409
22410 if $ac_cs_silent; then
22411 exec 6>/dev/null
22412 ac_configure_extra_args="$ac_configure_extra_args --silent"
22413 fi
22414
22415 _ACEOF
22416 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22417 if \$ac_cs_recheck; then
22418 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22419 shift
22420 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
22421 CONFIG_SHELL='$SHELL'
22422 export CONFIG_SHELL
22423 exec "\$@"
22424 fi
22425
22426 _ACEOF
22427 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22428 exec 5>>config.log
22429 {
22430 echo
22431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22432 ## Running $as_me. ##
22433 _ASBOX
22434 printf '%s\n' "$ac_log"
22435 } >&5
22436
22437 _ACEOF
22438 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22439 #
22440 # INIT-COMMANDS
22441 #
22442 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22443
22444
22445 # The HP-UX ksh and POSIX shell print the target directory to stdout
22446 # if CDPATH is set.
22447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22448
22449 sed_quote_subst='$sed_quote_subst'
22450 double_quote_subst='$double_quote_subst'
22451 delay_variable_subst='$delay_variable_subst'
22452 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22453 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22454 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22455 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22456 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22457 enable_cxx_stdlib='`$ECHO "$enable_cxx_stdlib" | $SED "$delay_single_quote_subst"`'
22458 stdlibflag='`$ECHO "$stdlibflag" | $SED "$delay_single_quote_subst"`'
22459 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22460 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22461 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22462 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22463 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22464 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22465 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22466 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22467 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22468 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22469 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22470 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22471 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22472 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22473 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22474 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22475 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22476 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22477 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22478 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22479 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22480 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22481 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22482 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22483 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22484 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22485 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22486 lt_cv_cygpath_installed='`$ECHO "$lt_cv_cygpath_installed" | $SED "$delay_single_quote_subst"`'
22487 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22488 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22489 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22493 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22494 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22495 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22496 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22497 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22498 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22500 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22501 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22502 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22503 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22504 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22505 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22506 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22507 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22508 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22509 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22510 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22511 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22513 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22514 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22515 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"`'
22516 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22517 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22518 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22519 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22520 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22521 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22522 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22523 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22524 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22525 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22526 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22527 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22528 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22529 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22530 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22531 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22532 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22533 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22534 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22535 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22536 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22537 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22538 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22539 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22540 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22541 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22542 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22543 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22544 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22545 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22546 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22547 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22548 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22549 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22550 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22551 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22552 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22553 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22554 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22555 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22556 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22557 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22558 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22559 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22560 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22561 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22562 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22563 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22564 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22565 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22566 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22567 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22568 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22569 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22570 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22571 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22572 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22573 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22574 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22575 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22576 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22577 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22578 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22579 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22580 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22581 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22582 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22583 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22584 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22585 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22586 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22587 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22588 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22589 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22590 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22591 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22592
22593 LTCC='$LTCC'
22594 LTCFLAGS='$LTCFLAGS'
22595 compiler='$compiler_DEFAULT'
22596
22597 # A function that is used when there is no print builtin or printf.
22598 func_fallback_echo ()
22599 {
22600 eval 'cat <<_LTECHO_EOF
22601 \$1
22602 _LTECHO_EOF'
22603 }
22604
22605 # Quote evaled strings.
22606 for var in SHELL \
22607 ECHO \
22608 PATH_SEPARATOR \
22609 SED \
22610 GREP \
22611 EGREP \
22612 FGREP \
22613 LD \
22614 NM \
22615 LN_S \
22616 lt_SP2NL \
22617 lt_NL2SP \
22618 reload_flag \
22619 FILECMD \
22620 OBJDUMP \
22621 deplibs_check_method \
22622 file_magic_cmd \
22623 file_magic_glob \
22624 want_nocaseglob \
22625 DLLTOOL \
22626 sharedlib_from_linklib_cmd \
22627 AR \
22628 lt_ar_flags \
22629 archiver_list_spec \
22630 STRIP \
22631 RANLIB \
22632 CC \
22633 CFLAGS \
22634 compiler \
22635 lt_cv_sys_global_symbol_pipe \
22636 lt_cv_sys_global_symbol_to_cdecl \
22637 lt_cv_sys_global_symbol_to_import \
22638 lt_cv_sys_global_symbol_to_c_name_address \
22639 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22640 lt_cv_nm_interface \
22641 nm_file_list_spec \
22642 lt_cv_truncate_bin \
22643 lt_prog_compiler_no_builtin_flag \
22644 lt_prog_compiler_pic \
22645 lt_prog_compiler_wl \
22646 lt_prog_compiler_static \
22647 lt_cv_prog_compiler_c_o \
22648 need_locks \
22649 MANIFEST_TOOL \
22650 DSYMUTIL \
22651 NMEDIT \
22652 LIPO \
22653 OTOOL \
22654 OTOOL64 \
22655 shrext_cmds \
22656 export_dynamic_flag_spec \
22657 whole_archive_flag_spec \
22658 compiler_needs_object \
22659 with_gnu_ld \
22660 allow_undefined_flag \
22661 no_undefined_flag \
22662 hardcode_libdir_flag_spec \
22663 hardcode_libdir_separator \
22664 exclude_expsyms \
22665 include_expsyms \
22666 file_list_spec \
22667 variables_saved_for_relink \
22668 libname_spec \
22669 library_names_spec \
22670 soname_spec \
22671 install_override_mode \
22672 finish_eval \
22673 old_striplib \
22674 striplib; do
22675 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22676 *[\\\\\\\`\\"\\\$]*)
22677 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22678 ;;
22679 *)
22680 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22681 ;;
22682 esac
22683 done
22684
22685 # Double-quote double-evaled strings.
22686 for var in reload_cmds \
22687 old_postinstall_cmds \
22688 old_postuninstall_cmds \
22689 old_archive_cmds \
22690 extract_expsyms_cmds \
22691 old_archive_from_new_cmds \
22692 old_archive_from_expsyms_cmds \
22693 archive_cmds \
22694 archive_expsym_cmds \
22695 module_cmds \
22696 module_expsym_cmds \
22697 export_symbols_cmds \
22698 prelink_cmds \
22699 postlink_cmds \
22700 postinstall_cmds \
22701 postuninstall_cmds \
22702 finish_cmds \
22703 sys_lib_search_path_spec \
22704 configure_time_dlsearch_path \
22705 configure_time_lt_sys_library_path; do
22706 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22707 *[\\\\\\\`\\"\\\$]*)
22708 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22709 ;;
22710 *)
22711 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22712 ;;
22713 esac
22714 done
22715
22716 ac_aux_dir='$ac_aux_dir'
22717
22718 # See if we are running on zsh, and set the options that allow our
22719 # commands through without removal of \ escapes INIT.
22720 if test -n "\${ZSH_VERSION+set}"; then
22721 setopt NO_GLOB_SUBST
22722 fi
22723
22724
22725 PACKAGE='$PACKAGE'
22726 VERSION='$VERSION'
22727 RM='$RM'
22728 ofile='$ofile'
22729
22730
22731
22732
22733 _ACEOF
22734
22735 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22736
22737 # Handling of arguments.
22738 for ac_config_target in $ac_config_targets
22739 do
22740 case $ac_config_target in
22741 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22742 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22743 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22745 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22746 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22747 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22748 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;;
22749
22750 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22751 esac
22752 done
22753
22754
22755 # If the user did not use the arguments to specify the items to instantiate,
22756 # then the envvar interface is used. Set only those that are not.
22757 # We use the long form for the default assignment because of an extremely
22758 # bizarre bug on SunOS 4.1.3.
22759 if $ac_need_defaults; then
22760 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22761 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22762 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22763 fi
22764
22765 # Have a temporary directory for convenience. Make it in the build tree
22766 # simply because there is no reason against having it here, and in addition,
22767 # creating and moving files from /tmp can sometimes cause problems.
22768 # Hook for its removal unless debugging.
22769 # Note that there is a small window in which the directory will not be cleaned:
22770 # after its creation but before its name has been assigned to '$tmp'.
22771 $debug ||
22772 {
22773 tmp= ac_tmp=
22774 trap 'exit_status=$?
22775 : "${ac_tmp:=$tmp}"
22776 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22777 ' 0
22778 trap 'as_fn_exit 1' 1 2 13 15
22779 }
22780 # Create a (secure) tmp directory for tmp files.
22781
22782 {
22783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22784 test -d "$tmp"
22785 } ||
22786 {
22787 tmp=./conf$$-$RANDOM
22788 (umask 077 && mkdir "$tmp")
22789 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22790 ac_tmp=$tmp
22791
22792 # Set up the scripts for CONFIG_FILES section.
22793 # No need to generate them if there are no CONFIG_FILES.
22794 # This happens for instance with './config.status config.h'.
22795 if test -n "$CONFIG_FILES"; then
22796
22797
22798 ac_cr=`echo X | tr X '\015'`
22799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22800 # But we know of no other shell where ac_cr would be empty at this
22801 # point, so we can use a bashism as a fallback.
22802 if test "x$ac_cr" = x; then
22803 eval ac_cr=\$\'\\r\'
22804 fi
22805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22807 ac_cs_awk_cr='\\r'
22808 else
22809 ac_cs_awk_cr=$ac_cr
22810 fi
22811
22812 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22813 _ACEOF
22814
22815
22816 {
22817 echo "cat >conf$$subs.awk <<_ACEOF" &&
22818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22819 echo "_ACEOF"
22820 } >conf$$subs.sh ||
22821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22822 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
22823 ac_delim='%!_!# '
22824 for ac_last_try in false false false false false :; do
22825 . ./conf$$subs.sh ||
22826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22827
22828 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
22829 if test $ac_delim_n = $ac_delim_num; then
22830 break
22831 elif $ac_last_try; then
22832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22833 else
22834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22835 fi
22836 done
22837 rm -f conf$$subs.sh
22838
22839 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22840 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22841 _ACEOF
22842 sed -n '
22843 h
22844 s/^/S["/; s/!.*/"]=/
22845 p
22846 g
22847 s/^[^!]*!//
22848 :repl
22849 t repl
22850 s/'"$ac_delim"'$//
22851 t delim
22852 :nl
22853 h
22854 s/\(.\{148\}\)..*/\1/
22855 t more1
22856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22857 p
22858 n
22859 b repl
22860 :more1
22861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22862 p
22863 g
22864 s/.\{148\}//
22865 t nl
22866 :delim
22867 h
22868 s/\(.\{148\}\)..*/\1/
22869 t more2
22870 s/["\\]/\\&/g; s/^/"/; s/$/"/
22871 p
22872 b
22873 :more2
22874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22875 p
22876 g
22877 s/.\{148\}//
22878 t delim
22879 ' <conf$$subs.awk | sed '
22880 /^[^""]/{
22881 N
22882 s/\n//
22883 }
22884 ' >>"$CONFIG_STATUS" || ac_write_fail=1
22885 rm -f conf$$subs.awk
22886 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
22887 _ACAWK
22888 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22889 for (key in S) S_is_set[key] = 1
22890 FS = ""
22891
22892 }
22893 {
22894 line = $ 0
22895 nfields = split(line, field, "@")
22896 substed = 0
22897 len = length(field[1])
22898 for (i = 2; i < nfields; i++) {
22899 key = field[i]
22900 keylen = length(key)
22901 if (S_is_set[key]) {
22902 value = S[key]
22903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22904 len += length(value) + length(field[++i])
22905 substed = 1
22906 } else
22907 len += 1 + keylen
22908 }
22909
22910 print line
22911 }
22912
22913 _ACAWK
22914 _ACEOF
22915 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22918 else
22919 cat
22920 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22921 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22922 _ACEOF
22923
22924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22926 # trailing colons and then remove the whole line if VPATH becomes empty
22927 # (actually we leave an empty line to preserve line numbers).
22928 if test "x$srcdir" = x.; then
22929 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22930 h
22931 s///
22932 s/^/:/
22933 s/[ ]*$/:/
22934 s/:\$(srcdir):/:/g
22935 s/:\${srcdir}:/:/g
22936 s/:@srcdir@:/:/g
22937 s/^:*//
22938 s/:*$//
22939 x
22940 s/\(=[ ]*\).*/\1/
22941 G
22942 s/\n//
22943 s/^[^=]*=[ ]*$//
22944 }'
22945 fi
22946
22947 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
22948 fi # test -n "$CONFIG_FILES"
22949
22950 # Set up the scripts for CONFIG_HEADERS section.
22951 # No need to generate them if there are no CONFIG_HEADERS.
22952 # This happens for instance with './config.status Makefile'.
22953 if test -n "$CONFIG_HEADERS"; then
22954 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22955 BEGIN {
22956 _ACEOF
22957
22958 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22959 # here-document in config.status, that substitutes the proper values into
22960 # config.h.in to produce config.h.
22961
22962 # Create a delimiter string that does not exist in confdefs.h, to ease
22963 # handling of long lines.
22964 ac_delim='%!_!# '
22965 for ac_last_try in false false :; do
22966 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22967 if test -z "$ac_tt"; then
22968 break
22969 elif $ac_last_try; then
22970 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22971 else
22972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22973 fi
22974 done
22975
22976 # For the awk script, D is an array of macro values keyed by name,
22977 # likewise P contains macro parameters if any. Preserve backslash
22978 # newline sequences.
22979
22980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22981 sed -n '
22982 s/.\{148\}/&'"$ac_delim"'/g
22983 t rset
22984 :rset
22985 s/^[ ]*#[ ]*define[ ][ ]*/ /
22986 t def
22987 d
22988 :def
22989 s/\\$//
22990 t bsnl
22991 s/["\\]/\\&/g
22992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22993 D["\1"]=" \3"/p
22994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22995 d
22996 :bsnl
22997 s/["\\]/\\&/g
22998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22999 D["\1"]=" \3\\\\\\n"\\/p
23000 t cont
23001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23002 t cont
23003 d
23004 :cont
23005 n
23006 s/.\{148\}/&'"$ac_delim"'/g
23007 t clear
23008 :clear
23009 s/\\$//
23010 t bsnlc
23011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23012 d
23013 :bsnlc
23014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23015 b cont
23016 ' <confdefs.h | sed '
23017 s/'"$ac_delim"'/"\\\
23018 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
23019
23020 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
23021 for (key in D) D_is_set[key] = 1
23022 FS = ""
23023 }
23024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23025 line = \$ 0
23026 split(line, arg, " ")
23027 if (arg[1] == "#") {
23028 defundef = arg[2]
23029 mac1 = arg[3]
23030 } else {
23031 defundef = substr(arg[1], 2)
23032 mac1 = arg[2]
23033 }
23034 split(mac1, mac2, "(") #)
23035 macro = mac2[1]
23036 prefix = substr(line, 1, index(line, defundef) - 1)
23037 if (D_is_set[macro]) {
23038 suffix = P[macro] D[macro]
23039 while (suffix ~ /[\t ]$/) {
23040 suffix = substr(suffix, 1, length(suffix) - 1)
23041 }
23042 # Preserve the white space surrounding the "#".
23043 print prefix "define", macro suffix
23044 next
23045 } else {
23046 # Replace #undef with comments. This is necessary, for example,
23047 # in the case of _POSIX_SOURCE, which is predefined and required
23048 # on some systems where configure will not decide to define it.
23049 if (defundef == "undef") {
23050 print "/*", prefix defundef, macro, "*/"
23051 next
23052 }
23053 }
23054 }
23055 { print }
23056 _ACAWK
23057 _ACEOF
23058 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
23059 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23060 fi # test -n "$CONFIG_HEADERS"
23061
23062
23063 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23064 shift
23065 for ac_tag
23066 do
23067 case $ac_tag in
23068 :[FHLC]) ac_mode=$ac_tag; continue;;
23069 esac
23070 case $ac_mode$ac_tag in
23071 :[FHL]*:*);;
23072 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
23073 :[FH]-) ac_tag=-:-;;
23074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23075 esac
23076 ac_save_IFS=$IFS
23077 IFS=:
23078 set x $ac_tag
23079 IFS=$ac_save_IFS
23080 shift
23081 ac_file=$1
23082 shift
23083
23084 case $ac_mode in
23085 :L) ac_source=$1;;
23086 :[FH])
23087 ac_file_inputs=
23088 for ac_f
23089 do
23090 case $ac_f in
23091 -) ac_f="$ac_tmp/stdin";;
23092 *) # Look for the file first in the build tree, then in the source tree
23093 # (if the path is not absolute). The absolute path cannot be DOS-style,
23094 # because $ac_f cannot contain ':'.
23095 test -f "$ac_f" ||
23096 case $ac_f in
23097 [\\/$]*) false;;
23098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23099 esac ||
23100 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
23101 esac
23102 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23103 as_fn_append ac_file_inputs " '$ac_f'"
23104 done
23105
23106 # Let's still pretend it is 'configure' which instantiates (i.e., don't
23107 # use $as_me), people would be surprised to read:
23108 # /* config.h. Generated by config.status. */
23109 configure_input='Generated from '`
23110 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23111 `' by configure.'
23112 if test x"$ac_file" != x-; then
23113 configure_input="$ac_file. $configure_input"
23114 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23115 printf '%s\n' "$as_me: creating $ac_file" >&6;}
23116 fi
23117 # Neutralize special characters interpreted by sed in replacement strings.
23118 case $configure_input in #(
23119 *\&* | *\|* | *\\* )
23120 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
23121 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23122 *) ac_sed_conf_input=$configure_input;;
23123 esac
23124
23125 case $ac_tag in
23126 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23127 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23128 esac
23129 ;;
23130 esac
23131
23132 ac_dir=`$as_dirname -- "$ac_file" ||
23133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23134 X"$ac_file" : 'X\(//\)[^/]' \| \
23135 X"$ac_file" : 'X\(//\)$' \| \
23136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23137 printf '%s\n' X"$ac_file" |
23138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23139 s//\1/
23140 q
23141 }
23142 /^X\(\/\/\)[^/].*/{
23143 s//\1/
23144 q
23145 }
23146 /^X\(\/\/\)$/{
23147 s//\1/
23148 q
23149 }
23150 /^X\(\/\).*/{
23151 s//\1/
23152 q
23153 }
23154 s/.*/./; q'`
23155 as_dir="$ac_dir"; as_fn_mkdir_p
23156 ac_builddir=.
23157
23158 case "$ac_dir" in
23159 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23160 *)
23161 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
23162 # A ".." for each directory in $ac_dir_suffix.
23163 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23164 case $ac_top_builddir_sub in
23165 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23166 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23167 esac ;;
23168 esac
23169 ac_abs_top_builddir=$ac_pwd
23170 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23171 # for backward compatibility:
23172 ac_top_builddir=$ac_top_build_prefix
23173
23174 case $srcdir in
23175 .) # We are building in place.
23176 ac_srcdir=.
23177 ac_top_srcdir=$ac_top_builddir_sub
23178 ac_abs_top_srcdir=$ac_pwd ;;
23179 [\\/]* | ?:[\\/]* ) # Absolute name.
23180 ac_srcdir=$srcdir$ac_dir_suffix;
23181 ac_top_srcdir=$srcdir
23182 ac_abs_top_srcdir=$srcdir ;;
23183 *) # Relative name.
23184 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23185 ac_top_srcdir=$ac_top_build_prefix$srcdir
23186 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23187 esac
23188 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23189
23190
23191 case $ac_mode in
23192 :F)
23193 #
23194 # CONFIG_FILE
23195 #
23196
23197 case $INSTALL in
23198 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23199 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23200 esac
23201 ac_MKDIR_P=$MKDIR_P
23202 case $MKDIR_P in
23203 [\\/$]* | ?:[\\/]* ) ;;
23204 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23205 esac
23206 _ACEOF
23207
23208 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
23209 # If the template does not know about datarootdir, expand it.
23210 # FIXME: This hack should be removed a few years after 2.60.
23211 ac_datarootdir_hack=; ac_datarootdir_seen=
23212 ac_sed_dataroot='
23213 /datarootdir/ {
23214 p
23215 q
23216 }
23217 /@datadir@/p
23218 /@docdir@/p
23219 /@infodir@/p
23220 /@localedir@/p
23221 /@mandir@/p'
23222 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23223 *datarootdir*) ac_datarootdir_seen=yes;;
23224 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23226 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23227 _ACEOF
23228 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
23229 ac_datarootdir_hack='
23230 s&@datadir@&$datadir&g
23231 s&@docdir@&$docdir&g
23232 s&@infodir@&$infodir&g
23233 s&@localedir@&$localedir&g
23234 s&@mandir@&$mandir&g
23235 s&\\\${datarootdir}&$datarootdir&g' ;;
23236 esac
23237 _ACEOF
23238
23239 # Neutralize VPATH when '$srcdir' = '.'.
23240 # Shell code in configure.ac might set extrasub.
23241 # FIXME: do we really want to maintain this feature?
23242 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
23243 ac_sed_extra="$ac_vpsub
23244 $extrasub
23245 _ACEOF
23246 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
23247 :t
23248 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23249 s|@configure_input@|$ac_sed_conf_input|;t t
23250 s&@top_builddir@&$ac_top_builddir_sub&;t t
23251 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23252 s&@srcdir@&$ac_srcdir&;t t
23253 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23254 s&@top_srcdir@&$ac_top_srcdir&;t t
23255 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23256 s&@builddir@&$ac_builddir&;t t
23257 s&@abs_builddir@&$ac_abs_builddir&;t t
23258 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23259 s&@INSTALL@&$ac_INSTALL&;t t
23260 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23261 $ac_datarootdir_hack
23262 "
23263 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23264 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23265
23266 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23267 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23268 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23269 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23271 which seems to be undefined. Please make sure it is defined" >&5
23272 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23273 which seems to be undefined. Please make sure it is defined" >&2;}
23274
23275 rm -f "$ac_tmp/stdin"
23276 case $ac_file in
23277 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23278 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23279 esac \
23280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23281 ;;
23282 :H)
23283 #
23284 # CONFIG_HEADER
23285 #
23286 if test x"$ac_file" != x-; then
23287 {
23288 printf '%s\n' "/* $configure_input */" >&1 \
23289 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23290 } >"$ac_tmp/config.h" \
23291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23292 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23293 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23294 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
23295 else
23296 rm -f "$ac_file"
23297 mv "$ac_tmp/config.h" "$ac_file" \
23298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23299 fi
23300 else
23301 printf '%s\n' "/* $configure_input */" >&1 \
23302 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23303 || as_fn_error $? "could not create -" "$LINENO" 5
23304 fi
23305 # Compute "$ac_file"'s index in $config_headers.
23306 _am_arg="$ac_file"
23307 _am_stamp_count=1
23308 for _am_header in $config_headers :; do
23309 case $_am_header in
23310 $_am_arg | $_am_arg:* )
23311 break ;;
23312 * )
23313 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23314 esac
23315 done
23316 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23317 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23318 X"$_am_arg" : 'X\(//\)[^/]' \| \
23319 X"$_am_arg" : 'X\(//\)$' \| \
23320 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23321 printf '%s\n' X"$_am_arg" |
23322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23323 s//\1/
23324 q
23325 }
23326 /^X\(\/\/\)[^/].*/{
23327 s//\1/
23328 q
23329 }
23330 /^X\(\/\/\)$/{
23331 s//\1/
23332 q
23333 }
23334 /^X\(\/\).*/{
23335 s//\1/
23336 q
23337 }
23338 s/.*/./; q'`/stamp-h$_am_stamp_count
23339 ;;
23340
23341 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23342 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
23343 ;;
23344 esac
23345
23346
23347 case $ac_file$ac_mode in
23348 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23349 # Older Autoconf quotes --file arguments for eval, but not when files
23350 # are listed without --file. Let's play safe and only enable the eval
23351 # if we detect the quoting.
23352 # TODO: see whether this extra hack can be removed once we start
23353 # requiring Autoconf 2.70 or later.
23354 case $CONFIG_FILES in #(
23355 *\'*) :
23356 eval set x "$CONFIG_FILES" ;; #(
23357 *) :
23358 set x $CONFIG_FILES ;; #(
23359 *) :
23360 ;;
23361 esac
23362 shift
23363 # Used to flag and report bootstrapping failures.
23364 am_rc=0
23365 for am_mf
23366 do
23367 # Strip MF so we end up with the name of the file.
23368 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
23369 # Check whether this is an Automake generated Makefile which includes
23370 # dependency-tracking related rules and includes.
23371 # Grep'ing the whole file directly is not great: AIX grep has a line
23372 # limit of 2048, but all sed's we know have understand at least 4000.
23373 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23374 || continue
23375 am_dirpart=`$as_dirname -- "$am_mf" ||
23376 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377 X"$am_mf" : 'X\(//\)[^/]' \| \
23378 X"$am_mf" : 'X\(//\)$' \| \
23379 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23380 printf '%s\n' X"$am_mf" |
23381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23382 s//\1/
23383 q
23384 }
23385 /^X\(\/\/\)[^/].*/{
23386 s//\1/
23387 q
23388 }
23389 /^X\(\/\/\)$/{
23390 s//\1/
23391 q
23392 }
23393 /^X\(\/\).*/{
23394 s//\1/
23395 q
23396 }
23397 s/.*/./; q'`
23398 am_filepart=`$as_basename -- "$am_mf" ||
23399 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23400 X"$am_mf" : 'X\(//\)$' \| \
23401 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23402 printf '%s\n' X/"$am_mf" |
23403 sed '/^.*\/\([^/][^/]*\)\/*$/{
23404 s//\1/
23405 q
23406 }
23407 /^X\/\(\/\/\)$/{
23408 s//\1/
23409 q
23410 }
23411 /^X\/\(\/\).*/{
23412 s//\1/
23413 q
23414 }
23415 s/.*/./; q'`
23416 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23417 && sed -e '/# am--include-marker/d' "$am_filepart" \
23418 | $MAKE -f - am--depfiles" >&5
23419 (cd "$am_dirpart" \
23420 && sed -e '/# am--include-marker/d' "$am_filepart" \
23421 | $MAKE -f - am--depfiles) >&5 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } || am_rc=$?
23425 done
23426 if test $am_rc -ne 0; then
23427 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23428 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
23429 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23430 for automatic dependency tracking. If GNU make was not used, consider
23431 re-running the configure script with MAKE=\"gmake\" (or whatever is
23432 necessary). You can also try re-running configure with the
23433 '--disable-dependency-tracking' option to at least be able to build
23434 the package (albeit without support for automatic dependency tracking).
23435 See 'config.log' for more details" "$LINENO" 5; }
23436 fi
23437 { am_dirpart=; unset am_dirpart;}
23438 { am_filepart=; unset am_filepart;}
23439 { am_mf=; unset am_mf;}
23440 { am_rc=; unset am_rc;}
23441 rm -f conftest-deps.mk
23442 }
23443 ;;
23444 "libtool":C)
23445
23446 # See if we are running on zsh, and set the options that allow our
23447 # commands through without removal of \ escapes.
23448 if test -n "${ZSH_VERSION+set}"; then
23449 setopt NO_GLOB_SUBST
23450 fi
23451
23452 cfgfile=${ofile}T
23453 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23454 $RM "$cfgfile"
23455
23456 cat <<_LT_EOF >> "$cfgfile"
23457 #! $SHELL
23458 # Generated automatically by $as_me ($PACKAGE) $VERSION
23459 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23460
23461 # Provide generalized library-building support services.
23462 # Written by Gordon Matzigkeit, 1996
23463
23464 # Copyright (C) 2025-2026 Free Software Foundation, Inc.
23465 # This is free software; see the source for copying conditions. There is NO
23466 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23467
23468 # GNU Libtool is free software; you can redistribute it and/or modify
23469 # it under the terms of the GNU General Public License as published by
23470 # the Free Software Foundation; either version 2 of the License, or
23471 # (at your option) any later version.
23472 #
23473 # As a special exception to the GNU General Public License, if you
23474 # distribute this file as part of a program or library that is built
23475 # using GNU Libtool, you may include this file under the same
23476 # distribution terms that you use for the rest of that program.
23477 #
23478 # GNU Libtool is distributed in the hope that it will be useful, but
23479 # WITHOUT ANY WARRANTY; without even the implied warranty of
23480 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23481 # GNU General Public License for more details.
23482 #
23483 # You should have received a copy of the GNU General Public License
23484 # along with this program. If not, see <https://www.gnu.org/licenses/>.
23485
23486
23487 # The names of the tagged configurations supported by this script.
23488 available_tags=''
23489
23490 # Configured defaults for sys_lib_dlsearch_path munging.
23491 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23492
23493 # ### BEGIN LIBTOOL CONFIG
23494
23495 # Which release of libtool.m4 was used?
23496 macro_version=$macro_version
23497 macro_revision=$macro_revision
23498
23499 # Whether or not to build shared libraries.
23500 build_libtool_libs=$enable_shared
23501
23502 # Whether or not to build static libraries.
23503 build_old_libs=$enable_static
23504
23505 # What type of objects to build.
23506 pic_mode=$pic_mode
23507
23508 # Whether to let the compiler frontend decide what standard libraries to link when building C++ shared libraries and modules.
23509 enable_cxx_stdlib=$enable_cxx_stdlib
23510
23511 # Flag used for specifying not to link standard libraries.
23512 stdlibflag=$stdlibflag
23513
23514 # Whether or not to optimize for fast installation.
23515 fast_install=$enable_fast_install
23516
23517 # Shared archive member basename,for filename based shared library versioning on AIX.
23518 shared_archive_member_spec=$shared_archive_member_spec
23519
23520 # Shell to use when invoking shell scripts.
23521 SHELL=$lt_SHELL
23522
23523 # An echo program that protects backslashes.
23524 ECHO=$lt_ECHO
23525
23526 # The PATH separator for the build system.
23527 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23528
23529 # The host system.
23530 host_alias=$host_alias
23531 host=$host
23532 host_os=$host_os
23533
23534 # The build system.
23535 build_alias=$build_alias
23536 build=$build
23537 build_os=$build_os
23538
23539 # A sed program that does not truncate output.
23540 SED=$lt_SED
23541
23542 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23543 Xsed="\$SED -e 1s/^X//"
23544
23545 # A grep program that handles long lines.
23546 GREP=$lt_GREP
23547
23548 # An ERE matcher.
23549 EGREP=$lt_EGREP
23550
23551 # A literal string matcher.
23552 FGREP=$lt_FGREP
23553
23554 # A BSD- or MS-compatible name lister.
23555 NM=$lt_NM
23556
23557 # Whether we need soft or hard links.
23558 LN_S=$lt_LN_S
23559
23560 # What is the maximum length of a command?
23561 max_cmd_len=$max_cmd_len
23562
23563 # Object file suffix (normally "o").
23564 objext=$ac_objext
23565
23566 # Executable file suffix (normally "").
23567 exeext=$exeext
23568
23569 # whether the shell understands "unset".
23570 lt_unset=$lt_unset
23571
23572 # turn spaces into newlines.
23573 SP2NL=$lt_lt_SP2NL
23574
23575 # turn newlines into spaces.
23576 NL2SP=$lt_lt_NL2SP
23577
23578 # convert \$build file names to \$host format.
23579 to_host_file_cmd=$lt_cv_to_host_file_cmd
23580
23581 # convert \$build files to toolchain format.
23582 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23583
23584 # whether cygpath is installed.
23585 cygpath_installed=$lt_cv_cygpath_installed
23586
23587 # A file(cmd) program that detects file types.
23588 FILECMD=$lt_FILECMD
23589
23590 # An object symbol dumper.
23591 OBJDUMP=$lt_OBJDUMP
23592
23593 # Method to check whether dependent libraries are shared objects.
23594 deplibs_check_method=$lt_deplibs_check_method
23595
23596 # Command to use when deplibs_check_method = "file_magic".
23597 file_magic_cmd=$lt_file_magic_cmd
23598
23599 # How to find potential files when deplibs_check_method = "file_magic".
23600 file_magic_glob=$lt_file_magic_glob
23601
23602 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23603 want_nocaseglob=$lt_want_nocaseglob
23604
23605 # DLL creation program.
23606 DLLTOOL=$lt_DLLTOOL
23607
23608 # Command to associate shared and link libraries.
23609 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23610
23611 # The archiver.
23612 AR=$lt_AR
23613
23614 # Flags to create an archive (by configure).
23615 lt_ar_flags=$lt_lt_ar_flags
23616
23617 # Flags to create an archive.
23618 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23619
23620 # How to feed a file listing to the archiver.
23621 archiver_list_spec=$lt_archiver_list_spec
23622
23623 # A symbol stripping program.
23624 STRIP=$lt_STRIP
23625
23626 # Commands used to install an old-style archive.
23627 RANLIB=$lt_RANLIB
23628 old_postinstall_cmds=$lt_old_postinstall_cmds
23629 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23630
23631 # Whether to use a lock for old archive extraction.
23632 lock_old_archive_extraction=$lock_old_archive_extraction
23633
23634 # A C compiler.
23635 LTCC=$lt_CC
23636
23637 # LTCC compiler flags.
23638 LTCFLAGS=$lt_CFLAGS
23639
23640 # Take the output of nm and produce a listing of raw symbols and C names.
23641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23642
23643 # Transform the output of nm in a proper C declaration.
23644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23645
23646 # Transform the output of nm into a list of symbols to manually relocate.
23647 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23648
23649 # Transform the output of nm in a C name address pair.
23650 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23651
23652 # Transform the output of nm in a C name address pair when lib prefix is needed.
23653 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23654
23655 # The name lister interface.
23656 nm_interface=$lt_lt_cv_nm_interface
23657
23658 # Specify filename containing input files for \$NM.
23659 nm_file_list_spec=$lt_nm_file_list_spec
23660
23661 # The root where to search for dependent libraries,and where our libraries should be installed.
23662 lt_sysroot=$lt_sysroot
23663
23664 # Command to truncate a binary pipe.
23665 lt_truncate_bin=$lt_lt_cv_truncate_bin
23666
23667 # The name of the directory that contains temporary libtool files.
23668 objdir=$objdir
23669
23670 # Used to examine libraries when file_magic_cmd begins with "file".
23671 MAGIC_CMD=$MAGIC_CMD
23672
23673 # Must we lock files when doing compilation?
23674 need_locks=$lt_need_locks
23675
23676 # Manifest tool.
23677 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23678
23679 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23680 DSYMUTIL=$lt_DSYMUTIL
23681
23682 # Tool to change global to local symbols on Mac OS X.
23683 NMEDIT=$lt_NMEDIT
23684
23685 # Tool to manipulate fat objects and archives on Mac OS X.
23686 LIPO=$lt_LIPO
23687
23688 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23689 OTOOL=$lt_OTOOL
23690
23691 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23692 OTOOL64=$lt_OTOOL64
23693
23694 # Old archive suffix (normally "a").
23695 libext=$libext
23696
23697 # Shared library suffix (normally ".so").
23698 shrext_cmds=$lt_shrext_cmds
23699
23700 # The commands to extract the exported symbol list from a shared archive.
23701 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23702
23703 # Variables whose values should be saved in libtool wrapper scripts and
23704 # restored at link time.
23705 variables_saved_for_relink=$lt_variables_saved_for_relink
23706
23707 # Do we need the "lib" prefix for modules?
23708 need_lib_prefix=$need_lib_prefix
23709
23710 # Do we need a version for libraries?
23711 need_version=$need_version
23712
23713 # Library versioning type.
23714 version_type=$version_type
23715
23716 # Shared library runtime path variable.
23717 runpath_var=$runpath_var
23718
23719 # Shared library path variable.
23720 shlibpath_var=$shlibpath_var
23721
23722 # Is shlibpath searched before the hard-coded library search path?
23723 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23724
23725 # Format of library name prefix.
23726 libname_spec=$lt_libname_spec
23727
23728 # List of archive names. First name is the real one, the rest are links.
23729 # The last name is the one that the linker finds with -lNAME
23730 library_names_spec=$lt_library_names_spec
23731
23732 # The coded name of the library, if different from the real name.
23733 soname_spec=$lt_soname_spec
23734
23735 # Permission mode override for installation of shared libraries.
23736 install_override_mode=$lt_install_override_mode
23737
23738 # Command to use after installation of a shared archive.
23739 postinstall_cmds=$lt_postinstall_cmds
23740
23741 # Command to use after uninstallation of a shared archive.
23742 postuninstall_cmds=$lt_postuninstall_cmds
23743
23744 # Commands used to finish a libtool library installation in a directory.
23745 finish_cmds=$lt_finish_cmds
23746
23747 # As "finish_cmds", except a single script fragment to be evaled but
23748 # not shown.
23749 finish_eval=$lt_finish_eval
23750
23751 # Whether we should hardcode library paths into libraries.
23752 hardcode_into_libs=$hardcode_into_libs
23753
23754 # Compile-time system search path for libraries.
23755 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23756
23757 # Detected run-time system search path for libraries.
23758 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23759
23760 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23761 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23762
23763 # Whether dlopen is supported.
23764 dlopen_support=$enable_dlopen
23765
23766 # Whether dlopen of programs is supported.
23767 dlopen_self=$enable_dlopen_self
23768
23769 # Whether dlopen of statically linked programs is supported.
23770 dlopen_self_static=$enable_dlopen_self_static
23771
23772 # Commands to strip libraries.
23773 old_striplib=$lt_old_striplib
23774 striplib=$lt_striplib
23775
23776
23777 # The linker used to build libraries.
23778 LD=$lt_LD
23779
23780 # How to create reloadable object files.
23781 reload_flag=$lt_reload_flag
23782 reload_cmds=$lt_reload_cmds
23783
23784 # Commands used to build an old-style archive.
23785 old_archive_cmds=$lt_old_archive_cmds
23786
23787 # A language specific compiler.
23788 CC=$lt_compiler
23789
23790 # Is the compiler the GNU compiler?
23791 with_gcc=$GCC
23792
23793 # Compiler flag to turn off builtin functions.
23794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23795
23796 # Additional compiler flags for building library objects.
23797 pic_flag=$lt_lt_prog_compiler_pic
23798
23799 # How to pass a linker flag through the compiler.
23800 wl=$lt_lt_prog_compiler_wl
23801
23802 # Compiler flag to prevent dynamic linking.
23803 link_static_flag=$lt_lt_prog_compiler_static
23804
23805 # Does compiler simultaneously support -c and -o options?
23806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23807
23808 # Whether or not to add -lc for building shared libraries.
23809 build_libtool_need_lc=$archive_cmds_need_lc
23810
23811 # Whether or not to disallow shared libs when runtime libs are static.
23812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23813
23814 # Compiler flag to allow reflexive dlopens.
23815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23816
23817 # Compiler flag to generate shared objects directly from archives.
23818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23819
23820 # Whether the compiler copes with passing no objects directly.
23821 compiler_needs_object=$lt_compiler_needs_object
23822
23823 # Create an old-style archive from a shared archive.
23824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23825
23826 # Create a temporary old-style archive to link instead of a shared archive.
23827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23828
23829 # Commands used to build a shared archive.
23830 archive_cmds=$lt_archive_cmds
23831 archive_expsym_cmds=$lt_archive_expsym_cmds
23832
23833 # Commands used to build a loadable module if different from building
23834 # a shared archive.
23835 module_cmds=$lt_module_cmds
23836 module_expsym_cmds=$lt_module_expsym_cmds
23837
23838 # Whether we are building with GNU ld or not.
23839 with_gnu_ld=$lt_with_gnu_ld
23840
23841 # Flag that allows shared libraries with undefined symbols to be built.
23842 allow_undefined_flag=$lt_allow_undefined_flag
23843
23844 # Flag that enforces no undefined symbols.
23845 no_undefined_flag=$lt_no_undefined_flag
23846
23847 # Flag to hardcode \$libdir into a binary during linking.
23848 # This must work even if \$libdir does not exist
23849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23850
23851 # Whether we need a single "-rpath" flag with a separated argument.
23852 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23853
23854 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23855 # DIR into the resulting binary.
23856 hardcode_direct=$hardcode_direct
23857
23858 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23859 # DIR into the resulting binary and the resulting library dependency is
23860 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23861 # library is relocated.
23862 hardcode_direct_absolute=$hardcode_direct_absolute
23863
23864 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23865 # into the resulting binary.
23866 hardcode_minus_L=$hardcode_minus_L
23867
23868 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23869 # into the resulting binary.
23870 hardcode_shlibpath_var=$hardcode_shlibpath_var
23871
23872 # Set to "yes" if building a shared library automatically hardcodes DIR
23873 # into the library and all subsequent libraries and executables linked
23874 # against it.
23875 hardcode_automatic=$hardcode_automatic
23876
23877 # Set to yes if linker adds runtime paths of dependent libraries
23878 # to runtime path list.
23879 inherit_rpath=$inherit_rpath
23880
23881 # Whether libtool must link a program against all its dependency libraries.
23882 link_all_deplibs=$link_all_deplibs
23883
23884 # Set to "yes" if exported symbols are required.
23885 always_export_symbols=$always_export_symbols
23886
23887 # The commands to list exported symbols.
23888 export_symbols_cmds=$lt_export_symbols_cmds
23889
23890 # Symbols that should not be listed in the preloaded symbols.
23891 exclude_expsyms=$lt_exclude_expsyms
23892
23893 # Symbols that must always be exported.
23894 include_expsyms=$lt_include_expsyms
23895
23896 # Commands necessary for linking programs (against libraries) with templates.
23897 prelink_cmds=$lt_prelink_cmds
23898
23899 # Commands necessary for finishing linking programs.
23900 postlink_cmds=$lt_postlink_cmds
23901
23902 # Specify filename containing input files.
23903 file_list_spec=$lt_file_list_spec
23904
23905 # How to hardcode a shared library path into an executable.
23906 hardcode_action=$hardcode_action
23907
23908 # ### END LIBTOOL CONFIG
23909
23910 _LT_EOF
23911
23912 cat <<'_LT_EOF' >> "$cfgfile"
23913
23914 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23915
23916 # func_munge_path_list VARIABLE PATH
23917 # -----------------------------------
23918 # VARIABLE is name of variable containing _space_ separated list of
23919 # directories to be munged by the contents of PATH, which is string
23920 # having a format:
23921 # "DIR[:DIR]:"
23922 # string "DIR[ DIR]" will be prepended to VARIABLE
23923 # ":DIR[:DIR]"
23924 # string "DIR[ DIR]" will be appended to VARIABLE
23925 # "DIRP[:DIRP]::[DIRA:]DIRA"
23926 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23927 # "DIRA[ DIRA]" will be appended to VARIABLE
23928 # "DIR[:DIR]"
23929 # VARIABLE will be replaced by "DIR[ DIR]"
23930 func_munge_path_list ()
23931 {
23932 case x$2 in
23933 x)
23934 ;;
23935 *:)
23936 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23937 ;;
23938 x:*)
23939 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23940 ;;
23941 *::*)
23942 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23943 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23944 ;;
23945 *)
23946 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23947 ;;
23948 esac
23949 }
23950
23951
23952 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23953 func_cc_basename ()
23954 {
23955 for cc_temp in $*""; do
23956 case $cc_temp in
23957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23959 \-*) ;;
23960 *) break;;
23961 esac
23962 done
23963 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23964 }
23965
23966
23967 # ### END FUNCTIONS SHARED WITH CONFIGURE
23968
23969 _LT_EOF
23970
23971 case $host_os in
23972 aix3*)
23973 cat <<\_LT_EOF >> "$cfgfile"
23974 # AIX sometimes has problems with the GCC collect2 program. For some
23975 # reason, if we set the COLLECT_NAMES environment variable, the problems
23976 # vanish in a puff of smoke.
23977 if test set != "${COLLECT_NAMES+set}"; then
23978 COLLECT_NAMES=
23979 export COLLECT_NAMES
23980 fi
23981 _LT_EOF
23982 ;;
23983 esac
23984
23985
23986
23987 ltmain=$ac_aux_dir/ltmain.sh
23988
23989
23990 # We use sed instead of cat because bash on DJGPP gets confused if
23991 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23992 # text mode, it properly converts lines to CR/LF. This bash problem
23993 # is reportedly fixed, but why not run on old versions too?
23994 $SED '$q' "$ltmain" >> "$cfgfile" \
23995 || (rm -f "$cfgfile"; exit 1)
23996
23997 mv -f "$cfgfile" "$ofile" ||
23998 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23999 chmod +x "$ofile"
24000
24001 ;;
24002
24003 esac
24004 done # for ac_tag
24005
24006
24007 as_fn_exit 0
24008 _ACEOF
24009 ac_clean_CONFIG_STATUS=
24010
24011 test $ac_write_fail = 0 ||
24012 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24013
24014
24015 # configure is writing to config.log, and then calls config.status.
24016 # config.status does its own redirection, appending to config.log.
24017 # Unfortunately, on DOS this fails, as config.log is still kept open
24018 # by configure, so config.status won't be able to write to it; its
24019 # output is simply discarded. So we exec the FD to /dev/null,
24020 # effectively closing config.log, so it can be properly (re)opened and
24021 # appended to by config.status. When coming back to configure, we
24022 # need to make the FD available again.
24023 if test "$no_create" != yes; then
24024 ac_cs_success=:
24025 case $CONFIG_STATUS in #(
24026 -*) :
24027 ac_no_opts=-- ;; #(
24028 *) :
24029 ac_no_opts= ;;
24030 esac
24031 ac_config_status_args=
24032 test "$silent" = yes &&
24033 ac_config_status_args="$ac_config_status_args --quiet"
24034 exec 5>/dev/null
24035 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
24036 ac_cs_success=false
24037 exec 5>>config.log
24038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24039 # would make configure fail if this is the last instruction.
24040 $ac_cs_success || as_fn_exit 1
24041 fi
24042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24044 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24045 fi
24046
24047
24048