configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXfixes 6.0.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libXfixes'
624 PACKAGE_TARNAME='libXfixes'
625 PACKAGE_VERSION='6.0.1'
626 PACKAGE_STRING='libXfixes 6.0.1'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 FIXESEXT_LIBS
668 FIXESEXT_CFLAGS
669 FIXESEXT_VERSION
670 MAN_SUBSTS
671 XORG_MAN_PAGE
672 ADMIN_MAN_DIR
673 DRIVER_MAN_DIR
674 MISC_MAN_DIR
675 FILE_MAN_DIR
676 LIB_MAN_DIR
677 APP_MAN_DIR
678 ADMIN_MAN_SUFFIX
679 DRIVER_MAN_SUFFIX
680 MISC_MAN_SUFFIX
681 FILE_MAN_SUFFIX
682 LIB_MAN_SUFFIX
683 APP_MAN_SUFFIX
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 DLLTOOL
703 OBJDUMP
704 FILECMD
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 am__fastdepCC_FALSE
715 am__fastdepCC_TRUE
716 CCDEPMODE
717 am__nodep
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 LIBTOOL
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 CSCOPE
744 ETAGS
745 CTAGS
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 target_alias
770 host_alias
771 build_alias
772 LIBS
773 ECHO_T
774 ECHO_N
775 ECHO_C
776 DEFS
777 mandir
778 localedir
779 libdir
780 psdir
781 pdfdir
782 dvidir
783 htmldir
784 infodir
785 docdir
786 oldincludedir
787 includedir
788 runstatedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL
808 am__quote'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_silent_rules
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_aix_soname
818 enable_dependency_tracking
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 enable_selective_werror
823 enable_strict_compilation
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 LT_SYS_LIBRARY_PATH
834 PKG_CONFIG
835 PKG_CONFIG_PATH
836 PKG_CONFIG_LIBDIR
837 FIXESEXT_CFLAGS
838 FIXESEXT_LIBS'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 runstatedir='${localstatedir}/run'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
889
890 ac_prev=
891 ac_dashdash=
892 for ac_option
893 do
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
899 fi
900
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
906
907 case $ac_dashdash$ac_option in
908 --)
909 ac_dashdash=yes ;;
910
911 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 ac_prev=bindir ;;
913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 bindir=$ac_optarg ;;
915
916 -build | --build | --buil | --bui | --bu)
917 ac_prev=build_alias ;;
918 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919 build_alias=$ac_optarg ;;
920
921 -cache-file | --cache-file | --cache-fil | --cache-fi \
922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923 ac_prev=cache_file ;;
924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926 cache_file=$ac_optarg ;;
927
928 --config-cache | -C)
929 cache_file=config.cache ;;
930
931 -datadir | --datadir | --datadi | --datad)
932 ac_prev=datadir ;;
933 -datadir=* | --datadir=* | --datadi=* | --datad=*)
934 datadir=$ac_optarg ;;
935
936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937 | --dataroo | --dataro | --datar)
938 ac_prev=datarootdir ;;
939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941 datarootdir=$ac_optarg ;;
942
943 -disable-* | --disable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: \`$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=no ;;
958
959 -docdir | --docdir | --docdi | --doc | --do)
960 ac_prev=docdir ;;
961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962 docdir=$ac_optarg ;;
963
964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 ac_prev=dvidir ;;
966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967 dvidir=$ac_optarg ;;
968
969 -enable-* | --enable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: \`$ac_useropt'"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=\$ac_optarg ;;
984
985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987 | --exec | --exe | --ex)
988 ac_prev=exec_prefix ;;
989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991 | --exec=* | --exe=* | --ex=*)
992 exec_prefix=$ac_optarg ;;
993
994 -gas | --gas | --ga | --g)
995 # Obsolete; use --with-gas.
996 with_gas=yes ;;
997
998 -help | --help | --hel | --he | -h)
999 ac_init_help=long ;;
1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001 ac_init_help=recursive ;;
1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003 ac_init_help=short ;;
1004
1005 -host | --host | --hos | --ho)
1006 ac_prev=host_alias ;;
1007 -host=* | --host=* | --hos=* | --ho=*)
1008 host_alias=$ac_optarg ;;
1009
1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 ac_prev=htmldir ;;
1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 | --ht=*)
1014 htmldir=$ac_optarg ;;
1015
1016 -includedir | --includedir | --includedi | --included | --include \
1017 | --includ | --inclu | --incl | --inc)
1018 ac_prev=includedir ;;
1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020 | --includ=* | --inclu=* | --incl=* | --inc=*)
1021 includedir=$ac_optarg ;;
1022
1023 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 ac_prev=infodir ;;
1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026 infodir=$ac_optarg ;;
1027
1028 -libdir | --libdir | --libdi | --libd)
1029 ac_prev=libdir ;;
1030 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031 libdir=$ac_optarg ;;
1032
1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034 | --libexe | --libex | --libe)
1035 ac_prev=libexecdir ;;
1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037 | --libexe=* | --libex=* | --libe=*)
1038 libexecdir=$ac_optarg ;;
1039
1040 -localedir | --localedir | --localedi | --localed | --locale)
1041 ac_prev=localedir ;;
1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043 localedir=$ac_optarg ;;
1044
1045 -localstatedir | --localstatedir | --localstatedi | --localstated \
1046 | --localstate | --localstat | --localsta | --localst | --locals)
1047 ac_prev=localstatedir ;;
1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050 localstatedir=$ac_optarg ;;
1051
1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 ac_prev=mandir ;;
1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055 mandir=$ac_optarg ;;
1056
1057 -nfp | --nfp | --nf)
1058 # Obsolete; use --without-fp.
1059 with_fp=no ;;
1060
1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062 | --no-cr | --no-c | -n)
1063 no_create=yes ;;
1064
1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067 no_recursion=yes ;;
1068
1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071 | --oldin | --oldi | --old | --ol | --o)
1072 ac_prev=oldincludedir ;;
1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076 oldincludedir=$ac_optarg ;;
1077
1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 ac_prev=prefix ;;
1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081 prefix=$ac_optarg ;;
1082
1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084 | --program-pre | --program-pr | --program-p)
1085 ac_prev=program_prefix ;;
1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088 program_prefix=$ac_optarg ;;
1089
1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091 | --program-suf | --program-su | --program-s)
1092 ac_prev=program_suffix ;;
1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095 program_suffix=$ac_optarg ;;
1096
1097 -program-transform-name | --program-transform-name \
1098 | --program-transform-nam | --program-transform-na \
1099 | --program-transform-n | --program-transform- \
1100 | --program-transform | --program-transfor \
1101 | --program-transfo | --program-transf \
1102 | --program-trans | --program-tran \
1103 | --progr-tra | --program-tr | --program-t)
1104 ac_prev=program_transform_name ;;
1105 -program-transform-name=* | --program-transform-name=* \
1106 | --program-transform-nam=* | --program-transform-na=* \
1107 | --program-transform-n=* | --program-transform-=* \
1108 | --program-transform=* | --program-transfor=* \
1109 | --program-transfo=* | --program-transf=* \
1110 | --program-trans=* | --program-tran=* \
1111 | --progr-tra=* | --program-tr=* | --program-t=*)
1112 program_transform_name=$ac_optarg ;;
1113
1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 ac_prev=pdfdir ;;
1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117 pdfdir=$ac_optarg ;;
1118
1119 -psdir | --psdir | --psdi | --psd | --ps)
1120 ac_prev=psdir ;;
1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122 psdir=$ac_optarg ;;
1123
1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125 | -silent | --silent | --silen | --sile | --sil)
1126 silent=yes ;;
1127
1128 -runstatedir | --runstatedir | --runstatedi | --runstated \
1129 | --runstate | --runstat | --runsta | --runst | --runs \
1130 | --run | --ru | --r)
1131 ac_prev=runstatedir ;;
1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134 | --run=* | --ru=* | --r=*)
1135 runstatedir=$ac_optarg ;;
1136
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1142
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1153
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1158
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1163
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1170
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1175
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1178
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1181
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: \`$ac_useropt'"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=\$ac_optarg ;;
1197
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1206 *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1213
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1217
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1224
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1231
1232 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information"
1234 ;;
1235
1236 *=*)
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242 esac
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1245
1246 *)
1247 # FIXME: should be removed in autoconf 3.0.
1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252 ;;
1253
1254 esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error $? "missing argument to $ac_option"
1260 fi
1261
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1264 no) ;;
1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267 esac
1268 fi
1269
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir runstatedir
1275 do
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1278 case $ac_val in
1279 */ )
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1282 esac
1283 # Be sure to have absolute directory names.
1284 case $ac_val in
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 esac
1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 elif test "x$build_alias" != "x$host_alias"; then
1303 cross_compiling=yes
1304 fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316 as_fn_error $? "working directory cannot be determined"
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323 ac_srcdir_defaulted=yes
1324 # Try the directory containing this script, then the parent directory.
1325 ac_confdir=`$as_dirname -- "$as_myself" ||
1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327 X"$as_myself" : 'X\(//\)[^/]' \| \
1328 X"$as_myself" : 'X\(//\)$' \| \
1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330 printf "%s\n" X"$as_myself" |
1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)[^/].*/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)$/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\).*/{
1344 s//\1/
1345 q
1346 }
1347 s/.*/./; q'`
1348 srcdir=$ac_confdir
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 srcdir=..
1351 fi
1352 else
1353 ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358 fi
1359 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360 ac_abs_confdir=`(
1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362 pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365 srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_env_${ac_var}_value=\$${ac_var}
1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384 # Omit some internal or obsolete options to make the list less imposing.
1385 # This message is too long to be a string in the A/UX 3.1 sh.
1386 cat <<_ACEOF
1387 \`configure' configures libXfixes 6.0.1 to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE. See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397 -h, --help display this help and exit
1398 --help=short display options specific to this package
1399 --help=recursive display the short help of all the included packages
1400 -V, --version display version information and exit
1401 -q, --quiet, --silent do not print \`checking ...' messages
1402 --cache-file=FILE cache test results in FILE [disabled]
1403 -C, --config-cache alias for \`--cache-file=config.cache'
1404 -n, --no-create do not create output files
1405 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408 --prefix=PREFIX install architecture-independent files in PREFIX
1409 [$ac_default_prefix]
1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1411 [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421 --bindir=DIR user executables [EPREFIX/bin]
1422 --sbindir=DIR system admin executables [EPREFIX/sbin]
1423 --libexecdir=DIR program executables [EPREFIX/libexec]
1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfixes]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of libXfixes 6.0.1:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
1470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
1472 --enable-dependency-tracking
1473 do not reject slow dependency extractors
1474 --disable-dependency-tracking
1475 speeds up one-time build
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --disable-selective-werror
1478 Turn off selective compiler errors. (default:
1479 enabled)
1480 --enable-strict-compilation
1481 Enable all warnings from compiler and make them
1482 errors (default: disabled)
1483
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-aix-soname=aix|svr4|both
1490 shared library versioning (aka "SONAME") variant to
1491 provide on AIX, [default=aix].
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1494 compiler's sysroot if not specified).
1495
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 LT_SYS_LIBRARY_PATH
1505 User-defined run-time library search path.
1506 PKG_CONFIG path to pkg-config utility
1507 PKG_CONFIG_PATH
1508 directories to add to pkg-config's search path
1509 PKG_CONFIG_LIBDIR
1510 path overriding pkg-config's built-in search path
1511 FIXESEXT_CFLAGS
1512 C compiler flags for FIXESEXT, overriding pkg-config
1513 FIXESEXT_LIBS
1514 linker flags for FIXESEXT, overriding pkg-config
1515
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1518
1519 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues>.
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525 # If there are subdirs, report their specific --help.
1526 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527 test -d "$ac_dir" ||
1528 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 continue
1530 ac_builddir=.
1531
1532 case "$ac_dir" in
1533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *)
1535 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1536 # A ".." for each directory in $ac_dir_suffix.
1537 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1538 case $ac_top_builddir_sub in
1539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1541 esac ;;
1542 esac
1543 ac_abs_top_builddir=$ac_pwd
1544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1545 # for backward compatibility:
1546 ac_top_builddir=$ac_top_build_prefix
1547
1548 case $srcdir in
1549 .) # We are building in place.
1550 ac_srcdir=.
1551 ac_top_srcdir=$ac_top_builddir_sub
1552 ac_abs_top_srcdir=$ac_pwd ;;
1553 [\\/]* | ?:[\\/]* ) # Absolute name.
1554 ac_srcdir=$srcdir$ac_dir_suffix;
1555 ac_top_srcdir=$srcdir
1556 ac_abs_top_srcdir=$srcdir ;;
1557 *) # Relative name.
1558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1559 ac_top_srcdir=$ac_top_build_prefix$srcdir
1560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1561 esac
1562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563
1564 cd "$ac_dir" || { ac_status=$?; continue; }
1565 # Check for configure.gnu first; this name is used for a wrapper for
1566 # Metaconfig's "Configure" on case-insensitive file systems.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 libXfixes configure 6.0.1
1584 generated by GNU Autoconf 2.71
1585
1586 Copyright (C) 2021 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1591 fi
1592
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1596
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest.beam
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext
1623 then :
1624 ac_retval=0
1625 else $as_nop
1626 printf "%s\n" "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_compile
1635
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_link ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 printf "%s\n" "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1656 fi
1657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 test -x conftest$ac_exeext
1664 }
1665 then :
1666 ac_retval=0
1667 else $as_nop
1668 printf "%s\n" "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672 fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_link
1682
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 printf %s "checking for $2... " >&6; }
1692 if eval test \${$3+y}
1693 then :
1694 printf %s "(cached) " >&6
1695 else $as_nop
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"
1702 then :
1703 eval "$3=yes"
1704 else $as_nop
1705 eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 printf "%s\n" "$ac_res" >&6; }
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_check_func LINENO FUNC VAR
1717 # ----------------------------------
1718 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1719 ac_fn_c_check_func ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 printf %s "checking for $2... " >&6; }
1724 if eval test \${$3+y}
1725 then :
1726 printf %s "(cached) " >&6
1727 else $as_nop
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1733
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below. */
1736
1737 #include <limits.h>
1738 #undef $2
1739
1740 /* Override any GCC internal prototype to avoid an error.
1741 Use char because int might match the return type of a GCC
1742 builtin and then its argument prototype would still apply. */
1743 #ifdef __cplusplus
1744 extern "C"
1745 #endif
1746 char $2 ();
1747 /* The GNU C library defines this for functions which it implements
1748 to always fail with ENOSYS. Some functions are actually named
1749 something starting with __ and the normal name is an alias. */
1750 #if defined __stub_$2 || defined __stub___$2
1751 choke me
1752 #endif
1753
1754 int
1755 main (void)
1756 {
1757 return $2 ();
1758 ;
1759 return 0;
1760 }
1761 _ACEOF
1762 if ac_fn_c_try_link "$LINENO"
1763 then :
1764 eval "$3=yes"
1765 else $as_nop
1766 eval "$3=no"
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1769 conftest$ac_exeext conftest.$ac_ext
1770 fi
1771 eval ac_res=\$$3
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 printf "%s\n" "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776 } # ac_fn_c_check_func
1777
1778 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1779 # ------------------------------------------------------------------
1780 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1781 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1782 ac_fn_check_decl ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 as_decl_name=`echo $2|sed 's/ *(.*//'`
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1787 printf %s "checking whether $as_decl_name is declared... " >&6; }
1788 if eval test \${$3+y}
1789 then :
1790 printf %s "(cached) " >&6
1791 else $as_nop
1792 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1793 eval ac_save_FLAGS=\$$6
1794 as_fn_append $6 " $5"
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1797 $4
1798 int
1799 main (void)
1800 {
1801 #ifndef $as_decl_name
1802 #ifdef __cplusplus
1803 (void) $as_decl_use;
1804 #else
1805 (void) $as_decl_name;
1806 #endif
1807 #endif
1808
1809 ;
1810 return 0;
1811 }
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"
1814 then :
1815 eval "$3=yes"
1816 else $as_nop
1817 eval "$3=no"
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1820 eval $6=\$ac_save_FLAGS
1821
1822 fi
1823 eval ac_res=\$$3
1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 printf "%s\n" "$ac_res" >&6; }
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827
1828 } # ac_fn_check_decl
1829 ac_configure_args_raw=
1830 for ac_arg
1831 do
1832 case $ac_arg in
1833 *\'*)
1834 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 esac
1836 as_fn_append ac_configure_args_raw " '$ac_arg'"
1837 done
1838
1839 case $ac_configure_args_raw in
1840 *$as_nl*)
1841 ac_safe_unquote= ;;
1842 *)
1843 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1844 ac_unsafe_a="$ac_unsafe_z#~"
1845 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1846 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1847 esac
1848
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1852
1853 It was created by libXfixes $as_me 6.0.1, which was
1854 generated by GNU Autoconf 2.71. Invocation command line was
1855
1856 $ $0$ac_configure_args_raw
1857
1858 _ACEOF
1859 exec 5>>config.log
1860 {
1861 cat <<_ASUNAME
1862 ## --------- ##
1863 ## Platform. ##
1864 ## --------- ##
1865
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1871
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1874
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882
1883 _ASUNAME
1884
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 for as_dir in $PATH
1887 do
1888 IFS=$as_save_IFS
1889 case $as_dir in #(((
1890 '') as_dir=./ ;;
1891 */) ;;
1892 *) as_dir=$as_dir/ ;;
1893 esac
1894 printf "%s\n" "PATH: $as_dir"
1895 done
1896 IFS=$as_save_IFS
1897
1898 } >&5
1899
1900 cat >&5 <<_ACEOF
1901
1902
1903 ## ----------- ##
1904 ## Core tests. ##
1905 ## ----------- ##
1906
1907 _ACEOF
1908
1909
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_configure_args=
1916 ac_configure_args0=
1917 ac_configure_args1=
1918 ac_must_keep_next=false
1919 for ac_pass in 1 2
1920 do
1921 for ac_arg
1922 do
1923 case $ac_arg in
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 continue ;;
1928 *\'*)
1929 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 esac
1931 case $ac_pass in
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1933 2)
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1937 else
1938 case $ac_arg in
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1945 esac
1946 ;;
1947 -* ) ac_must_keep_next=true ;;
1948 esac
1949 fi
1950 as_fn_append ac_configure_args " '$ac_arg'"
1951 ;;
1952 esac
1953 done
1954 done
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1957
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Sanitize IFS.
1965 IFS=" "" $as_nl"
1966 # Save into config.log some information that might help in debugging.
1967 {
1968 echo
1969
1970 printf "%s\n" "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1973 echo
1974 # The following way of writing the cache mishandles newlines in values,
1975 (
1976 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val=\$$ac_var
1978 case $ac_val in #(
1979 *${as_nl}*)
1980 case $ac_var in #(
1981 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 esac
1984 case $ac_var in #(
1985 _ | IFS | as_nl) ;; #(
1986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1988 esac ;;
1989 esac
1990 done
1991 (set) 2>&1 |
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space=\ *)
1994 sed -n \
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 ;; #(
1998 *)
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2000 ;;
2001 esac |
2002 sort
2003 )
2004 echo
2005
2006 printf "%s\n" "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2009 echo
2010 for ac_var in $ac_subst_vars
2011 do
2012 eval ac_val=\$$ac_var
2013 case $ac_val in
2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2015 esac
2016 printf "%s\n" "$ac_var='\''$ac_val'\''"
2017 done | sort
2018 echo
2019
2020 if test -n "$ac_subst_files"; then
2021 printf "%s\n" "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2024 echo
2025 for ac_var in $ac_subst_files
2026 do
2027 eval ac_val=\$$ac_var
2028 case $ac_val in
2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030 esac
2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
2032 done | sort
2033 echo
2034 fi
2035
2036 if test -s confdefs.h; then
2037 printf "%s\n" "## ----------- ##
2038 ## confdefs.h. ##
2039 ## ----------- ##"
2040 echo
2041 cat confdefs.h
2042 echo
2043 fi
2044 test "$ac_signal" != 0 &&
2045 printf "%s\n" "$as_me: caught signal $ac_signal"
2046 printf "%s\n" "$as_me: exit $exit_status"
2047 } >&5
2048 rm -f core *.core core.conftest.* &&
2049 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 exit $exit_status
2051 ' 0
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2054 done
2055 ac_signal=0
2056
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2059
2060 printf "%s\n" "/* confdefs.h */" > confdefs.h
2061
2062 # Predefined preprocessor variables.
2063
2064 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2065
2066 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2067
2068 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2069
2070 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2073
2074 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2075
2076
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 ac_site_files="$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2083 else
2084 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2085 fi
2086
2087 for ac_site_file in $ac_site_files
2088 do
2089 case $ac_site_file in #(
2090 */*) :
2091 ;; #(
2092 *) :
2093 ac_site_file=./$ac_site_file ;;
2094 esac
2095 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's/^/| /' "$ac_site_file" >&5
2099 . "$ac_site_file" \
2100 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2102 as_fn_error $? "failed to load site script $ac_site_file
2103 See \`config.log' for more details" "$LINENO" 5; }
2104 fi
2105 done
2106
2107 if test -r "$cache_file"; then
2108 # Some versions of bash will fail to source /dev/null (special files
2109 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2110 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2113 case $cache_file in
2114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115 *) . "./$cache_file";;
2116 esac
2117 fi
2118 else
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2121 >$cache_file
2122 fi
2123
2124 # Test code for whether the C compiler supports C89 (global declarations)
2125 ac_c_conftest_c89_globals='
2126 /* Does the compiler advertise C89 conformance?
2127 Do not test the value of __STDC__, because some compilers set it to 0
2128 while being otherwise adequately conformant. */
2129 #if !defined __STDC__
2130 # error "Compiler does not advertise C89 conformance"
2131 #endif
2132
2133 #include <stddef.h>
2134 #include <stdarg.h>
2135 struct stat;
2136 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2137 struct buf { int x; };
2138 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140 char **p;
2141 int i;
2142 {
2143 return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147 char *s;
2148 va_list v;
2149 va_start (v,p);
2150 s = g (p, va_arg (v,int));
2151 va_end (v);
2152 return s;
2153 }
2154
2155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2156 function prototypes and stuff, but not \xHH hex character constants.
2157 These do not provoke an error unfortunately, instead are silently treated
2158 as an "x". The following induces an error, until -std is added to get
2159 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2160 array size at least. It is necessary to write \x00 == 0 to get something
2161 that is true only with -std. */
2162 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2163
2164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2165 inside strings and character constants. */
2166 #define FOO(x) '\''x'\''
2167 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2168
2169 int test (int i, double x);
2170 struct s1 {int (*f) (int a);};
2171 struct s2 {int (*f) (double a);};
2172 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2173 int, int);'
2174
2175 # Test code for whether the C compiler supports C89 (body of main).
2176 ac_c_conftest_c89_main='
2177 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2178 '
2179
2180 # Test code for whether the C compiler supports C99 (global declarations)
2181 ac_c_conftest_c99_globals='
2182 // Does the compiler advertise C99 conformance?
2183 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2184 # error "Compiler does not advertise C99 conformance"
2185 #endif
2186
2187 #include <stdbool.h>
2188 extern int puts (const char *);
2189 extern int printf (const char *, ...);
2190 extern int dprintf (int, const char *, ...);
2191 extern void *malloc (size_t);
2192
2193 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2194 // dprintf is used instead of fprintf to avoid needing to declare
2195 // FILE and stderr.
2196 #define debug(...) dprintf (2, __VA_ARGS__)
2197 #define showlist(...) puts (#__VA_ARGS__)
2198 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2199 static void
2200 test_varargs_macros (void)
2201 {
2202 int x = 1234;
2203 int y = 5678;
2204 debug ("Flag");
2205 debug ("X = %d\n", x);
2206 showlist (The first, second, and third items.);
2207 report (x>y, "x is %d but y is %d", x, y);
2208 }
2209
2210 // Check long long types.
2211 #define BIG64 18446744073709551615ull
2212 #define BIG32 4294967295ul
2213 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2214 #if !BIG_OK
2215 #error "your preprocessor is broken"
2216 #endif
2217 #if BIG_OK
2218 #else
2219 #error "your preprocessor is broken"
2220 #endif
2221 static long long int bignum = -9223372036854775807LL;
2222 static unsigned long long int ubignum = BIG64;
2223
2224 struct incomplete_array
2225 {
2226 int datasize;
2227 double data[];
2228 };
2229
2230 struct named_init {
2231 int number;
2232 const wchar_t *name;
2233 double average;
2234 };
2235
2236 typedef const char *ccp;
2237
2238 static inline int
2239 test_restrict (ccp restrict text)
2240 {
2241 // See if C++-style comments work.
2242 // Iterate through items via the restricted pointer.
2243 // Also check for declarations in for loops.
2244 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2245 continue;
2246 return 0;
2247 }
2248
2249 // Check varargs and va_copy.
2250 static bool
2251 test_varargs (const char *format, ...)
2252 {
2253 va_list args;
2254 va_start (args, format);
2255 va_list args_copy;
2256 va_copy (args_copy, args);
2257
2258 const char *str = "";
2259 int number = 0;
2260 float fnumber = 0;
2261
2262 while (*format)
2263 {
2264 switch (*format++)
2265 {
2266 case '\''s'\'': // string
2267 str = va_arg (args_copy, const char *);
2268 break;
2269 case '\''d'\'': // int
2270 number = va_arg (args_copy, int);
2271 break;
2272 case '\''f'\'': // float
2273 fnumber = va_arg (args_copy, double);
2274 break;
2275 default:
2276 break;
2277 }
2278 }
2279 va_end (args_copy);
2280 va_end (args);
2281
2282 return *str && number && fnumber;
2283 }
2284 '
2285
2286 # Test code for whether the C compiler supports C99 (body of main).
2287 ac_c_conftest_c99_main='
2288 // Check bool.
2289 _Bool success = false;
2290 success |= (argc != 0);
2291
2292 // Check restrict.
2293 if (test_restrict ("String literal") == 0)
2294 success = true;
2295 char *restrict newvar = "Another string";
2296
2297 // Check varargs.
2298 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2299 test_varargs_macros ();
2300
2301 // Check flexible array members.
2302 struct incomplete_array *ia =
2303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2304 ia->datasize = 10;
2305 for (int i = 0; i < ia->datasize; ++i)
2306 ia->data[i] = i * 1.234;
2307
2308 // Check named initializers.
2309 struct named_init ni = {
2310 .number = 34,
2311 .name = L"Test wide string",
2312 .average = 543.34343,
2313 };
2314
2315 ni.number = 58;
2316
2317 int dynamic_array[ni.number];
2318 dynamic_array[0] = argv[0][0];
2319 dynamic_array[ni.number - 1] = 543;
2320
2321 // work around unused variable warnings
2322 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2323 || dynamic_array[ni.number - 1] != 543);
2324 '
2325
2326 # Test code for whether the C compiler supports C11 (global declarations)
2327 ac_c_conftest_c11_globals='
2328 // Does the compiler advertise C11 conformance?
2329 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2330 # error "Compiler does not advertise C11 conformance"
2331 #endif
2332
2333 // Check _Alignas.
2334 char _Alignas (double) aligned_as_double;
2335 char _Alignas (0) no_special_alignment;
2336 extern char aligned_as_int;
2337 char _Alignas (0) _Alignas (int) aligned_as_int;
2338
2339 // Check _Alignof.
2340 enum
2341 {
2342 int_alignment = _Alignof (int),
2343 int_array_alignment = _Alignof (int[100]),
2344 char_alignment = _Alignof (char)
2345 };
2346 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2347
2348 // Check _Noreturn.
2349 int _Noreturn does_not_return (void) { for (;;) continue; }
2350
2351 // Check _Static_assert.
2352 struct test_static_assert
2353 {
2354 int x;
2355 _Static_assert (sizeof (int) <= sizeof (long int),
2356 "_Static_assert does not work in struct");
2357 long int y;
2358 };
2359
2360 // Check UTF-8 literals.
2361 #define u8 syntax error!
2362 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2363
2364 // Check duplicate typedefs.
2365 typedef long *long_ptr;
2366 typedef long int *long_ptr;
2367 typedef long_ptr long_ptr;
2368
2369 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2370 struct anonymous
2371 {
2372 union {
2373 struct { int i; int j; };
2374 struct { int k; long int l; } w;
2375 };
2376 int m;
2377 } v1;
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (body of main).
2381 ac_c_conftest_c11_main='
2382 _Static_assert ((offsetof (struct anonymous, i)
2383 == offsetof (struct anonymous, w.k)),
2384 "Anonymous union alignment botch");
2385 v1.i = 2;
2386 v1.w.k = 5;
2387 ok |= v1.i != 5;
2388 '
2389
2390 # Test code for whether the C compiler supports C11 (complete).
2391 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2392 ${ac_c_conftest_c99_globals}
2393 ${ac_c_conftest_c11_globals}
2394
2395 int
2396 main (int argc, char **argv)
2397 {
2398 int ok = 0;
2399 ${ac_c_conftest_c89_main}
2400 ${ac_c_conftest_c99_main}
2401 ${ac_c_conftest_c11_main}
2402 return ok;
2403 }
2404 "
2405
2406 # Test code for whether the C compiler supports C99 (complete).
2407 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2408 ${ac_c_conftest_c99_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 ${ac_c_conftest_c99_main}
2416 return ok;
2417 }
2418 "
2419
2420 # Test code for whether the C compiler supports C89 (complete).
2421 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2422
2423 int
2424 main (int argc, char **argv)
2425 {
2426 int ok = 0;
2427 ${ac_c_conftest_c89_main}
2428 return ok;
2429 }
2430 "
2431
2432 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2433 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2434 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2435 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2436 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2437 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2438 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2439 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2440 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2441
2442 # Auxiliary files required by this configure script.
2443 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2444
2445 # Locations in which to look for auxiliary files.
2446 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2447
2448 # Search for a directory containing all of the required auxiliary files,
2449 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2450 # If we don't find one directory that contains all the files we need,
2451 # we report the set of missing files from the *first* directory in
2452 # $ac_aux_dir_candidates and give up.
2453 ac_missing_aux_files=""
2454 ac_first_candidate=:
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 as_found=false
2458 for as_dir in $ac_aux_dir_candidates
2459 do
2460 IFS=$as_save_IFS
2461 case $as_dir in #(((
2462 '') as_dir=./ ;;
2463 */) ;;
2464 *) as_dir=$as_dir/ ;;
2465 esac
2466 as_found=:
2467
2468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2469 ac_aux_dir_found=yes
2470 ac_install_sh=
2471 for ac_aux in $ac_aux_files
2472 do
2473 # As a special case, if "install-sh" is required, that requirement
2474 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2475 # and $ac_install_sh is set appropriately for whichever one is found.
2476 if test x"$ac_aux" = x"install-sh"
2477 then
2478 if test -f "${as_dir}install-sh"; then
2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2480 ac_install_sh="${as_dir}install-sh -c"
2481 elif test -f "${as_dir}install.sh"; then
2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2483 ac_install_sh="${as_dir}install.sh -c"
2484 elif test -f "${as_dir}shtool"; then
2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2486 ac_install_sh="${as_dir}shtool install -c"
2487 else
2488 ac_aux_dir_found=no
2489 if $ac_first_candidate; then
2490 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2491 else
2492 break
2493 fi
2494 fi
2495 else
2496 if test -f "${as_dir}${ac_aux}"; then
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2498 else
2499 ac_aux_dir_found=no
2500 if $ac_first_candidate; then
2501 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2502 else
2503 break
2504 fi
2505 fi
2506 fi
2507 done
2508 if test "$ac_aux_dir_found" = yes; then
2509 ac_aux_dir="$as_dir"
2510 break
2511 fi
2512 ac_first_candidate=false
2513
2514 as_found=false
2515 done
2516 IFS=$as_save_IFS
2517 if $as_found
2518 then :
2519
2520 else $as_nop
2521 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2522 fi
2523
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 if test -f "${ac_aux_dir}config.guess"; then
2530 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2531 fi
2532 if test -f "${ac_aux_dir}config.sub"; then
2533 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2534 fi
2535 if test -f "$ac_aux_dir/configure"; then
2536 ac_configure="$SHELL ${ac_aux_dir}configure"
2537 fi
2538
2539 # Check that the precious variables saved in the cache have kept the same
2540 # value.
2541 ac_cache_corrupted=false
2542 for ac_var in $ac_precious_vars; do
2543 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2544 eval ac_new_set=\$ac_env_${ac_var}_set
2545 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2546 eval ac_new_val=\$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2548 set,)
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,set)
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted=: ;;
2556 ,);;
2557 *)
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w=`echo x $ac_old_val`
2561 ac_new_val_w=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted=:
2566 else
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\$ac_old_val
2570 fi
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2575 fi;;
2576 esac
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2579 case $ac_new_val in
2580 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg=$ac_var=$ac_new_val ;;
2582 esac
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2586 esac
2587 fi
2588 done
2589 if $ac_cache_corrupted; then
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2595 and start over" "$LINENO" 5
2596 fi
2597 ## -------------------- ##
2598 ## Main body of script. ##
2599 ## -------------------- ##
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
2609 ac_config_headers="$ac_config_headers config.h"
2610
2611
2612
2613 # Initialize Automake
2614 am__api_version='1.16'
2615
2616
2617
2618 # Find a good install program. We prefer a C program (faster),
2619 # so one script is as good as another. But avoid the broken or
2620 # incompatible versions:
2621 # SysV /etc/install, /usr/sbin/install
2622 # SunOS /usr/etc/install
2623 # IRIX /sbin/install
2624 # AIX /bin/install
2625 # AmigaOS /C/install, which installs bootblocks on floppy discs
2626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2629 # OS/2's system install, which has a completely different semantic
2630 # ./install, which can be erroneously created by make from ./install.sh.
2631 # Reject install programs that cannot install multiple files.
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2633 printf %s "checking for a BSD-compatible install... " >&6; }
2634 if test -z "$INSTALL"; then
2635 if test ${ac_cv_path_install+y}
2636 then :
2637 printf %s "(cached) " >&6
2638 else $as_nop
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2641 do
2642 IFS=$as_save_IFS
2643 case $as_dir in #(((
2644 '') as_dir=./ ;;
2645 */) ;;
2646 *) as_dir=$as_dir/ ;;
2647 esac
2648 # Account for fact that we put trailing slashes in our PATH walk.
2649 case $as_dir in #((
2650 ./ | /[cC]/* | \
2651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2653 /usr/ucb/* ) ;;
2654 *)
2655 # OSF1 and SCO ODT 3.0 have their own names for install.
2656 # Don't use installbsd from OSF since it installs stuff as root
2657 # by default.
2658 for ac_prog in ginstall scoinst install; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2661 if test $ac_prog = install &&
2662 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # AIX install. It has an incompatible calling convention.
2664 :
2665 elif test $ac_prog = install &&
2666 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667 # program-specific install script used by HP pwplus--don't use.
2668 :
2669 else
2670 rm -rf conftest.one conftest.two conftest.dir
2671 echo one > conftest.one
2672 echo two > conftest.two
2673 mkdir conftest.dir
2674 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2675 test -s conftest.one && test -s conftest.two &&
2676 test -s conftest.dir/conftest.one &&
2677 test -s conftest.dir/conftest.two
2678 then
2679 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2680 break 3
2681 fi
2682 fi
2683 fi
2684 done
2685 done
2686 ;;
2687 esac
2688
2689 done
2690 IFS=$as_save_IFS
2691
2692 rm -rf conftest.one conftest.two conftest.dir
2693
2694 fi
2695 if test ${ac_cv_path_install+y}; then
2696 INSTALL=$ac_cv_path_install
2697 else
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for INSTALL within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 INSTALL=$ac_install_sh
2703 fi
2704 fi
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 printf "%s\n" "$INSTALL" >&6; }
2707
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 printf %s "checking whether build environment is sane... " >&6; }
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name. Accept space and tab only in the latter.
2720 am_lf='
2721 '
2722 case `pwd` in
2723 *[\\\"\#\$\&\'\`$am_lf]*)
2724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2725 esac
2726 case $srcdir in
2727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2728 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2729 esac
2730
2731 # Do 'set' in a subshell so we don't clobber the current shell's
2732 # arguments. Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2735 # directory).
2736 if (
2737 am_has_slept=no
2738 for am_try in 1 2; do
2739 echo "timestamp, slept: $am_has_slept" > conftest.file
2740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2742 # -L didn't work.
2743 set X `ls -t "$srcdir/configure" conftest.file`
2744 fi
2745 if test "$*" != "X $srcdir/configure conftest.file" \
2746 && test "$*" != "X conftest.file $srcdir/configure"; then
2747
2748 # If neither matched, then we have a broken ls. This can happen
2749 # if, for instance, CONFIG_SHELL is bash and it inherits a
2750 # broken ls alias from the environment. This has actually
2751 # happened. Such a system could not be considered "sane".
2752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2753 alias in your environment" "$LINENO" 5
2754 fi
2755 if test "$2" = conftest.file || test $am_try -eq 2; then
2756 break
2757 fi
2758 # Just in case.
2759 sleep 1
2760 am_has_slept=yes
2761 done
2762 test "$2" = conftest.file
2763 )
2764 then
2765 # Ok.
2766 :
2767 else
2768 as_fn_error $? "newly created file is older than distributed files!
2769 Check your system clock" "$LINENO" 5
2770 fi
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 printf "%s\n" "yes" >&6; }
2773 # If we didn't sleep, we still need to ensure time stamps of config.status and
2774 # generated files are strictly newer.
2775 am_sleep_pid=
2776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2777 ( sleep 1 ) &
2778 am_sleep_pid=$!
2779 fi
2780
2781 rm -f conftest.file
2782
2783 test "$program_prefix" != NONE &&
2784 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2785 # Use a double $ so make ignores it.
2786 test "$program_suffix" != NONE &&
2787 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2788 # Double any \ or $.
2789 # By default was `s,x,x', remove it if useless.
2790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2791 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2792
2793
2794 # Expand $ac_aux_dir to an absolute path.
2795 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2796
2797
2798 if test x"${MISSING+set}" != xset; then
2799 MISSING="\${SHELL} '$am_aux_dir/missing'"
2800 fi
2801 # Use eval to expand $SHELL
2802 if eval "$MISSING --is-lightweight"; then
2803 am_missing_run="$MISSING "
2804 else
2805 am_missing_run=
2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2807 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2808 fi
2809
2810 if test x"${install_sh+set}" != xset; then
2811 case $am_aux_dir in
2812 *\ * | *\ *)
2813 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2814 *)
2815 install_sh="\${SHELL} $am_aux_dir/install-sh"
2816 esac
2817 fi
2818
2819 # Installed binaries are usually stripped using 'strip' when the user
2820 # run "make install-strip". However 'strip' might not be the right
2821 # tool to use in cross-compilation environments, therefore Automake
2822 # will honor the 'STRIP' environment variable to overrule this program.
2823 if test "$cross_compiling" != no; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2826 set dummy ${ac_tool_prefix}strip; ac_word=$2
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 printf %s "checking for $ac_word... " >&6; }
2829 if test ${ac_cv_prog_STRIP+y}
2830 then :
2831 printf %s "(cached) " >&6
2832 else $as_nop
2833 if test -n "$STRIP"; then
2834 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 case $as_dir in #(((
2841 '') as_dir=./ ;;
2842 */) ;;
2843 *) as_dir=$as_dir/ ;;
2844 esac
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 STRIP=$ac_cv_prog_STRIP
2858 if test -n "$STRIP"; then
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2860 printf "%s\n" "$STRIP" >&6; }
2861 else
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 printf "%s\n" "no" >&6; }
2864 fi
2865
2866
2867 fi
2868 if test -z "$ac_cv_prog_STRIP"; then
2869 ac_ct_STRIP=$STRIP
2870 # Extract the first word of "strip", so it can be a program name with args.
2871 set dummy strip; ac_word=$2
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 printf %s "checking for $ac_word... " >&6; }
2874 if test ${ac_cv_prog_ac_ct_STRIP+y}
2875 then :
2876 printf %s "(cached) " >&6
2877 else $as_nop
2878 if test -n "$ac_ct_STRIP"; then
2879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2880 else
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884 IFS=$as_save_IFS
2885 case $as_dir in #(((
2886 '') as_dir=./ ;;
2887 */) ;;
2888 *) as_dir=$as_dir/ ;;
2889 esac
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_STRIP="strip"
2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2903 if test -n "$ac_ct_STRIP"; then
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2905 printf "%s\n" "$ac_ct_STRIP" >&6; }
2906 else
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 printf "%s\n" "no" >&6; }
2909 fi
2910
2911 if test "x$ac_ct_STRIP" = x; then
2912 STRIP=":"
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 STRIP=$ac_ct_STRIP
2921 fi
2922 else
2923 STRIP="$ac_cv_prog_STRIP"
2924 fi
2925
2926 fi
2927 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2928
2929
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2931 printf %s "checking for a race-free mkdir -p... " >&6; }
2932 if test -z "$MKDIR_P"; then
2933 if test ${ac_cv_path_mkdir+y}
2934 then :
2935 printf %s "(cached) " >&6
2936 else $as_nop
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2939 do
2940 IFS=$as_save_IFS
2941 case $as_dir in #(((
2942 '') as_dir=./ ;;
2943 */) ;;
2944 *) as_dir=$as_dir/ ;;
2945 esac
2946 for ac_prog in mkdir gmkdir; do
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2949 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950 'mkdir ('*'coreutils) '* | \
2951 'BusyBox '* | \
2952 'mkdir (fileutils) '4.1*)
2953 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2954 break 3;;
2955 esac
2956 done
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962
2963 test -d ./--version && rmdir ./--version
2964 if test ${ac_cv_path_mkdir+y}; then
2965 MKDIR_P="$ac_cv_path_mkdir -p"
2966 else
2967 # As a last resort, use the slow shell script. Don't cache a
2968 # value for MKDIR_P within a source directory, because that will
2969 # break other packages using the cache if that directory is
2970 # removed, or if the value is a relative name.
2971 MKDIR_P="$ac_install_sh -d"
2972 fi
2973 fi
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975 printf "%s\n" "$MKDIR_P" >&6; }
2976
2977 for ac_prog in gawk mawk nawk awk
2978 do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 printf %s "checking for $ac_word... " >&6; }
2983 if test ${ac_cv_prog_AWK+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else $as_nop
2987 if test -n "$AWK"; then
2988 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 case $as_dir in #(((
2995 '') as_dir=./ ;;
2996 */) ;;
2997 *) as_dir=$as_dir/ ;;
2998 esac
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_AWK="$ac_prog"
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 AWK=$ac_cv_prog_AWK
3012 if test -n "$AWK"; then
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3014 printf "%s\n" "$AWK" >&6; }
3015 else
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 printf "%s\n" "no" >&6; }
3018 fi
3019
3020
3021 test -n "$AWK" && break
3022 done
3023
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3025 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3026 set x ${MAKE-make}
3027 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3028 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3029 then :
3030 printf %s "(cached) " >&6
3031 else $as_nop
3032 cat >conftest.make <<\_ACEOF
3033 SHELL = /bin/sh
3034 all:
3035 @echo '@@@%%%=$(MAKE)=@@@%%%'
3036 _ACEOF
3037 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3038 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039 *@@@%%%=?*=@@@%%%*)
3040 eval ac_cv_prog_make_${ac_make}_set=yes;;
3041 *)
3042 eval ac_cv_prog_make_${ac_make}_set=no;;
3043 esac
3044 rm -f conftest.make
3045 fi
3046 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 printf "%s\n" "yes" >&6; }
3049 SET_MAKE=
3050 else
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 printf "%s\n" "no" >&6; }
3053 SET_MAKE="MAKE=${MAKE-make}"
3054 fi
3055
3056 rm -rf .tst 2>/dev/null
3057 mkdir .tst 2>/dev/null
3058 if test -d .tst; then
3059 am__leading_dot=.
3060 else
3061 am__leading_dot=_
3062 fi
3063 rmdir .tst 2>/dev/null
3064
3065 # Check whether --enable-silent-rules was given.
3066 if test ${enable_silent_rules+y}
3067 then :
3068 enableval=$enable_silent_rules;
3069 fi
3070
3071 case $enable_silent_rules in # (((
3072 yes) AM_DEFAULT_VERBOSITY=0;;
3073 no) AM_DEFAULT_VERBOSITY=1;;
3074 *) AM_DEFAULT_VERBOSITY=1;;
3075 esac
3076 am_make=${MAKE-make}
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3078 printf %s "checking whether $am_make supports nested variables... " >&6; }
3079 if test ${am_cv_make_support_nested_variables+y}
3080 then :
3081 printf %s "(cached) " >&6
3082 else $as_nop
3083 if printf "%s\n" 'TRUE=$(BAR$(V))
3084 BAR0=false
3085 BAR1=true
3086 V=1
3087 am__doit:
3088 @$(TRUE)
3089 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3090 am_cv_make_support_nested_variables=yes
3091 else
3092 am_cv_make_support_nested_variables=no
3093 fi
3094 fi
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3098 AM_V='$(V)'
3099 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3100 else
3101 AM_V=$AM_DEFAULT_VERBOSITY
3102 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3103 fi
3104 AM_BACKSLASH='\'
3105
3106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108 # is not polluted with repeated "-I."
3109 am__isrc=' -I$(srcdir)'
3110 # test to see if srcdir already configured
3111 if test -f $srcdir/config.status; then
3112 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3113 fi
3114 fi
3115
3116 # test whether we have cygpath
3117 if test -z "$CYGPATH_W"; then
3118 if (cygpath --version) >/dev/null 2>/dev/null; then
3119 CYGPATH_W='cygpath -w'
3120 else
3121 CYGPATH_W=echo
3122 fi
3123 fi
3124
3125
3126 # Define the identity of the package.
3127 PACKAGE='libXfixes'
3128 VERSION='6.0.1'
3129
3130
3131 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3132
3133
3134 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3135
3136 # Some tools Automake needs.
3137
3138 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3139
3140
3141 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3142
3143
3144 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3145
3146
3147 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3148
3149
3150 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3151
3152 # For better backward compatibility. To be removed once Automake 1.9.x
3153 # dies out for good. For more background, see:
3154 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3155 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3156 mkdir_p='$(MKDIR_P)'
3157
3158 # We need awk for the "check" target (and possibly the TAP driver). The
3159 # system "awk" is bad on some platforms.
3160 # Always define AMTAR for backward compatibility. Yes, it's still used
3161 # in the wild :-( We should find a proper way to deprecate it ...
3162 AMTAR='$${TAR-tar}'
3163
3164
3165 # We'll loop over all known methods to create a tar archive until one works.
3166 _am_tools='gnutar pax cpio none'
3167
3168 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3169
3170
3171
3172
3173
3174 # Variables for tags utilities; see am/tags.am
3175 if test -z "$CTAGS"; then
3176 CTAGS=ctags
3177 fi
3178
3179 if test -z "$ETAGS"; then
3180 ETAGS=etags
3181 fi
3182
3183 if test -z "$CSCOPE"; then
3184 CSCOPE=cscope
3185 fi
3186
3187
3188
3189 # POSIX will say in a future version that running "rm -f" with no argument
3190 # is OK; and we want to be able to make that assumption in our Makefile
3191 # recipes. So use an aggressive probe to check that the usage we want is
3192 # actually supported "in the wild" to an acceptable degree.
3193 # See automake bug#10828.
3194 # To make any issue more visible, cause the running configure to be aborted
3195 # by default if the 'rm' program in use doesn't match our expectations; the
3196 # user can still override this though.
3197 if rm -f && rm -fr && rm -rf; then : OK; else
3198 cat >&2 <<'END'
3199 Oops!
3200
3201 Your 'rm' program seems unable to run without file operands specified
3202 on the command line, even when the '-f' option is present. This is contrary
3203 to the behaviour of most rm programs out there, and not conforming with
3204 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3205
3206 Please tell bug-automake@gnu.org about your system, including the value
3207 of your $PATH and any error possibly output before this message. This
3208 can help us improve future automake versions.
3209
3210 END
3211 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3212 echo 'Configuration will proceed anyway, since you have set the' >&2
3213 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3214 echo >&2
3215 else
3216 cat >&2 <<'END'
3217 Aborting the configuration process, to ensure you take notice of the issue.
3218
3219 You can download and install GNU coreutils to get an 'rm' implementation
3220 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3221
3222 If you want to complete the configuration process using your problematic
3223 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3224 to "yes", and re-run configure.
3225
3226 END
3227 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3228 fi
3229 fi
3230
3231
3232 # Initialize libtool
3233 case `pwd` in
3234 *\ * | *\ *)
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3236 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3237 esac
3238
3239
3240
3241 macro_version='2.4.7'
3242 macro_revision='2.4.7'
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257 ltmain=$ac_aux_dir/ltmain.sh
3258
3259
3260
3261 # Make sure we can run config.sub.
3262 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3263 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3264
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3266 printf %s "checking build system type... " >&6; }
3267 if test ${ac_cv_build+y}
3268 then :
3269 printf %s "(cached) " >&6
3270 else $as_nop
3271 ac_build_alias=$build_alias
3272 test "x$ac_build_alias" = x &&
3273 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3274 test "x$ac_build_alias" = x &&
3275 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3276 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3277 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3278
3279 fi
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3281 printf "%s\n" "$ac_cv_build" >&6; }
3282 case $ac_cv_build in
3283 *-*-*) ;;
3284 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3285 esac
3286 build=$ac_cv_build
3287 ac_save_IFS=$IFS; IFS='-'
3288 set x $ac_cv_build
3289 shift
3290 build_cpu=$1
3291 build_vendor=$2
3292 shift; shift
3293 # Remember, the first character of IFS is used to create $*,
3294 # except with old shells:
3295 build_os=$*
3296 IFS=$ac_save_IFS
3297 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3298
3299
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3301 printf %s "checking host system type... " >&6; }
3302 if test ${ac_cv_host+y}
3303 then :
3304 printf %s "(cached) " >&6
3305 else $as_nop
3306 if test "x$host_alias" = x; then
3307 ac_cv_host=$ac_cv_build
3308 else
3309 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3310 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3311 fi
3312
3313 fi
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3315 printf "%s\n" "$ac_cv_host" >&6; }
3316 case $ac_cv_host in
3317 *-*-*) ;;
3318 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3319 esac
3320 host=$ac_cv_host
3321 ac_save_IFS=$IFS; IFS='-'
3322 set x $ac_cv_host
3323 shift
3324 host_cpu=$1
3325 host_vendor=$2
3326 shift; shift
3327 # Remember, the first character of IFS is used to create $*,
3328 # except with old shells:
3329 host_os=$*
3330 IFS=$ac_save_IFS
3331 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3332
3333
3334 # Backslashify metacharacters that are still active within
3335 # double-quoted strings.
3336 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3337
3338 # Same as above, but do not quote variable references.
3339 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3340
3341 # Sed substitution to delay expansion of an escaped shell variable in a
3342 # double_quote_subst'ed string.
3343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3344
3345 # Sed substitution to delay expansion of an escaped single quote.
3346 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3347
3348 # Sed substitution to avoid accidental globbing in evaled expressions
3349 no_glob_subst='s/\*/\\\*/g'
3350
3351 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3354
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3356 printf %s "checking how to print strings... " >&6; }
3357 # Test print first, because it will be a builtin if present.
3358 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3359 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3360 ECHO='print -r --'
3361 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3362 ECHO='printf %s\n'
3363 else
3364 # Use this function as a fallback that always works.
3365 func_fallback_echo ()
3366 {
3367 eval 'cat <<_LTECHO_EOF
3368 $1
3369 _LTECHO_EOF'
3370 }
3371 ECHO='func_fallback_echo'
3372 fi
3373
3374 # func_echo_all arg...
3375 # Invoke $ECHO with all args, space-separated.
3376 func_echo_all ()
3377 {
3378 $ECHO ""
3379 }
3380
3381 case $ECHO in
3382 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3383 printf "%s\n" "printf" >&6; } ;;
3384 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3385 printf "%s\n" "print -r" >&6; } ;;
3386 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3387 printf "%s\n" "cat" >&6; } ;;
3388 esac
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412 DEPDIR="${am__leading_dot}deps"
3413
3414 ac_config_commands="$ac_config_commands depfiles"
3415
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3417 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3418 cat > confinc.mk << 'END'
3419 am__doit:
3420 @echo this is the am__doit target >confinc.out
3421 .PHONY: am__doit
3422 END
3423 am__include="#"
3424 am__quote=
3425 # BSD make does it like this.
3426 echo '.include "confinc.mk" # ignored' > confmf.BSD
3427 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3428 echo 'include confinc.mk # ignored' > confmf.GNU
3429 _am_result=no
3430 for s in GNU BSD; do
3431 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3432 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436 case $?:`cat confinc.out 2>/dev/null` in #(
3437 '0:this is the am__doit target') :
3438 case $s in #(
3439 BSD) :
3440 am__include='.include' am__quote='"' ;; #(
3441 *) :
3442 am__include='include' am__quote='' ;;
3443 esac ;; #(
3444 *) :
3445 ;;
3446 esac
3447 if test "$am__include" != "#"; then
3448 _am_result="yes ($s style)"
3449 break
3450 fi
3451 done
3452 rm -f confinc.* confmf.*
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3454 printf "%s\n" "${_am_result}" >&6; }
3455
3456 # Check whether --enable-dependency-tracking was given.
3457 if test ${enable_dependency_tracking+y}
3458 then :
3459 enableval=$enable_dependency_tracking;
3460 fi
3461
3462 if test "x$enable_dependency_tracking" != xno; then
3463 am_depcomp="$ac_aux_dir/depcomp"
3464 AMDEPBACKSLASH='\'
3465 am__nodep='_no'
3466 fi
3467 if test "x$enable_dependency_tracking" != xno; then
3468 AMDEP_TRUE=
3469 AMDEP_FALSE='#'
3470 else
3471 AMDEP_TRUE='#'
3472 AMDEP_FALSE=
3473 fi
3474
3475
3476 ac_ext=c
3477 ac_cpp='$CPP $CPPFLAGS'
3478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 printf %s "checking for $ac_word... " >&6; }
3486 if test ${ac_cv_prog_CC+y}
3487 then :
3488 printf %s "(cached) " >&6
3489 else $as_nop
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496 IFS=$as_save_IFS
3497 case $as_dir in #(((
3498 '') as_dir=./ ;;
3499 */) ;;
3500 *) as_dir=$as_dir/ ;;
3501 esac
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508 done
3509 done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 printf "%s\n" "$CC" >&6; }
3518 else
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 printf "%s\n" "no" >&6; }
3521 fi
3522
3523
3524 fi
3525 if test -z "$ac_cv_prog_CC"; then
3526 ac_ct_CC=$CC
3527 # Extract the first word of "gcc", so it can be a program name with args.
3528 set dummy gcc; ac_word=$2
3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 printf %s "checking for $ac_word... " >&6; }
3531 if test ${ac_cv_prog_ac_ct_CC+y}
3532 then :
3533 printf %s "(cached) " >&6
3534 else $as_nop
3535 if test -n "$ac_ct_CC"; then
3536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 case $as_dir in #(((
3543 '') as_dir=./ ;;
3544 */) ;;
3545 *) as_dir=$as_dir/ ;;
3546 esac
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_ac_ct_CC="gcc"
3550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3562 printf "%s\n" "$ac_ct_CC" >&6; }
3563 else
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 printf "%s\n" "no" >&6; }
3566 fi
3567
3568 if test "x$ac_ct_CC" = x; then
3569 CC=""
3570 else
3571 case $cross_compiling:$ac_tool_warned in
3572 yes:)
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3575 ac_tool_warned=yes ;;
3576 esac
3577 CC=$ac_ct_CC
3578 fi
3579 else
3580 CC="$ac_cv_prog_CC"
3581 fi
3582
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}cc; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_CC+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else $as_nop
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 case $as_dir in #(((
3601 '') as_dir=./ ;;
3602 */) ;;
3603 *) as_dir=$as_dir/ ;;
3604 esac
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_CC="${ac_tool_prefix}cc"
3608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 printf "%s\n" "$CC" >&6; }
3621 else
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 printf "%s\n" "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 fi
3629 if test -z "$CC"; then
3630 # Extract the first word of "cc", so it can be a program name with args.
3631 set dummy cc; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else $as_nop
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 case $as_dir in #(((
3647 '') as_dir=./ ;;
3648 */) ;;
3649 *) as_dir=$as_dir/ ;;
3650 esac
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3653 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3654 ac_prog_rejected=yes
3655 continue
3656 fi
3657 ac_cv_prog_CC="cc"
3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663 IFS=$as_save_IFS
3664
3665 if test $ac_prog_rejected = yes; then
3666 # We found a bogon in the path, so make sure we never use it.
3667 set dummy $ac_cv_prog_CC
3668 shift
3669 if test $# != 0; then
3670 # We chose a different compiler from the bogus one.
3671 # However, it has the same basename, so the bogon will be chosen
3672 # first if we set CC to just the basename; use the full file name.
3673 shift
3674 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3675 fi
3676 fi
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 printf "%s\n" "$CC" >&6; }
3683 else
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 if test -z "$CC"; then
3691 if test -n "$ac_tool_prefix"; then
3692 for ac_prog in cl.exe
3693 do
3694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 printf %s "checking for $ac_word... " >&6; }
3698 if test ${ac_cv_prog_CC+y}
3699 then :
3700 printf %s "(cached) " >&6
3701 else $as_nop
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC="$CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 case $as_dir in #(((
3710 '') as_dir=./ ;;
3711 */) ;;
3712 *) as_dir=$as_dir/ ;;
3713 esac
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720 done
3721 done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 printf "%s\n" "$CC" >&6; }
3730 else
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 printf "%s\n" "no" >&6; }
3733 fi
3734
3735
3736 test -n "$CC" && break
3737 done
3738 fi
3739 if test -z "$CC"; then
3740 ac_ct_CC=$CC
3741 for ac_prog in cl.exe
3742 do
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 printf %s "checking for $ac_word... " >&6; }
3747 if test ${ac_cv_prog_ac_ct_CC+y}
3748 then :
3749 printf %s "(cached) " >&6
3750 else $as_nop
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757 IFS=$as_save_IFS
3758 case $as_dir in #(((
3759 '') as_dir=./ ;;
3760 */) ;;
3761 *) as_dir=$as_dir/ ;;
3762 esac
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_ac_ct_CC="$ac_prog"
3766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3767 break 2
3768 fi
3769 done
3770 done
3771 IFS=$as_save_IFS
3772
3773 fi
3774 fi
3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3776 if test -n "$ac_ct_CC"; then
3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3778 printf "%s\n" "$ac_ct_CC" >&6; }
3779 else
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 printf "%s\n" "no" >&6; }
3782 fi
3783
3784
3785 test -n "$ac_ct_CC" && break
3786 done
3787
3788 if test "x$ac_ct_CC" = x; then
3789 CC=""
3790 else
3791 case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797 CC=$ac_ct_CC
3798 fi
3799 fi
3800
3801 fi
3802 if test -z "$CC"; then
3803 if test -n "$ac_tool_prefix"; then
3804 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3805 set dummy ${ac_tool_prefix}clang; ac_word=$2
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 printf %s "checking for $ac_word... " >&6; }
3808 if test ${ac_cv_prog_CC+y}
3809 then :
3810 printf %s "(cached) " >&6
3811 else $as_nop
3812 if test -n "$CC"; then
3813 ac_cv_prog_CC="$CC" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818 IFS=$as_save_IFS
3819 case $as_dir in #(((
3820 '') as_dir=./ ;;
3821 */) ;;
3822 *) as_dir=$as_dir/ ;;
3823 esac
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_CC="${ac_tool_prefix}clang"
3827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830 done
3831 done
3832 IFS=$as_save_IFS
3833
3834 fi
3835 fi
3836 CC=$ac_cv_prog_CC
3837 if test -n "$CC"; then
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3839 printf "%s\n" "$CC" >&6; }
3840 else
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 printf "%s\n" "no" >&6; }
3843 fi
3844
3845
3846 fi
3847 if test -z "$ac_cv_prog_CC"; then
3848 ac_ct_CC=$CC
3849 # Extract the first word of "clang", so it can be a program name with args.
3850 set dummy clang; ac_word=$2
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 printf %s "checking for $ac_word... " >&6; }
3853 if test ${ac_cv_prog_ac_ct_CC+y}
3854 then :
3855 printf %s "(cached) " >&6
3856 else $as_nop
3857 if test -n "$ac_ct_CC"; then
3858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3859 else
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 for as_dir in $PATH
3862 do
3863 IFS=$as_save_IFS
3864 case $as_dir in #(((
3865 '') as_dir=./ ;;
3866 */) ;;
3867 *) as_dir=$as_dir/ ;;
3868 esac
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_ac_ct_CC="clang"
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 fi
3880 fi
3881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3882 if test -n "$ac_ct_CC"; then
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3884 printf "%s\n" "$ac_ct_CC" >&6; }
3885 else
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 printf "%s\n" "no" >&6; }
3888 fi
3889
3890 if test "x$ac_ct_CC" = x; then
3891 CC=""
3892 else
3893 case $cross_compiling:$ac_tool_warned in
3894 yes:)
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897 ac_tool_warned=yes ;;
3898 esac
3899 CC=$ac_ct_CC
3900 fi
3901 else
3902 CC="$ac_cv_prog_CC"
3903 fi
3904
3905 fi
3906
3907
3908 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "no acceptable C compiler found in \$PATH
3911 See \`config.log' for more details" "$LINENO" 5; }
3912
3913 # Provide some information about the compiler.
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915 set X $ac_compile
3916 ac_compiler=$2
3917 for ac_option in --version -v -V -qversion -version; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 printf "%s\n" "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3926 ac_status=$?
3927 if test -s conftest.err; then
3928 sed '10a\
3929 ... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3932 fi
3933 rm -f conftest.er1 conftest.err
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 done
3937
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940
3941 int
3942 main (void)
3943 {
3944
3945 ;
3946 return 0;
3947 }
3948 _ACEOF
3949 ac_clean_files_save=$ac_clean_files
3950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3951 # Try to create an executable without -o first, disregard a.out.
3952 # It will help us diagnose broken compilers, and finding out an intuition
3953 # of exeext.
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3955 printf %s "checking whether the C compiler works... " >&6; }
3956 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958 # The possible output files:
3959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
3961 ac_rmfiles=
3962 for ac_file in $ac_files
3963 do
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 esac
3968 done
3969 rm -f $ac_rmfiles
3970
3971 if { { ac_try="$ac_link_default"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 printf "%s\n" "$ac_try_echo"; } >&5
3978 (eval "$ac_link_default") 2>&5
3979 ac_status=$?
3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }
3982 then :
3983 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3984 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3985 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3986 # so that the user can short-circuit this test for compilers unknown to
3987 # Autoconf.
3988 for ac_file in $ac_files ''
3989 do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3993 ;;
3994 [ab].out )
3995 # We found the default executable, but exeext='' is most
3996 # certainly right.
3997 break;;
3998 *.* )
3999 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4000 then :; else
4001 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4002 fi
4003 # We set ac_cv_exeext here because the later test for it is not
4004 # safe: cross compilers may not add the suffix if given an `-o'
4005 # argument, so we may need to know it at that point already.
4006 # Even if this section looks crufty: it has the advantage of
4007 # actually working.
4008 break;;
4009 * )
4010 break;;
4011 esac
4012 done
4013 test "$ac_cv_exeext" = no && ac_cv_exeext=
4014
4015 else $as_nop
4016 ac_file=''
4017 fi
4018 if test -z "$ac_file"
4019 then :
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 printf "%s\n" "no" >&6; }
4022 printf "%s\n" "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error 77 "C compiler cannot create executables
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 else $as_nop
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 printf "%s\n" "yes" >&6; }
4032 fi
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4034 printf %s "checking for C compiler default output file name... " >&6; }
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4036 printf "%s\n" "$ac_file" >&6; }
4037 ac_exeext=$ac_cv_exeext
4038
4039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4040 ac_clean_files=$ac_clean_files_save
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4042 printf %s "checking for suffix of executables... " >&6; }
4043 if { { ac_try="$ac_link"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 printf "%s\n" "$ac_try_echo"; } >&5
4050 (eval "$ac_link") 2>&5
4051 ac_status=$?
4052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }
4054 then :
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4058 # `rm'.
4059 for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064 break;;
4065 * ) break;;
4066 esac
4067 done
4068 else $as_nop
4069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details" "$LINENO" 5; }
4073 fi
4074 rm -f conftest conftest$ac_cv_exeext
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 printf "%s\n" "$ac_cv_exeext" >&6; }
4077
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4080 ac_exeext=$EXEEXT
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <stdio.h>
4084 int
4085 main (void)
4086 {
4087 FILE *f = fopen ("conftest.out", "w");
4088 return ferror (f) || fclose (f) != 0;
4089
4090 ;
4091 return 0;
4092 }
4093 _ACEOF
4094 ac_clean_files="$ac_clean_files conftest.out"
4095 # Check that the compiler produces executables we can run. If not, either
4096 # the compiler is broken, or we cross compile.
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4098 printf %s "checking whether we are cross compiling... " >&6; }
4099 if test "$cross_compiling" != yes; then
4100 { { ac_try="$ac_link"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 printf "%s\n" "$ac_try_echo"; } >&5
4107 (eval "$ac_link") 2>&5
4108 ac_status=$?
4109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4111 if { ac_try='./conftest$ac_cv_exeext'
4112 { { case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 printf "%s\n" "$ac_try_echo"; } >&5
4118 (eval "$ac_try") 2>&5
4119 ac_status=$?
4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; }; then
4122 cross_compiling=no
4123 else
4124 if test "$cross_compiling" = maybe; then
4125 cross_compiling=yes
4126 else
4127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error 77 "cannot run C compiled programs.
4130 If you meant to cross compile, use \`--host'.
4131 See \`config.log' for more details" "$LINENO" 5; }
4132 fi
4133 fi
4134 fi
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4136 printf "%s\n" "$cross_compiling" >&6; }
4137
4138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4139 ac_clean_files=$ac_clean_files_save
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4141 printf %s "checking for suffix of object files... " >&6; }
4142 if test ${ac_cv_objext+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main (void)
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.o conftest.obj
4158 if { { ac_try="$ac_compile"
4159 case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162 esac
4163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4164 printf "%s\n" "$ac_try_echo"; } >&5
4165 (eval "$ac_compile") 2>&5
4166 ac_status=$?
4167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4168 test $ac_status = 0; }
4169 then :
4170 for ac_file in conftest.o conftest.obj conftest.*; do
4171 test -f "$ac_file" || continue;
4172 case $ac_file in
4173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4175 break;;
4176 esac
4177 done
4178 else $as_nop
4179 printf "%s\n" "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4184 as_fn_error $? "cannot compute suffix of object files: cannot compile
4185 See \`config.log' for more details" "$LINENO" 5; }
4186 fi
4187 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4188 fi
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4190 printf "%s\n" "$ac_cv_objext" >&6; }
4191 OBJEXT=$ac_cv_objext
4192 ac_objext=$OBJEXT
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4194 printf %s "checking whether the compiler supports GNU C... " >&6; }
4195 if test ${ac_cv_c_compiler_gnu+y}
4196 then :
4197 printf %s "(cached) " >&6
4198 else $as_nop
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201
4202 int
4203 main (void)
4204 {
4205 #ifndef __GNUC__
4206 choke me
4207 #endif
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 if ac_fn_c_try_compile "$LINENO"
4214 then :
4215 ac_compiler_gnu=yes
4216 else $as_nop
4217 ac_compiler_gnu=no
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4221
4222 fi
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4224 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227 if test $ac_compiler_gnu = yes; then
4228 GCC=yes
4229 else
4230 GCC=
4231 fi
4232 ac_test_CFLAGS=${CFLAGS+y}
4233 ac_save_CFLAGS=$CFLAGS
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4235 printf %s "checking whether $CC accepts -g... " >&6; }
4236 if test ${ac_cv_prog_cc_g+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 ac_save_c_werror_flag=$ac_c_werror_flag
4241 ac_c_werror_flag=yes
4242 ac_cv_prog_cc_g=no
4243 CFLAGS="-g"
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246
4247 int
4248 main (void)
4249 {
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"
4256 then :
4257 ac_cv_prog_cc_g=yes
4258 else $as_nop
4259 CFLAGS=""
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 int
4264 main (void)
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 if ac_fn_c_try_compile "$LINENO"
4272 then :
4273
4274 else $as_nop
4275 ac_c_werror_flag=$ac_save_c_werror_flag
4276 CFLAGS="-g"
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279
4280 int
4281 main (void)
4282 {
4283
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"
4289 then :
4290 ac_cv_prog_cc_g=yes
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4293 fi
4294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4295 fi
4296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4297 ac_c_werror_flag=$ac_save_c_werror_flag
4298 fi
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4300 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4301 if test $ac_test_CFLAGS; then
4302 CFLAGS=$ac_save_CFLAGS
4303 elif test $ac_cv_prog_cc_g = yes; then
4304 if test "$GCC" = yes; then
4305 CFLAGS="-g -O2"
4306 else
4307 CFLAGS="-g"
4308 fi
4309 else
4310 if test "$GCC" = yes; then
4311 CFLAGS="-O2"
4312 else
4313 CFLAGS=
4314 fi
4315 fi
4316 ac_prog_cc_stdc=no
4317 if test x$ac_prog_cc_stdc = xno
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4320 printf %s "checking for $CC option to enable C11 features... " >&6; }
4321 if test ${ac_cv_prog_cc_c11+y}
4322 then :
4323 printf %s "(cached) " >&6
4324 else $as_nop
4325 ac_cv_prog_cc_c11=no
4326 ac_save_CC=$CC
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329 $ac_c_conftest_c11_program
4330 _ACEOF
4331 for ac_arg in '' -std=gnu11
4332 do
4333 CC="$ac_save_CC $ac_arg"
4334 if ac_fn_c_try_compile "$LINENO"
4335 then :
4336 ac_cv_prog_cc_c11=$ac_arg
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.beam
4339 test "x$ac_cv_prog_cc_c11" != "xno" && break
4340 done
4341 rm -f conftest.$ac_ext
4342 CC=$ac_save_CC
4343 fi
4344
4345 if test "x$ac_cv_prog_cc_c11" = xno
4346 then :
4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4348 printf "%s\n" "unsupported" >&6; }
4349 else $as_nop
4350 if test "x$ac_cv_prog_cc_c11" = x
4351 then :
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4353 printf "%s\n" "none needed" >&6; }
4354 else $as_nop
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4356 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4357 CC="$CC $ac_cv_prog_cc_c11"
4358 fi
4359 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4360 ac_prog_cc_stdc=c11
4361 fi
4362 fi
4363 if test x$ac_prog_cc_stdc = xno
4364 then :
4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4366 printf %s "checking for $CC option to enable C99 features... " >&6; }
4367 if test ${ac_cv_prog_cc_c99+y}
4368 then :
4369 printf %s "(cached) " >&6
4370 else $as_nop
4371 ac_cv_prog_cc_c99=no
4372 ac_save_CC=$CC
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 $ac_c_conftest_c99_program
4376 _ACEOF
4377 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4378 do
4379 CC="$ac_save_CC $ac_arg"
4380 if ac_fn_c_try_compile "$LINENO"
4381 then :
4382 ac_cv_prog_cc_c99=$ac_arg
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.beam
4385 test "x$ac_cv_prog_cc_c99" != "xno" && break
4386 done
4387 rm -f conftest.$ac_ext
4388 CC=$ac_save_CC
4389 fi
4390
4391 if test "x$ac_cv_prog_cc_c99" = xno
4392 then :
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4394 printf "%s\n" "unsupported" >&6; }
4395 else $as_nop
4396 if test "x$ac_cv_prog_cc_c99" = x
4397 then :
4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4399 printf "%s\n" "none needed" >&6; }
4400 else $as_nop
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4402 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4403 CC="$CC $ac_cv_prog_cc_c99"
4404 fi
4405 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4406 ac_prog_cc_stdc=c99
4407 fi
4408 fi
4409 if test x$ac_prog_cc_stdc = xno
4410 then :
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4412 printf %s "checking for $CC option to enable C89 features... " >&6; }
4413 if test ${ac_cv_prog_cc_c89+y}
4414 then :
4415 printf %s "(cached) " >&6
4416 else $as_nop
4417 ac_cv_prog_cc_c89=no
4418 ac_save_CC=$CC
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4421 $ac_c_conftest_c89_program
4422 _ACEOF
4423 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4424 do
4425 CC="$ac_save_CC $ac_arg"
4426 if ac_fn_c_try_compile "$LINENO"
4427 then :
4428 ac_cv_prog_cc_c89=$ac_arg
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.beam
4431 test "x$ac_cv_prog_cc_c89" != "xno" && break
4432 done
4433 rm -f conftest.$ac_ext
4434 CC=$ac_save_CC
4435 fi
4436
4437 if test "x$ac_cv_prog_cc_c89" = xno
4438 then :
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4440 printf "%s\n" "unsupported" >&6; }
4441 else $as_nop
4442 if test "x$ac_cv_prog_cc_c89" = x
4443 then :
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4445 printf "%s\n" "none needed" >&6; }
4446 else $as_nop
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4448 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4449 CC="$CC $ac_cv_prog_cc_c89"
4450 fi
4451 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4452 ac_prog_cc_stdc=c89
4453 fi
4454 fi
4455
4456 ac_ext=c
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
4462
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4469 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4470 if test ${am_cv_prog_cc_c_o+y}
4471 then :
4472 printf %s "(cached) " >&6
4473 else $as_nop
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476
4477 int
4478 main (void)
4479 {
4480
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 # Make sure it works both with $CC and with simple cc.
4486 # Following AC_PROG_CC_C_O, we do the test twice because some
4487 # compilers refuse to overwrite an existing .o file with -o,
4488 # though they will create one.
4489 am_cv_prog_cc_c_o=yes
4490 for am_i in 1 2; do
4491 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4492 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } \
4496 && test -f conftest2.$ac_objext; then
4497 : OK
4498 else
4499 am_cv_prog_cc_c_o=no
4500 break
4501 fi
4502 done
4503 rm -f core conftest*
4504 unset am_i
4505 fi
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4507 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4508 if test "$am_cv_prog_cc_c_o" != yes; then
4509 # Losing compiler, so override with the script.
4510 # FIXME: It is wrong to rewrite CC.
4511 # But if we don't then we get into trouble of one sort or another.
4512 # A longer-term fix would be to have automake use am__CC in this case,
4513 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4514 CC="$am_aux_dir/compile $CC"
4515 fi
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
4522
4523 depcc="$CC" am_compiler_list=
4524
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4526 printf %s "checking dependency style of $depcc... " >&6; }
4527 if test ${am_cv_CC_dependencies_compiler_type+y}
4528 then :
4529 printf %s "(cached) " >&6
4530 else $as_nop
4531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4532 # We make a subdir and do the tests there. Otherwise we can end up
4533 # making bogus files that we don't know about and never remove. For
4534 # instance it was reported that on HP-UX the gcc test will end up
4535 # making a dummy file named 'D' -- because '-MD' means "put the output
4536 # in D".
4537 rm -rf conftest.dir
4538 mkdir conftest.dir
4539 # Copy depcomp to subdir because otherwise we won't find it if we're
4540 # using a relative directory.
4541 cp "$am_depcomp" conftest.dir
4542 cd conftest.dir
4543 # We will build objects and dependencies in a subdirectory because
4544 # it helps to detect inapplicable dependency modes. For instance
4545 # both Tru64's cc and ICC support -MD to output dependencies as a
4546 # side effect of compilation, but ICC will put the dependencies in
4547 # the current directory while Tru64 will put them in the object
4548 # directory.
4549 mkdir sub
4550
4551 am_cv_CC_dependencies_compiler_type=none
4552 if test "$am_compiler_list" = ""; then
4553 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4554 fi
4555 am__universal=false
4556 case " $depcc " in #(
4557 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4558 esac
4559
4560 for depmode in $am_compiler_list; do
4561 # Setup a source with many dependencies, because some compilers
4562 # like to wrap large dependency lists on column 80 (with \), and
4563 # we should not choose a depcomp mode which is confused by this.
4564 #
4565 # We need to recreate these files for each test, as the compiler may
4566 # overwrite some of them when testing with obscure command lines.
4567 # This happens at least with the AIX C compiler.
4568 : > sub/conftest.c
4569 for i in 1 2 3 4 5 6; do
4570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4571 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4572 # Solaris 10 /bin/sh.
4573 echo '/* dummy */' > sub/conftst$i.h
4574 done
4575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4576
4577 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4578 # mode. It turns out that the SunPro C++ compiler does not properly
4579 # handle '-M -o', and we need to detect this. Also, some Intel
4580 # versions had trouble with output in subdirs.
4581 am__obj=sub/conftest.${OBJEXT-o}
4582 am__minus_obj="-o $am__obj"
4583 case $depmode in
4584 gcc)
4585 # This depmode causes a compiler race in universal mode.
4586 test "$am__universal" = false || continue
4587 ;;
4588 nosideeffect)
4589 # After this tag, mechanisms are not by side-effect, so they'll
4590 # only be used when explicitly requested.
4591 if test "x$enable_dependency_tracking" = xyes; then
4592 continue
4593 else
4594 break
4595 fi
4596 ;;
4597 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4598 # This compiler won't grok '-c -o', but also, the minuso test has
4599 # not run yet. These depmodes are late enough in the game, and
4600 # so weak that their functioning should not be impacted.
4601 am__obj=conftest.${OBJEXT-o}
4602 am__minus_obj=
4603 ;;
4604 none) break ;;
4605 esac
4606 if depmode=$depmode \
4607 source=sub/conftest.c object=$am__obj \
4608 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4609 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4610 >/dev/null 2>conftest.err &&
4611 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4612 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4613 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4614 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4615 # icc doesn't choke on unknown options, it will just issue warnings
4616 # or remarks (even with -Werror). So we grep stderr for any message
4617 # that says an option was ignored or not supported.
4618 # When given -MP, icc 7.0 and 7.1 complain thusly:
4619 # icc: Command line warning: ignoring option '-M'; no argument required
4620 # The diagnosis changed in icc 8.0:
4621 # icc: Command line remark: option '-MP' not supported
4622 if (grep 'ignoring option' conftest.err ||
4623 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4624 am_cv_CC_dependencies_compiler_type=$depmode
4625 break
4626 fi
4627 fi
4628 done
4629
4630 cd ..
4631 rm -rf conftest.dir
4632 else
4633 am_cv_CC_dependencies_compiler_type=none
4634 fi
4635
4636 fi
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4638 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4639 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4640
4641 if
4642 test "x$enable_dependency_tracking" != xno \
4643 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4644 am__fastdepCC_TRUE=
4645 am__fastdepCC_FALSE='#'
4646 else
4647 am__fastdepCC_TRUE='#'
4648 am__fastdepCC_FALSE=
4649 fi
4650
4651
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4653 printf %s "checking for a sed that does not truncate output... " >&6; }
4654 if test ${ac_cv_path_SED+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else $as_nop
4658 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4659 for ac_i in 1 2 3 4 5 6 7; do
4660 ac_script="$ac_script$as_nl$ac_script"
4661 done
4662 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4663 { ac_script=; unset ac_script;}
4664 if test -z "$SED"; then
4665 ac_path_SED_found=false
4666 # Loop through the user's path and test for each of PROGNAME-LIST
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670 IFS=$as_save_IFS
4671 case $as_dir in #(((
4672 '') as_dir=./ ;;
4673 */) ;;
4674 *) as_dir=$as_dir/ ;;
4675 esac
4676 for ac_prog in sed gsed
4677 do
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4680 as_fn_executable_p "$ac_path_SED" || continue
4681 # Check for GNU ac_path_SED and select it if it is found.
4682 # Check for GNU $ac_path_SED
4683 case `"$ac_path_SED" --version 2>&1` in
4684 *GNU*)
4685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4686 *)
4687 ac_count=0
4688 printf %s 0123456789 >"conftest.in"
4689 while :
4690 do
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 printf "%s\n" '' >> "conftest.nl"
4695 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4697 as_fn_arith $ac_count + 1 && ac_count=$as_val
4698 if test $ac_count -gt ${ac_path_SED_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_SED="$ac_path_SED"
4701 ac_path_SED_max=$ac_count
4702 fi
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4705 done
4706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4707 esac
4708
4709 $ac_path_SED_found && break 3
4710 done
4711 done
4712 done
4713 IFS=$as_save_IFS
4714 if test -z "$ac_cv_path_SED"; then
4715 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4716 fi
4717 else
4718 ac_cv_path_SED=$SED
4719 fi
4720
4721 fi
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4723 printf "%s\n" "$ac_cv_path_SED" >&6; }
4724 SED="$ac_cv_path_SED"
4725 rm -f conftest.sed
4726
4727 test -z "$SED" && SED=sed
4728 Xsed="$SED -e 1s/^X//"
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4741 printf %s "checking for grep that handles long lines and -e... " >&6; }
4742 if test ${ac_cv_path_GREP+y}
4743 then :
4744 printf %s "(cached) " >&6
4745 else $as_nop
4746 if test -z "$GREP"; then
4747 ac_path_GREP_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4751 do
4752 IFS=$as_save_IFS
4753 case $as_dir in #(((
4754 '') as_dir=./ ;;
4755 */) ;;
4756 *) as_dir=$as_dir/ ;;
4757 esac
4758 for ac_prog in grep ggrep
4759 do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4762 as_fn_executable_p "$ac_path_GREP" || continue
4763 # Check for GNU ac_path_GREP and select it if it is found.
4764 # Check for GNU $ac_path_GREP
4765 case `"$ac_path_GREP" --version 2>&1` in
4766 *GNU*)
4767 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4768 *)
4769 ac_count=0
4770 printf %s 0123456789 >"conftest.in"
4771 while :
4772 do
4773 cat "conftest.in" "conftest.in" >"conftest.tmp"
4774 mv "conftest.tmp" "conftest.in"
4775 cp "conftest.in" "conftest.nl"
4776 printf "%s\n" 'GREP' >> "conftest.nl"
4777 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779 as_fn_arith $ac_count + 1 && ac_count=$as_val
4780 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4781 # Best one so far, save it but keep looking for a better one
4782 ac_cv_path_GREP="$ac_path_GREP"
4783 ac_path_GREP_max=$ac_count
4784 fi
4785 # 10*(2^10) chars as input seems more than enough
4786 test $ac_count -gt 10 && break
4787 done
4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791 $ac_path_GREP_found && break 3
4792 done
4793 done
4794 done
4795 IFS=$as_save_IFS
4796 if test -z "$ac_cv_path_GREP"; then
4797 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798 fi
4799 else
4800 ac_cv_path_GREP=$GREP
4801 fi
4802
4803 fi
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4805 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4806 GREP="$ac_cv_path_GREP"
4807
4808
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4810 printf %s "checking for egrep... " >&6; }
4811 if test ${ac_cv_path_EGREP+y}
4812 then :
4813 printf %s "(cached) " >&6
4814 else $as_nop
4815 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4816 then ac_cv_path_EGREP="$GREP -E"
4817 else
4818 if test -z "$EGREP"; then
4819 ac_path_EGREP_found=false
4820 # Loop through the user's path and test for each of PROGNAME-LIST
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 do
4824 IFS=$as_save_IFS
4825 case $as_dir in #(((
4826 '') as_dir=./ ;;
4827 */) ;;
4828 *) as_dir=$as_dir/ ;;
4829 esac
4830 for ac_prog in egrep
4831 do
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4834 as_fn_executable_p "$ac_path_EGREP" || continue
4835 # Check for GNU ac_path_EGREP and select it if it is found.
4836 # Check for GNU $ac_path_EGREP
4837 case `"$ac_path_EGREP" --version 2>&1` in
4838 *GNU*)
4839 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4840 *)
4841 ac_count=0
4842 printf %s 0123456789 >"conftest.in"
4843 while :
4844 do
4845 cat "conftest.in" "conftest.in" >"conftest.tmp"
4846 mv "conftest.tmp" "conftest.in"
4847 cp "conftest.in" "conftest.nl"
4848 printf "%s\n" 'EGREP' >> "conftest.nl"
4849 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4851 as_fn_arith $ac_count + 1 && ac_count=$as_val
4852 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4853 # Best one so far, save it but keep looking for a better one
4854 ac_cv_path_EGREP="$ac_path_EGREP"
4855 ac_path_EGREP_max=$ac_count
4856 fi
4857 # 10*(2^10) chars as input seems more than enough
4858 test $ac_count -gt 10 && break
4859 done
4860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4861 esac
4862
4863 $ac_path_EGREP_found && break 3
4864 done
4865 done
4866 done
4867 IFS=$as_save_IFS
4868 if test -z "$ac_cv_path_EGREP"; then
4869 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870 fi
4871 else
4872 ac_cv_path_EGREP=$EGREP
4873 fi
4874
4875 fi
4876 fi
4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4878 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4879 EGREP="$ac_cv_path_EGREP"
4880
4881
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4883 printf %s "checking for fgrep... " >&6; }
4884 if test ${ac_cv_path_FGREP+y}
4885 then :
4886 printf %s "(cached) " >&6
4887 else $as_nop
4888 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4889 then ac_cv_path_FGREP="$GREP -F"
4890 else
4891 if test -z "$FGREP"; then
4892 ac_path_FGREP_found=false
4893 # Loop through the user's path and test for each of PROGNAME-LIST
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4896 do
4897 IFS=$as_save_IFS
4898 case $as_dir in #(((
4899 '') as_dir=./ ;;
4900 */) ;;
4901 *) as_dir=$as_dir/ ;;
4902 esac
4903 for ac_prog in fgrep
4904 do
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4907 as_fn_executable_p "$ac_path_FGREP" || continue
4908 # Check for GNU ac_path_FGREP and select it if it is found.
4909 # Check for GNU $ac_path_FGREP
4910 case `"$ac_path_FGREP" --version 2>&1` in
4911 *GNU*)
4912 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4913 *)
4914 ac_count=0
4915 printf %s 0123456789 >"conftest.in"
4916 while :
4917 do
4918 cat "conftest.in" "conftest.in" >"conftest.tmp"
4919 mv "conftest.tmp" "conftest.in"
4920 cp "conftest.in" "conftest.nl"
4921 printf "%s\n" 'FGREP' >> "conftest.nl"
4922 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924 as_fn_arith $ac_count + 1 && ac_count=$as_val
4925 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4926 # Best one so far, save it but keep looking for a better one
4927 ac_cv_path_FGREP="$ac_path_FGREP"
4928 ac_path_FGREP_max=$ac_count
4929 fi
4930 # 10*(2^10) chars as input seems more than enough
4931 test $ac_count -gt 10 && break
4932 done
4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4934 esac
4935
4936 $ac_path_FGREP_found && break 3
4937 done
4938 done
4939 done
4940 IFS=$as_save_IFS
4941 if test -z "$ac_cv_path_FGREP"; then
4942 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4943 fi
4944 else
4945 ac_cv_path_FGREP=$FGREP
4946 fi
4947
4948 fi
4949 fi
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4951 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4952 FGREP="$ac_cv_path_FGREP"
4953
4954
4955 test -z "$GREP" && GREP=grep
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975 # Check whether --with-gnu-ld was given.
4976 if test ${with_gnu_ld+y}
4977 then :
4978 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4979 else $as_nop
4980 with_gnu_ld=no
4981 fi
4982
4983 ac_prog=ld
4984 if test yes = "$GCC"; then
4985 # Check if gcc -print-prog-name=ld gives a path.
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4987 printf %s "checking for ld used by $CC... " >&6; }
4988 case $host in
4989 *-*-mingw*)
4990 # gcc leaves a trailing carriage return, which upsets mingw
4991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4992 *)
4993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4994 esac
4995 case $ac_prog in
4996 # Accept absolute paths.
4997 [\\/]* | ?:[\\/]*)
4998 re_direlt='/[^/][^/]*/\.\./'
4999 # Canonicalize the pathname of ld
5000 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5001 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5002 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5003 done
5004 test -z "$LD" && LD=$ac_prog
5005 ;;
5006 "")
5007 # If it fails, then pretend we aren't using GCC.
5008 ac_prog=ld
5009 ;;
5010 *)
5011 # If it is relative, then search for the first ld in PATH.
5012 with_gnu_ld=unknown
5013 ;;
5014 esac
5015 elif test yes = "$with_gnu_ld"; then
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5017 printf %s "checking for GNU ld... " >&6; }
5018 else
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5020 printf %s "checking for non-GNU ld... " >&6; }
5021 fi
5022 if test ${lt_cv_path_LD+y}
5023 then :
5024 printf %s "(cached) " >&6
5025 else $as_nop
5026 if test -z "$LD"; then
5027 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5028 for ac_dir in $PATH; do
5029 IFS=$lt_save_ifs
5030 test -z "$ac_dir" && ac_dir=.
5031 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5032 lt_cv_path_LD=$ac_dir/$ac_prog
5033 # Check to see if the program is GNU ld. I'd rather use --version,
5034 # but apparently some variants of GNU ld only accept -v.
5035 # Break only if it was the GNU/non-GNU ld that we prefer.
5036 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5037 *GNU* | *'with BFD'*)
5038 test no != "$with_gnu_ld" && break
5039 ;;
5040 *)
5041 test yes != "$with_gnu_ld" && break
5042 ;;
5043 esac
5044 fi
5045 done
5046 IFS=$lt_save_ifs
5047 else
5048 lt_cv_path_LD=$LD # Let the user override the test with a path.
5049 fi
5050 fi
5051
5052 LD=$lt_cv_path_LD
5053 if test -n "$LD"; then
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5055 printf "%s\n" "$LD" >&6; }
5056 else
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 printf "%s\n" "no" >&6; }
5059 fi
5060 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5062 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5063 if test ${lt_cv_prog_gnu_ld+y}
5064 then :
5065 printf %s "(cached) " >&6
5066 else $as_nop
5067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5068 case `$LD -v 2>&1 </dev/null` in
5069 *GNU* | *'with BFD'*)
5070 lt_cv_prog_gnu_ld=yes
5071 ;;
5072 *)
5073 lt_cv_prog_gnu_ld=no
5074 ;;
5075 esac
5076 fi
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5078 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5079 with_gnu_ld=$lt_cv_prog_gnu_ld
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5090 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5091 if test ${lt_cv_path_NM+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else $as_nop
5095 if test -n "$NM"; then
5096 # Let the user override the test.
5097 lt_cv_path_NM=$NM
5098 else
5099 lt_nm_to_check=${ac_tool_prefix}nm
5100 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5101 lt_nm_to_check="$lt_nm_to_check nm"
5102 fi
5103 for lt_tmp_nm in $lt_nm_to_check; do
5104 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5105 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5106 IFS=$lt_save_ifs
5107 test -z "$ac_dir" && ac_dir=.
5108 tmp_nm=$ac_dir/$lt_tmp_nm
5109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5110 # Check to see if the nm accepts a BSD-compat flag.
5111 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5112 # nm: unknown option "B" ignored
5113 # Tru64's nm complains that /dev/null is an invalid object file
5114 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5115 case $build_os in
5116 mingw*) lt_bad_file=conftest.nm/nofile ;;
5117 *) lt_bad_file=/dev/null ;;
5118 esac
5119 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5120 *$lt_bad_file* | *'Invalid file or object type'*)
5121 lt_cv_path_NM="$tmp_nm -B"
5122 break 2
5123 ;;
5124 *)
5125 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5126 */dev/null*)
5127 lt_cv_path_NM="$tmp_nm -p"
5128 break 2
5129 ;;
5130 *)
5131 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5132 continue # so that we can try to find one that supports BSD flags
5133 ;;
5134 esac
5135 ;;
5136 esac
5137 fi
5138 done
5139 IFS=$lt_save_ifs
5140 done
5141 : ${lt_cv_path_NM=no}
5142 fi
5143 fi
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5145 printf "%s\n" "$lt_cv_path_NM" >&6; }
5146 if test no != "$lt_cv_path_NM"; then
5147 NM=$lt_cv_path_NM
5148 else
5149 # Didn't find any BSD compatible name lister, look for dumpbin.
5150 if test -n "$DUMPBIN"; then :
5151 # Let the user override the test.
5152 else
5153 if test -n "$ac_tool_prefix"; then
5154 for ac_prog in dumpbin "link -dump"
5155 do
5156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 printf %s "checking for $ac_word... " >&6; }
5160 if test ${ac_cv_prog_DUMPBIN+y}
5161 then :
5162 printf %s "(cached) " >&6
5163 else $as_nop
5164 if test -n "$DUMPBIN"; then
5165 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 case $as_dir in #(((
5172 '') as_dir=./ ;;
5173 */) ;;
5174 *) as_dir=$as_dir/ ;;
5175 esac
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 DUMPBIN=$ac_cv_prog_DUMPBIN
5189 if test -n "$DUMPBIN"; then
5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5191 printf "%s\n" "$DUMPBIN" >&6; }
5192 else
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 printf "%s\n" "no" >&6; }
5195 fi
5196
5197
5198 test -n "$DUMPBIN" && break
5199 done
5200 fi
5201 if test -z "$DUMPBIN"; then
5202 ac_ct_DUMPBIN=$DUMPBIN
5203 for ac_prog in dumpbin "link -dump"
5204 do
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 printf %s "checking for $ac_word... " >&6; }
5209 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5210 then :
5211 printf %s "(cached) " >&6
5212 else $as_nop
5213 if test -n "$ac_ct_DUMPBIN"; then
5214 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 case $as_dir in #(((
5221 '') as_dir=./ ;;
5222 */) ;;
5223 *) as_dir=$as_dir/ ;;
5224 esac
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5238 if test -n "$ac_ct_DUMPBIN"; then
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5240 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5241 else
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 printf "%s\n" "no" >&6; }
5244 fi
5245
5246
5247 test -n "$ac_ct_DUMPBIN" && break
5248 done
5249
5250 if test "x$ac_ct_DUMPBIN" = x; then
5251 DUMPBIN=":"
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 DUMPBIN=$ac_ct_DUMPBIN
5260 fi
5261 fi
5262
5263 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5264 *COFF*)
5265 DUMPBIN="$DUMPBIN -symbols -headers"
5266 ;;
5267 *)
5268 DUMPBIN=:
5269 ;;
5270 esac
5271 fi
5272
5273 if test : != "$DUMPBIN"; then
5274 NM=$DUMPBIN
5275 fi
5276 fi
5277 test -z "$NM" && NM=nm
5278
5279
5280
5281
5282
5283
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5285 printf %s "checking the name lister ($NM) interface... " >&6; }
5286 if test ${lt_cv_nm_interface+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else $as_nop
5290 lt_cv_nm_interface="BSD nm"
5291 echo "int some_variable = 0;" > conftest.$ac_ext
5292 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5293 (eval "$ac_compile" 2>conftest.err)
5294 cat conftest.err >&5
5295 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5296 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5297 cat conftest.err >&5
5298 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5299 cat conftest.out >&5
5300 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5301 lt_cv_nm_interface="MS dumpbin"
5302 fi
5303 rm -f conftest*
5304 fi
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5306 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5307
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5309 printf %s "checking whether ln -s works... " >&6; }
5310 LN_S=$as_ln_s
5311 if test "$LN_S" = "ln -s"; then
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313 printf "%s\n" "yes" >&6; }
5314 else
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5316 printf "%s\n" "no, using $LN_S" >&6; }
5317 fi
5318
5319 # find the maximum length of command line arguments
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5321 printf %s "checking the maximum length of command line arguments... " >&6; }
5322 if test ${lt_cv_sys_max_cmd_len+y}
5323 then :
5324 printf %s "(cached) " >&6
5325 else $as_nop
5326 i=0
5327 teststring=ABCD
5328
5329 case $build_os in
5330 msdosdjgpp*)
5331 # On DJGPP, this test can blow up pretty badly due to problems in libc
5332 # (any single argument exceeding 2000 bytes causes a buffer overrun
5333 # during glob expansion). Even if it were fixed, the result of this
5334 # check would be larger than it should be.
5335 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5336 ;;
5337
5338 gnu*)
5339 # Under GNU Hurd, this test is not required because there is
5340 # no limit to the length of command line arguments.
5341 # Libtool will interpret -1 as no limit whatsoever
5342 lt_cv_sys_max_cmd_len=-1;
5343 ;;
5344
5345 cygwin* | mingw* | cegcc*)
5346 # On Win9x/ME, this test blows up -- it succeeds, but takes
5347 # about 5 minutes as the teststring grows exponentially.
5348 # Worse, since 9x/ME are not pre-emptively multitasking,
5349 # you end up with a "frozen" computer, even though with patience
5350 # the test eventually succeeds (with a max line length of 256k).
5351 # Instead, let's just punt: use the minimum linelength reported by
5352 # all of the supported platforms: 8192 (on NT/2K/XP).
5353 lt_cv_sys_max_cmd_len=8192;
5354 ;;
5355
5356 mint*)
5357 # On MiNT this can take a long time and run out of memory.
5358 lt_cv_sys_max_cmd_len=8192;
5359 ;;
5360
5361 amigaos*)
5362 # On AmigaOS with pdksh, this test takes hours, literally.
5363 # So we just punt and use a minimum line length of 8192.
5364 lt_cv_sys_max_cmd_len=8192;
5365 ;;
5366
5367 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5368 # This has been around since 386BSD, at least. Likely further.
5369 if test -x /sbin/sysctl; then
5370 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5371 elif test -x /usr/sbin/sysctl; then
5372 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5373 else
5374 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5375 fi
5376 # And add a safety zone
5377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5378 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5379 ;;
5380
5381 interix*)
5382 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5383 lt_cv_sys_max_cmd_len=196608
5384 ;;
5385
5386 os2*)
5387 # The test takes a long time on OS/2.
5388 lt_cv_sys_max_cmd_len=8192
5389 ;;
5390
5391 osf*)
5392 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5393 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5394 # nice to cause kernel panics so lets avoid the loop below.
5395 # First set a reasonable default.
5396 lt_cv_sys_max_cmd_len=16384
5397 #
5398 if test -x /sbin/sysconfig; then
5399 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5400 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5401 esac
5402 fi
5403 ;;
5404 sco3.2v5*)
5405 lt_cv_sys_max_cmd_len=102400
5406 ;;
5407 sysv5* | sco5v6* | sysv4.2uw2*)
5408 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5409 if test -n "$kargmax"; then
5410 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5411 else
5412 lt_cv_sys_max_cmd_len=32768
5413 fi
5414 ;;
5415 *)
5416 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5417 if test -n "$lt_cv_sys_max_cmd_len" && \
5418 test undefined != "$lt_cv_sys_max_cmd_len"; then
5419 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5421 else
5422 # Make teststring a little bigger before we do anything with it.
5423 # a 1K string should be a reasonable start.
5424 for i in 1 2 3 4 5 6 7 8; do
5425 teststring=$teststring$teststring
5426 done
5427 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5428 # If test is not a shell built-in, we'll probably end up computing a
5429 # maximum length that is only half of the actual maximum length, but
5430 # we can't tell.
5431 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5432 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5433 test 17 != "$i" # 1/2 MB should be enough
5434 do
5435 i=`expr $i + 1`
5436 teststring=$teststring$teststring
5437 done
5438 # Only check the string length outside the loop.
5439 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5440 teststring=
5441 # Add a significant safety factor because C++ compilers can tack on
5442 # massive amounts of additional arguments before passing them to the
5443 # linker. It appears as though 1/2 is a usable value.
5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5445 fi
5446 ;;
5447 esac
5448
5449 fi
5450
5451 if test -n "$lt_cv_sys_max_cmd_len"; then
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5453 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5454 else
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5456 printf "%s\n" "none" >&6; }
5457 fi
5458 max_cmd_len=$lt_cv_sys_max_cmd_len
5459
5460
5461
5462
5463
5464
5465 : ${CP="cp -f"}
5466 : ${MV="mv -f"}
5467 : ${RM="rm -f"}
5468
5469 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5470 lt_unset=unset
5471 else
5472 lt_unset=false
5473 fi
5474
5475
5476
5477
5478
5479 # test EBCDIC or ASCII
5480 case `echo X|tr X '\101'` in
5481 A) # ASCII based system
5482 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5483 lt_SP2NL='tr \040 \012'
5484 lt_NL2SP='tr \015\012 \040\040'
5485 ;;
5486 *) # EBCDIC based system
5487 lt_SP2NL='tr \100 \n'
5488 lt_NL2SP='tr \r\n \100\100'
5489 ;;
5490 esac
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5501 printf %s "checking how to convert $build file names to $host format... " >&6; }
5502 if test ${lt_cv_to_host_file_cmd+y}
5503 then :
5504 printf %s "(cached) " >&6
5505 else $as_nop
5506 case $host in
5507 *-*-mingw* )
5508 case $build in
5509 *-*-mingw* ) # actually msys
5510 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5511 ;;
5512 *-*-cygwin* )
5513 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5514 ;;
5515 * ) # otherwise, assume *nix
5516 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5517 ;;
5518 esac
5519 ;;
5520 *-*-cygwin* )
5521 case $build in
5522 *-*-mingw* ) # actually msys
5523 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5524 ;;
5525 *-*-cygwin* )
5526 lt_cv_to_host_file_cmd=func_convert_file_noop
5527 ;;
5528 * ) # otherwise, assume *nix
5529 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5530 ;;
5531 esac
5532 ;;
5533 * ) # unhandled hosts (and "normal" native builds)
5534 lt_cv_to_host_file_cmd=func_convert_file_noop
5535 ;;
5536 esac
5537
5538 fi
5539
5540 to_host_file_cmd=$lt_cv_to_host_file_cmd
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5542 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5543
5544
5545
5546
5547
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5549 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5550 if test ${lt_cv_to_tool_file_cmd+y}
5551 then :
5552 printf %s "(cached) " >&6
5553 else $as_nop
5554 #assume ordinary cross tools, or native build.
5555 lt_cv_to_tool_file_cmd=func_convert_file_noop
5556 case $host in
5557 *-*-mingw* )
5558 case $build in
5559 *-*-mingw* ) # actually msys
5560 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5561 ;;
5562 esac
5563 ;;
5564 esac
5565
5566 fi
5567
5568 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5570 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5571
5572
5573
5574
5575
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5577 printf %s "checking for $LD option to reload object files... " >&6; }
5578 if test ${lt_cv_ld_reload_flag+y}
5579 then :
5580 printf %s "(cached) " >&6
5581 else $as_nop
5582 lt_cv_ld_reload_flag='-r'
5583 fi
5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5585 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5586 reload_flag=$lt_cv_ld_reload_flag
5587 case $reload_flag in
5588 "" | " "*) ;;
5589 *) reload_flag=" $reload_flag" ;;
5590 esac
5591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5592 case $host_os in
5593 cygwin* | mingw* | pw32* | cegcc*)
5594 if test yes != "$GCC"; then
5595 reload_cmds=false
5596 fi
5597 ;;
5598 darwin*)
5599 if test yes = "$GCC"; then
5600 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5601 else
5602 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5603 fi
5604 ;;
5605 esac
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}file; ac_word=$2
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 printf %s "checking for $ac_word... " >&6; }
5620 if test ${ac_cv_prog_FILECMD+y}
5621 then :
5622 printf %s "(cached) " >&6
5623 else $as_nop
5624 if test -n "$FILECMD"; then
5625 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630 IFS=$as_save_IFS
5631 case $as_dir in #(((
5632 '') as_dir=./ ;;
5633 */) ;;
5634 *) as_dir=$as_dir/ ;;
5635 esac
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5638 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5640 break 2
5641 fi
5642 done
5643 done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 FILECMD=$ac_cv_prog_FILECMD
5649 if test -n "$FILECMD"; then
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5651 printf "%s\n" "$FILECMD" >&6; }
5652 else
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 printf "%s\n" "no" >&6; }
5655 fi
5656
5657
5658 fi
5659 if test -z "$ac_cv_prog_FILECMD"; then
5660 ac_ct_FILECMD=$FILECMD
5661 # Extract the first word of "file", so it can be a program name with args.
5662 set dummy file; ac_word=$2
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 printf %s "checking for $ac_word... " >&6; }
5665 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5666 then :
5667 printf %s "(cached) " >&6
5668 else $as_nop
5669 if test -n "$ac_ct_FILECMD"; then
5670 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 case $as_dir in #(((
5677 '') as_dir=./ ;;
5678 */) ;;
5679 *) as_dir=$as_dir/ ;;
5680 esac
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_FILECMD="file"
5684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5689 IFS=$as_save_IFS
5690
5691 fi
5692 fi
5693 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5694 if test -n "$ac_ct_FILECMD"; then
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5696 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5697 else
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 printf "%s\n" "no" >&6; }
5700 fi
5701
5702 if test "x$ac_ct_FILECMD" = x; then
5703 FILECMD=":"
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711 FILECMD=$ac_ct_FILECMD
5712 fi
5713 else
5714 FILECMD="$ac_cv_prog_FILECMD"
5715 fi
5716
5717
5718
5719
5720
5721
5722
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 printf %s "checking for $ac_word... " >&6; }
5728 if test ${ac_cv_prog_OBJDUMP+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else $as_nop
5732 if test -n "$OBJDUMP"; then
5733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738 IFS=$as_save_IFS
5739 case $as_dir in #(((
5740 '') as_dir=./ ;;
5741 */) ;;
5742 *) as_dir=$as_dir/ ;;
5743 esac
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5746 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 OBJDUMP=$ac_cv_prog_OBJDUMP
5757 if test -n "$OBJDUMP"; then
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5759 printf "%s\n" "$OBJDUMP" >&6; }
5760 else
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 printf "%s\n" "no" >&6; }
5763 fi
5764
5765
5766 fi
5767 if test -z "$ac_cv_prog_OBJDUMP"; then
5768 ac_ct_OBJDUMP=$OBJDUMP
5769 # Extract the first word of "objdump", so it can be a program name with args.
5770 set dummy objdump; ac_word=$2
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 printf %s "checking for $ac_word... " >&6; }
5773 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else $as_nop
5777 if test -n "$ac_ct_OBJDUMP"; then
5778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783 IFS=$as_save_IFS
5784 case $as_dir in #(((
5785 '') as_dir=./ ;;
5786 */) ;;
5787 *) as_dir=$as_dir/ ;;
5788 esac
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5793 break 2
5794 fi
5795 done
5796 done
5797 IFS=$as_save_IFS
5798
5799 fi
5800 fi
5801 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5802 if test -n "$ac_ct_OBJDUMP"; then
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5804 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5805 else
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 printf "%s\n" "no" >&6; }
5808 fi
5809
5810 if test "x$ac_ct_OBJDUMP" = x; then
5811 OBJDUMP="false"
5812 else
5813 case $cross_compiling:$ac_tool_warned in
5814 yes:)
5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5817 ac_tool_warned=yes ;;
5818 esac
5819 OBJDUMP=$ac_ct_OBJDUMP
5820 fi
5821 else
5822 OBJDUMP="$ac_cv_prog_OBJDUMP"
5823 fi
5824
5825 test -z "$OBJDUMP" && OBJDUMP=objdump
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5836 printf %s "checking how to recognize dependent libraries... " >&6; }
5837 if test ${lt_cv_deplibs_check_method+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 lt_cv_file_magic_cmd='$MAGIC_CMD'
5842 lt_cv_file_magic_test_file=
5843 lt_cv_deplibs_check_method='unknown'
5844 # Need to set the preceding variable on all platforms that support
5845 # interlibrary dependencies.
5846 # 'none' -- dependencies not supported.
5847 # 'unknown' -- same as none, but documents that we really don't know.
5848 # 'pass_all' -- all dependencies passed with no checks.
5849 # 'test_compile' -- check by making test program.
5850 # 'file_magic [[regex]]' -- check by looking for files in library path
5851 # that responds to the $file_magic_cmd with a given extended regex.
5852 # If you have 'file' or equivalent on your system and you're not sure
5853 # whether 'pass_all' will *always* work, you probably want this one.
5854
5855 case $host_os in
5856 aix[4-9]*)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859
5860 beos*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864 bsdi[45]*)
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5866 lt_cv_file_magic_cmd='$FILECMD -L'
5867 lt_cv_file_magic_test_file=/shlib/libc.so
5868 ;;
5869
5870 cygwin*)
5871 # func_win32_libid is a shell function defined in ltmain.sh
5872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5873 lt_cv_file_magic_cmd='func_win32_libid'
5874 ;;
5875
5876 mingw* | pw32*)
5877 # Base MSYS/MinGW do not provide the 'file' command needed by
5878 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5879 # unless we find 'file', for example because we are cross-compiling.
5880 if ( file / ) >/dev/null 2>&1; then
5881 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5882 lt_cv_file_magic_cmd='func_win32_libid'
5883 else
5884 # Keep this pattern in sync with the one in func_win32_libid.
5885 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5886 lt_cv_file_magic_cmd='$OBJDUMP -f'
5887 fi
5888 ;;
5889
5890 cegcc*)
5891 # use the weaker test based on 'objdump'. See mingw*.
5892 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5893 lt_cv_file_magic_cmd='$OBJDUMP -f'
5894 ;;
5895
5896 darwin* | rhapsody*)
5897 lt_cv_deplibs_check_method=pass_all
5898 ;;
5899
5900 freebsd* | dragonfly* | midnightbsd*)
5901 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5902 case $host_cpu in
5903 i*86 )
5904 # Not sure whether the presence of OpenBSD here was a mistake.
5905 # Let's accept both of them until this is cleared up.
5906 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5907 lt_cv_file_magic_cmd=$FILECMD
5908 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5909 ;;
5910 esac
5911 else
5912 lt_cv_deplibs_check_method=pass_all
5913 fi
5914 ;;
5915
5916 haiku*)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
5920 hpux10.20* | hpux11*)
5921 lt_cv_file_magic_cmd=$FILECMD
5922 case $host_cpu in
5923 ia64*)
5924 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5925 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5926 ;;
5927 hppa*64*)
5928 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]'
5929 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5930 ;;
5931 *)
5932 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5933 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5934 ;;
5935 esac
5936 ;;
5937
5938 interix[3-9]*)
5939 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5941 ;;
5942
5943 irix5* | irix6* | nonstopux*)
5944 case $LD in
5945 *-32|*"-32 ") libmagic=32-bit;;
5946 *-n32|*"-n32 ") libmagic=N32;;
5947 *-64|*"-64 ") libmagic=64-bit;;
5948 *) libmagic=never-match;;
5949 esac
5950 lt_cv_deplibs_check_method=pass_all
5951 ;;
5952
5953 # This must be glibc/ELF.
5954 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 netbsd*)
5959 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5961 else
5962 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5963 fi
5964 ;;
5965
5966 newos6*)
5967 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5968 lt_cv_file_magic_cmd=$FILECMD
5969 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5970 ;;
5971
5972 *nto* | *qnx*)
5973 lt_cv_deplibs_check_method=pass_all
5974 ;;
5975
5976 openbsd* | bitrig*)
5977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5979 else
5980 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5981 fi
5982 ;;
5983
5984 osf3* | osf4* | osf5*)
5985 lt_cv_deplibs_check_method=pass_all
5986 ;;
5987
5988 rdos*)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991
5992 solaris*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5997 lt_cv_deplibs_check_method=pass_all
5998 ;;
5999
6000 sysv4 | sysv4.3*)
6001 case $host_vendor in
6002 motorola)
6003 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]'
6004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6005 ;;
6006 ncr)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009 sequent)
6010 lt_cv_file_magic_cmd='/bin/file'
6011 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6012 ;;
6013 sni)
6014 lt_cv_file_magic_cmd='/bin/file'
6015 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6016 lt_cv_file_magic_test_file=/lib/libc.so
6017 ;;
6018 siemens)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021 pc)
6022 lt_cv_deplibs_check_method=pass_all
6023 ;;
6024 esac
6025 ;;
6026
6027 tpf*)
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
6030 os2*)
6031 lt_cv_deplibs_check_method=pass_all
6032 ;;
6033 esac
6034
6035 fi
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6037 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6038
6039 file_magic_glob=
6040 want_nocaseglob=no
6041 if test "$build" = "$host"; then
6042 case $host_os in
6043 mingw* | pw32*)
6044 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6045 want_nocaseglob=yes
6046 else
6047 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6048 fi
6049 ;;
6050 esac
6051 fi
6052
6053 file_magic_cmd=$lt_cv_file_magic_cmd
6054 deplibs_check_method=$lt_cv_deplibs_check_method
6055 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 printf %s "checking for $ac_word... " >&6; }
6083 if test ${ac_cv_prog_DLLTOOL+y}
6084 then :
6085 printf %s "(cached) " >&6
6086 else $as_nop
6087 if test -n "$DLLTOOL"; then
6088 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6089 else
6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 for as_dir in $PATH
6092 do
6093 IFS=$as_save_IFS
6094 case $as_dir in #(((
6095 '') as_dir=./ ;;
6096 */) ;;
6097 *) as_dir=$as_dir/ ;;
6098 esac
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6101 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105 done
6106 done
6107 IFS=$as_save_IFS
6108
6109 fi
6110 fi
6111 DLLTOOL=$ac_cv_prog_DLLTOOL
6112 if test -n "$DLLTOOL"; then
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6114 printf "%s\n" "$DLLTOOL" >&6; }
6115 else
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117 printf "%s\n" "no" >&6; }
6118 fi
6119
6120
6121 fi
6122 if test -z "$ac_cv_prog_DLLTOOL"; then
6123 ac_ct_DLLTOOL=$DLLTOOL
6124 # Extract the first word of "dlltool", so it can be a program name with args.
6125 set dummy dlltool; ac_word=$2
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127 printf %s "checking for $ac_word... " >&6; }
6128 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else $as_nop
6132 if test -n "$ac_ct_DLLTOOL"; then
6133 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 case $as_dir in #(((
6140 '') as_dir=./ ;;
6141 */) ;;
6142 *) as_dir=$as_dir/ ;;
6143 esac
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6148 break 2
6149 fi
6150 done
6151 done
6152 IFS=$as_save_IFS
6153
6154 fi
6155 fi
6156 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6157 if test -n "$ac_ct_DLLTOOL"; then
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6159 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6160 else
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 printf "%s\n" "no" >&6; }
6163 fi
6164
6165 if test "x$ac_ct_DLLTOOL" = x; then
6166 DLLTOOL="false"
6167 else
6168 case $cross_compiling:$ac_tool_warned in
6169 yes:)
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6173 esac
6174 DLLTOOL=$ac_ct_DLLTOOL
6175 fi
6176 else
6177 DLLTOOL="$ac_cv_prog_DLLTOOL"
6178 fi
6179
6180 test -z "$DLLTOOL" && DLLTOOL=dlltool
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6192 printf %s "checking how to associate runtime and link libraries... " >&6; }
6193 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6194 then :
6195 printf %s "(cached) " >&6
6196 else $as_nop
6197 lt_cv_sharedlib_from_linklib_cmd='unknown'
6198
6199 case $host_os in
6200 cygwin* | mingw* | pw32* | cegcc*)
6201 # two different shell functions defined in ltmain.sh;
6202 # decide which one to use based on capabilities of $DLLTOOL
6203 case `$DLLTOOL --help 2>&1` in
6204 *--identify-strict*)
6205 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6206 ;;
6207 *)
6208 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6209 ;;
6210 esac
6211 ;;
6212 *)
6213 # fallback: assume linklib IS sharedlib
6214 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6215 ;;
6216 esac
6217
6218 fi
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6220 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6221 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6222 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6223
6224
6225
6226
6227
6228
6229
6230
6231 if test -n "$ac_tool_prefix"; then
6232 for ac_prog in ar
6233 do
6234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 printf %s "checking for $ac_word... " >&6; }
6238 if test ${ac_cv_prog_AR+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else $as_nop
6242 if test -n "$AR"; then
6243 ac_cv_prog_AR="$AR" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 case $as_dir in #(((
6250 '') as_dir=./ ;;
6251 */) ;;
6252 *) as_dir=$as_dir/ ;;
6253 esac
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6256 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260 done
6261 done
6262 IFS=$as_save_IFS
6263
6264 fi
6265 fi
6266 AR=$ac_cv_prog_AR
6267 if test -n "$AR"; then
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6269 printf "%s\n" "$AR" >&6; }
6270 else
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 printf "%s\n" "no" >&6; }
6273 fi
6274
6275
6276 test -n "$AR" && break
6277 done
6278 fi
6279 if test -z "$AR"; then
6280 ac_ct_AR=$AR
6281 for ac_prog in ar
6282 do
6283 # Extract the first word of "$ac_prog", so it can be a program name with args.
6284 set dummy $ac_prog; ac_word=$2
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 printf %s "checking for $ac_word... " >&6; }
6287 if test ${ac_cv_prog_ac_ct_AR+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else $as_nop
6291 if test -n "$ac_ct_AR"; then
6292 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297 IFS=$as_save_IFS
6298 case $as_dir in #(((
6299 '') as_dir=./ ;;
6300 */) ;;
6301 *) as_dir=$as_dir/ ;;
6302 esac
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_ac_ct_AR="$ac_prog"
6306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6316 if test -n "$ac_ct_AR"; then
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6318 printf "%s\n" "$ac_ct_AR" >&6; }
6319 else
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 printf "%s\n" "no" >&6; }
6322 fi
6323
6324
6325 test -n "$ac_ct_AR" && break
6326 done
6327
6328 if test "x$ac_ct_AR" = x; then
6329 AR="false"
6330 else
6331 case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337 AR=$ac_ct_AR
6338 fi
6339 fi
6340
6341 : ${AR=ar}
6342
6343
6344
6345
6346
6347
6348 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6349 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6350 # higher priority because thats what people were doing historically (setting
6351 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6352 # variable obsoleted/removed.
6353
6354 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6355 lt_ar_flags=$AR_FLAGS
6356
6357
6358
6359
6360
6361
6362 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6363 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6364
6365
6366
6367
6368
6369
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6371 printf %s "checking for archiver @FILE support... " >&6; }
6372 if test ${lt_cv_ar_at_file+y}
6373 then :
6374 printf %s "(cached) " >&6
6375 else $as_nop
6376 lt_cv_ar_at_file=no
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6379
6380 int
6381 main (void)
6382 {
6383
6384 ;
6385 return 0;
6386 }
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"
6389 then :
6390 echo conftest.$ac_objext > conftest.lst
6391 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6393 (eval $lt_ar_try) 2>&5
6394 ac_status=$?
6395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }
6397 if test 0 -eq "$ac_status"; then
6398 # Ensure the archiver fails upon bogus file names.
6399 rm -f conftest.$ac_objext libconftest.a
6400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6401 (eval $lt_ar_try) 2>&5
6402 ac_status=$?
6403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }
6405 if test 0 -ne "$ac_status"; then
6406 lt_cv_ar_at_file=@
6407 fi
6408 fi
6409 rm -f conftest.* libconftest.a
6410
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6413
6414 fi
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6416 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6417
6418 if test no = "$lt_cv_ar_at_file"; then
6419 archiver_list_spec=
6420 else
6421 archiver_list_spec=$lt_cv_ar_at_file
6422 fi
6423
6424
6425
6426
6427
6428
6429
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}strip; ac_word=$2
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 printf %s "checking for $ac_word... " >&6; }
6435 if test ${ac_cv_prog_STRIP+y}
6436 then :
6437 printf %s "(cached) " >&6
6438 else $as_nop
6439 if test -n "$STRIP"; then
6440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 case $as_dir in #(((
6447 '') as_dir=./ ;;
6448 */) ;;
6449 *) as_dir=$as_dir/ ;;
6450 esac
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 STRIP=$ac_cv_prog_STRIP
6464 if test -n "$STRIP"; then
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6466 printf "%s\n" "$STRIP" >&6; }
6467 else
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 printf "%s\n" "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_STRIP"; then
6475 ac_ct_STRIP=$STRIP
6476 # Extract the first word of "strip", so it can be a program name with args.
6477 set dummy strip; ac_word=$2
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 printf %s "checking for $ac_word... " >&6; }
6480 if test ${ac_cv_prog_ac_ct_STRIP+y}
6481 then :
6482 printf %s "(cached) " >&6
6483 else $as_nop
6484 if test -n "$ac_ct_STRIP"; then
6485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6486 else
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490 IFS=$as_save_IFS
6491 case $as_dir in #(((
6492 '') as_dir=./ ;;
6493 */) ;;
6494 *) as_dir=$as_dir/ ;;
6495 esac
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_ac_ct_STRIP="strip"
6499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6509 if test -n "$ac_ct_STRIP"; then
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6511 printf "%s\n" "$ac_ct_STRIP" >&6; }
6512 else
6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 printf "%s\n" "no" >&6; }
6515 fi
6516
6517 if test "x$ac_ct_STRIP" = x; then
6518 STRIP=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 STRIP=$ac_ct_STRIP
6527 fi
6528 else
6529 STRIP="$ac_cv_prog_STRIP"
6530 fi
6531
6532 test -z "$STRIP" && STRIP=:
6533
6534
6535
6536
6537
6538
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6543 printf %s "checking for $ac_word... " >&6; }
6544 if test ${ac_cv_prog_RANLIB+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else $as_nop
6548 if test -n "$RANLIB"; then
6549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 case $as_dir in #(((
6556 '') as_dir=./ ;;
6557 */) ;;
6558 *) as_dir=$as_dir/ ;;
6559 esac
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566 done
6567 done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 RANLIB=$ac_cv_prog_RANLIB
6573 if test -n "$RANLIB"; then
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6575 printf "%s\n" "$RANLIB" >&6; }
6576 else
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 printf "%s\n" "no" >&6; }
6579 fi
6580
6581
6582 fi
6583 if test -z "$ac_cv_prog_RANLIB"; then
6584 ac_ct_RANLIB=$RANLIB
6585 # Extract the first word of "ranlib", so it can be a program name with args.
6586 set dummy ranlib; ac_word=$2
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 printf %s "checking for $ac_word... " >&6; }
6589 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6590 then :
6591 printf %s "(cached) " >&6
6592 else $as_nop
6593 if test -n "$ac_ct_RANLIB"; then
6594 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599 IFS=$as_save_IFS
6600 case $as_dir in #(((
6601 '') as_dir=./ ;;
6602 */) ;;
6603 *) as_dir=$as_dir/ ;;
6604 esac
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_ac_ct_RANLIB="ranlib"
6608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611 done
6612 done
6613 IFS=$as_save_IFS
6614
6615 fi
6616 fi
6617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6618 if test -n "$ac_ct_RANLIB"; then
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6620 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6621 else
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 printf "%s\n" "no" >&6; }
6624 fi
6625
6626 if test "x$ac_ct_RANLIB" = x; then
6627 RANLIB=":"
6628 else
6629 case $cross_compiling:$ac_tool_warned in
6630 yes:)
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6632 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6633 ac_tool_warned=yes ;;
6634 esac
6635 RANLIB=$ac_ct_RANLIB
6636 fi
6637 else
6638 RANLIB="$ac_cv_prog_RANLIB"
6639 fi
6640
6641 test -z "$RANLIB" && RANLIB=:
6642
6643
6644
6645
6646
6647
6648 # Determine commands to create old-style static archives.
6649 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6650 old_postinstall_cmds='chmod 644 $oldlib'
6651 old_postuninstall_cmds=
6652
6653 if test -n "$RANLIB"; then
6654 case $host_os in
6655 bitrig* | openbsd*)
6656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6657 ;;
6658 *)
6659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6660 ;;
6661 esac
6662 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6663 fi
6664
6665 case $host_os in
6666 darwin*)
6667 lock_old_archive_extraction=yes ;;
6668 *)
6669 lock_old_archive_extraction=no ;;
6670 esac
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # If no C compiler was specified, use CC.
6711 LTCC=${LTCC-"$CC"}
6712
6713 # If no C compiler flags were specified, use CFLAGS.
6714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6715
6716 # Allow CC to be a program name with arguments.
6717 compiler=$CC
6718
6719
6720 # Check for command to grab the raw symbol name followed by C symbol from nm.
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6722 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6723 if test ${lt_cv_sys_global_symbol_pipe+y}
6724 then :
6725 printf %s "(cached) " >&6
6726 else $as_nop
6727
6728 # These are sane defaults that work on at least a few old systems.
6729 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6730
6731 # Character class describing NM global symbol codes.
6732 symcode='[BCDEGRST]'
6733
6734 # Regexp to match symbols that can be accessed directly from C.
6735 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6736
6737 # Define system-specific variables.
6738 case $host_os in
6739 aix*)
6740 symcode='[BCDT]'
6741 ;;
6742 cygwin* | mingw* | pw32* | cegcc*)
6743 symcode='[ABCDGISTW]'
6744 ;;
6745 hpux*)
6746 if test ia64 = "$host_cpu"; then
6747 symcode='[ABCDEGRST]'
6748 fi
6749 ;;
6750 irix* | nonstopux*)
6751 symcode='[BCDEGRST]'
6752 ;;
6753 osf*)
6754 symcode='[BCDEGQRST]'
6755 ;;
6756 solaris*)
6757 symcode='[BDRT]'
6758 ;;
6759 sco3.2v5*)
6760 symcode='[DT]'
6761 ;;
6762 sysv4.2uw2*)
6763 symcode='[DT]'
6764 ;;
6765 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6766 symcode='[ABDT]'
6767 ;;
6768 sysv4)
6769 symcode='[DFNSTU]'
6770 ;;
6771 esac
6772
6773 # If we're using GNU nm, then use its standard symbol codes.
6774 case `$NM -V 2>&1` in
6775 *GNU* | *'with BFD'*)
6776 symcode='[ABCDGIRSTW]' ;;
6777 esac
6778
6779 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6780 # Gets list of data symbols to import.
6781 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6782 # Adjust the below global symbol transforms to fixup imported variables.
6783 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6784 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6785 lt_c_name_lib_hook="\
6786 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6787 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6788 else
6789 # Disable hooks by default.
6790 lt_cv_sys_global_symbol_to_import=
6791 lt_cdecl_hook=
6792 lt_c_name_hook=
6793 lt_c_name_lib_hook=
6794 fi
6795
6796 # Transform an extracted symbol line into a proper C declaration.
6797 # Some systems (esp. on ia64) link data and code symbols differently,
6798 # so use this general approach.
6799 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6800 $lt_cdecl_hook\
6801 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6802 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6803
6804 # Transform an extracted symbol line into symbol name and symbol address
6805 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6806 $lt_c_name_hook\
6807 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6808 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6809
6810 # Transform an extracted symbol line into symbol name with lib prefix and
6811 # symbol address.
6812 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6813 $lt_c_name_lib_hook\
6814 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6815 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6816 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6817
6818 # Handle CRLF in mingw tool chain
6819 opt_cr=
6820 case $build_os in
6821 mingw*)
6822 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6823 ;;
6824 esac
6825
6826 # Try without a prefix underscore, then with it.
6827 for ac_symprfx in "" "_"; do
6828
6829 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6830 symxfrm="\\1 $ac_symprfx\\2 \\2"
6831
6832 # Write the raw and C identifiers.
6833 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6834 # Fake it for dumpbin and say T for any non-static function,
6835 # D for any global variable and I for any imported variable.
6836 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6837 # which start with @ or ?.
6838 lt_cv_sys_global_symbol_pipe="$AWK '"\
6839 " {last_section=section; section=\$ 3};"\
6840 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6841 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6842 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6843 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6844 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6845 " \$ 0!~/External *\|/{next};"\
6846 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6847 " {if(hide[section]) next};"\
6848 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6849 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6850 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6851 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6852 " ' prfx=^$ac_symprfx"
6853 else
6854 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6855 fi
6856 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6857
6858 # Check to see that the pipe works correctly.
6859 pipe_works=no
6860
6861 rm -f conftest*
6862 cat > conftest.$ac_ext <<_LT_EOF
6863 #ifdef __cplusplus
6864 extern "C" {
6865 #endif
6866 char nm_test_var;
6867 void nm_test_func(void);
6868 void nm_test_func(void){}
6869 #ifdef __cplusplus
6870 }
6871 #endif
6872 int main(){nm_test_var='a';nm_test_func();return(0);}
6873 _LT_EOF
6874
6875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6876 (eval $ac_compile) 2>&5
6877 ac_status=$?
6878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6879 test $ac_status = 0; }; then
6880 # Now try to grab the symbols.
6881 nlist=conftest.nm
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6883 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6884 ac_status=$?
6885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; } && test -s "$nlist"; then
6887 # Try sorting and uniquifying the output.
6888 if sort "$nlist" | uniq > "$nlist"T; then
6889 mv -f "$nlist"T "$nlist"
6890 else
6891 rm -f "$nlist"T
6892 fi
6893
6894 # Make sure that we snagged all the symbols we need.
6895 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6896 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6897 cat <<_LT_EOF > conftest.$ac_ext
6898 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6899 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6900 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6901 relocations are performed -- see ld's documentation on pseudo-relocs. */
6902 # define LT_DLSYM_CONST
6903 #elif defined __osf__
6904 /* This system does not cope well with relocations in const data. */
6905 # define LT_DLSYM_CONST
6906 #else
6907 # define LT_DLSYM_CONST const
6908 #endif
6909
6910 #ifdef __cplusplus
6911 extern "C" {
6912 #endif
6913
6914 _LT_EOF
6915 # Now generate the symbol file.
6916 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6917
6918 cat <<_LT_EOF >> conftest.$ac_ext
6919
6920 /* The mapping between symbol names and symbols. */
6921 LT_DLSYM_CONST struct {
6922 const char *name;
6923 void *address;
6924 }
6925 lt__PROGRAM__LTX_preloaded_symbols[] =
6926 {
6927 { "@PROGRAM@", (void *) 0 },
6928 _LT_EOF
6929 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6930 cat <<\_LT_EOF >> conftest.$ac_ext
6931 {0, (void *) 0}
6932 };
6933
6934 /* This works around a problem in FreeBSD linker */
6935 #ifdef FREEBSD_WORKAROUND
6936 static const void *lt_preloaded_setup() {
6937 return lt__PROGRAM__LTX_preloaded_symbols;
6938 }
6939 #endif
6940
6941 #ifdef __cplusplus
6942 }
6943 #endif
6944 _LT_EOF
6945 # Now try linking the two files.
6946 mv conftest.$ac_objext conftstm.$ac_objext
6947 lt_globsym_save_LIBS=$LIBS
6948 lt_globsym_save_CFLAGS=$CFLAGS
6949 LIBS=conftstm.$ac_objext
6950 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6952 (eval $ac_link) 2>&5
6953 ac_status=$?
6954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6956 pipe_works=yes
6957 fi
6958 LIBS=$lt_globsym_save_LIBS
6959 CFLAGS=$lt_globsym_save_CFLAGS
6960 else
6961 echo "cannot find nm_test_func in $nlist" >&5
6962 fi
6963 else
6964 echo "cannot find nm_test_var in $nlist" >&5
6965 fi
6966 else
6967 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6968 fi
6969 else
6970 echo "$progname: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 fi
6973 rm -rf conftest* conftst*
6974
6975 # Do not use the global_symbol_pipe unless it works.
6976 if test yes = "$pipe_works"; then
6977 break
6978 else
6979 lt_cv_sys_global_symbol_pipe=
6980 fi
6981 done
6982
6983 fi
6984
6985 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6986 lt_cv_sys_global_symbol_to_cdecl=
6987 fi
6988 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6990 printf "%s\n" "failed" >&6; }
6991 else
6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6993 printf "%s\n" "ok" >&6; }
6994 fi
6995
6996 # Response file support.
6997 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6998 nm_file_list_spec='@'
6999 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7000 nm_file_list_spec='@'
7001 fi
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7040 printf %s "checking for sysroot... " >&6; }
7041
7042 # Check whether --with-sysroot was given.
7043 if test ${with_sysroot+y}
7044 then :
7045 withval=$with_sysroot;
7046 else $as_nop
7047 with_sysroot=no
7048 fi
7049
7050
7051 lt_sysroot=
7052 case $with_sysroot in #(
7053 yes)
7054 if test yes = "$GCC"; then
7055 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7056 fi
7057 ;; #(
7058 /*)
7059 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7060 ;; #(
7061 no|'')
7062 ;; #(
7063 *)
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7065 printf "%s\n" "$with_sysroot" >&6; }
7066 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7067 ;;
7068 esac
7069
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7071 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7072
7073
7074
7075
7076
7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7078 printf %s "checking for a working dd... " >&6; }
7079 if test ${ac_cv_path_lt_DD+y}
7080 then :
7081 printf %s "(cached) " >&6
7082 else $as_nop
7083 printf 0123456789abcdef0123456789abcdef >conftest.i
7084 cat conftest.i conftest.i >conftest2.i
7085 : ${lt_DD:=$DD}
7086 if test -z "$lt_DD"; then
7087 ac_path_lt_DD_found=false
7088 # Loop through the user's path and test for each of PROGNAME-LIST
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092 IFS=$as_save_IFS
7093 case $as_dir in #(((
7094 '') as_dir=./ ;;
7095 */) ;;
7096 *) as_dir=$as_dir/ ;;
7097 esac
7098 for ac_prog in dd
7099 do
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7102 as_fn_executable_p "$ac_path_lt_DD" || continue
7103 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7104 cmp -s conftest.i conftest.out \
7105 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7106 fi
7107 $ac_path_lt_DD_found && break 3
7108 done
7109 done
7110 done
7111 IFS=$as_save_IFS
7112 if test -z "$ac_cv_path_lt_DD"; then
7113 :
7114 fi
7115 else
7116 ac_cv_path_lt_DD=$lt_DD
7117 fi
7118
7119 rm -f conftest.i conftest2.i conftest.out
7120 fi
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7122 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7123
7124
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7126 printf %s "checking how to truncate binary pipes... " >&6; }
7127 if test ${lt_cv_truncate_bin+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else $as_nop
7131 printf 0123456789abcdef0123456789abcdef >conftest.i
7132 cat conftest.i conftest.i >conftest2.i
7133 lt_cv_truncate_bin=
7134 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7135 cmp -s conftest.i conftest.out \
7136 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7137 fi
7138 rm -f conftest.i conftest2.i conftest.out
7139 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7140 fi
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7142 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7143
7144
7145
7146
7147
7148
7149
7150 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7151 func_cc_basename ()
7152 {
7153 for cc_temp in $*""; do
7154 case $cc_temp in
7155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7157 \-*) ;;
7158 *) break;;
7159 esac
7160 done
7161 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7162 }
7163
7164 # Check whether --enable-libtool-lock was given.
7165 if test ${enable_libtool_lock+y}
7166 then :
7167 enableval=$enable_libtool_lock;
7168 fi
7169
7170 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7171
7172 # Some flags need to be propagated to the compiler or linker for good
7173 # libtool support.
7174 case $host in
7175 ia64-*-hpux*)
7176 # Find out what ABI is being produced by ac_compile, and set mode
7177 # options accordingly.
7178 echo 'int i;' > conftest.$ac_ext
7179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7180 (eval $ac_compile) 2>&5
7181 ac_status=$?
7182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7183 test $ac_status = 0; }; then
7184 case `$FILECMD conftest.$ac_objext` in
7185 *ELF-32*)
7186 HPUX_IA64_MODE=32
7187 ;;
7188 *ELF-64*)
7189 HPUX_IA64_MODE=64
7190 ;;
7191 esac
7192 fi
7193 rm -rf conftest*
7194 ;;
7195 *-*-irix6*)
7196 # Find out what ABI is being produced by ac_compile, and set linker
7197 # options accordingly.
7198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7200 (eval $ac_compile) 2>&5
7201 ac_status=$?
7202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7203 test $ac_status = 0; }; then
7204 if test yes = "$lt_cv_prog_gnu_ld"; then
7205 case `$FILECMD conftest.$ac_objext` in
7206 *32-bit*)
7207 LD="${LD-ld} -melf32bsmip"
7208 ;;
7209 *N32*)
7210 LD="${LD-ld} -melf32bmipn32"
7211 ;;
7212 *64-bit*)
7213 LD="${LD-ld} -melf64bmip"
7214 ;;
7215 esac
7216 else
7217 case `$FILECMD conftest.$ac_objext` in
7218 *32-bit*)
7219 LD="${LD-ld} -32"
7220 ;;
7221 *N32*)
7222 LD="${LD-ld} -n32"
7223 ;;
7224 *64-bit*)
7225 LD="${LD-ld} -64"
7226 ;;
7227 esac
7228 fi
7229 fi
7230 rm -rf conftest*
7231 ;;
7232
7233 mips64*-*linux*)
7234 # Find out what ABI is being produced by ac_compile, and set linker
7235 # options accordingly.
7236 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7239 ac_status=$?
7240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 emul=elf
7243 case `$FILECMD conftest.$ac_objext` in
7244 *32-bit*)
7245 emul="${emul}32"
7246 ;;
7247 *64-bit*)
7248 emul="${emul}64"
7249 ;;
7250 esac
7251 case `$FILECMD conftest.$ac_objext` in
7252 *MSB*)
7253 emul="${emul}btsmip"
7254 ;;
7255 *LSB*)
7256 emul="${emul}ltsmip"
7257 ;;
7258 esac
7259 case `$FILECMD conftest.$ac_objext` in
7260 *N32*)
7261 emul="${emul}n32"
7262 ;;
7263 esac
7264 LD="${LD-ld} -m $emul"
7265 fi
7266 rm -rf conftest*
7267 ;;
7268
7269 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7270 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7271 # Find out what ABI is being produced by ac_compile, and set linker
7272 # options accordingly. Note that the listed cases only cover the
7273 # situations where additional linker options are needed (such as when
7274 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7275 # vice versa); the common cases where no linker options are needed do
7276 # not appear in the list.
7277 echo 'int i;' > conftest.$ac_ext
7278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7279 (eval $ac_compile) 2>&5
7280 ac_status=$?
7281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; }; then
7283 case `$FILECMD conftest.o` in
7284 *32-bit*)
7285 case $host in
7286 x86_64-*kfreebsd*-gnu)
7287 LD="${LD-ld} -m elf_i386_fbsd"
7288 ;;
7289 x86_64-*linux*)
7290 case `$FILECMD conftest.o` in
7291 *x86-64*)
7292 LD="${LD-ld} -m elf32_x86_64"
7293 ;;
7294 *)
7295 LD="${LD-ld} -m elf_i386"
7296 ;;
7297 esac
7298 ;;
7299 powerpc64le-*linux*)
7300 LD="${LD-ld} -m elf32lppclinux"
7301 ;;
7302 powerpc64-*linux*)
7303 LD="${LD-ld} -m elf32ppclinux"
7304 ;;
7305 s390x-*linux*)
7306 LD="${LD-ld} -m elf_s390"
7307 ;;
7308 sparc64-*linux*)
7309 LD="${LD-ld} -m elf32_sparc"
7310 ;;
7311 esac
7312 ;;
7313 *64-bit*)
7314 case $host in
7315 x86_64-*kfreebsd*-gnu)
7316 LD="${LD-ld} -m elf_x86_64_fbsd"
7317 ;;
7318 x86_64-*linux*)
7319 LD="${LD-ld} -m elf_x86_64"
7320 ;;
7321 powerpcle-*linux*)
7322 LD="${LD-ld} -m elf64lppc"
7323 ;;
7324 powerpc-*linux*)
7325 LD="${LD-ld} -m elf64ppc"
7326 ;;
7327 s390*-*linux*|s390*-*tpf*)
7328 LD="${LD-ld} -m elf64_s390"
7329 ;;
7330 sparc*-*linux*)
7331 LD="${LD-ld} -m elf64_sparc"
7332 ;;
7333 esac
7334 ;;
7335 esac
7336 fi
7337 rm -rf conftest*
7338 ;;
7339
7340 *-*-sco3.2v5*)
7341 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7342 SAVE_CFLAGS=$CFLAGS
7343 CFLAGS="$CFLAGS -belf"
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7345 printf %s "checking whether the C compiler needs -belf... " >&6; }
7346 if test ${lt_cv_cc_needs_belf+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else $as_nop
7350 ac_ext=c
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7358
7359 int
7360 main (void)
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_link "$LINENO"
7368 then :
7369 lt_cv_cc_needs_belf=yes
7370 else $as_nop
7371 lt_cv_cc_needs_belf=no
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7374 conftest$ac_exeext conftest.$ac_ext
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381 fi
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7383 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7384 if test yes != "$lt_cv_cc_needs_belf"; then
7385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7386 CFLAGS=$SAVE_CFLAGS
7387 fi
7388 ;;
7389 *-*solaris*)
7390 # Find out what ABI is being produced by ac_compile, and set linker
7391 # options accordingly.
7392 echo 'int i;' > conftest.$ac_ext
7393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7394 (eval $ac_compile) 2>&5
7395 ac_status=$?
7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }; then
7398 case `$FILECMD conftest.o` in
7399 *64-bit*)
7400 case $lt_cv_prog_gnu_ld in
7401 yes*)
7402 case $host in
7403 i?86-*-solaris*|x86_64-*-solaris*)
7404 LD="${LD-ld} -m elf_x86_64"
7405 ;;
7406 sparc*-*-solaris*)
7407 LD="${LD-ld} -m elf64_sparc"
7408 ;;
7409 esac
7410 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7411 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7412 LD=${LD-ld}_sol2
7413 fi
7414 ;;
7415 *)
7416 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7417 LD="${LD-ld} -64"
7418 fi
7419 ;;
7420 esac
7421 ;;
7422 esac
7423 fi
7424 rm -rf conftest*
7425 ;;
7426 esac
7427
7428 need_locks=$enable_libtool_lock
7429
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}mt; ac_word=$2
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 printf %s "checking for $ac_word... " >&6; }
7435 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7436 then :
7437 printf %s "(cached) " >&6
7438 else $as_nop
7439 if test -n "$MANIFEST_TOOL"; then
7440 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445 IFS=$as_save_IFS
7446 case $as_dir in #(((
7447 '') as_dir=./ ;;
7448 */) ;;
7449 *) as_dir=$as_dir/ ;;
7450 esac
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7464 if test -n "$MANIFEST_TOOL"; then
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7466 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7467 else
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 printf "%s\n" "no" >&6; }
7470 fi
7471
7472
7473 fi
7474 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7475 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7476 # Extract the first word of "mt", so it can be a program name with args.
7477 set dummy mt; ac_word=$2
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 printf %s "checking for $ac_word... " >&6; }
7480 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7481 then :
7482 printf %s "(cached) " >&6
7483 else $as_nop
7484 if test -n "$ac_ct_MANIFEST_TOOL"; then
7485 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490 IFS=$as_save_IFS
7491 case $as_dir in #(((
7492 '') as_dir=./ ;;
7493 */) ;;
7494 *) as_dir=$as_dir/ ;;
7495 esac
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7509 if test -n "$ac_ct_MANIFEST_TOOL"; then
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7511 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7512 else
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 printf "%s\n" "no" >&6; }
7515 fi
7516
7517 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7518 MANIFEST_TOOL=":"
7519 else
7520 case $cross_compiling:$ac_tool_warned in
7521 yes:)
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7525 esac
7526 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7527 fi
7528 else
7529 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7530 fi
7531
7532 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7534 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7535 if test ${lt_cv_path_mainfest_tool+y}
7536 then :
7537 printf %s "(cached) " >&6
7538 else $as_nop
7539 lt_cv_path_mainfest_tool=no
7540 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7541 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7542 cat conftest.err >&5
7543 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7544 lt_cv_path_mainfest_tool=yes
7545 fi
7546 rm -f conftest*
7547 fi
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7549 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7550 if test yes != "$lt_cv_path_mainfest_tool"; then
7551 MANIFEST_TOOL=:
7552 fi
7553
7554
7555
7556
7557
7558
7559 case $host_os in
7560 rhapsody* | darwin*)
7561 if test -n "$ac_tool_prefix"; then
7562 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 printf %s "checking for $ac_word... " >&6; }
7566 if test ${ac_cv_prog_DSYMUTIL+y}
7567 then :
7568 printf %s "(cached) " >&6
7569 else $as_nop
7570 if test -n "$DSYMUTIL"; then
7571 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 case $as_dir in #(((
7578 '') as_dir=./ ;;
7579 */) ;;
7580 *) as_dir=$as_dir/ ;;
7581 esac
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7595 if test -n "$DSYMUTIL"; then
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7597 printf "%s\n" "$DSYMUTIL" >&6; }
7598 else
7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 printf "%s\n" "no" >&6; }
7601 fi
7602
7603
7604 fi
7605 if test -z "$ac_cv_prog_DSYMUTIL"; then
7606 ac_ct_DSYMUTIL=$DSYMUTIL
7607 # Extract the first word of "dsymutil", so it can be a program name with args.
7608 set dummy dsymutil; ac_word=$2
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 printf %s "checking for $ac_word... " >&6; }
7611 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else $as_nop
7615 if test -n "$ac_ct_DSYMUTIL"; then
7616 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 case $as_dir in #(((
7623 '') as_dir=./ ;;
7624 */) ;;
7625 *) as_dir=$as_dir/ ;;
7626 esac
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7640 if test -n "$ac_ct_DSYMUTIL"; then
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7642 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7643 else
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 printf "%s\n" "no" >&6; }
7646 fi
7647
7648 if test "x$ac_ct_DSYMUTIL" = x; then
7649 DSYMUTIL=":"
7650 else
7651 case $cross_compiling:$ac_tool_warned in
7652 yes:)
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7656 esac
7657 DSYMUTIL=$ac_ct_DSYMUTIL
7658 fi
7659 else
7660 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661 fi
7662
7663 if test -n "$ac_tool_prefix"; then
7664 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7665 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667 printf %s "checking for $ac_word... " >&6; }
7668 if test ${ac_cv_prog_NMEDIT+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
7672 if test -n "$NMEDIT"; then
7673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 case $as_dir in #(((
7680 '') as_dir=./ ;;
7681 */) ;;
7682 *) as_dir=$as_dir/ ;;
7683 esac
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 NMEDIT=$ac_cv_prog_NMEDIT
7697 if test -n "$NMEDIT"; then
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7699 printf "%s\n" "$NMEDIT" >&6; }
7700 else
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 printf "%s\n" "no" >&6; }
7703 fi
7704
7705
7706 fi
7707 if test -z "$ac_cv_prog_NMEDIT"; then
7708 ac_ct_NMEDIT=$NMEDIT
7709 # Extract the first word of "nmedit", so it can be a program name with args.
7710 set dummy nmedit; ac_word=$2
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 printf %s "checking for $ac_word... " >&6; }
7713 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else $as_nop
7717 if test -n "$ac_ct_NMEDIT"; then
7718 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 case $as_dir in #(((
7725 '') as_dir=./ ;;
7726 */) ;;
7727 *) as_dir=$as_dir/ ;;
7728 esac
7729 for ac_exec_ext in '' $ac_executable_extensions; do
7730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7731 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7733 break 2
7734 fi
7735 done
7736 done
7737 IFS=$as_save_IFS
7738
7739 fi
7740 fi
7741 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7742 if test -n "$ac_ct_NMEDIT"; then
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7744 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7745 else
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 printf "%s\n" "no" >&6; }
7748 fi
7749
7750 if test "x$ac_ct_NMEDIT" = x; then
7751 NMEDIT=":"
7752 else
7753 case $cross_compiling:$ac_tool_warned in
7754 yes:)
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7756 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7757 ac_tool_warned=yes ;;
7758 esac
7759 NMEDIT=$ac_ct_NMEDIT
7760 fi
7761 else
7762 NMEDIT="$ac_cv_prog_NMEDIT"
7763 fi
7764
7765 if test -n "$ac_tool_prefix"; then
7766 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7767 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 printf %s "checking for $ac_word... " >&6; }
7770 if test ${ac_cv_prog_LIPO+y}
7771 then :
7772 printf %s "(cached) " >&6
7773 else $as_nop
7774 if test -n "$LIPO"; then
7775 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7776 else
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 for as_dir in $PATH
7779 do
7780 IFS=$as_save_IFS
7781 case $as_dir in #(((
7782 '') as_dir=./ ;;
7783 */) ;;
7784 *) as_dir=$as_dir/ ;;
7785 esac
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 LIPO=$ac_cv_prog_LIPO
7799 if test -n "$LIPO"; then
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7801 printf "%s\n" "$LIPO" >&6; }
7802 else
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 printf "%s\n" "no" >&6; }
7805 fi
7806
7807
7808 fi
7809 if test -z "$ac_cv_prog_LIPO"; then
7810 ac_ct_LIPO=$LIPO
7811 # Extract the first word of "lipo", so it can be a program name with args.
7812 set dummy lipo; ac_word=$2
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 printf %s "checking for $ac_word... " >&6; }
7815 if test ${ac_cv_prog_ac_ct_LIPO+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
7819 if test -n "$ac_ct_LIPO"; then
7820 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825 IFS=$as_save_IFS
7826 case $as_dir in #(((
7827 '') as_dir=./ ;;
7828 */) ;;
7829 *) as_dir=$as_dir/ ;;
7830 esac
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7833 ac_cv_prog_ac_ct_LIPO="lipo"
7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837 done
7838 done
7839 IFS=$as_save_IFS
7840
7841 fi
7842 fi
7843 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7844 if test -n "$ac_ct_LIPO"; then
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7846 printf "%s\n" "$ac_ct_LIPO" >&6; }
7847 else
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 printf "%s\n" "no" >&6; }
7850 fi
7851
7852 if test "x$ac_ct_LIPO" = x; then
7853 LIPO=":"
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856 yes:)
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859 ac_tool_warned=yes ;;
7860 esac
7861 LIPO=$ac_ct_LIPO
7862 fi
7863 else
7864 LIPO="$ac_cv_prog_LIPO"
7865 fi
7866
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}otool; ac_word=$2
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 printf %s "checking for $ac_word... " >&6; }
7872 if test ${ac_cv_prog_OTOOL+y}
7873 then :
7874 printf %s "(cached) " >&6
7875 else $as_nop
7876 if test -n "$OTOOL"; then
7877 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7878 else
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 for as_dir in $PATH
7881 do
7882 IFS=$as_save_IFS
7883 case $as_dir in #(((
7884 '') as_dir=./ ;;
7885 */) ;;
7886 *) as_dir=$as_dir/ ;;
7887 esac
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894 done
7895 done
7896 IFS=$as_save_IFS
7897
7898 fi
7899 fi
7900 OTOOL=$ac_cv_prog_OTOOL
7901 if test -n "$OTOOL"; then
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7903 printf "%s\n" "$OTOOL" >&6; }
7904 else
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 printf "%s\n" "no" >&6; }
7907 fi
7908
7909
7910 fi
7911 if test -z "$ac_cv_prog_OTOOL"; then
7912 ac_ct_OTOOL=$OTOOL
7913 # Extract the first word of "otool", so it can be a program name with args.
7914 set dummy otool; ac_word=$2
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7916 printf %s "checking for $ac_word... " >&6; }
7917 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7918 then :
7919 printf %s "(cached) " >&6
7920 else $as_nop
7921 if test -n "$ac_ct_OTOOL"; then
7922 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 case $as_dir in #(((
7929 '') as_dir=./ ;;
7930 */) ;;
7931 *) as_dir=$as_dir/ ;;
7932 esac
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_ac_ct_OTOOL="otool"
7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939 done
7940 done
7941 IFS=$as_save_IFS
7942
7943 fi
7944 fi
7945 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7946 if test -n "$ac_ct_OTOOL"; then
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7948 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7949 else
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 printf "%s\n" "no" >&6; }
7952 fi
7953
7954 if test "x$ac_ct_OTOOL" = x; then
7955 OTOOL=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958 yes:)
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961 ac_tool_warned=yes ;;
7962 esac
7963 OTOOL=$ac_ct_OTOOL
7964 fi
7965 else
7966 OTOOL="$ac_cv_prog_OTOOL"
7967 fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7971 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 printf %s "checking for $ac_word... " >&6; }
7974 if test ${ac_cv_prog_OTOOL64+y}
7975 then :
7976 printf %s "(cached) " >&6
7977 else $as_nop
7978 if test -n "$OTOOL64"; then
7979 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 case $as_dir in #(((
7986 '') as_dir=./ ;;
7987 */) ;;
7988 *) as_dir=$as_dir/ ;;
7989 esac
7990 for ac_exec_ext in '' $ac_executable_extensions; do
7991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7992 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7994 break 2
7995 fi
7996 done
7997 done
7998 IFS=$as_save_IFS
7999
8000 fi
8001 fi
8002 OTOOL64=$ac_cv_prog_OTOOL64
8003 if test -n "$OTOOL64"; then
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8005 printf "%s\n" "$OTOOL64" >&6; }
8006 else
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 printf "%s\n" "no" >&6; }
8009 fi
8010
8011
8012 fi
8013 if test -z "$ac_cv_prog_OTOOL64"; then
8014 ac_ct_OTOOL64=$OTOOL64
8015 # Extract the first word of "otool64", so it can be a program name with args.
8016 set dummy otool64; ac_word=$2
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 printf %s "checking for $ac_word... " >&6; }
8019 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8020 then :
8021 printf %s "(cached) " >&6
8022 else $as_nop
8023 if test -n "$ac_ct_OTOOL64"; then
8024 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 case $as_dir in #(((
8031 '') as_dir=./ ;;
8032 */) ;;
8033 *) as_dir=$as_dir/ ;;
8034 esac
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8037 ac_cv_prog_ac_ct_OTOOL64="otool64"
8038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8039 break 2
8040 fi
8041 done
8042 done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8048 if test -n "$ac_ct_OTOOL64"; then
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8050 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8051 else
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 printf "%s\n" "no" >&6; }
8054 fi
8055
8056 if test "x$ac_ct_OTOOL64" = x; then
8057 OTOOL64=":"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060 yes:)
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8064 esac
8065 OTOOL64=$ac_ct_OTOOL64
8066 fi
8067 else
8068 OTOOL64="$ac_cv_prog_OTOOL64"
8069 fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8098 printf %s "checking for -single_module linker flag... " >&6; }
8099 if test ${lt_cv_apple_cc_single_mod+y}
8100 then :
8101 printf %s "(cached) " >&6
8102 else $as_nop
8103 lt_cv_apple_cc_single_mod=no
8104 if test -z "$LT_MULTI_MODULE"; then
8105 # By default we will add the -single_module flag. You can override
8106 # by either setting the environment variable LT_MULTI_MODULE
8107 # non-empty at configure time, or by adding -multi_module to the
8108 # link flags.
8109 rm -rf libconftest.dylib*
8110 echo "int foo(void){return 1;}" > conftest.c
8111 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8112 -dynamiclib -Wl,-single_module conftest.c" >&5
8113 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8114 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8115 _lt_result=$?
8116 # If there is a non-empty error log, and "single_module"
8117 # appears in it, assume the flag caused a linker warning
8118 if test -s conftest.err && $GREP single_module conftest.err; then
8119 cat conftest.err >&5
8120 # Otherwise, if the output was created with a 0 exit code from
8121 # the compiler, it worked.
8122 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8123 lt_cv_apple_cc_single_mod=yes
8124 else
8125 cat conftest.err >&5
8126 fi
8127 rm -rf libconftest.dylib*
8128 rm -f conftest.*
8129 fi
8130 fi
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8132 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8133
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8135 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8136 if test ${lt_cv_ld_exported_symbols_list+y}
8137 then :
8138 printf %s "(cached) " >&6
8139 else $as_nop
8140 lt_cv_ld_exported_symbols_list=no
8141 save_LDFLAGS=$LDFLAGS
8142 echo "_main" > conftest.sym
8143 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146
8147 int
8148 main (void)
8149 {
8150
8151 ;
8152 return 0;
8153 }
8154 _ACEOF
8155 if ac_fn_c_try_link "$LINENO"
8156 then :
8157 lt_cv_ld_exported_symbols_list=yes
8158 else $as_nop
8159 lt_cv_ld_exported_symbols_list=no
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8162 conftest$ac_exeext conftest.$ac_ext
8163 LDFLAGS=$save_LDFLAGS
8164
8165 fi
8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8167 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8168
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8170 printf %s "checking for -force_load linker flag... " >&6; }
8171 if test ${lt_cv_ld_force_load+y}
8172 then :
8173 printf %s "(cached) " >&6
8174 else $as_nop
8175 lt_cv_ld_force_load=no
8176 cat > conftest.c << _LT_EOF
8177 int forced_loaded() { return 2;}
8178 _LT_EOF
8179 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8180 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8181 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8182 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8183 echo "$RANLIB libconftest.a" >&5
8184 $RANLIB libconftest.a 2>&5
8185 cat > conftest.c << _LT_EOF
8186 int main() { return 0;}
8187 _LT_EOF
8188 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8189 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8190 _lt_result=$?
8191 if test -s conftest.err && $GREP force_load conftest.err; then
8192 cat conftest.err >&5
8193 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8194 lt_cv_ld_force_load=yes
8195 else
8196 cat conftest.err >&5
8197 fi
8198 rm -f conftest.err libconftest.a conftest conftest.c
8199 rm -rf conftest.dSYM
8200
8201 fi
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8203 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8204 case $host_os in
8205 rhapsody* | darwin1.[012])
8206 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8207 darwin1.*)
8208 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8209 darwin*)
8210 case $MACOSX_DEPLOYMENT_TARGET,$host in
8211 10.[012],*|,*powerpc*-darwin[5-8]*)
8212 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8213 *)
8214 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8215 esac
8216 ;;
8217 esac
8218 if test yes = "$lt_cv_apple_cc_single_mod"; then
8219 _lt_dar_single_mod='$single_module'
8220 fi
8221 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8222 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8223 else
8224 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8225 fi
8226 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8227 _lt_dsymutil='~$DSYMUTIL $lib || :'
8228 else
8229 _lt_dsymutil=
8230 fi
8231 ;;
8232 esac
8233
8234 # func_munge_path_list VARIABLE PATH
8235 # -----------------------------------
8236 # VARIABLE is name of variable containing _space_ separated list of
8237 # directories to be munged by the contents of PATH, which is string
8238 # having a format:
8239 # "DIR[:DIR]:"
8240 # string "DIR[ DIR]" will be prepended to VARIABLE
8241 # ":DIR[:DIR]"
8242 # string "DIR[ DIR]" will be appended to VARIABLE
8243 # "DIRP[:DIRP]::[DIRA:]DIRA"
8244 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8245 # "DIRA[ DIRA]" will be appended to VARIABLE
8246 # "DIR[:DIR]"
8247 # VARIABLE will be replaced by "DIR[ DIR]"
8248 func_munge_path_list ()
8249 {
8250 case x$2 in
8251 x)
8252 ;;
8253 *:)
8254 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8255 ;;
8256 x:*)
8257 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8258 ;;
8259 *::*)
8260 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8261 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8262 ;;
8263 *)
8264 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8265 ;;
8266 esac
8267 }
8268
8269 ac_header= ac_cache=
8270 for ac_item in $ac_header_c_list
8271 do
8272 if test $ac_cache; then
8273 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8274 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8275 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8276 fi
8277 ac_header= ac_cache=
8278 elif test $ac_header; then
8279 ac_cache=$ac_item
8280 else
8281 ac_header=$ac_item
8282 fi
8283 done
8284
8285
8286
8287
8288
8289
8290
8291
8292 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8293 then :
8294
8295 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8296
8297 fi
8298 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8299 "
8300 if test "x$ac_cv_header_dlfcn_h" = xyes
8301 then :
8302 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8303
8304 fi
8305
8306
8307
8308
8309
8310 # Set options
8311
8312
8313
8314 enable_dlopen=no
8315
8316
8317 enable_win32_dll=no
8318
8319
8320 # Check whether --enable-shared was given.
8321 if test ${enable_shared+y}
8322 then :
8323 enableval=$enable_shared; p=${PACKAGE-default}
8324 case $enableval in
8325 yes) enable_shared=yes ;;
8326 no) enable_shared=no ;;
8327 *)
8328 enable_shared=no
8329 # Look at the argument we got. We use all the common list separators.
8330 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8331 for pkg in $enableval; do
8332 IFS=$lt_save_ifs
8333 if test "X$pkg" = "X$p"; then
8334 enable_shared=yes
8335 fi
8336 done
8337 IFS=$lt_save_ifs
8338 ;;
8339 esac
8340 else $as_nop
8341 enable_shared=yes
8342 fi
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352 # Check whether --enable-static was given.
8353 if test ${enable_static+y}
8354 then :
8355 enableval=$enable_static; p=${PACKAGE-default}
8356 case $enableval in
8357 yes) enable_static=yes ;;
8358 no) enable_static=no ;;
8359 *)
8360 enable_static=no
8361 # Look at the argument we got. We use all the common list separators.
8362 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8363 for pkg in $enableval; do
8364 IFS=$lt_save_ifs
8365 if test "X$pkg" = "X$p"; then
8366 enable_static=yes
8367 fi
8368 done
8369 IFS=$lt_save_ifs
8370 ;;
8371 esac
8372 else $as_nop
8373 enable_static=yes
8374 fi
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385 # Check whether --with-pic was given.
8386 if test ${with_pic+y}
8387 then :
8388 withval=$with_pic; lt_p=${PACKAGE-default}
8389 case $withval in
8390 yes|no) pic_mode=$withval ;;
8391 *)
8392 pic_mode=default
8393 # Look at the argument we got. We use all the common list separators.
8394 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8395 for lt_pkg in $withval; do
8396 IFS=$lt_save_ifs
8397 if test "X$lt_pkg" = "X$lt_p"; then
8398 pic_mode=yes
8399 fi
8400 done
8401 IFS=$lt_save_ifs
8402 ;;
8403 esac
8404 else $as_nop
8405 pic_mode=default
8406 fi
8407
8408
8409
8410
8411
8412
8413
8414
8415 # Check whether --enable-fast-install was given.
8416 if test ${enable_fast_install+y}
8417 then :
8418 enableval=$enable_fast_install; p=${PACKAGE-default}
8419 case $enableval in
8420 yes) enable_fast_install=yes ;;
8421 no) enable_fast_install=no ;;
8422 *)
8423 enable_fast_install=no
8424 # Look at the argument we got. We use all the common list separators.
8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8426 for pkg in $enableval; do
8427 IFS=$lt_save_ifs
8428 if test "X$pkg" = "X$p"; then
8429 enable_fast_install=yes
8430 fi
8431 done
8432 IFS=$lt_save_ifs
8433 ;;
8434 esac
8435 else $as_nop
8436 enable_fast_install=yes
8437 fi
8438
8439
8440
8441
8442
8443
8444
8445
8446 shared_archive_member_spec=
8447 case $host,$enable_shared in
8448 power*-*-aix[5-9]*,yes)
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8450 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8451
8452 # Check whether --with-aix-soname was given.
8453 if test ${with_aix_soname+y}
8454 then :
8455 withval=$with_aix_soname; case $withval in
8456 aix|svr4|both)
8457 ;;
8458 *)
8459 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8460 ;;
8461 esac
8462 lt_cv_with_aix_soname=$with_aix_soname
8463 else $as_nop
8464 if test ${lt_cv_with_aix_soname+y}
8465 then :
8466 printf %s "(cached) " >&6
8467 else $as_nop
8468 lt_cv_with_aix_soname=aix
8469 fi
8470
8471 with_aix_soname=$lt_cv_with_aix_soname
8472 fi
8473
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8475 printf "%s\n" "$with_aix_soname" >&6; }
8476 if test aix != "$with_aix_soname"; then
8477 # For the AIX way of multilib, we name the shared archive member
8478 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8479 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8480 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8481 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8482 if test 64 = "${OBJECT_MODE-32}"; then
8483 shared_archive_member_spec=shr_64
8484 else
8485 shared_archive_member_spec=shr
8486 fi
8487 fi
8488 ;;
8489 *)
8490 with_aix_soname=aix
8491 ;;
8492 esac
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 # This can be used to rebuild libtool when needed
8504 LIBTOOL_DEPS=$ltmain
8505
8506 # Always use our own libtool.
8507 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538 test -z "$LN_S" && LN_S="ln -s"
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553 if test -n "${ZSH_VERSION+set}"; then
8554 setopt NO_GLOB_SUBST
8555 fi
8556
8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8558 printf %s "checking for objdir... " >&6; }
8559 if test ${lt_cv_objdir+y}
8560 then :
8561 printf %s "(cached) " >&6
8562 else $as_nop
8563 rm -f .libs 2>/dev/null
8564 mkdir .libs 2>/dev/null
8565 if test -d .libs; then
8566 lt_cv_objdir=.libs
8567 else
8568 # MS-DOS does not allow filenames that begin with a dot.
8569 lt_cv_objdir=_libs
8570 fi
8571 rmdir .libs 2>/dev/null
8572 fi
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8574 printf "%s\n" "$lt_cv_objdir" >&6; }
8575 objdir=$lt_cv_objdir
8576
8577
8578
8579
8580
8581 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8582
8583
8584
8585
8586 case $host_os in
8587 aix3*)
8588 # AIX sometimes has problems with the GCC collect2 program. For some
8589 # reason, if we set the COLLECT_NAMES environment variable, the problems
8590 # vanish in a puff of smoke.
8591 if test set != "${COLLECT_NAMES+set}"; then
8592 COLLECT_NAMES=
8593 export COLLECT_NAMES
8594 fi
8595 ;;
8596 esac
8597
8598 # Global variables:
8599 ofile=libtool
8600 can_build_shared=yes
8601
8602 # All known linkers require a '.a' archive for static linking (except MSVC and
8603 # ICC, which need '.lib').
8604 libext=a
8605
8606 with_gnu_ld=$lt_cv_prog_gnu_ld
8607
8608 old_CC=$CC
8609 old_CFLAGS=$CFLAGS
8610
8611 # Set sane defaults for various variables
8612 test -z "$CC" && CC=cc
8613 test -z "$LTCC" && LTCC=$CC
8614 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8615 test -z "$LD" && LD=ld
8616 test -z "$ac_objext" && ac_objext=o
8617
8618 func_cc_basename $compiler
8619 cc_basename=$func_cc_basename_result
8620
8621
8622 # Only perform the check for file, if the check method requires it
8623 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8624 case $deplibs_check_method in
8625 file_magic*)
8626 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8628 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8629 if test ${lt_cv_path_MAGIC_CMD+y}
8630 then :
8631 printf %s "(cached) " >&6
8632 else $as_nop
8633 case $MAGIC_CMD in
8634 [\\/*] | ?:[\\/]*)
8635 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8636 ;;
8637 *)
8638 lt_save_MAGIC_CMD=$MAGIC_CMD
8639 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8641 for ac_dir in $ac_dummy; do
8642 IFS=$lt_save_ifs
8643 test -z "$ac_dir" && ac_dir=.
8644 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8645 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8646 if test -n "$file_magic_test_file"; then
8647 case $deplibs_check_method in
8648 "file_magic "*)
8649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8650 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8652 $EGREP "$file_magic_regex" > /dev/null; then
8653 :
8654 else
8655 cat <<_LT_EOF 1>&2
8656
8657 *** Warning: the command libtool uses to detect shared libraries,
8658 *** $file_magic_cmd, produces output that libtool cannot recognize.
8659 *** The result is that libtool may fail to recognize shared libraries
8660 *** as such. This will affect the creation of libtool libraries that
8661 *** depend on shared libraries, but programs linked with such libtool
8662 *** libraries will work regardless of this problem. Nevertheless, you
8663 *** may want to report the problem to your system manager and/or to
8664 *** bug-libtool@gnu.org
8665
8666 _LT_EOF
8667 fi ;;
8668 esac
8669 fi
8670 break
8671 fi
8672 done
8673 IFS=$lt_save_ifs
8674 MAGIC_CMD=$lt_save_MAGIC_CMD
8675 ;;
8676 esac
8677 fi
8678
8679 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8680 if test -n "$MAGIC_CMD"; then
8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8682 printf "%s\n" "$MAGIC_CMD" >&6; }
8683 else
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 printf "%s\n" "no" >&6; }
8686 fi
8687
8688
8689
8690
8691
8692 if test -z "$lt_cv_path_MAGIC_CMD"; then
8693 if test -n "$ac_tool_prefix"; then
8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8695 printf %s "checking for file... " >&6; }
8696 if test ${lt_cv_path_MAGIC_CMD+y}
8697 then :
8698 printf %s "(cached) " >&6
8699 else $as_nop
8700 case $MAGIC_CMD in
8701 [\\/*] | ?:[\\/]*)
8702 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8703 ;;
8704 *)
8705 lt_save_MAGIC_CMD=$MAGIC_CMD
8706 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8707 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8708 for ac_dir in $ac_dummy; do
8709 IFS=$lt_save_ifs
8710 test -z "$ac_dir" && ac_dir=.
8711 if test -f "$ac_dir/file"; then
8712 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8713 if test -n "$file_magic_test_file"; then
8714 case $deplibs_check_method in
8715 "file_magic "*)
8716 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8717 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8718 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8719 $EGREP "$file_magic_regex" > /dev/null; then
8720 :
8721 else
8722 cat <<_LT_EOF 1>&2
8723
8724 *** Warning: the command libtool uses to detect shared libraries,
8725 *** $file_magic_cmd, produces output that libtool cannot recognize.
8726 *** The result is that libtool may fail to recognize shared libraries
8727 *** as such. This will affect the creation of libtool libraries that
8728 *** depend on shared libraries, but programs linked with such libtool
8729 *** libraries will work regardless of this problem. Nevertheless, you
8730 *** may want to report the problem to your system manager and/or to
8731 *** bug-libtool@gnu.org
8732
8733 _LT_EOF
8734 fi ;;
8735 esac
8736 fi
8737 break
8738 fi
8739 done
8740 IFS=$lt_save_ifs
8741 MAGIC_CMD=$lt_save_MAGIC_CMD
8742 ;;
8743 esac
8744 fi
8745
8746 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8747 if test -n "$MAGIC_CMD"; then
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8749 printf "%s\n" "$MAGIC_CMD" >&6; }
8750 else
8751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 printf "%s\n" "no" >&6; }
8753 fi
8754
8755
8756 else
8757 MAGIC_CMD=:
8758 fi
8759 fi
8760
8761 fi
8762 ;;
8763 esac
8764
8765 # Use C for the default configuration in the libtool script
8766
8767 lt_save_CC=$CC
8768 ac_ext=c
8769 ac_cpp='$CPP $CPPFLAGS'
8770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8773
8774
8775 # Source file extension for C test sources.
8776 ac_ext=c
8777
8778 # Object file extension for compiled C test sources.
8779 objext=o
8780 objext=$objext
8781
8782 # Code to be used in simple compile tests
8783 lt_simple_compile_test_code="int some_variable = 0;"
8784
8785 # Code to be used in simple link tests
8786 lt_simple_link_test_code='int main(){return(0);}'
8787
8788
8789
8790
8791
8792
8793
8794 # If no C compiler was specified, use CC.
8795 LTCC=${LTCC-"$CC"}
8796
8797 # If no C compiler flags were specified, use CFLAGS.
8798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8799
8800 # Allow CC to be a program name with arguments.
8801 compiler=$CC
8802
8803 # Save the default compiler, since it gets overwritten when the other
8804 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8805 compiler_DEFAULT=$CC
8806
8807 # save warnings/boilerplate of simple test code
8808 ac_outfile=conftest.$ac_objext
8809 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8810 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8811 _lt_compiler_boilerplate=`cat conftest.err`
8812 $RM conftest*
8813
8814 ac_outfile=conftest.$ac_objext
8815 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8816 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8817 _lt_linker_boilerplate=`cat conftest.err`
8818 $RM -r conftest*
8819
8820
8821 ## CAVEAT EMPTOR:
8822 ## There is no encapsulation within the following macros, do not change
8823 ## the running order or otherwise move them around unless you know exactly
8824 ## what you are doing...
8825 if test -n "$compiler"; then
8826
8827 lt_prog_compiler_no_builtin_flag=
8828
8829 if test yes = "$GCC"; then
8830 case $cc_basename in
8831 nvcc*)
8832 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8833 *)
8834 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8835 esac
8836
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8838 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8839 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8840 then :
8841 printf %s "(cached) " >&6
8842 else $as_nop
8843 lt_cv_prog_compiler_rtti_exceptions=no
8844 ac_outfile=conftest.$ac_objext
8845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8846 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 # The option is referenced via a variable to avoid confusing sed.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>conftest.err)
8858 ac_status=$?
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s "$ac_outfile"; then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings other than the usual output.
8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8866 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_rtti_exceptions=yes
8868 fi
8869 fi
8870 $RM conftest*
8871
8872 fi
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8874 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8875
8876 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8877 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8878 else
8879 :
8880 fi
8881
8882 fi
8883
8884
8885
8886
8887
8888
8889 lt_prog_compiler_wl=
8890 lt_prog_compiler_pic=
8891 lt_prog_compiler_static=
8892
8893
8894 if test yes = "$GCC"; then
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_static='-static'
8897
8898 case $host_os in
8899 aix*)
8900 # All AIX code is PIC.
8901 if test ia64 = "$host_cpu"; then
8902 # AIX 5 now supports IA64 processor
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 lt_prog_compiler_pic='-fPIC'
8906 ;;
8907
8908 amigaos*)
8909 case $host_cpu in
8910 powerpc)
8911 # see comment about AmigaOS4 .so support
8912 lt_prog_compiler_pic='-fPIC'
8913 ;;
8914 m68k)
8915 # FIXME: we need at least 68020 code to build shared libraries, but
8916 # adding the '-m68020' flag to GCC prevents building anything better,
8917 # like '-m68040'.
8918 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8919 ;;
8920 esac
8921 ;;
8922
8923 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8924 # PIC is the default for these OSes.
8925 ;;
8926
8927 mingw* | cygwin* | pw32* | os2* | cegcc*)
8928 # This hack is so that the source file can tell whether it is being
8929 # built for inclusion in a dll (and should export symbols for example).
8930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8931 # (--disable-auto-import) libraries
8932 lt_prog_compiler_pic='-DDLL_EXPORT'
8933 case $host_os in
8934 os2*)
8935 lt_prog_compiler_static='$wl-static'
8936 ;;
8937 esac
8938 ;;
8939
8940 darwin* | rhapsody*)
8941 # PIC is the default on this platform
8942 # Common symbols not allowed in MH_DYLIB files
8943 lt_prog_compiler_pic='-fno-common'
8944 ;;
8945
8946 haiku*)
8947 # PIC is the default for Haiku.
8948 # The "-static" flag exists, but is broken.
8949 lt_prog_compiler_static=
8950 ;;
8951
8952 hpux*)
8953 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8954 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8955 # sets the default TLS model and affects inlining.
8956 case $host_cpu in
8957 hppa*64*)
8958 # +Z the default
8959 ;;
8960 *)
8961 lt_prog_compiler_pic='-fPIC'
8962 ;;
8963 esac
8964 ;;
8965
8966 interix[3-9]*)
8967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8968 # Instead, we relocate shared libraries at runtime.
8969 ;;
8970
8971 msdosdjgpp*)
8972 # Just because we use GCC doesn't mean we suddenly get shared libraries
8973 # on systems that don't support them.
8974 lt_prog_compiler_can_build_shared=no
8975 enable_shared=no
8976 ;;
8977
8978 *nto* | *qnx*)
8979 # QNX uses GNU C++, but need to define -shared option too, otherwise
8980 # it will coredump.
8981 lt_prog_compiler_pic='-fPIC -shared'
8982 ;;
8983
8984 sysv4*MP*)
8985 if test -d /usr/nec; then
8986 lt_prog_compiler_pic=-Kconform_pic
8987 fi
8988 ;;
8989
8990 *)
8991 lt_prog_compiler_pic='-fPIC'
8992 ;;
8993 esac
8994
8995 case $cc_basename in
8996 nvcc*) # Cuda Compiler Driver 2.2
8997 lt_prog_compiler_wl='-Xlinker '
8998 if test -n "$lt_prog_compiler_pic"; then
8999 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9000 fi
9001 ;;
9002 esac
9003 else
9004 # PORTME Check for flag to pass linker flags through the system compiler.
9005 case $host_os in
9006 aix*)
9007 lt_prog_compiler_wl='-Wl,'
9008 if test ia64 = "$host_cpu"; then
9009 # AIX 5 now supports IA64 processor
9010 lt_prog_compiler_static='-Bstatic'
9011 else
9012 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9013 fi
9014 ;;
9015
9016 darwin* | rhapsody*)
9017 # PIC is the default on this platform
9018 # Common symbols not allowed in MH_DYLIB files
9019 lt_prog_compiler_pic='-fno-common'
9020 case $cc_basename in
9021 nagfor*)
9022 # NAG Fortran compiler
9023 lt_prog_compiler_wl='-Wl,-Wl,,'
9024 lt_prog_compiler_pic='-PIC'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
9027 esac
9028 ;;
9029
9030 mingw* | cygwin* | pw32* | os2* | cegcc*)
9031 # This hack is so that the source file can tell whether it is being
9032 # built for inclusion in a dll (and should export symbols for example).
9033 lt_prog_compiler_pic='-DDLL_EXPORT'
9034 case $host_os in
9035 os2*)
9036 lt_prog_compiler_static='$wl-static'
9037 ;;
9038 esac
9039 ;;
9040
9041 hpux9* | hpux10* | hpux11*)
9042 lt_prog_compiler_wl='-Wl,'
9043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9044 # not for PA HP-UX.
9045 case $host_cpu in
9046 hppa*64*|ia64*)
9047 # +Z the default
9048 ;;
9049 *)
9050 lt_prog_compiler_pic='+Z'
9051 ;;
9052 esac
9053 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9054 lt_prog_compiler_static='$wl-a ${wl}archive'
9055 ;;
9056
9057 irix5* | irix6* | nonstopux*)
9058 lt_prog_compiler_wl='-Wl,'
9059 # PIC (with -KPIC) is the default.
9060 lt_prog_compiler_static='-non_shared'
9061 ;;
9062
9063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9064 case $cc_basename in
9065 # old Intel for x86_64, which still supported -KPIC.
9066 ecc*)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-KPIC'
9069 lt_prog_compiler_static='-static'
9070 ;;
9071 # icc used to be incompatible with GCC.
9072 # ICC 10 doesn't accept -KPIC any more.
9073 icc* | ifort*)
9074 lt_prog_compiler_wl='-Wl,'
9075 lt_prog_compiler_pic='-fPIC'
9076 lt_prog_compiler_static='-static'
9077 ;;
9078 # Lahey Fortran 8.1.
9079 lf95*)
9080 lt_prog_compiler_wl='-Wl,'
9081 lt_prog_compiler_pic='--shared'
9082 lt_prog_compiler_static='--static'
9083 ;;
9084 nagfor*)
9085 # NAG Fortran compiler
9086 lt_prog_compiler_wl='-Wl,-Wl,,'
9087 lt_prog_compiler_pic='-PIC'
9088 lt_prog_compiler_static='-Bstatic'
9089 ;;
9090 tcc*)
9091 # Fabrice Bellard et al's Tiny C Compiler
9092 lt_prog_compiler_wl='-Wl,'
9093 lt_prog_compiler_pic='-fPIC'
9094 lt_prog_compiler_static='-static'
9095 ;;
9096 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9097 # Portland Group compilers (*not* the Pentium gcc compiler,
9098 # which looks to be a dead project)
9099 lt_prog_compiler_wl='-Wl,'
9100 lt_prog_compiler_pic='-fpic'
9101 lt_prog_compiler_static='-Bstatic'
9102 ;;
9103 ccc*)
9104 lt_prog_compiler_wl='-Wl,'
9105 # All Alpha code is PIC.
9106 lt_prog_compiler_static='-non_shared'
9107 ;;
9108 xl* | bgxl* | bgf* | mpixl*)
9109 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_pic='-qpic'
9112 lt_prog_compiler_static='-qstaticlink'
9113 ;;
9114 *)
9115 case `$CC -V 2>&1 | $SED 5q` in
9116 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9117 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9118 lt_prog_compiler_pic='-KPIC'
9119 lt_prog_compiler_static='-Bstatic'
9120 lt_prog_compiler_wl=''
9121 ;;
9122 *Sun\ F* | *Sun*Fortran*)
9123 lt_prog_compiler_pic='-KPIC'
9124 lt_prog_compiler_static='-Bstatic'
9125 lt_prog_compiler_wl='-Qoption ld '
9126 ;;
9127 *Sun\ C*)
9128 # Sun C 5.9
9129 lt_prog_compiler_pic='-KPIC'
9130 lt_prog_compiler_static='-Bstatic'
9131 lt_prog_compiler_wl='-Wl,'
9132 ;;
9133 *Intel*\ [CF]*Compiler*)
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-fPIC'
9136 lt_prog_compiler_static='-static'
9137 ;;
9138 *Portland\ Group*)
9139 lt_prog_compiler_wl='-Wl,'
9140 lt_prog_compiler_pic='-fpic'
9141 lt_prog_compiler_static='-Bstatic'
9142 ;;
9143 esac
9144 ;;
9145 esac
9146 ;;
9147
9148 newsos6)
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9151 ;;
9152
9153 *nto* | *qnx*)
9154 # QNX uses GNU C++, but need to define -shared option too, otherwise
9155 # it will coredump.
9156 lt_prog_compiler_pic='-fPIC -shared'
9157 ;;
9158
9159 osf3* | osf4* | osf5*)
9160 lt_prog_compiler_wl='-Wl,'
9161 # All OSF/1 code is PIC.
9162 lt_prog_compiler_static='-non_shared'
9163 ;;
9164
9165 rdos*)
9166 lt_prog_compiler_static='-non_shared'
9167 ;;
9168
9169 solaris*)
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 case $cc_basename in
9173 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9174 lt_prog_compiler_wl='-Qoption ld ';;
9175 *)
9176 lt_prog_compiler_wl='-Wl,';;
9177 esac
9178 ;;
9179
9180 sunos4*)
9181 lt_prog_compiler_wl='-Qoption ld '
9182 lt_prog_compiler_pic='-PIC'
9183 lt_prog_compiler_static='-Bstatic'
9184 ;;
9185
9186 sysv4 | sysv4.2uw2* | sysv4.3*)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9190 ;;
9191
9192 sysv4*MP*)
9193 if test -d /usr/nec; then
9194 lt_prog_compiler_pic='-Kconform_pic'
9195 lt_prog_compiler_static='-Bstatic'
9196 fi
9197 ;;
9198
9199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9203 ;;
9204
9205 unicos*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_can_build_shared=no
9208 ;;
9209
9210 uts4*)
9211 lt_prog_compiler_pic='-pic'
9212 lt_prog_compiler_static='-Bstatic'
9213 ;;
9214
9215 *)
9216 lt_prog_compiler_can_build_shared=no
9217 ;;
9218 esac
9219 fi
9220
9221 case $host_os in
9222 # For platforms that do not support PIC, -DPIC is meaningless:
9223 *djgpp*)
9224 lt_prog_compiler_pic=
9225 ;;
9226 *)
9227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9228 ;;
9229 esac
9230
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9232 printf %s "checking for $compiler option to produce PIC... " >&6; }
9233 if test ${lt_cv_prog_compiler_pic+y}
9234 then :
9235 printf %s "(cached) " >&6
9236 else $as_nop
9237 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9238 fi
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9240 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9241 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9242
9243 #
9244 # Check to make sure the PIC flag actually works.
9245 #
9246 if test -n "$lt_prog_compiler_pic"; then
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9248 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9249 if test ${lt_cv_prog_compiler_pic_works+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else $as_nop
9253 lt_cv_prog_compiler_pic_works=no
9254 ac_outfile=conftest.$ac_objext
9255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9256 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9257 # Insert the option either (1) after the last *FLAGS variable, or
9258 # (2) before a word containing "conftest.", or (3) at the end.
9259 # Note that $ac_compile itself does not contain backslashes and begins
9260 # with a dollar sign (not a hyphen), so the echo should work correctly.
9261 # The option is referenced via a variable to avoid confusing sed.
9262 lt_compile=`echo "$ac_compile" | $SED \
9263 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9264 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9265 -e 's:$: $lt_compiler_flag:'`
9266 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9267 (eval "$lt_compile" 2>conftest.err)
9268 ac_status=$?
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 if (exit $ac_status) && test -s "$ac_outfile"; then
9272 # The compiler can only warn and ignore the option if not recognized
9273 # So say no if there are warnings other than the usual output.
9274 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9276 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9277 lt_cv_prog_compiler_pic_works=yes
9278 fi
9279 fi
9280 $RM conftest*
9281
9282 fi
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9284 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9285
9286 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9287 case $lt_prog_compiler_pic in
9288 "" | " "*) ;;
9289 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9290 esac
9291 else
9292 lt_prog_compiler_pic=
9293 lt_prog_compiler_can_build_shared=no
9294 fi
9295
9296 fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 #
9309 # Check to make sure the static flag actually works.
9310 #
9311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9313 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9314 if test ${lt_cv_prog_compiler_static_works+y}
9315 then :
9316 printf %s "(cached) " >&6
9317 else $as_nop
9318 lt_cv_prog_compiler_static_works=no
9319 save_LDFLAGS=$LDFLAGS
9320 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9321 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9322 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9323 # The linker can only warn and ignore the option if not recognized
9324 # So say no if there are warnings
9325 if test -s conftest.err; then
9326 # Append any errors to the config.log.
9327 cat conftest.err 1>&5
9328 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9330 if diff conftest.exp conftest.er2 >/dev/null; then
9331 lt_cv_prog_compiler_static_works=yes
9332 fi
9333 else
9334 lt_cv_prog_compiler_static_works=yes
9335 fi
9336 fi
9337 $RM -r conftest*
9338 LDFLAGS=$save_LDFLAGS
9339
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9342 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9343
9344 if test yes = "$lt_cv_prog_compiler_static_works"; then
9345 :
9346 else
9347 lt_prog_compiler_static=
9348 fi
9349
9350
9351
9352
9353
9354
9355
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9357 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9358 if test ${lt_cv_prog_compiler_c_o+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else $as_nop
9362 lt_cv_prog_compiler_c_o=no
9363 $RM -r conftest 2>/dev/null
9364 mkdir conftest
9365 cd conftest
9366 mkdir out
9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9368
9369 lt_compiler_flag="-o out/conftest2.$ac_objext"
9370 # Insert the option either (1) after the last *FLAGS variable, or
9371 # (2) before a word containing "conftest.", or (3) at the end.
9372 # Note that $ac_compile itself does not contain backslashes and begins
9373 # with a dollar sign (not a hyphen), so the echo should work correctly.
9374 lt_compile=`echo "$ac_compile" | $SED \
9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377 -e 's:$: $lt_compiler_flag:'`
9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9379 (eval "$lt_compile" 2>out/conftest.err)
9380 ac_status=$?
9381 cat out/conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9384 then
9385 # The compiler can only warn and ignore the option if not recognized
9386 # So say no if there are warnings
9387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9390 lt_cv_prog_compiler_c_o=yes
9391 fi
9392 fi
9393 chmod u+w . 2>&5
9394 $RM conftest*
9395 # SGI C++ compiler will create directory out/ii_files/ for
9396 # template instantiation
9397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9398 $RM out/* && rmdir out
9399 cd ..
9400 $RM -r conftest
9401 $RM conftest*
9402
9403 fi
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9405 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9406
9407
9408
9409
9410
9411
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9413 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9414 if test ${lt_cv_prog_compiler_c_o+y}
9415 then :
9416 printf %s "(cached) " >&6
9417 else $as_nop
9418 lt_cv_prog_compiler_c_o=no
9419 $RM -r conftest 2>/dev/null
9420 mkdir conftest
9421 cd conftest
9422 mkdir out
9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424
9425 lt_compiler_flag="-o out/conftest2.$ac_objext"
9426 # Insert the option either (1) after the last *FLAGS variable, or
9427 # (2) before a word containing "conftest.", or (3) at the end.
9428 # Note that $ac_compile itself does not contain backslashes and begins
9429 # with a dollar sign (not a hyphen), so the echo should work correctly.
9430 lt_compile=`echo "$ac_compile" | $SED \
9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9433 -e 's:$: $lt_compiler_flag:'`
9434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9435 (eval "$lt_compile" 2>out/conftest.err)
9436 ac_status=$?
9437 cat out/conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9440 then
9441 # The compiler can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9446 lt_cv_prog_compiler_c_o=yes
9447 fi
9448 fi
9449 chmod u+w . 2>&5
9450 $RM conftest*
9451 # SGI C++ compiler will create directory out/ii_files/ for
9452 # template instantiation
9453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9454 $RM out/* && rmdir out
9455 cd ..
9456 $RM -r conftest
9457 $RM conftest*
9458
9459 fi
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9461 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9462
9463
9464
9465
9466 hard_links=nottested
9467 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9468 # do not overwrite the value of need_locks provided by the user
9469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9470 printf %s "checking if we can lock with hard links... " >&6; }
9471 hard_links=yes
9472 $RM conftest*
9473 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9474 touch conftest.a
9475 ln conftest.a conftest.b 2>&5 || hard_links=no
9476 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9478 printf "%s\n" "$hard_links" >&6; }
9479 if test no = "$hard_links"; then
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9481 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9482 need_locks=warn
9483 fi
9484 else
9485 need_locks=no
9486 fi
9487
9488
9489
9490
9491
9492
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9494 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9495
9496 runpath_var=
9497 allow_undefined_flag=
9498 always_export_symbols=no
9499 archive_cmds=
9500 archive_expsym_cmds=
9501 compiler_needs_object=no
9502 enable_shared_with_static_runtimes=no
9503 export_dynamic_flag_spec=
9504 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9505 hardcode_automatic=no
9506 hardcode_direct=no
9507 hardcode_direct_absolute=no
9508 hardcode_libdir_flag_spec=
9509 hardcode_libdir_separator=
9510 hardcode_minus_L=no
9511 hardcode_shlibpath_var=unsupported
9512 inherit_rpath=no
9513 link_all_deplibs=unknown
9514 module_cmds=
9515 module_expsym_cmds=
9516 old_archive_from_new_cmds=
9517 old_archive_from_expsyms_cmds=
9518 thread_safe_flag_spec=
9519 whole_archive_flag_spec=
9520 # include_expsyms should be a list of space-separated symbols to be *always*
9521 # included in the symbol list
9522 include_expsyms=
9523 # exclude_expsyms can be an extended regexp of symbols to exclude
9524 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9525 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9526 # as well as any symbol that contains 'd'.
9527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9529 # platforms (ab)use it in PIC code, but their linkers get confused if
9530 # the symbol is explicitly referenced. Since portable code cannot
9531 # rely on this symbol name, it's probably fine to never include it in
9532 # preloaded symbol tables.
9533 # Exclude shared library initialization/finalization symbols.
9534 extract_expsyms_cmds=
9535
9536 case $host_os in
9537 cygwin* | mingw* | pw32* | cegcc*)
9538 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9539 # When not using gcc, we currently assume that we are using
9540 # Microsoft Visual C++ or Intel C++ Compiler.
9541 if test yes != "$GCC"; then
9542 with_gnu_ld=no
9543 fi
9544 ;;
9545 interix*)
9546 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9547 with_gnu_ld=yes
9548 ;;
9549 openbsd* | bitrig*)
9550 with_gnu_ld=no
9551 ;;
9552 esac
9553
9554 ld_shlibs=yes
9555
9556 # On some targets, GNU ld is compatible enough with the native linker
9557 # that we're better off using the native interface for both.
9558 lt_use_gnu_ld_interface=no
9559 if test yes = "$with_gnu_ld"; then
9560 case $host_os in
9561 aix*)
9562 # The AIX port of GNU ld has always aspired to compatibility
9563 # with the native linker. However, as the warning in the GNU ld
9564 # block says, versions before 2.19.5* couldn't really create working
9565 # shared libraries, regardless of the interface used.
9566 case `$LD -v 2>&1` in
9567 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9568 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9569 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9570 *)
9571 lt_use_gnu_ld_interface=yes
9572 ;;
9573 esac
9574 ;;
9575 *)
9576 lt_use_gnu_ld_interface=yes
9577 ;;
9578 esac
9579 fi
9580
9581 if test yes = "$lt_use_gnu_ld_interface"; then
9582 # If archive_cmds runs LD, not CC, wlarc should be empty
9583 wlarc='$wl'
9584
9585 # Set some defaults for GNU ld with shared library support. These
9586 # are reset later if shared libraries are not supported. Putting them
9587 # here allows them to be overridden if necessary.
9588 runpath_var=LD_RUN_PATH
9589 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9590 export_dynamic_flag_spec='$wl--export-dynamic'
9591 # ancient GNU ld didn't support --whole-archive et. al.
9592 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9593 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9594 else
9595 whole_archive_flag_spec=
9596 fi
9597 supports_anon_versioning=no
9598 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9599 *GNU\ gold*) supports_anon_versioning=yes ;;
9600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9603 *\ 2.11.*) ;; # other 2.11 versions
9604 *) supports_anon_versioning=yes ;;
9605 esac
9606
9607 # See if GNU ld supports shared libraries.
9608 case $host_os in
9609 aix[3-9]*)
9610 # On AIX/PPC, the GNU linker is very broken
9611 if test ia64 != "$host_cpu"; then
9612 ld_shlibs=no
9613 cat <<_LT_EOF 1>&2
9614
9615 *** Warning: the GNU linker, at least up to release 2.19, is reported
9616 *** to be unable to reliably create shared libraries on AIX.
9617 *** Therefore, libtool is disabling shared libraries support. If you
9618 *** really care for shared libraries, you may want to install binutils
9619 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9620 *** You will then need to restart the configuration process.
9621
9622 _LT_EOF
9623 fi
9624 ;;
9625
9626 amigaos*)
9627 case $host_cpu in
9628 powerpc)
9629 # see comment about AmigaOS4 .so support
9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9631 archive_expsym_cmds=''
9632 ;;
9633 m68k)
9634 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)'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_minus_L=yes
9637 ;;
9638 esac
9639 ;;
9640
9641 beos*)
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 allow_undefined_flag=unsupported
9644 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9645 # support --undefined. This deserves some investigation. FIXME
9646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9647 else
9648 ld_shlibs=no
9649 fi
9650 ;;
9651
9652 cygwin* | mingw* | pw32* | cegcc*)
9653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9654 # as there is no search path for DLLs.
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 export_dynamic_flag_spec='$wl--export-all-symbols'
9657 allow_undefined_flag=unsupported
9658 always_export_symbols=no
9659 enable_shared_with_static_runtimes=yes
9660 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'
9661 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9662
9663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9665 # If the export-symbols file already is a .def file, use it as
9666 # is; otherwise, prepend EXPORTS...
9667 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9668 cp $export_symbols $output_objdir/$soname.def;
9669 else
9670 echo EXPORTS > $output_objdir/$soname.def;
9671 cat $export_symbols >> $output_objdir/$soname.def;
9672 fi~
9673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674 else
9675 ld_shlibs=no
9676 fi
9677 ;;
9678
9679 haiku*)
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9681 link_all_deplibs=yes
9682 ;;
9683
9684 os2*)
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_minus_L=yes
9687 allow_undefined_flag=unsupported
9688 shrext_cmds=.dll
9689 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9690 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9691 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9692 $ECHO EXPORTS >> $output_objdir/$libname.def~
9693 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9694 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9695 emximp -o $lib $output_objdir/$libname.def'
9696 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9697 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9698 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9699 $ECHO EXPORTS >> $output_objdir/$libname.def~
9700 prefix_cmds="$SED"~
9701 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9702 prefix_cmds="$prefix_cmds -e 1d";
9703 fi~
9704 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9705 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9706 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9707 emximp -o $lib $output_objdir/$libname.def'
9708 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9709 enable_shared_with_static_runtimes=yes
9710 file_list_spec='@'
9711 ;;
9712
9713 interix[3-9]*)
9714 hardcode_direct=no
9715 hardcode_shlibpath_var=no
9716 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9717 export_dynamic_flag_spec='$wl-E'
9718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9719 # Instead, shared libraries are loaded at an image base (0x10000000 by
9720 # default) and relocated if they conflict, which is a slow very memory
9721 # consuming and fragmenting process. To avoid this, we pick a random,
9722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9725 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'
9726 ;;
9727
9728 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9729 tmp_diet=no
9730 if test linux-dietlibc = "$host_os"; then
9731 case $cc_basename in
9732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9733 esac
9734 fi
9735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9736 && test no = "$tmp_diet"
9737 then
9738 tmp_addflag=' $pic_flag'
9739 tmp_sharedflag='-shared'
9740 case $cc_basename,$host_cpu in
9741 pgcc*) # Portland Group C compiler
9742 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'
9743 tmp_addflag=' $pic_flag'
9744 ;;
9745 pgf77* | pgf90* | pgf95* | pgfortran*)
9746 # Portland Group f77 and f90 compilers
9747 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'
9748 tmp_addflag=' $pic_flag -Mnomain' ;;
9749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9750 tmp_addflag=' -i_dynamic' ;;
9751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9752 tmp_addflag=' -i_dynamic -nofor_main' ;;
9753 ifc* | ifort*) # Intel Fortran compiler
9754 tmp_addflag=' -nofor_main' ;;
9755 lf95*) # Lahey Fortran 8.1
9756 whole_archive_flag_spec=
9757 tmp_sharedflag='--shared' ;;
9758 nagfor*) # NAGFOR 5.3
9759 tmp_sharedflag='-Wl,-shared' ;;
9760 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9761 tmp_sharedflag='-qmkshrobj'
9762 tmp_addflag= ;;
9763 nvcc*) # Cuda Compiler Driver 2.2
9764 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'
9765 compiler_needs_object=yes
9766 ;;
9767 esac
9768 case `$CC -V 2>&1 | $SED 5q` in
9769 *Sun\ C*) # Sun C 5.9
9770 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'
9771 compiler_needs_object=yes
9772 tmp_sharedflag='-G' ;;
9773 *Sun\ F*) # Sun Fortran 8.3
9774 tmp_sharedflag='-G' ;;
9775 esac
9776 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9777
9778 if test yes = "$supports_anon_versioning"; then
9779 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9780 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9781 echo "local: *; };" >> $output_objdir/$libname.ver~
9782 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9783 fi
9784
9785 case $cc_basename in
9786 tcc*)
9787 export_dynamic_flag_spec='-rdynamic'
9788 ;;
9789 xlf* | bgf* | bgxlf* | mpixlf*)
9790 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9791 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9792 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9793 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9794 if test yes = "$supports_anon_versioning"; then
9795 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9796 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9797 echo "local: *; };" >> $output_objdir/$libname.ver~
9798 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9799 fi
9800 ;;
9801 esac
9802 else
9803 ld_shlibs=no
9804 fi
9805 ;;
9806
9807 netbsd*)
9808 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9809 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9810 wlarc=
9811 else
9812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9813 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9814 fi
9815 ;;
9816
9817 solaris*)
9818 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9819 ld_shlibs=no
9820 cat <<_LT_EOF 1>&2
9821
9822 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9823 *** create shared libraries on Solaris systems. Therefore, libtool
9824 *** is disabling shared libraries support. We urge you to upgrade GNU
9825 *** binutils to release 2.9.1 or newer. Another option is to modify
9826 *** your PATH or compiler configuration so that the native linker is
9827 *** used, and then restart.
9828
9829 _LT_EOF
9830 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9833 else
9834 ld_shlibs=no
9835 fi
9836 ;;
9837
9838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9839 case `$LD -v 2>&1` in
9840 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9841 ld_shlibs=no
9842 cat <<_LT_EOF 1>&2
9843
9844 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9845 *** reliably create shared libraries on SCO systems. Therefore, libtool
9846 *** is disabling shared libraries support. We urge you to upgrade GNU
9847 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9848 *** your PATH or compiler configuration so that the native linker is
9849 *** used, and then restart.
9850
9851 _LT_EOF
9852 ;;
9853 *)
9854 # For security reasons, it is highly recommended that you always
9855 # use absolute paths for naming shared libraries, and exclude the
9856 # DT_RUNPATH tag from executables and libraries. But doing so
9857 # requires that you compile everything twice, which is a pain.
9858 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9862 else
9863 ld_shlibs=no
9864 fi
9865 ;;
9866 esac
9867 ;;
9868
9869 sunos4*)
9870 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871 wlarc=
9872 hardcode_direct=yes
9873 hardcode_shlibpath_var=no
9874 ;;
9875
9876 *)
9877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9880 else
9881 ld_shlibs=no
9882 fi
9883 ;;
9884 esac
9885
9886 if test no = "$ld_shlibs"; then
9887 runpath_var=
9888 hardcode_libdir_flag_spec=
9889 export_dynamic_flag_spec=
9890 whole_archive_flag_spec=
9891 fi
9892 else
9893 # PORTME fill in a description of your system's linker (not GNU ld)
9894 case $host_os in
9895 aix3*)
9896 allow_undefined_flag=unsupported
9897 always_export_symbols=yes
9898 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'
9899 # Note: this linker hardcodes the directories in LIBPATH if there
9900 # are no directories specified by -L.
9901 hardcode_minus_L=yes
9902 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9903 # Neither direct hardcoding nor static linking is supported with a
9904 # broken collect2.
9905 hardcode_direct=unsupported
9906 fi
9907 ;;
9908
9909 aix[4-9]*)
9910 if test ia64 = "$host_cpu"; then
9911 # On IA64, the linker does run time linking by default, so we don't
9912 # have to do anything special.
9913 aix_use_runtimelinking=no
9914 exp_sym_flag='-Bexport'
9915 no_entry_flag=
9916 else
9917 # If we're using GNU nm, then we don't want the "-C" option.
9918 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9919 # Without the "-l" option, or with the "-B" option, AIX nm treats
9920 # weak defined symbols like other global defined symbols, whereas
9921 # GNU nm marks them as "W".
9922 # While the 'weak' keyword is ignored in the Export File, we need
9923 # it in the Import File for the 'aix-soname' feature, so we have
9924 # to replace the "-B" option with "-P" for AIX nm.
9925 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9926 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'
9927 else
9928 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'
9929 fi
9930 aix_use_runtimelinking=no
9931
9932 # Test if we are trying to use run time linking or normal
9933 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9934 # have runtime linking enabled, and use it for executables.
9935 # For shared libraries, we enable/disable runtime linking
9936 # depending on the kind of the shared library created -
9937 # when "with_aix_soname,aix_use_runtimelinking" is:
9938 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9939 # "aix,yes" lib.so shared, rtl:yes, for executables
9940 # lib.a static archive
9941 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9942 # lib.a(lib.so.V) shared, rtl:no, for executables
9943 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9944 # lib.a(lib.so.V) shared, rtl:no
9945 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9946 # lib.a static archive
9947 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9948 for ld_flag in $LDFLAGS; do
9949 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9950 aix_use_runtimelinking=yes
9951 break
9952 fi
9953 done
9954 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9955 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9956 # so we don't have lib.a shared libs to link our executables.
9957 # We have to force runtime linking in this case.
9958 aix_use_runtimelinking=yes
9959 LDFLAGS="$LDFLAGS -Wl,-brtl"
9960 fi
9961 ;;
9962 esac
9963
9964 exp_sym_flag='-bexport'
9965 no_entry_flag='-bnoentry'
9966 fi
9967
9968 # When large executables or shared objects are built, AIX ld can
9969 # have problems creating the table of contents. If linking a library
9970 # or program results in "error TOC overflow" add -mminimal-toc to
9971 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9972 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9973
9974 archive_cmds=''
9975 hardcode_direct=yes
9976 hardcode_direct_absolute=yes
9977 hardcode_libdir_separator=':'
9978 link_all_deplibs=yes
9979 file_list_spec='$wl-f,'
9980 case $with_aix_soname,$aix_use_runtimelinking in
9981 aix,*) ;; # traditional, no import file
9982 svr4,* | *,yes) # use import file
9983 # The Import File defines what to hardcode.
9984 hardcode_direct=no
9985 hardcode_direct_absolute=no
9986 ;;
9987 esac
9988
9989 if test yes = "$GCC"; then
9990 case $host_os in aix4.[012]|aix4.[012].*)
9991 # We only want to do this on AIX 4.2 and lower, the check
9992 # below for broken collect2 doesn't work under 4.3+
9993 collect2name=`$CC -print-prog-name=collect2`
9994 if test -f "$collect2name" &&
9995 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9996 then
9997 # We have reworked collect2
9998 :
9999 else
10000 # We have old collect2
10001 hardcode_direct=unsupported
10002 # It fails to find uninstalled libraries when the uninstalled
10003 # path is not listed in the libpath. Setting hardcode_minus_L
10004 # to unsupported forces relinking
10005 hardcode_minus_L=yes
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_libdir_separator=
10008 fi
10009 ;;
10010 esac
10011 shared_flag='-shared'
10012 if test yes = "$aix_use_runtimelinking"; then
10013 shared_flag="$shared_flag "'$wl-G'
10014 fi
10015 # Need to ensure runtime linking is disabled for the traditional
10016 # shared library, or the linker may eventually find shared libraries
10017 # /with/ Import File - we do not want to mix them.
10018 shared_flag_aix='-shared'
10019 shared_flag_svr4='-shared $wl-G'
10020 else
10021 # not using gcc
10022 if test ia64 = "$host_cpu"; then
10023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10024 # chokes on -Wl,-G. The following line is correct:
10025 shared_flag='-G'
10026 else
10027 if test yes = "$aix_use_runtimelinking"; then
10028 shared_flag='$wl-G'
10029 else
10030 shared_flag='$wl-bM:SRE'
10031 fi
10032 shared_flag_aix='$wl-bM:SRE'
10033 shared_flag_svr4='$wl-G'
10034 fi
10035 fi
10036
10037 export_dynamic_flag_spec='$wl-bexpall'
10038 # It seems that -bexpall does not export symbols beginning with
10039 # underscore (_), so it is better to generate a list of symbols to export.
10040 always_export_symbols=yes
10041 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10042 # Warning - without using the other runtime loading flags (-brtl),
10043 # -berok will link without error, but may produce a broken library.
10044 allow_undefined_flag='-berok'
10045 # Determine the default libpath from the value encoded in an
10046 # empty executable.
10047 if test set = "${lt_cv_aix_libpath+set}"; then
10048 aix_libpath=$lt_cv_aix_libpath
10049 else
10050 if test ${lt_cv_aix_libpath_+y}
10051 then :
10052 printf %s "(cached) " >&6
10053 else $as_nop
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056
10057 int
10058 main (void)
10059 {
10060
10061 ;
10062 return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"
10066 then :
10067
10068 lt_aix_libpath_sed='
10069 /Import File Strings/,/^$/ {
10070 /^0/ {
10071 s/^0 *\([^ ]*\) *$/\1/
10072 p
10073 }
10074 }'
10075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10076 # Check for a 64-bit object if we didn't find anything.
10077 if test -z "$lt_cv_aix_libpath_"; then
10078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10079 fi
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10082 conftest$ac_exeext conftest.$ac_ext
10083 if test -z "$lt_cv_aix_libpath_"; then
10084 lt_cv_aix_libpath_=/usr/lib:/lib
10085 fi
10086
10087 fi
10088
10089 aix_libpath=$lt_cv_aix_libpath_
10090 fi
10091
10092 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10093 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
10094 else
10095 if test ia64 = "$host_cpu"; then
10096 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10097 allow_undefined_flag="-z nodefs"
10098 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"
10099 else
10100 # Determine the default libpath from the value encoded in an
10101 # empty executable.
10102 if test set = "${lt_cv_aix_libpath+set}"; then
10103 aix_libpath=$lt_cv_aix_libpath
10104 else
10105 if test ${lt_cv_aix_libpath_+y}
10106 then :
10107 printf %s "(cached) " >&6
10108 else $as_nop
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10111
10112 int
10113 main (void)
10114 {
10115
10116 ;
10117 return 0;
10118 }
10119 _ACEOF
10120 if ac_fn_c_try_link "$LINENO"
10121 then :
10122
10123 lt_aix_libpath_sed='
10124 /Import File Strings/,/^$/ {
10125 /^0/ {
10126 s/^0 *\([^ ]*\) *$/\1/
10127 p
10128 }
10129 }'
10130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10131 # Check for a 64-bit object if we didn't find anything.
10132 if test -z "$lt_cv_aix_libpath_"; then
10133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10134 fi
10135 fi
10136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10137 conftest$ac_exeext conftest.$ac_ext
10138 if test -z "$lt_cv_aix_libpath_"; then
10139 lt_cv_aix_libpath_=/usr/lib:/lib
10140 fi
10141
10142 fi
10143
10144 aix_libpath=$lt_cv_aix_libpath_
10145 fi
10146
10147 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10148 # Warning - without using the other run time loading flags,
10149 # -berok will link without error, but may produce a broken library.
10150 no_undefined_flag=' $wl-bernotok'
10151 allow_undefined_flag=' $wl-berok'
10152 if test yes = "$with_gnu_ld"; then
10153 # We only use this code for GNU lds that support --whole-archive.
10154 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10155 else
10156 # Exported symbols can be pulled into shared objects from archives
10157 whole_archive_flag_spec='$convenience'
10158 fi
10159 archive_cmds_need_lc=yes
10160 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10161 # -brtl affects multiple linker settings, -berok does not and is overridden later
10162 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10163 if test svr4 != "$with_aix_soname"; then
10164 # This is similar to how AIX traditionally builds its shared libraries.
10165 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'
10166 fi
10167 if test aix != "$with_aix_soname"; then
10168 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'
10169 else
10170 # used by -dlpreopen to get the symbols
10171 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10172 fi
10173 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10174 fi
10175 fi
10176 ;;
10177
10178 amigaos*)
10179 case $host_cpu in
10180 powerpc)
10181 # see comment about AmigaOS4 .so support
10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10183 archive_expsym_cmds=''
10184 ;;
10185 m68k)
10186 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)'
10187 hardcode_libdir_flag_spec='-L$libdir'
10188 hardcode_minus_L=yes
10189 ;;
10190 esac
10191 ;;
10192
10193 bsdi[45]*)
10194 export_dynamic_flag_spec=-rdynamic
10195 ;;
10196
10197 cygwin* | mingw* | pw32* | cegcc*)
10198 # When not using gcc, we currently assume that we are using
10199 # Microsoft Visual C++ or Intel C++ Compiler.
10200 # hardcode_libdir_flag_spec is actually meaningless, as there is
10201 # no search path for DLLs.
10202 case $cc_basename in
10203 cl* | icl*)
10204 # Native MSVC or ICC
10205 hardcode_libdir_flag_spec=' '
10206 allow_undefined_flag=unsupported
10207 always_export_symbols=yes
10208 file_list_spec='@'
10209 # Tell ltmain to make .lib files, not .a files.
10210 libext=lib
10211 # Tell ltmain to make .dll files, not .so files.
10212 shrext_cmds=.dll
10213 # FIXME: Setting linknames here is a bad hack.
10214 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10215 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10216 cp "$export_symbols" "$output_objdir/$soname.def";
10217 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10218 else
10219 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10220 fi~
10221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10222 linknames='
10223 # The linker will not automatically build a static lib if we build a DLL.
10224 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10225 enable_shared_with_static_runtimes=yes
10226 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10228 # Don't use ranlib
10229 old_postinstall_cmds='chmod 644 $oldlib'
10230 postlink_cmds='lt_outputfile="@OUTPUT@"~
10231 lt_tool_outputfile="@TOOL_OUTPUT@"~
10232 case $lt_outputfile in
10233 *.exe|*.EXE) ;;
10234 *)
10235 lt_outputfile=$lt_outputfile.exe
10236 lt_tool_outputfile=$lt_tool_outputfile.exe
10237 ;;
10238 esac~
10239 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10241 $RM "$lt_outputfile.manifest";
10242 fi'
10243 ;;
10244 *)
10245 # Assume MSVC and ICC wrapper
10246 hardcode_libdir_flag_spec=' '
10247 allow_undefined_flag=unsupported
10248 # Tell ltmain to make .lib files, not .a files.
10249 libext=lib
10250 # Tell ltmain to make .dll files, not .so files.
10251 shrext_cmds=.dll
10252 # FIXME: Setting linknames here is a bad hack.
10253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10254 # The linker will automatically build a .lib file if we build a DLL.
10255 old_archive_from_new_cmds='true'
10256 # FIXME: Should let the user specify the lib program.
10257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10258 enable_shared_with_static_runtimes=yes
10259 ;;
10260 esac
10261 ;;
10262
10263 darwin* | rhapsody*)
10264
10265
10266 archive_cmds_need_lc=no
10267 hardcode_direct=no
10268 hardcode_automatic=yes
10269 hardcode_shlibpath_var=unsupported
10270 if test yes = "$lt_cv_ld_force_load"; then
10271 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\"`'
10272
10273 else
10274 whole_archive_flag_spec=''
10275 fi
10276 link_all_deplibs=yes
10277 allow_undefined_flag=$_lt_dar_allow_undefined
10278 case $cc_basename in
10279 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10280 *) _lt_dar_can_shared=$GCC ;;
10281 esac
10282 if test yes = "$_lt_dar_can_shared"; then
10283 output_verbose_link_cmd=func_echo_all
10284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10286 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"
10287 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"
10288
10289 else
10290 ld_shlibs=no
10291 fi
10292
10293 ;;
10294
10295 dgux*)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 hardcode_shlibpath_var=no
10299 ;;
10300
10301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10302 # support. Future versions do this automatically, but an explicit c++rt0.o
10303 # does not break anything, and helps significantly (at the cost of a little
10304 # extra space).
10305 freebsd2.2*)
10306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10307 hardcode_libdir_flag_spec='-R$libdir'
10308 hardcode_direct=yes
10309 hardcode_shlibpath_var=no
10310 ;;
10311
10312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10313 freebsd2.*)
10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=yes
10316 hardcode_minus_L=yes
10317 hardcode_shlibpath_var=no
10318 ;;
10319
10320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10321 freebsd* | dragonfly* | midnightbsd*)
10322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10323 hardcode_libdir_flag_spec='-R$libdir'
10324 hardcode_direct=yes
10325 hardcode_shlibpath_var=no
10326 ;;
10327
10328 hpux9*)
10329 if test yes = "$GCC"; then
10330 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'
10331 else
10332 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'
10333 fi
10334 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10335 hardcode_libdir_separator=:
10336 hardcode_direct=yes
10337
10338 # hardcode_minus_L: Not really in the search PATH,
10339 # but as the default location of the library.
10340 hardcode_minus_L=yes
10341 export_dynamic_flag_spec='$wl-E'
10342 ;;
10343
10344 hpux10*)
10345 if test yes,no = "$GCC,$with_gnu_ld"; then
10346 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347 else
10348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10349 fi
10350 if test no = "$with_gnu_ld"; then
10351 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10352 hardcode_libdir_separator=:
10353 hardcode_direct=yes
10354 hardcode_direct_absolute=yes
10355 export_dynamic_flag_spec='$wl-E'
10356 # hardcode_minus_L: Not really in the search PATH,
10357 # but as the default location of the library.
10358 hardcode_minus_L=yes
10359 fi
10360 ;;
10361
10362 hpux11*)
10363 if test yes,no = "$GCC,$with_gnu_ld"; then
10364 case $host_cpu in
10365 hppa*64*)
10366 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 ;;
10368 ia64*)
10369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10370 ;;
10371 *)
10372 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10373 ;;
10374 esac
10375 else
10376 case $host_cpu in
10377 hppa*64*)
10378 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10379 ;;
10380 ia64*)
10381 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10382 ;;
10383 *)
10384
10385 # Older versions of the 11.00 compiler do not understand -b yet
10386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10388 printf %s "checking if $CC understands -b... " >&6; }
10389 if test ${lt_cv_prog_compiler__b+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else $as_nop
10393 lt_cv_prog_compiler__b=no
10394 save_LDFLAGS=$LDFLAGS
10395 LDFLAGS="$LDFLAGS -b"
10396 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10398 # The linker can only warn and ignore the option if not recognized
10399 # So say no if there are warnings
10400 if test -s conftest.err; then
10401 # Append any errors to the config.log.
10402 cat conftest.err 1>&5
10403 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10405 if diff conftest.exp conftest.er2 >/dev/null; then
10406 lt_cv_prog_compiler__b=yes
10407 fi
10408 else
10409 lt_cv_prog_compiler__b=yes
10410 fi
10411 fi
10412 $RM -r conftest*
10413 LDFLAGS=$save_LDFLAGS
10414
10415 fi
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10417 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10418
10419 if test yes = "$lt_cv_prog_compiler__b"; then
10420 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10421 else
10422 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10423 fi
10424
10425 ;;
10426 esac
10427 fi
10428 if test no = "$with_gnu_ld"; then
10429 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10430 hardcode_libdir_separator=:
10431
10432 case $host_cpu in
10433 hppa*64*|ia64*)
10434 hardcode_direct=no
10435 hardcode_shlibpath_var=no
10436 ;;
10437 *)
10438 hardcode_direct=yes
10439 hardcode_direct_absolute=yes
10440 export_dynamic_flag_spec='$wl-E'
10441
10442 # hardcode_minus_L: Not really in the search PATH,
10443 # but as the default location of the library.
10444 hardcode_minus_L=yes
10445 ;;
10446 esac
10447 fi
10448 ;;
10449
10450 irix5* | irix6* | nonstopux*)
10451 if test yes = "$GCC"; then
10452 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'
10453 # Try to use the -exported_symbol ld option, if it does not
10454 # work, assume that -exports_file does not work either and
10455 # implicitly export all symbols.
10456 # This should be the same for all languages, so no per-tag cache variable.
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10458 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10459 if test ${lt_cv_irix_exported_symbol+y}
10460 then :
10461 printf %s "(cached) " >&6
10462 else $as_nop
10463 save_LDFLAGS=$LDFLAGS
10464 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 int foo (void) { return 0; }
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"
10470 then :
10471 lt_cv_irix_exported_symbol=yes
10472 else $as_nop
10473 lt_cv_irix_exported_symbol=no
10474 fi
10475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LDFLAGS=$save_LDFLAGS
10478 fi
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10480 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10481 if test yes = "$lt_cv_irix_exported_symbol"; then
10482 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'
10483 fi
10484 else
10485 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'
10486 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'
10487 fi
10488 archive_cmds_need_lc='no'
10489 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10490 hardcode_libdir_separator=:
10491 inherit_rpath=yes
10492 link_all_deplibs=yes
10493 ;;
10494
10495 linux*)
10496 case $cc_basename in
10497 tcc*)
10498 # Fabrice Bellard et al's Tiny C Compiler
10499 ld_shlibs=yes
10500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10501 ;;
10502 esac
10503 ;;
10504
10505 netbsd*)
10506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10508 else
10509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10510 fi
10511 hardcode_libdir_flag_spec='-R$libdir'
10512 hardcode_direct=yes
10513 hardcode_shlibpath_var=no
10514 ;;
10515
10516 newsos6)
10517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_direct=yes
10519 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10520 hardcode_libdir_separator=:
10521 hardcode_shlibpath_var=no
10522 ;;
10523
10524 *nto* | *qnx*)
10525 ;;
10526
10527 openbsd* | bitrig*)
10528 if test -f /usr/libexec/ld.so; then
10529 hardcode_direct=yes
10530 hardcode_shlibpath_var=no
10531 hardcode_direct_absolute=yes
10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10535 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10536 export_dynamic_flag_spec='$wl-E'
10537 else
10538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10539 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10540 fi
10541 else
10542 ld_shlibs=no
10543 fi
10544 ;;
10545
10546 os2*)
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_minus_L=yes
10549 allow_undefined_flag=unsupported
10550 shrext_cmds=.dll
10551 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10552 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10553 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10554 $ECHO EXPORTS >> $output_objdir/$libname.def~
10555 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10556 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10557 emximp -o $lib $output_objdir/$libname.def'
10558 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10559 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10560 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10561 $ECHO EXPORTS >> $output_objdir/$libname.def~
10562 prefix_cmds="$SED"~
10563 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10564 prefix_cmds="$prefix_cmds -e 1d";
10565 fi~
10566 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10567 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10568 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10569 emximp -o $lib $output_objdir/$libname.def'
10570 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10571 enable_shared_with_static_runtimes=yes
10572 file_list_spec='@'
10573 ;;
10574
10575 osf3*)
10576 if test yes = "$GCC"; then
10577 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10578 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'
10579 else
10580 allow_undefined_flag=' -expect_unresolved \*'
10581 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'
10582 fi
10583 archive_cmds_need_lc='no'
10584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10585 hardcode_libdir_separator=:
10586 ;;
10587
10588 osf4* | osf5*) # as osf3* with the addition of -msym flag
10589 if test yes = "$GCC"; then
10590 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10591 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'
10592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10593 else
10594 allow_undefined_flag=' -expect_unresolved \*'
10595 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'
10596 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10597 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10598
10599 # Both c and cxx compiler support -rpath directly
10600 hardcode_libdir_flag_spec='-rpath $libdir'
10601 fi
10602 archive_cmds_need_lc='no'
10603 hardcode_libdir_separator=:
10604 ;;
10605
10606 solaris*)
10607 no_undefined_flag=' -z defs'
10608 if test yes = "$GCC"; then
10609 wlarc='$wl'
10610 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10612 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10613 else
10614 case `$CC -V 2>&1` in
10615 *"Compilers 5.0"*)
10616 wlarc=''
10617 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10619 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10620 ;;
10621 *)
10622 wlarc='$wl'
10623 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10625 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10626 ;;
10627 esac
10628 fi
10629 hardcode_libdir_flag_spec='-R$libdir'
10630 hardcode_shlibpath_var=no
10631 case $host_os in
10632 solaris2.[0-5] | solaris2.[0-5].*) ;;
10633 *)
10634 # The compiler driver will combine and reorder linker options,
10635 # but understands '-z linker_flag'. GCC discards it without '$wl',
10636 # but is careful enough not to reorder.
10637 # Supported since Solaris 2.6 (maybe 2.5.1?)
10638 if test yes = "$GCC"; then
10639 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10640 else
10641 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10642 fi
10643 ;;
10644 esac
10645 link_all_deplibs=yes
10646 ;;
10647
10648 sunos4*)
10649 if test sequent = "$host_vendor"; then
10650 # Use $CC to link under sequent, because it throws in some extra .o
10651 # files that make .init and .fini sections work.
10652 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10653 else
10654 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10655 fi
10656 hardcode_libdir_flag_spec='-L$libdir'
10657 hardcode_direct=yes
10658 hardcode_minus_L=yes
10659 hardcode_shlibpath_var=no
10660 ;;
10661
10662 sysv4)
10663 case $host_vendor in
10664 sni)
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes # is this really true???
10667 ;;
10668 siemens)
10669 ## LD is ld it makes a PLAMLIB
10670 ## CC just makes a GrossModule.
10671 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10672 reload_cmds='$CC -r -o $output$reload_objs'
10673 hardcode_direct=no
10674 ;;
10675 motorola)
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10678 ;;
10679 esac
10680 runpath_var='LD_RUN_PATH'
10681 hardcode_shlibpath_var=no
10682 ;;
10683
10684 sysv4.3*)
10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686 hardcode_shlibpath_var=no
10687 export_dynamic_flag_spec='-Bexport'
10688 ;;
10689
10690 sysv4*MP*)
10691 if test -d /usr/nec; then
10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_shlibpath_var=no
10694 runpath_var=LD_RUN_PATH
10695 hardcode_runpath_var=yes
10696 ld_shlibs=yes
10697 fi
10698 ;;
10699
10700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10701 no_undefined_flag='$wl-z,text'
10702 archive_cmds_need_lc=no
10703 hardcode_shlibpath_var=no
10704 runpath_var='LD_RUN_PATH'
10705
10706 if test yes = "$GCC"; then
10707 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10708 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 else
10710 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10712 fi
10713 ;;
10714
10715 sysv5* | sco3.2v5* | sco5v6*)
10716 # Note: We CANNOT use -z defs as we might desire, because we do not
10717 # link with -lc, and that would cause any symbols used from libc to
10718 # always be unresolved, which means just about no library would
10719 # ever link correctly. If we're not using GNU ld we use -z text
10720 # though, which does catch some bad symbols but isn't as heavy-handed
10721 # as -z defs.
10722 no_undefined_flag='$wl-z,text'
10723 allow_undefined_flag='$wl-z,nodefs'
10724 archive_cmds_need_lc=no
10725 hardcode_shlibpath_var=no
10726 hardcode_libdir_flag_spec='$wl-R,$libdir'
10727 hardcode_libdir_separator=':'
10728 link_all_deplibs=yes
10729 export_dynamic_flag_spec='$wl-Bexport'
10730 runpath_var='LD_RUN_PATH'
10731
10732 if test yes = "$GCC"; then
10733 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735 else
10736 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 fi
10739 ;;
10740
10741 uts4*)
10742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10743 hardcode_libdir_flag_spec='-L$libdir'
10744 hardcode_shlibpath_var=no
10745 ;;
10746
10747 *)
10748 ld_shlibs=no
10749 ;;
10750 esac
10751
10752 if test sni = "$host_vendor"; then
10753 case $host in
10754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10755 export_dynamic_flag_spec='$wl-Blargedynsym'
10756 ;;
10757 esac
10758 fi
10759 fi
10760
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10762 printf "%s\n" "$ld_shlibs" >&6; }
10763 test no = "$ld_shlibs" && can_build_shared=no
10764
10765 with_gnu_ld=$with_gnu_ld
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781 #
10782 # Do we need to explicitly link libc?
10783 #
10784 case "x$archive_cmds_need_lc" in
10785 x|xyes)
10786 # Assume -lc should be added
10787 archive_cmds_need_lc=yes
10788
10789 if test yes,yes = "$GCC,$enable_shared"; then
10790 case $archive_cmds in
10791 *'~'*)
10792 # FIXME: we may have to deal with multi-command sequences.
10793 ;;
10794 '$CC '*)
10795 # Test whether the compiler implicitly links with -lc since on some
10796 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10797 # to ld, don't add -lc before -lgcc.
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10799 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10800 if test ${lt_cv_archive_cmds_need_lc+y}
10801 then :
10802 printf %s "(cached) " >&6
10803 else $as_nop
10804 $RM conftest*
10805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10806
10807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10808 (eval $ac_compile) 2>&5
10809 ac_status=$?
10810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811 test $ac_status = 0; } 2>conftest.err; then
10812 soname=conftest
10813 lib=conftest
10814 libobjs=conftest.$ac_objext
10815 deplibs=
10816 wl=$lt_prog_compiler_wl
10817 pic_flag=$lt_prog_compiler_pic
10818 compiler_flags=-v
10819 linker_flags=-v
10820 verstring=
10821 output_objdir=.
10822 libname=conftest
10823 lt_save_allow_undefined_flag=$allow_undefined_flag
10824 allow_undefined_flag=
10825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10826 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10827 ac_status=$?
10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10829 test $ac_status = 0; }
10830 then
10831 lt_cv_archive_cmds_need_lc=no
10832 else
10833 lt_cv_archive_cmds_need_lc=yes
10834 fi
10835 allow_undefined_flag=$lt_save_allow_undefined_flag
10836 else
10837 cat conftest.err 1>&5
10838 fi
10839 $RM conftest*
10840
10841 fi
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10843 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10844 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10845 ;;
10846 esac
10847 fi
10848 ;;
10849 esac
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11003 printf %s "checking dynamic linker characteristics... " >&6; }
11004
11005 if test yes = "$GCC"; then
11006 case $host_os in
11007 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11008 *) lt_awk_arg='/^libraries:/' ;;
11009 esac
11010 case $host_os in
11011 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11012 *) lt_sed_strip_eq='s|=/|/|g' ;;
11013 esac
11014 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11015 case $lt_search_path_spec in
11016 *\;*)
11017 # if the path contains ";" then we assume it to be the separator
11018 # otherwise default to the standard path separator (i.e. ":") - it is
11019 # assumed that no part of a normal pathname contains ";" but that should
11020 # okay in the real world where ";" in dirpaths is itself problematic.
11021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11022 ;;
11023 *)
11024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11025 ;;
11026 esac
11027 # Ok, now we have the path, separated by spaces, we can step through it
11028 # and add multilib dir if necessary...
11029 lt_tmp_lt_search_path_spec=
11030 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11031 # ...but if some path component already ends with the multilib dir we assume
11032 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11033 case "$lt_multi_os_dir; $lt_search_path_spec " in
11034 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11035 lt_multi_os_dir=
11036 ;;
11037 esac
11038 for lt_sys_path in $lt_search_path_spec; do
11039 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11040 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11041 elif test -n "$lt_multi_os_dir"; then
11042 test -d "$lt_sys_path" && \
11043 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11044 fi
11045 done
11046 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11047 BEGIN {RS = " "; FS = "/|\n";} {
11048 lt_foo = "";
11049 lt_count = 0;
11050 for (lt_i = NF; lt_i > 0; lt_i--) {
11051 if ($lt_i != "" && $lt_i != ".") {
11052 if ($lt_i == "..") {
11053 lt_count++;
11054 } else {
11055 if (lt_count == 0) {
11056 lt_foo = "/" $lt_i lt_foo;
11057 } else {
11058 lt_count--;
11059 }
11060 }
11061 }
11062 }
11063 if (lt_foo != "") { lt_freq[lt_foo]++; }
11064 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11065 }'`
11066 # AWK program above erroneously prepends '/' to C:/dos/paths
11067 # for these hosts.
11068 case $host_os in
11069 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11070 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11071 esac
11072 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11073 else
11074 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11075 fi
11076 library_names_spec=
11077 libname_spec='lib$name'
11078 soname_spec=
11079 shrext_cmds=.so
11080 postinstall_cmds=
11081 postuninstall_cmds=
11082 finish_cmds=
11083 finish_eval=
11084 shlibpath_var=
11085 shlibpath_overrides_runpath=unknown
11086 version_type=none
11087 dynamic_linker="$host_os ld.so"
11088 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11089 need_lib_prefix=unknown
11090 hardcode_into_libs=no
11091
11092 # when you set need_version to no, make sure it does not cause -set_version
11093 # flags to be left without arguments
11094 need_version=unknown
11095
11096
11097
11098 case $host_os in
11099 aix3*)
11100 version_type=linux # correct to gnu/linux during the next big refactor
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11102 shlibpath_var=LIBPATH
11103
11104 # AIX 3 has no versioning support, so we append a major version to the name.
11105 soname_spec='$libname$release$shared_ext$major'
11106 ;;
11107
11108 aix[4-9]*)
11109 version_type=linux # correct to gnu/linux during the next big refactor
11110 need_lib_prefix=no
11111 need_version=no
11112 hardcode_into_libs=yes
11113 if test ia64 = "$host_cpu"; then
11114 # AIX 5 supports IA64
11115 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 else
11118 # With GCC up to 2.95.x, collect2 would create an import file
11119 # for dependence libraries. The import file would start with
11120 # the line '#! .'. This would cause the generated library to
11121 # depend on '.', always an invalid library. This was fixed in
11122 # development snapshots of GCC prior to 3.0.
11123 case $host_os in
11124 aix4 | aix4.[01] | aix4.[01].*)
11125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11126 echo ' yes '
11127 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11128 :
11129 else
11130 can_build_shared=no
11131 fi
11132 ;;
11133 esac
11134 # Using Import Files as archive members, it is possible to support
11135 # filename-based versioning of shared library archives on AIX. While
11136 # this would work for both with and without runtime linking, it will
11137 # prevent static linking of such archives. So we do filename-based
11138 # shared library versioning with .so extension only, which is used
11139 # when both runtime linking and shared linking is enabled.
11140 # Unfortunately, runtime linking may impact performance, so we do
11141 # not want this to be the default eventually. Also, we use the
11142 # versioned .so libs for executables only if there is the -brtl
11143 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11144 # To allow for filename-based versioning support, we need to create
11145 # libNAME.so.V as an archive file, containing:
11146 # *) an Import File, referring to the versioned filename of the
11147 # archive as well as the shared archive member, telling the
11148 # bitwidth (32 or 64) of that shared object, and providing the
11149 # list of exported symbols of that shared object, eventually
11150 # decorated with the 'weak' keyword
11151 # *) the shared object with the F_LOADONLY flag set, to really avoid
11152 # it being seen by the linker.
11153 # At run time we better use the real file rather than another symlink,
11154 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11155
11156 case $with_aix_soname,$aix_use_runtimelinking in
11157 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11158 # soname into executable. Probably we can add versioning support to
11159 # collect2, so additional links can be useful in future.
11160 aix,yes) # traditional libtool
11161 dynamic_linker='AIX unversionable lib.so'
11162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11163 # instead of lib<name>.a to let people know that these are not
11164 # typical AIX shared libraries.
11165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166 ;;
11167 aix,no) # traditional AIX only
11168 dynamic_linker='AIX lib.a(lib.so.V)'
11169 # We preserve .a as extension for shared libraries through AIX4.2
11170 # and later when we are not doing run time linking.
11171 library_names_spec='$libname$release.a $libname.a'
11172 soname_spec='$libname$release$shared_ext$major'
11173 ;;
11174 svr4,*) # full svr4 only
11175 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11176 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11177 # We do not specify a path in Import Files, so LIBPATH fires.
11178 shlibpath_overrides_runpath=yes
11179 ;;
11180 *,yes) # both, prefer svr4
11181 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11182 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11183 # unpreferred sharedlib libNAME.a needs extra handling
11184 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"'
11185 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"'
11186 # We do not specify a path in Import Files, so LIBPATH fires.
11187 shlibpath_overrides_runpath=yes
11188 ;;
11189 *,no) # both, prefer aix
11190 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11191 library_names_spec='$libname$release.a $libname.a'
11192 soname_spec='$libname$release$shared_ext$major'
11193 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11194 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)'
11195 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"'
11196 ;;
11197 esac
11198 shlibpath_var=LIBPATH
11199 fi
11200 ;;
11201
11202 amigaos*)
11203 case $host_cpu in
11204 powerpc)
11205 # Since July 2007 AmigaOS4 officially supports .so libraries.
11206 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11208 ;;
11209 m68k)
11210 library_names_spec='$libname.ixlibrary $libname.a'
11211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11212 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'
11213 ;;
11214 esac
11215 ;;
11216
11217 beos*)
11218 library_names_spec='$libname$shared_ext'
11219 dynamic_linker="$host_os ld.so"
11220 shlibpath_var=LIBRARY_PATH
11221 ;;
11222
11223 bsdi[45]*)
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 need_version=no
11226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227 soname_spec='$libname$release$shared_ext$major'
11228 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11231 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11232 # the default ld.so.conf also contains /usr/contrib/lib and
11233 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11234 # libtool to hard-code these into programs
11235 ;;
11236
11237 cygwin* | mingw* | pw32* | cegcc*)
11238 version_type=windows
11239 shrext_cmds=.dll
11240 need_version=no
11241 need_lib_prefix=no
11242
11243 case $GCC,$cc_basename in
11244 yes,*)
11245 # gcc
11246 library_names_spec='$libname.dll.a'
11247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11248 postinstall_cmds='base_file=`basename \$file`~
11249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11250 dldir=$destdir/`dirname \$dlpath`~
11251 test -d \$dldir || mkdir -p \$dldir~
11252 $install_prog $dir/$dlname \$dldir/$dlname~
11253 chmod a+x \$dldir/$dlname~
11254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11256 fi'
11257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11258 dlpath=$dir/\$dldll~
11259 $RM \$dlpath'
11260 shlibpath_overrides_runpath=yes
11261
11262 case $host_os in
11263 cygwin*)
11264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11265 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11266
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11268 ;;
11269 mingw* | cegcc*)
11270 # MinGW DLLs use traditional 'lib' prefix
11271 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11272 ;;
11273 pw32*)
11274 # pw32 DLLs use 'pw' prefix rather than 'lib'
11275 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11276 ;;
11277 esac
11278 dynamic_linker='Win32 ld.exe'
11279 ;;
11280
11281 *,cl* | *,icl*)
11282 # Native MSVC or ICC
11283 libname_spec='$name'
11284 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11285 library_names_spec='$libname.dll.lib'
11286
11287 case $build_os in
11288 mingw*)
11289 sys_lib_search_path_spec=
11290 lt_save_ifs=$IFS
11291 IFS=';'
11292 for lt_path in $LIB
11293 do
11294 IFS=$lt_save_ifs
11295 # Let DOS variable expansion print the short 8.3 style file name.
11296 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11297 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11298 done
11299 IFS=$lt_save_ifs
11300 # Convert to MSYS style.
11301 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11302 ;;
11303 cygwin*)
11304 # Convert to unix form, then to dos form, then back to unix form
11305 # but this time dos style (no spaces!) so that the unix form looks
11306 # like /cygdrive/c/PROGRA~1:/cygdr...
11307 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11308 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11309 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11310 ;;
11311 *)
11312 sys_lib_search_path_spec=$LIB
11313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11314 # It is most probably a Windows format PATH.
11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11316 else
11317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11318 fi
11319 # FIXME: find the short name or the path components, as spaces are
11320 # common. (e.g. "Program Files" -> "PROGRA~1")
11321 ;;
11322 esac
11323
11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325 postinstall_cmds='base_file=`basename \$file`~
11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11327 dldir=$destdir/`dirname \$dlpath`~
11328 test -d \$dldir || mkdir -p \$dldir~
11329 $install_prog $dir/$dlname \$dldir/$dlname'
11330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11331 dlpath=$dir/\$dldll~
11332 $RM \$dlpath'
11333 shlibpath_overrides_runpath=yes
11334 dynamic_linker='Win32 link.exe'
11335 ;;
11336
11337 *)
11338 # Assume MSVC and ICC wrapper
11339 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11340 dynamic_linker='Win32 ld.exe'
11341 ;;
11342 esac
11343 # FIXME: first we should search . and the directory the executable is in
11344 shlibpath_var=PATH
11345 ;;
11346
11347 darwin* | rhapsody*)
11348 dynamic_linker="$host_os dyld"
11349 version_type=darwin
11350 need_lib_prefix=no
11351 need_version=no
11352 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11353 soname_spec='$libname$release$major$shared_ext'
11354 shlibpath_overrides_runpath=yes
11355 shlibpath_var=DYLD_LIBRARY_PATH
11356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11357
11358 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11360 ;;
11361
11362 dgux*)
11363 version_type=linux # correct to gnu/linux during the next big refactor
11364 need_lib_prefix=no
11365 need_version=no
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 soname_spec='$libname$release$shared_ext$major'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 ;;
11370
11371 freebsd* | dragonfly* | midnightbsd*)
11372 # DragonFly does not have aout. When/if they implement a new
11373 # versioning mechanism, adjust this.
11374 if test -x /usr/bin/objformat; then
11375 objformat=`/usr/bin/objformat`
11376 else
11377 case $host_os in
11378 freebsd[23].*) objformat=aout ;;
11379 *) objformat=elf ;;
11380 esac
11381 fi
11382 version_type=freebsd-$objformat
11383 case $version_type in
11384 freebsd-elf*)
11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11386 soname_spec='$libname$release$shared_ext$major'
11387 need_version=no
11388 need_lib_prefix=no
11389 ;;
11390 freebsd-*)
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11392 need_version=yes
11393 ;;
11394 esac
11395 shlibpath_var=LD_LIBRARY_PATH
11396 case $host_os in
11397 freebsd2.*)
11398 shlibpath_overrides_runpath=yes
11399 ;;
11400 freebsd3.[01]* | freebsdelf3.[01]*)
11401 shlibpath_overrides_runpath=yes
11402 hardcode_into_libs=yes
11403 ;;
11404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11406 shlibpath_overrides_runpath=no
11407 hardcode_into_libs=yes
11408 ;;
11409 *) # from 4.6 on, and DragonFly
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11412 ;;
11413 esac
11414 ;;
11415
11416 haiku*)
11417 version_type=linux # correct to gnu/linux during the next big refactor
11418 need_lib_prefix=no
11419 need_version=no
11420 dynamic_linker="$host_os runtime_loader"
11421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11422 soname_spec='$libname$release$shared_ext$major'
11423 shlibpath_var=LIBRARY_PATH
11424 shlibpath_overrides_runpath=no
11425 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11426 hardcode_into_libs=yes
11427 ;;
11428
11429 hpux9* | hpux10* | hpux11*)
11430 # Give a soname corresponding to the major version so that dld.sl refuses to
11431 # link against other versions.
11432 version_type=sunos
11433 need_lib_prefix=no
11434 need_version=no
11435 case $host_cpu in
11436 ia64*)
11437 shrext_cmds='.so'
11438 hardcode_into_libs=yes
11439 dynamic_linker="$host_os dld.so"
11440 shlibpath_var=LD_LIBRARY_PATH
11441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443 soname_spec='$libname$release$shared_ext$major'
11444 if test 32 = "$HPUX_IA64_MODE"; then
11445 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11446 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11447 else
11448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11449 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11450 fi
11451 ;;
11452 hppa*64*)
11453 shrext_cmds='.sl'
11454 hardcode_into_libs=yes
11455 dynamic_linker="$host_os dld.sl"
11456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11459 soname_spec='$libname$release$shared_ext$major'
11460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462 ;;
11463 *)
11464 shrext_cmds='.sl'
11465 dynamic_linker="$host_os dld.sl"
11466 shlibpath_var=SHLIB_PATH
11467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11469 soname_spec='$libname$release$shared_ext$major'
11470 ;;
11471 esac
11472 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11473 postinstall_cmds='chmod 555 $lib'
11474 # or fails outright, so override atomically:
11475 install_override_mode=555
11476 ;;
11477
11478 interix[3-9]*)
11479 version_type=linux # correct to gnu/linux during the next big refactor
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 shlibpath_overrides_runpath=no
11487 hardcode_into_libs=yes
11488 ;;
11489
11490 irix5* | irix6* | nonstopux*)
11491 case $host_os in
11492 nonstopux*) version_type=nonstopux ;;
11493 *)
11494 if test yes = "$lt_cv_prog_gnu_ld"; then
11495 version_type=linux # correct to gnu/linux during the next big refactor
11496 else
11497 version_type=irix
11498 fi ;;
11499 esac
11500 need_lib_prefix=no
11501 need_version=no
11502 soname_spec='$libname$release$shared_ext$major'
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11504 case $host_os in
11505 irix5* | nonstopux*)
11506 libsuff= shlibsuff=
11507 ;;
11508 *)
11509 case $LD in # libtool.m4 will add one of these switches to LD
11510 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11511 libsuff= shlibsuff= libmagic=32-bit;;
11512 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11513 libsuff=32 shlibsuff=N32 libmagic=N32;;
11514 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11515 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11516 *) libsuff= shlibsuff= libmagic=never-match;;
11517 esac
11518 ;;
11519 esac
11520 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11521 shlibpath_overrides_runpath=no
11522 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11523 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11524 hardcode_into_libs=yes
11525 ;;
11526
11527 # No shared lib support for Linux oldld, aout, or coff.
11528 linux*oldld* | linux*aout* | linux*coff*)
11529 dynamic_linker=no
11530 ;;
11531
11532 linux*android*)
11533 version_type=none # Android doesn't support versioned libraries.
11534 need_lib_prefix=no
11535 need_version=no
11536 library_names_spec='$libname$release$shared_ext'
11537 soname_spec='$libname$release$shared_ext'
11538 finish_cmds=
11539 shlibpath_var=LD_LIBRARY_PATH
11540 shlibpath_overrides_runpath=yes
11541
11542 # This implies no fast_install, which is unacceptable.
11543 # Some rework will be needed to allow for fast_install
11544 # before this can be enabled.
11545 hardcode_into_libs=yes
11546
11547 dynamic_linker='Android linker'
11548 # Don't embed -rpath directories since the linker doesn't support them.
11549 hardcode_libdir_flag_spec='-L$libdir'
11550 ;;
11551
11552 # This must be glibc/ELF.
11553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11554 version_type=linux # correct to gnu/linux during the next big refactor
11555 need_lib_prefix=no
11556 need_version=no
11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11558 soname_spec='$libname$release$shared_ext$major'
11559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=no
11562
11563 # Some binutils ld are patched to set DT_RUNPATH
11564 if test ${lt_cv_shlibpath_overrides_runpath+y}
11565 then :
11566 printf %s "(cached) " >&6
11567 else $as_nop
11568 lt_cv_shlibpath_overrides_runpath=no
11569 save_LDFLAGS=$LDFLAGS
11570 save_libdir=$libdir
11571 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11572 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575
11576 int
11577 main (void)
11578 {
11579
11580 ;
11581 return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"
11585 then :
11586 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11587 then :
11588 lt_cv_shlibpath_overrides_runpath=yes
11589 fi
11590 fi
11591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LDFLAGS=$save_LDFLAGS
11594 libdir=$save_libdir
11595
11596 fi
11597
11598 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11599
11600 # This implies no fast_install, which is unacceptable.
11601 # Some rework will be needed to allow for fast_install
11602 # before this can be enabled.
11603 hardcode_into_libs=yes
11604
11605 # Ideally, we could use ldconfig to report *all* directores which are
11606 # searched for libraries, however this is still not possible. Aside from not
11607 # being certain /sbin/ldconfig is available, command
11608 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11609 # even though it is searched at run-time. Try to do the best guess by
11610 # appending ld.so.conf contents (and includes) to the search path.
11611 if test -f /etc/ld.so.conf; then
11612 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' ' '`
11613 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11614 fi
11615
11616 # We used to test for /lib/ld.so.1 and disable shared libraries on
11617 # powerpc, because MkLinux only supported shared libraries with the
11618 # GNU dynamic linker. Since this was broken with cross compilers,
11619 # most powerpc-linux boxes support dynamic linking these days and
11620 # people can always --disable-shared, the test was removed, and we
11621 # assume the GNU/Linux dynamic linker is in use.
11622 dynamic_linker='GNU/Linux ld.so'
11623 ;;
11624
11625 netbsd*)
11626 version_type=sunos
11627 need_lib_prefix=no
11628 need_version=no
11629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11630 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11632 dynamic_linker='NetBSD (a.out) ld.so'
11633 else
11634 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11635 soname_spec='$libname$release$shared_ext$major'
11636 dynamic_linker='NetBSD ld.elf_so'
11637 fi
11638 shlibpath_var=LD_LIBRARY_PATH
11639 shlibpath_overrides_runpath=yes
11640 hardcode_into_libs=yes
11641 ;;
11642
11643 newsos6)
11644 version_type=linux # correct to gnu/linux during the next big refactor
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=yes
11648 ;;
11649
11650 *nto* | *qnx*)
11651 version_type=qnx
11652 need_lib_prefix=no
11653 need_version=no
11654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655 soname_spec='$libname$release$shared_ext$major'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath=no
11658 hardcode_into_libs=yes
11659 dynamic_linker='ldqnx.so'
11660 ;;
11661
11662 openbsd* | bitrig*)
11663 version_type=sunos
11664 sys_lib_dlsearch_path_spec=/usr/lib
11665 need_lib_prefix=no
11666 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11667 need_version=no
11668 else
11669 need_version=yes
11670 fi
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=yes
11675 ;;
11676
11677 os2*)
11678 libname_spec='$name'
11679 version_type=windows
11680 shrext_cmds=.dll
11681 need_version=no
11682 need_lib_prefix=no
11683 # OS/2 can only load a DLL with a base name of 8 characters or less.
11684 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11685 v=$($ECHO $release$versuffix | tr -d .-);
11686 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11687 $ECHO $n$v`$shared_ext'
11688 library_names_spec='${libname}_dll.$libext'
11689 dynamic_linker='OS/2 ld.exe'
11690 shlibpath_var=BEGINLIBPATH
11691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11693 postinstall_cmds='base_file=`basename \$file`~
11694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11695 dldir=$destdir/`dirname \$dlpath`~
11696 test -d \$dldir || mkdir -p \$dldir~
11697 $install_prog $dir/$dlname \$dldir/$dlname~
11698 chmod a+x \$dldir/$dlname~
11699 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11700 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11701 fi'
11702 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11703 dlpath=$dir/\$dldll~
11704 $RM \$dlpath'
11705 ;;
11706
11707 osf3* | osf4* | osf5*)
11708 version_type=osf
11709 need_lib_prefix=no
11710 need_version=no
11711 soname_spec='$libname$release$shared_ext$major'
11712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11716 ;;
11717
11718 rdos*)
11719 dynamic_linker=no
11720 ;;
11721
11722 solaris*)
11723 version_type=linux # correct to gnu/linux during the next big refactor
11724 need_lib_prefix=no
11725 need_version=no
11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727 soname_spec='$libname$release$shared_ext$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 hardcode_into_libs=yes
11731 # ldd complains unless libraries are executable
11732 postinstall_cmds='chmod +x $lib'
11733 ;;
11734
11735 sunos4*)
11736 version_type=sunos
11737 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11741 if test yes = "$with_gnu_ld"; then
11742 need_lib_prefix=no
11743 fi
11744 need_version=yes
11745 ;;
11746
11747 sysv4 | sysv4.3*)
11748 version_type=linux # correct to gnu/linux during the next big refactor
11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11750 soname_spec='$libname$release$shared_ext$major'
11751 shlibpath_var=LD_LIBRARY_PATH
11752 case $host_vendor in
11753 sni)
11754 shlibpath_overrides_runpath=no
11755 need_lib_prefix=no
11756 runpath_var=LD_RUN_PATH
11757 ;;
11758 siemens)
11759 need_lib_prefix=no
11760 ;;
11761 motorola)
11762 need_lib_prefix=no
11763 need_version=no
11764 shlibpath_overrides_runpath=no
11765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11766 ;;
11767 esac
11768 ;;
11769
11770 sysv4*MP*)
11771 if test -d /usr/nec; then
11772 version_type=linux # correct to gnu/linux during the next big refactor
11773 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11774 soname_spec='$libname$shared_ext.$major'
11775 shlibpath_var=LD_LIBRARY_PATH
11776 fi
11777 ;;
11778
11779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11780 version_type=sco
11781 need_lib_prefix=no
11782 need_version=no
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11784 soname_spec='$libname$release$shared_ext$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath=yes
11787 hardcode_into_libs=yes
11788 if test yes = "$with_gnu_ld"; then
11789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11790 else
11791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11792 case $host_os in
11793 sco3.2v5*)
11794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11795 ;;
11796 esac
11797 fi
11798 sys_lib_dlsearch_path_spec='/usr/lib'
11799 ;;
11800
11801 tpf*)
11802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11803 version_type=linux # correct to gnu/linux during the next big refactor
11804 need_lib_prefix=no
11805 need_version=no
11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11810 ;;
11811
11812 uts4*)
11813 version_type=linux # correct to gnu/linux during the next big refactor
11814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11815 soname_spec='$libname$release$shared_ext$major'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 ;;
11818
11819 *)
11820 dynamic_linker=no
11821 ;;
11822 esac
11823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11824 printf "%s\n" "$dynamic_linker" >&6; }
11825 test no = "$dynamic_linker" && can_build_shared=no
11826
11827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11828 if test yes = "$GCC"; then
11829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11830 fi
11831
11832 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11833 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11834 fi
11835
11836 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11837 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11838 fi
11839
11840 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11841 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11842
11843 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11844 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11845
11846 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11847 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11946 printf %s "checking how to hardcode library paths into programs... " >&6; }
11947 hardcode_action=
11948 if test -n "$hardcode_libdir_flag_spec" ||
11949 test -n "$runpath_var" ||
11950 test yes = "$hardcode_automatic"; then
11951
11952 # We can hardcode non-existent directories.
11953 if test no != "$hardcode_direct" &&
11954 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11955 # have to relink, otherwise we might link with an installed library
11956 # when we should be linking with a yet-to-be-installed one
11957 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11958 test no != "$hardcode_minus_L"; then
11959 # Linking always hardcodes the temporary library directory.
11960 hardcode_action=relink
11961 else
11962 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11963 hardcode_action=immediate
11964 fi
11965 else
11966 # We cannot hardcode anything, or else we can only hardcode existing
11967 # directories.
11968 hardcode_action=unsupported
11969 fi
11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11971 printf "%s\n" "$hardcode_action" >&6; }
11972
11973 if test relink = "$hardcode_action" ||
11974 test yes = "$inherit_rpath"; then
11975 # Fast installation is not supported
11976 enable_fast_install=no
11977 elif test yes = "$shlibpath_overrides_runpath" ||
11978 test no = "$enable_shared"; then
11979 # Fast installation is not necessary
11980 enable_fast_install=needless
11981 fi
11982
11983
11984
11985
11986
11987
11988 if test yes != "$enable_dlopen"; then
11989 enable_dlopen=unknown
11990 enable_dlopen_self=unknown
11991 enable_dlopen_self_static=unknown
11992 else
11993 lt_cv_dlopen=no
11994 lt_cv_dlopen_libs=
11995
11996 case $host_os in
11997 beos*)
11998 lt_cv_dlopen=load_add_on
11999 lt_cv_dlopen_libs=
12000 lt_cv_dlopen_self=yes
12001 ;;
12002
12003 mingw* | pw32* | cegcc*)
12004 lt_cv_dlopen=LoadLibrary
12005 lt_cv_dlopen_libs=
12006 ;;
12007
12008 cygwin*)
12009 lt_cv_dlopen=dlopen
12010 lt_cv_dlopen_libs=
12011 ;;
12012
12013 darwin*)
12014 # if libdl is installed we need to link against it
12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12016 printf %s "checking for dlopen in -ldl... " >&6; }
12017 if test ${ac_cv_lib_dl_dlopen+y}
12018 then :
12019 printf %s "(cached) " >&6
12020 else $as_nop
12021 ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-ldl $LIBS"
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h. */
12025
12026 /* Override any GCC internal prototype to avoid an error.
12027 Use char because int might match the return type of a GCC
12028 builtin and then its argument prototype would still apply. */
12029 char dlopen ();
12030 int
12031 main (void)
12032 {
12033 return dlopen ();
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_link "$LINENO"
12039 then :
12040 ac_cv_lib_dl_dlopen=yes
12041 else $as_nop
12042 ac_cv_lib_dl_dlopen=no
12043 fi
12044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12045 conftest$ac_exeext conftest.$ac_ext
12046 LIBS=$ac_check_lib_save_LIBS
12047 fi
12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12049 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12050 if test "x$ac_cv_lib_dl_dlopen" = xyes
12051 then :
12052 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12053 else $as_nop
12054
12055 lt_cv_dlopen=dyld
12056 lt_cv_dlopen_libs=
12057 lt_cv_dlopen_self=yes
12058
12059 fi
12060
12061 ;;
12062
12063 tpf*)
12064 # Don't try to run any link tests for TPF. We know it's impossible
12065 # because TPF is a cross-compiler, and we know how we open DSOs.
12066 lt_cv_dlopen=dlopen
12067 lt_cv_dlopen_libs=
12068 lt_cv_dlopen_self=no
12069 ;;
12070
12071 *)
12072 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12073 if test "x$ac_cv_func_shl_load" = xyes
12074 then :
12075 lt_cv_dlopen=shl_load
12076 else $as_nop
12077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12078 printf %s "checking for shl_load in -ldld... " >&6; }
12079 if test ${ac_cv_lib_dld_shl_load+y}
12080 then :
12081 printf %s "(cached) " >&6
12082 else $as_nop
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-ldld $LIBS"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12087
12088 /* Override any GCC internal prototype to avoid an error.
12089 Use char because int might match the return type of a GCC
12090 builtin and then its argument prototype would still apply. */
12091 char shl_load ();
12092 int
12093 main (void)
12094 {
12095 return shl_load ();
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_link "$LINENO"
12101 then :
12102 ac_cv_lib_dld_shl_load=yes
12103 else $as_nop
12104 ac_cv_lib_dld_shl_load=no
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12107 conftest$ac_exeext conftest.$ac_ext
12108 LIBS=$ac_check_lib_save_LIBS
12109 fi
12110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12111 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12112 if test "x$ac_cv_lib_dld_shl_load" = xyes
12113 then :
12114 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12115 else $as_nop
12116 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12117 if test "x$ac_cv_func_dlopen" = xyes
12118 then :
12119 lt_cv_dlopen=dlopen
12120 else $as_nop
12121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12122 printf %s "checking for dlopen in -ldl... " >&6; }
12123 if test ${ac_cv_lib_dl_dlopen+y}
12124 then :
12125 printf %s "(cached) " >&6
12126 else $as_nop
12127 ac_check_lib_save_LIBS=$LIBS
12128 LIBS="-ldl $LIBS"
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12135 char dlopen ();
12136 int
12137 main (void)
12138 {
12139 return dlopen ();
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"
12145 then :
12146 ac_cv_lib_dl_dlopen=yes
12147 else $as_nop
12148 ac_cv_lib_dl_dlopen=no
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12151 conftest$ac_exeext conftest.$ac_ext
12152 LIBS=$ac_check_lib_save_LIBS
12153 fi
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12155 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12156 if test "x$ac_cv_lib_dl_dlopen" = xyes
12157 then :
12158 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12159 else $as_nop
12160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12161 printf %s "checking for dlopen in -lsvld... " >&6; }
12162 if test ${ac_cv_lib_svld_dlopen+y}
12163 then :
12164 printf %s "(cached) " >&6
12165 else $as_nop
12166 ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-lsvld $LIBS"
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170
12171 /* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
12174 char dlopen ();
12175 int
12176 main (void)
12177 {
12178 return dlopen ();
12179 ;
12180 return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"
12184 then :
12185 ac_cv_lib_svld_dlopen=yes
12186 else $as_nop
12187 ac_cv_lib_svld_dlopen=no
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12190 conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12192 fi
12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12194 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12195 if test "x$ac_cv_lib_svld_dlopen" = xyes
12196 then :
12197 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12198 else $as_nop
12199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12200 printf %s "checking for dld_link in -ldld... " >&6; }
12201 if test ${ac_cv_lib_dld_dld_link+y}
12202 then :
12203 printf %s "(cached) " >&6
12204 else $as_nop
12205 ac_check_lib_save_LIBS=$LIBS
12206 LIBS="-ldld $LIBS"
12207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12208 /* end confdefs.h. */
12209
12210 /* Override any GCC internal prototype to avoid an error.
12211 Use char because int might match the return type of a GCC
12212 builtin and then its argument prototype would still apply. */
12213 char dld_link ();
12214 int
12215 main (void)
12216 {
12217 return dld_link ();
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"
12223 then :
12224 ac_cv_lib_dld_dld_link=yes
12225 else $as_nop
12226 ac_cv_lib_dld_dld_link=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12233 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12234 if test "x$ac_cv_lib_dld_dld_link" = xyes
12235 then :
12236 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12237 fi
12238
12239
12240 fi
12241
12242
12243 fi
12244
12245
12246 fi
12247
12248
12249 fi
12250
12251
12252 fi
12253
12254 ;;
12255 esac
12256
12257 if test no = "$lt_cv_dlopen"; then
12258 enable_dlopen=no
12259 else
12260 enable_dlopen=yes
12261 fi
12262
12263 case $lt_cv_dlopen in
12264 dlopen)
12265 save_CPPFLAGS=$CPPFLAGS
12266 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12267
12268 save_LDFLAGS=$LDFLAGS
12269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12270
12271 save_LIBS=$LIBS
12272 LIBS="$lt_cv_dlopen_libs $LIBS"
12273
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12275 printf %s "checking whether a program can dlopen itself... " >&6; }
12276 if test ${lt_cv_dlopen_self+y}
12277 then :
12278 printf %s "(cached) " >&6
12279 else $as_nop
12280 if test yes = "$cross_compiling"; then :
12281 lt_cv_dlopen_self=cross
12282 else
12283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12284 lt_status=$lt_dlunknown
12285 cat > conftest.$ac_ext <<_LT_EOF
12286 #line $LINENO "configure"
12287 #include "confdefs.h"
12288
12289 #if HAVE_DLFCN_H
12290 #include <dlfcn.h>
12291 #endif
12292
12293 #include <stdio.h>
12294
12295 #ifdef RTLD_GLOBAL
12296 # define LT_DLGLOBAL RTLD_GLOBAL
12297 #else
12298 # ifdef DL_GLOBAL
12299 # define LT_DLGLOBAL DL_GLOBAL
12300 # else
12301 # define LT_DLGLOBAL 0
12302 # endif
12303 #endif
12304
12305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12306 find out it does not work in some platform. */
12307 #ifndef LT_DLLAZY_OR_NOW
12308 # ifdef RTLD_LAZY
12309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12310 # else
12311 # ifdef DL_LAZY
12312 # define LT_DLLAZY_OR_NOW DL_LAZY
12313 # else
12314 # ifdef RTLD_NOW
12315 # define LT_DLLAZY_OR_NOW RTLD_NOW
12316 # else
12317 # ifdef DL_NOW
12318 # define LT_DLLAZY_OR_NOW DL_NOW
12319 # else
12320 # define LT_DLLAZY_OR_NOW 0
12321 # endif
12322 # endif
12323 # endif
12324 # endif
12325 #endif
12326
12327 /* When -fvisibility=hidden is used, assume the code has been annotated
12328 correspondingly for the symbols needed. */
12329 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12330 int fnord () __attribute__((visibility("default")));
12331 #endif
12332
12333 int fnord () { return 42; }
12334 int main ()
12335 {
12336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12337 int status = $lt_dlunknown;
12338
12339 if (self)
12340 {
12341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12342 else
12343 {
12344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12345 else puts (dlerror ());
12346 }
12347 /* dlclose (self); */
12348 }
12349 else
12350 puts (dlerror ());
12351
12352 return status;
12353 }
12354 _LT_EOF
12355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12356 (eval $ac_link) 2>&5
12357 ac_status=$?
12358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12360 (./conftest; exit; ) >&5 2>/dev/null
12361 lt_status=$?
12362 case x$lt_status in
12363 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12364 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12365 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12366 esac
12367 else :
12368 # compilation failed
12369 lt_cv_dlopen_self=no
12370 fi
12371 fi
12372 rm -fr conftest*
12373
12374
12375 fi
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12377 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12378
12379 if test yes = "$lt_cv_dlopen_self"; then
12380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12382 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12383 if test ${lt_cv_dlopen_self_static+y}
12384 then :
12385 printf %s "(cached) " >&6
12386 else $as_nop
12387 if test yes = "$cross_compiling"; then :
12388 lt_cv_dlopen_self_static=cross
12389 else
12390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12391 lt_status=$lt_dlunknown
12392 cat > conftest.$ac_ext <<_LT_EOF
12393 #line $LINENO "configure"
12394 #include "confdefs.h"
12395
12396 #if HAVE_DLFCN_H
12397 #include <dlfcn.h>
12398 #endif
12399
12400 #include <stdio.h>
12401
12402 #ifdef RTLD_GLOBAL
12403 # define LT_DLGLOBAL RTLD_GLOBAL
12404 #else
12405 # ifdef DL_GLOBAL
12406 # define LT_DLGLOBAL DL_GLOBAL
12407 # else
12408 # define LT_DLGLOBAL 0
12409 # endif
12410 #endif
12411
12412 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12413 find out it does not work in some platform. */
12414 #ifndef LT_DLLAZY_OR_NOW
12415 # ifdef RTLD_LAZY
12416 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12417 # else
12418 # ifdef DL_LAZY
12419 # define LT_DLLAZY_OR_NOW DL_LAZY
12420 # else
12421 # ifdef RTLD_NOW
12422 # define LT_DLLAZY_OR_NOW RTLD_NOW
12423 # else
12424 # ifdef DL_NOW
12425 # define LT_DLLAZY_OR_NOW DL_NOW
12426 # else
12427 # define LT_DLLAZY_OR_NOW 0
12428 # endif
12429 # endif
12430 # endif
12431 # endif
12432 #endif
12433
12434 /* When -fvisibility=hidden is used, assume the code has been annotated
12435 correspondingly for the symbols needed. */
12436 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12437 int fnord () __attribute__((visibility("default")));
12438 #endif
12439
12440 int fnord () { return 42; }
12441 int main ()
12442 {
12443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12444 int status = $lt_dlunknown;
12445
12446 if (self)
12447 {
12448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12449 else
12450 {
12451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12452 else puts (dlerror ());
12453 }
12454 /* dlclose (self); */
12455 }
12456 else
12457 puts (dlerror ());
12458
12459 return status;
12460 }
12461 _LT_EOF
12462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12463 (eval $ac_link) 2>&5
12464 ac_status=$?
12465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12466 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12467 (./conftest; exit; ) >&5 2>/dev/null
12468 lt_status=$?
12469 case x$lt_status in
12470 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12471 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12472 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12473 esac
12474 else :
12475 # compilation failed
12476 lt_cv_dlopen_self_static=no
12477 fi
12478 fi
12479 rm -fr conftest*
12480
12481
12482 fi
12483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12484 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12485 fi
12486
12487 CPPFLAGS=$save_CPPFLAGS
12488 LDFLAGS=$save_LDFLAGS
12489 LIBS=$save_LIBS
12490 ;;
12491 esac
12492
12493 case $lt_cv_dlopen_self in
12494 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12495 *) enable_dlopen_self=unknown ;;
12496 esac
12497
12498 case $lt_cv_dlopen_self_static in
12499 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12500 *) enable_dlopen_self_static=unknown ;;
12501 esac
12502 fi
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520 striplib=
12521 old_striplib=
12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12523 printf %s "checking whether stripping libraries is possible... " >&6; }
12524 if test -z "$STRIP"; then
12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 printf "%s\n" "no" >&6; }
12527 else
12528 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12529 old_striplib="$STRIP --strip-debug"
12530 striplib="$STRIP --strip-unneeded"
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12532 printf "%s\n" "yes" >&6; }
12533 else
12534 case $host_os in
12535 darwin*)
12536 # FIXME - insert some real tests, host_os isn't really good enough
12537 striplib="$STRIP -x"
12538 old_striplib="$STRIP -S"
12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540 printf "%s\n" "yes" >&6; }
12541 ;;
12542 freebsd*)
12543 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12544 old_striplib="$STRIP --strip-debug"
12545 striplib="$STRIP --strip-unneeded"
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547 printf "%s\n" "yes" >&6; }
12548 else
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 printf "%s\n" "no" >&6; }
12551 fi
12552 ;;
12553 *)
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 printf "%s\n" "no" >&6; }
12556 ;;
12557 esac
12558 fi
12559 fi
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572 # Report what library types will actually be built
12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12574 printf %s "checking if libtool supports shared libraries... " >&6; }
12575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12576 printf "%s\n" "$can_build_shared" >&6; }
12577
12578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12579 printf %s "checking whether to build shared libraries... " >&6; }
12580 test no = "$can_build_shared" && enable_shared=no
12581
12582 # On AIX, shared libraries and static libraries use the same namespace, and
12583 # are all built from PIC.
12584 case $host_os in
12585 aix3*)
12586 test yes = "$enable_shared" && enable_static=no
12587 if test -n "$RANLIB"; then
12588 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12589 postinstall_cmds='$RANLIB $lib'
12590 fi
12591 ;;
12592
12593 aix[4-9]*)
12594 if test ia64 != "$host_cpu"; then
12595 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12596 yes,aix,yes) ;; # shared object as lib.so file only
12597 yes,svr4,*) ;; # shared object as lib.so archive member only
12598 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12599 esac
12600 fi
12601 ;;
12602 esac
12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12604 printf "%s\n" "$enable_shared" >&6; }
12605
12606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12607 printf %s "checking whether to build static libraries... " >&6; }
12608 # Make sure either enable_shared or enable_static is yes.
12609 test yes = "$enable_shared" || enable_static=yes
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12611 printf "%s\n" "$enable_static" >&6; }
12612
12613
12614
12615
12616 fi
12617 ac_ext=c
12618 ac_cpp='$CPP $CPPFLAGS'
12619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12622
12623 CC=$lt_save_CC
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639 ac_config_commands="$ac_config_commands libtool"
12640
12641
12642
12643
12644 # Only expand once:
12645
12646
12647
12648 # Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12661 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12662 if test ${ac_cv_c_undeclared_builtin_options+y}
12663 then :
12664 printf %s "(cached) " >&6
12665 else $as_nop
12666 ac_save_CFLAGS=$CFLAGS
12667 ac_cv_c_undeclared_builtin_options='cannot detect'
12668 for ac_arg in '' -fno-builtin; do
12669 CFLAGS="$ac_save_CFLAGS $ac_arg"
12670 # This test program should *not* compile successfully.
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12673
12674 int
12675 main (void)
12676 {
12677 (void) strchr;
12678 ;
12679 return 0;
12680 }
12681 _ACEOF
12682 if ac_fn_c_try_compile "$LINENO"
12683 then :
12684
12685 else $as_nop
12686 # This test program should compile successfully.
12687 # No library function is consistently available on
12688 # freestanding implementations, so test against a dummy
12689 # declaration. Include always-available headers on the
12690 # off chance that they somehow elicit warnings.
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #include <float.h>
12694 #include <limits.h>
12695 #include <stdarg.h>
12696 #include <stddef.h>
12697 extern void ac_decl (int, char *);
12698
12699 int
12700 main (void)
12701 {
12702 (void) ac_decl (0, (char *) 0);
12703 (void) ac_decl;
12704
12705 ;
12706 return 0;
12707 }
12708 _ACEOF
12709 if ac_fn_c_try_compile "$LINENO"
12710 then :
12711 if test x"$ac_arg" = x
12712 then :
12713 ac_cv_c_undeclared_builtin_options='none needed'
12714 else $as_nop
12715 ac_cv_c_undeclared_builtin_options=$ac_arg
12716 fi
12717 break
12718 fi
12719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12722 done
12723 CFLAGS=$ac_save_CFLAGS
12724
12725 fi
12726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12727 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12728 case $ac_cv_c_undeclared_builtin_options in #(
12729 'cannot detect') :
12730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12731 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12732 as_fn_error $? "cannot make $CC report undeclared builtins
12733 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12734 'none needed') :
12735 ac_c_undeclared_builtin_options='' ;; #(
12736 *) :
12737 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12738 esac
12739
12740
12741
12742
12743
12744 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12745 if test "x$ac_cv_have_decl___clang__" = xyes
12746 then :
12747 CLANGCC="yes"
12748 else $as_nop
12749 CLANGCC="no"
12750 fi
12751 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12752 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12753 then :
12754 INTELCC="yes"
12755 else $as_nop
12756 INTELCC="no"
12757 fi
12758 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12759 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12760 then :
12761 SUNCC="yes"
12762 else $as_nop
12763 SUNCC="no"
12764 fi
12765
12766
12767
12768
12769
12770
12771
12772
12773 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12774 if test -n "$ac_tool_prefix"; then
12775 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12776 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 printf %s "checking for $ac_word... " >&6; }
12779 if test ${ac_cv_path_PKG_CONFIG+y}
12780 then :
12781 printf %s "(cached) " >&6
12782 else $as_nop
12783 case $PKG_CONFIG in
12784 [\\/]* | ?:[\\/]*)
12785 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12786 ;;
12787 *)
12788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12789 for as_dir in $PATH
12790 do
12791 IFS=$as_save_IFS
12792 case $as_dir in #(((
12793 '') as_dir=./ ;;
12794 */) ;;
12795 *) as_dir=$as_dir/ ;;
12796 esac
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12799 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803 done
12804 done
12805 IFS=$as_save_IFS
12806
12807 ;;
12808 esac
12809 fi
12810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12811 if test -n "$PKG_CONFIG"; then
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12813 printf "%s\n" "$PKG_CONFIG" >&6; }
12814 else
12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 printf "%s\n" "no" >&6; }
12817 fi
12818
12819
12820 fi
12821 if test -z "$ac_cv_path_PKG_CONFIG"; then
12822 ac_pt_PKG_CONFIG=$PKG_CONFIG
12823 # Extract the first word of "pkg-config", so it can be a program name with args.
12824 set dummy pkg-config; ac_word=$2
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 printf %s "checking for $ac_word... " >&6; }
12827 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
12828 then :
12829 printf %s "(cached) " >&6
12830 else $as_nop
12831 case $ac_pt_PKG_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839 IFS=$as_save_IFS
12840 case $as_dir in #(((
12841 '') as_dir=./ ;;
12842 */) ;;
12843 *) as_dir=$as_dir/ ;;
12844 esac
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12847 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
12848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12849 break 2
12850 fi
12851 done
12852 done
12853 IFS=$as_save_IFS
12854
12855 ;;
12856 esac
12857 fi
12858 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12859 if test -n "$ac_pt_PKG_CONFIG"; then
12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12861 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
12862 else
12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 printf "%s\n" "no" >&6; }
12865 fi
12866
12867 if test "x$ac_pt_PKG_CONFIG" = x; then
12868 PKG_CONFIG=""
12869 else
12870 case $cross_compiling:$ac_tool_warned in
12871 yes:)
12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12873 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12874 ac_tool_warned=yes ;;
12875 esac
12876 PKG_CONFIG=$ac_pt_PKG_CONFIG
12877 fi
12878 else
12879 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12880 fi
12881
12882 fi
12883 if test -n "$PKG_CONFIG"; then
12884 _pkg_min_version=0.9.0
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12886 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12887 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12889 printf "%s\n" "yes" >&6; }
12890 else
12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 printf "%s\n" "no" >&6; }
12893 PKG_CONFIG=""
12894 fi
12895 fi
12896
12897
12898
12899
12900
12901 # Check whether --enable-selective-werror was given.
12902 if test ${enable_selective_werror+y}
12903 then :
12904 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12905 else $as_nop
12906 SELECTIVE_WERROR=yes
12907 fi
12908
12909
12910
12911
12912
12913 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12914 if test "x$SUNCC" = "xyes"; then
12915 BASE_CFLAGS="-v"
12916 else
12917 BASE_CFLAGS=""
12918 fi
12919
12920 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 xorg_testset_save_CFLAGS="$CFLAGS"
12935
12936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12939 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12940 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12941 then :
12942 printf %s "(cached) " >&6
12943 else $as_nop
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 int i;
12947 _ACEOF
12948 if ac_fn_c_try_compile "$LINENO"
12949 then :
12950 xorg_cv_cc_flag_unknown_warning_option=yes
12951 else $as_nop
12952 xorg_cv_cc_flag_unknown_warning_option=no
12953 fi
12954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12955 fi
12956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12957 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12959 CFLAGS="$xorg_testset_save_CFLAGS"
12960 fi
12961
12962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12965 fi
12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12968 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12969 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12970 then :
12971 printf %s "(cached) " >&6
12972 else $as_nop
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 int i;
12976 _ACEOF
12977 if ac_fn_c_try_compile "$LINENO"
12978 then :
12979 xorg_cv_cc_flag_unused_command_line_argument=yes
12980 else $as_nop
12981 xorg_cv_cc_flag_unused_command_line_argument=no
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12984 fi
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12986 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12988 CFLAGS="$xorg_testset_save_CFLAGS"
12989 fi
12990
12991 found="no"
12992
12993 if test $found = "no" ; then
12994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12996 fi
12997
12998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13000 fi
13001
13002 CFLAGS="$CFLAGS -Wall"
13003
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13005 printf %s "checking if $CC supports -Wall... " >&6; }
13006 cacheid=xorg_cv_cc_flag__Wall
13007 if eval test \${$cacheid+y}
13008 then :
13009 printf %s "(cached) " >&6
13010 else $as_nop
13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013 int i;
13014 int
13015 main (void)
13016 {
13017
13018 ;
13019 return 0;
13020 }
13021 _ACEOF
13022 if ac_fn_c_try_link "$LINENO"
13023 then :
13024 eval $cacheid=yes
13025 else $as_nop
13026 eval $cacheid=no
13027 fi
13028 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13029 conftest$ac_exeext conftest.$ac_ext
13030 fi
13031
13032
13033 CFLAGS="$xorg_testset_save_CFLAGS"
13034
13035 eval supported=\$$cacheid
13036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13037 printf "%s\n" "$supported" >&6; }
13038 if test "$supported" = "yes" ; then
13039 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13040 found="yes"
13041 fi
13042 fi
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058 xorg_testset_save_CFLAGS="$CFLAGS"
13059
13060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13063 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13064 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13065 then :
13066 printf %s "(cached) " >&6
13067 else $as_nop
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070 int i;
13071 _ACEOF
13072 if ac_fn_c_try_compile "$LINENO"
13073 then :
13074 xorg_cv_cc_flag_unknown_warning_option=yes
13075 else $as_nop
13076 xorg_cv_cc_flag_unknown_warning_option=no
13077 fi
13078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13079 fi
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13081 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13083 CFLAGS="$xorg_testset_save_CFLAGS"
13084 fi
13085
13086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13089 fi
13090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13092 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13093 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13094 then :
13095 printf %s "(cached) " >&6
13096 else $as_nop
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 int i;
13100 _ACEOF
13101 if ac_fn_c_try_compile "$LINENO"
13102 then :
13103 xorg_cv_cc_flag_unused_command_line_argument=yes
13104 else $as_nop
13105 xorg_cv_cc_flag_unused_command_line_argument=no
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13108 fi
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13110 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13112 CFLAGS="$xorg_testset_save_CFLAGS"
13113 fi
13114
13115 found="no"
13116
13117 if test $found = "no" ; then
13118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13120 fi
13121
13122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13124 fi
13125
13126 CFLAGS="$CFLAGS -Wpointer-arith"
13127
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13129 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13130 cacheid=xorg_cv_cc_flag__Wpointer_arith
13131 if eval test \${$cacheid+y}
13132 then :
13133 printf %s "(cached) " >&6
13134 else $as_nop
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 int i;
13138 int
13139 main (void)
13140 {
13141
13142 ;
13143 return 0;
13144 }
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"
13147 then :
13148 eval $cacheid=yes
13149 else $as_nop
13150 eval $cacheid=no
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13153 conftest$ac_exeext conftest.$ac_ext
13154 fi
13155
13156
13157 CFLAGS="$xorg_testset_save_CFLAGS"
13158
13159 eval supported=\$$cacheid
13160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13161 printf "%s\n" "$supported" >&6; }
13162 if test "$supported" = "yes" ; then
13163 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13164 found="yes"
13165 fi
13166 fi
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182 xorg_testset_save_CFLAGS="$CFLAGS"
13183
13184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13189 then :
13190 printf %s "(cached) " >&6
13191 else $as_nop
13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13193 /* end confdefs.h. */
13194 int i;
13195 _ACEOF
13196 if ac_fn_c_try_compile "$LINENO"
13197 then :
13198 xorg_cv_cc_flag_unknown_warning_option=yes
13199 else $as_nop
13200 xorg_cv_cc_flag_unknown_warning_option=no
13201 fi
13202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13203 fi
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13207 CFLAGS="$xorg_testset_save_CFLAGS"
13208 fi
13209
13210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13213 fi
13214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13218 then :
13219 printf %s "(cached) " >&6
13220 else $as_nop
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223 int i;
13224 _ACEOF
13225 if ac_fn_c_try_compile "$LINENO"
13226 then :
13227 xorg_cv_cc_flag_unused_command_line_argument=yes
13228 else $as_nop
13229 xorg_cv_cc_flag_unused_command_line_argument=no
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13232 fi
13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13234 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13236 CFLAGS="$xorg_testset_save_CFLAGS"
13237 fi
13238
13239 found="no"
13240
13241 if test $found = "no" ; then
13242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13244 fi
13245
13246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13248 fi
13249
13250 CFLAGS="$CFLAGS -Wmissing-declarations"
13251
13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13253 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13254 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13255 if eval test \${$cacheid+y}
13256 then :
13257 printf %s "(cached) " >&6
13258 else $as_nop
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13261 int i;
13262 int
13263 main (void)
13264 {
13265
13266 ;
13267 return 0;
13268 }
13269 _ACEOF
13270 if ac_fn_c_try_link "$LINENO"
13271 then :
13272 eval $cacheid=yes
13273 else $as_nop
13274 eval $cacheid=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13277 conftest$ac_exeext conftest.$ac_ext
13278 fi
13279
13280
13281 CFLAGS="$xorg_testset_save_CFLAGS"
13282
13283 eval supported=\$$cacheid
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13285 printf "%s\n" "$supported" >&6; }
13286 if test "$supported" = "yes" ; then
13287 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13288 found="yes"
13289 fi
13290 fi
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306 xorg_testset_save_CFLAGS="$CFLAGS"
13307
13308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13312 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13313 then :
13314 printf %s "(cached) " >&6
13315 else $as_nop
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 int i;
13319 _ACEOF
13320 if ac_fn_c_try_compile "$LINENO"
13321 then :
13322 xorg_cv_cc_flag_unknown_warning_option=yes
13323 else $as_nop
13324 xorg_cv_cc_flag_unknown_warning_option=no
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13327 fi
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13329 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13331 CFLAGS="$xorg_testset_save_CFLAGS"
13332 fi
13333
13334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13337 fi
13338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13340 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13341 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13342 then :
13343 printf %s "(cached) " >&6
13344 else $as_nop
13345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13347 int i;
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"
13350 then :
13351 xorg_cv_cc_flag_unused_command_line_argument=yes
13352 else $as_nop
13353 xorg_cv_cc_flag_unused_command_line_argument=no
13354 fi
13355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13356 fi
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13360 CFLAGS="$xorg_testset_save_CFLAGS"
13361 fi
13362
13363 found="no"
13364
13365 if test $found = "no" ; then
13366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368 fi
13369
13370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372 fi
13373
13374 CFLAGS="$CFLAGS -Wformat=2"
13375
13376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13377 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13378 cacheid=xorg_cv_cc_flag__Wformat_2
13379 if eval test \${$cacheid+y}
13380 then :
13381 printf %s "(cached) " >&6
13382 else $as_nop
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 int i;
13386 int
13387 main (void)
13388 {
13389
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_link "$LINENO"
13395 then :
13396 eval $cacheid=yes
13397 else $as_nop
13398 eval $cacheid=no
13399 fi
13400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13401 conftest$ac_exeext conftest.$ac_ext
13402 fi
13403
13404
13405 CFLAGS="$xorg_testset_save_CFLAGS"
13406
13407 eval supported=\$$cacheid
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13409 printf "%s\n" "$supported" >&6; }
13410 if test "$supported" = "yes" ; then
13411 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13412 found="yes"
13413 fi
13414 fi
13415
13416 if test $found = "no" ; then
13417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13419 fi
13420
13421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13423 fi
13424
13425 CFLAGS="$CFLAGS -Wformat"
13426
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13428 printf %s "checking if $CC supports -Wformat... " >&6; }
13429 cacheid=xorg_cv_cc_flag__Wformat
13430 if eval test \${$cacheid+y}
13431 then :
13432 printf %s "(cached) " >&6
13433 else $as_nop
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13436 int i;
13437 int
13438 main (void)
13439 {
13440
13441 ;
13442 return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"
13446 then :
13447 eval $cacheid=yes
13448 else $as_nop
13449 eval $cacheid=no
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13452 conftest$ac_exeext conftest.$ac_ext
13453 fi
13454
13455
13456 CFLAGS="$xorg_testset_save_CFLAGS"
13457
13458 eval supported=\$$cacheid
13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13460 printf "%s\n" "$supported" >&6; }
13461 if test "$supported" = "yes" ; then
13462 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13463 found="yes"
13464 fi
13465 fi
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483 xorg_testset_save_CFLAGS="$CFLAGS"
13484
13485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13490 then :
13491 printf %s "(cached) " >&6
13492 else $as_nop
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 int i;
13496 _ACEOF
13497 if ac_fn_c_try_compile "$LINENO"
13498 then :
13499 xorg_cv_cc_flag_unknown_warning_option=yes
13500 else $as_nop
13501 xorg_cv_cc_flag_unknown_warning_option=no
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13504 fi
13505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13508 CFLAGS="$xorg_testset_save_CFLAGS"
13509 fi
13510
13511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13514 fi
13515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13519 then :
13520 printf %s "(cached) " >&6
13521 else $as_nop
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 int i;
13525 _ACEOF
13526 if ac_fn_c_try_compile "$LINENO"
13527 then :
13528 xorg_cv_cc_flag_unused_command_line_argument=yes
13529 else $as_nop
13530 xorg_cv_cc_flag_unused_command_line_argument=no
13531 fi
13532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13533 fi
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13537 CFLAGS="$xorg_testset_save_CFLAGS"
13538 fi
13539
13540 found="no"
13541
13542 if test $found = "no" ; then
13543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545 fi
13546
13547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13549 fi
13550
13551 CFLAGS="$CFLAGS -Wstrict-prototypes"
13552
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13554 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13555 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13556 if eval test \${$cacheid+y}
13557 then :
13558 printf %s "(cached) " >&6
13559 else $as_nop
13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* end confdefs.h. */
13562 int i;
13563 int
13564 main (void)
13565 {
13566
13567 ;
13568 return 0;
13569 }
13570 _ACEOF
13571 if ac_fn_c_try_link "$LINENO"
13572 then :
13573 eval $cacheid=yes
13574 else $as_nop
13575 eval $cacheid=no
13576 fi
13577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13578 conftest$ac_exeext conftest.$ac_ext
13579 fi
13580
13581
13582 CFLAGS="$xorg_testset_save_CFLAGS"
13583
13584 eval supported=\$$cacheid
13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13586 printf "%s\n" "$supported" >&6; }
13587 if test "$supported" = "yes" ; then
13588 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13589 found="yes"
13590 fi
13591 fi
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607 xorg_testset_save_CFLAGS="$CFLAGS"
13608
13609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13614 then :
13615 printf %s "(cached) " >&6
13616 else $as_nop
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 int i;
13620 _ACEOF
13621 if ac_fn_c_try_compile "$LINENO"
13622 then :
13623 xorg_cv_cc_flag_unknown_warning_option=yes
13624 else $as_nop
13625 xorg_cv_cc_flag_unknown_warning_option=no
13626 fi
13627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13628 fi
13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13632 CFLAGS="$xorg_testset_save_CFLAGS"
13633 fi
13634
13635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13638 fi
13639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13643 then :
13644 printf %s "(cached) " >&6
13645 else $as_nop
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 int i;
13649 _ACEOF
13650 if ac_fn_c_try_compile "$LINENO"
13651 then :
13652 xorg_cv_cc_flag_unused_command_line_argument=yes
13653 else $as_nop
13654 xorg_cv_cc_flag_unused_command_line_argument=no
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13657 fi
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13661 CFLAGS="$xorg_testset_save_CFLAGS"
13662 fi
13663
13664 found="no"
13665
13666 if test $found = "no" ; then
13667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13669 fi
13670
13671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13673 fi
13674
13675 CFLAGS="$CFLAGS -Wmissing-prototypes"
13676
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13678 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13679 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13680 if eval test \${$cacheid+y}
13681 then :
13682 printf %s "(cached) " >&6
13683 else $as_nop
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13686 int i;
13687 int
13688 main (void)
13689 {
13690
13691 ;
13692 return 0;
13693 }
13694 _ACEOF
13695 if ac_fn_c_try_link "$LINENO"
13696 then :
13697 eval $cacheid=yes
13698 else $as_nop
13699 eval $cacheid=no
13700 fi
13701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13702 conftest$ac_exeext conftest.$ac_ext
13703 fi
13704
13705
13706 CFLAGS="$xorg_testset_save_CFLAGS"
13707
13708 eval supported=\$$cacheid
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13710 printf "%s\n" "$supported" >&6; }
13711 if test "$supported" = "yes" ; then
13712 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13713 found="yes"
13714 fi
13715 fi
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731 xorg_testset_save_CFLAGS="$CFLAGS"
13732
13733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13738 then :
13739 printf %s "(cached) " >&6
13740 else $as_nop
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 int i;
13744 _ACEOF
13745 if ac_fn_c_try_compile "$LINENO"
13746 then :
13747 xorg_cv_cc_flag_unknown_warning_option=yes
13748 else $as_nop
13749 xorg_cv_cc_flag_unknown_warning_option=no
13750 fi
13751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13752 fi
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13756 CFLAGS="$xorg_testset_save_CFLAGS"
13757 fi
13758
13759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13762 fi
13763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13767 then :
13768 printf %s "(cached) " >&6
13769 else $as_nop
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 int i;
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"
13775 then :
13776 xorg_cv_cc_flag_unused_command_line_argument=yes
13777 else $as_nop
13778 xorg_cv_cc_flag_unused_command_line_argument=no
13779 fi
13780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13781 fi
13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13785 CFLAGS="$xorg_testset_save_CFLAGS"
13786 fi
13787
13788 found="no"
13789
13790 if test $found = "no" ; then
13791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13793 fi
13794
13795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13797 fi
13798
13799 CFLAGS="$CFLAGS -Wnested-externs"
13800
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13802 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
13803 cacheid=xorg_cv_cc_flag__Wnested_externs
13804 if eval test \${$cacheid+y}
13805 then :
13806 printf %s "(cached) " >&6
13807 else $as_nop
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 int i;
13811 int
13812 main (void)
13813 {
13814
13815 ;
13816 return 0;
13817 }
13818 _ACEOF
13819 if ac_fn_c_try_link "$LINENO"
13820 then :
13821 eval $cacheid=yes
13822 else $as_nop
13823 eval $cacheid=no
13824 fi
13825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13826 conftest$ac_exeext conftest.$ac_ext
13827 fi
13828
13829
13830 CFLAGS="$xorg_testset_save_CFLAGS"
13831
13832 eval supported=\$$cacheid
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13834 printf "%s\n" "$supported" >&6; }
13835 if test "$supported" = "yes" ; then
13836 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13837 found="yes"
13838 fi
13839 fi
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855 xorg_testset_save_CFLAGS="$CFLAGS"
13856
13857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13862 then :
13863 printf %s "(cached) " >&6
13864 else $as_nop
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 int i;
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"
13870 then :
13871 xorg_cv_cc_flag_unknown_warning_option=yes
13872 else $as_nop
13873 xorg_cv_cc_flag_unknown_warning_option=no
13874 fi
13875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13876 fi
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13878 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13880 CFLAGS="$xorg_testset_save_CFLAGS"
13881 fi
13882
13883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886 fi
13887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13889 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13890 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13891 then :
13892 printf %s "(cached) " >&6
13893 else $as_nop
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896 int i;
13897 _ACEOF
13898 if ac_fn_c_try_compile "$LINENO"
13899 then :
13900 xorg_cv_cc_flag_unused_command_line_argument=yes
13901 else $as_nop
13902 xorg_cv_cc_flag_unused_command_line_argument=no
13903 fi
13904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13905 fi
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13909 CFLAGS="$xorg_testset_save_CFLAGS"
13910 fi
13911
13912 found="no"
13913
13914 if test $found = "no" ; then
13915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13917 fi
13918
13919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13921 fi
13922
13923 CFLAGS="$CFLAGS -Wbad-function-cast"
13924
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13926 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
13927 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13928 if eval test \${$cacheid+y}
13929 then :
13930 printf %s "(cached) " >&6
13931 else $as_nop
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 int i;
13935 int
13936 main (void)
13937 {
13938
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"
13944 then :
13945 eval $cacheid=yes
13946 else $as_nop
13947 eval $cacheid=no
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13950 conftest$ac_exeext conftest.$ac_ext
13951 fi
13952
13953
13954 CFLAGS="$xorg_testset_save_CFLAGS"
13955
13956 eval supported=\$$cacheid
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13958 printf "%s\n" "$supported" >&6; }
13959 if test "$supported" = "yes" ; then
13960 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13961 found="yes"
13962 fi
13963 fi
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979 xorg_testset_save_CFLAGS="$CFLAGS"
13980
13981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13986 then :
13987 printf %s "(cached) " >&6
13988 else $as_nop
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 int i;
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"
13994 then :
13995 xorg_cv_cc_flag_unknown_warning_option=yes
13996 else $as_nop
13997 xorg_cv_cc_flag_unknown_warning_option=no
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14000 fi
14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14002 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14004 CFLAGS="$xorg_testset_save_CFLAGS"
14005 fi
14006
14007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010 fi
14011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14013 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14014 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14015 then :
14016 printf %s "(cached) " >&6
14017 else $as_nop
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14020 int i;
14021 _ACEOF
14022 if ac_fn_c_try_compile "$LINENO"
14023 then :
14024 xorg_cv_cc_flag_unused_command_line_argument=yes
14025 else $as_nop
14026 xorg_cv_cc_flag_unused_command_line_argument=no
14027 fi
14028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14029 fi
14030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14031 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14033 CFLAGS="$xorg_testset_save_CFLAGS"
14034 fi
14035
14036 found="no"
14037
14038 if test $found = "no" ; then
14039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14041 fi
14042
14043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14045 fi
14046
14047 CFLAGS="$CFLAGS -Wold-style-definition"
14048
14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14050 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14051 cacheid=xorg_cv_cc_flag__Wold_style_definition
14052 if eval test \${$cacheid+y}
14053 then :
14054 printf %s "(cached) " >&6
14055 else $as_nop
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058 int i;
14059 int
14060 main (void)
14061 {
14062
14063 ;
14064 return 0;
14065 }
14066 _ACEOF
14067 if ac_fn_c_try_link "$LINENO"
14068 then :
14069 eval $cacheid=yes
14070 else $as_nop
14071 eval $cacheid=no
14072 fi
14073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14074 conftest$ac_exeext conftest.$ac_ext
14075 fi
14076
14077
14078 CFLAGS="$xorg_testset_save_CFLAGS"
14079
14080 eval supported=\$$cacheid
14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14082 printf "%s\n" "$supported" >&6; }
14083 if test "$supported" = "yes" ; then
14084 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14085 found="yes"
14086 fi
14087 fi
14088
14089 if test $found = "no" ; then
14090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14092 fi
14093
14094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14096 fi
14097
14098 CFLAGS="$CFLAGS -fd"
14099
14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14101 printf %s "checking if $CC supports -fd... " >&6; }
14102 cacheid=xorg_cv_cc_flag__fd
14103 if eval test \${$cacheid+y}
14104 then :
14105 printf %s "(cached) " >&6
14106 else $as_nop
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 int i;
14110 int
14111 main (void)
14112 {
14113
14114 ;
14115 return 0;
14116 }
14117 _ACEOF
14118 if ac_fn_c_try_link "$LINENO"
14119 then :
14120 eval $cacheid=yes
14121 else $as_nop
14122 eval $cacheid=no
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14125 conftest$ac_exeext conftest.$ac_ext
14126 fi
14127
14128
14129 CFLAGS="$xorg_testset_save_CFLAGS"
14130
14131 eval supported=\$$cacheid
14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14133 printf "%s\n" "$supported" >&6; }
14134 if test "$supported" = "yes" ; then
14135 BASE_CFLAGS="$BASE_CFLAGS -fd"
14136 found="yes"
14137 fi
14138 fi
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154 xorg_testset_save_CFLAGS="$CFLAGS"
14155
14156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14160 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14161 then :
14162 printf %s "(cached) " >&6
14163 else $as_nop
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 int i;
14167 _ACEOF
14168 if ac_fn_c_try_compile "$LINENO"
14169 then :
14170 xorg_cv_cc_flag_unknown_warning_option=yes
14171 else $as_nop
14172 xorg_cv_cc_flag_unknown_warning_option=no
14173 fi
14174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14175 fi
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14179 CFLAGS="$xorg_testset_save_CFLAGS"
14180 fi
14181
14182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14185 fi
14186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14190 then :
14191 printf %s "(cached) " >&6
14192 else $as_nop
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 int i;
14196 _ACEOF
14197 if ac_fn_c_try_compile "$LINENO"
14198 then :
14199 xorg_cv_cc_flag_unused_command_line_argument=yes
14200 else $as_nop
14201 xorg_cv_cc_flag_unused_command_line_argument=no
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14204 fi
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14208 CFLAGS="$xorg_testset_save_CFLAGS"
14209 fi
14210
14211 found="no"
14212
14213 if test $found = "no" ; then
14214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14216 fi
14217
14218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220 fi
14221
14222 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14223
14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14225 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14226 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14227 if eval test \${$cacheid+y}
14228 then :
14229 printf %s "(cached) " >&6
14230 else $as_nop
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 int i;
14234 int
14235 main (void)
14236 {
14237
14238 ;
14239 return 0;
14240 }
14241 _ACEOF
14242 if ac_fn_c_try_link "$LINENO"
14243 then :
14244 eval $cacheid=yes
14245 else $as_nop
14246 eval $cacheid=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14249 conftest$ac_exeext conftest.$ac_ext
14250 fi
14251
14252
14253 CFLAGS="$xorg_testset_save_CFLAGS"
14254
14255 eval supported=\$$cacheid
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14257 printf "%s\n" "$supported" >&6; }
14258 if test "$supported" = "yes" ; then
14259 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14260 found="yes"
14261 fi
14262 fi
14263
14264
14265
14266
14267
14268 # This chunk adds additional warnings that could catch undesired effects.
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 xorg_testset_save_CFLAGS="$CFLAGS"
14283
14284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14288 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14289 then :
14290 printf %s "(cached) " >&6
14291 else $as_nop
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14294 int i;
14295 _ACEOF
14296 if ac_fn_c_try_compile "$LINENO"
14297 then :
14298 xorg_cv_cc_flag_unknown_warning_option=yes
14299 else $as_nop
14300 xorg_cv_cc_flag_unknown_warning_option=no
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14303 fi
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14307 CFLAGS="$xorg_testset_save_CFLAGS"
14308 fi
14309
14310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14313 fi
14314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14318 then :
14319 printf %s "(cached) " >&6
14320 else $as_nop
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 int i;
14324 _ACEOF
14325 if ac_fn_c_try_compile "$LINENO"
14326 then :
14327 xorg_cv_cc_flag_unused_command_line_argument=yes
14328 else $as_nop
14329 xorg_cv_cc_flag_unused_command_line_argument=no
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14332 fi
14333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14334 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14336 CFLAGS="$xorg_testset_save_CFLAGS"
14337 fi
14338
14339 found="no"
14340
14341 if test $found = "no" ; then
14342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345
14346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14348 fi
14349
14350 CFLAGS="$CFLAGS -Wunused"
14351
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14353 printf %s "checking if $CC supports -Wunused... " >&6; }
14354 cacheid=xorg_cv_cc_flag__Wunused
14355 if eval test \${$cacheid+y}
14356 then :
14357 printf %s "(cached) " >&6
14358 else $as_nop
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14361 int i;
14362 int
14363 main (void)
14364 {
14365
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_link "$LINENO"
14371 then :
14372 eval $cacheid=yes
14373 else $as_nop
14374 eval $cacheid=no
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14377 conftest$ac_exeext conftest.$ac_ext
14378 fi
14379
14380
14381 CFLAGS="$xorg_testset_save_CFLAGS"
14382
14383 eval supported=\$$cacheid
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14385 printf "%s\n" "$supported" >&6; }
14386 if test "$supported" = "yes" ; then
14387 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14388 found="yes"
14389 fi
14390 fi
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406 xorg_testset_save_CFLAGS="$CFLAGS"
14407
14408 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14411 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14412 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14413 then :
14414 printf %s "(cached) " >&6
14415 else $as_nop
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 int i;
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"
14421 then :
14422 xorg_cv_cc_flag_unknown_warning_option=yes
14423 else $as_nop
14424 xorg_cv_cc_flag_unknown_warning_option=no
14425 fi
14426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14427 fi
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14431 CFLAGS="$xorg_testset_save_CFLAGS"
14432 fi
14433
14434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 fi
14438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14442 then :
14443 printf %s "(cached) " >&6
14444 else $as_nop
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447 int i;
14448 _ACEOF
14449 if ac_fn_c_try_compile "$LINENO"
14450 then :
14451 xorg_cv_cc_flag_unused_command_line_argument=yes
14452 else $as_nop
14453 xorg_cv_cc_flag_unused_command_line_argument=no
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14456 fi
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14460 CFLAGS="$xorg_testset_save_CFLAGS"
14461 fi
14462
14463 found="no"
14464
14465 if test $found = "no" ; then
14466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14468 fi
14469
14470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14472 fi
14473
14474 CFLAGS="$CFLAGS -Wuninitialized"
14475
14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14477 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14478 cacheid=xorg_cv_cc_flag__Wuninitialized
14479 if eval test \${$cacheid+y}
14480 then :
14481 printf %s "(cached) " >&6
14482 else $as_nop
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 int i;
14486 int
14487 main (void)
14488 {
14489
14490 ;
14491 return 0;
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_link "$LINENO"
14495 then :
14496 eval $cacheid=yes
14497 else $as_nop
14498 eval $cacheid=no
14499 fi
14500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14501 conftest$ac_exeext conftest.$ac_ext
14502 fi
14503
14504
14505 CFLAGS="$xorg_testset_save_CFLAGS"
14506
14507 eval supported=\$$cacheid
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14509 printf "%s\n" "$supported" >&6; }
14510 if test "$supported" = "yes" ; then
14511 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14512 found="yes"
14513 fi
14514 fi
14515
14516
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 $as_nop
14540 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 $as_nop
14548 xorg_cv_cc_flag_unknown_warning_option=no
14549 fi
14550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14551 fi
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14555 CFLAGS="$xorg_testset_save_CFLAGS"
14556 fi
14557
14558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561 fi
14562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14566 then :
14567 printf %s "(cached) " >&6
14568 else $as_nop
14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14571 int i;
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"
14574 then :
14575 xorg_cv_cc_flag_unused_command_line_argument=yes
14576 else $as_nop
14577 xorg_cv_cc_flag_unused_command_line_argument=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14580 fi
14581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14584 CFLAGS="$xorg_testset_save_CFLAGS"
14585 fi
14586
14587 found="no"
14588
14589 if test $found = "no" ; then
14590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14592 fi
14593
14594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14596 fi
14597
14598 CFLAGS="$CFLAGS -Wshadow"
14599
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14601 printf %s "checking if $CC supports -Wshadow... " >&6; }
14602 cacheid=xorg_cv_cc_flag__Wshadow
14603 if eval test \${$cacheid+y}
14604 then :
14605 printf %s "(cached) " >&6
14606 else $as_nop
14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14609 int i;
14610 int
14611 main (void)
14612 {
14613
14614 ;
14615 return 0;
14616 }
14617 _ACEOF
14618 if ac_fn_c_try_link "$LINENO"
14619 then :
14620 eval $cacheid=yes
14621 else $as_nop
14622 eval $cacheid=no
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14625 conftest$ac_exeext conftest.$ac_ext
14626 fi
14627
14628
14629 CFLAGS="$xorg_testset_save_CFLAGS"
14630
14631 eval supported=\$$cacheid
14632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14633 printf "%s\n" "$supported" >&6; }
14634 if test "$supported" = "yes" ; then
14635 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14636 found="yes"
14637 fi
14638 fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654 xorg_testset_save_CFLAGS="$CFLAGS"
14655
14656 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14659 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14660 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14661 then :
14662 printf %s "(cached) " >&6
14663 else $as_nop
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14666 int i;
14667 _ACEOF
14668 if ac_fn_c_try_compile "$LINENO"
14669 then :
14670 xorg_cv_cc_flag_unknown_warning_option=yes
14671 else $as_nop
14672 xorg_cv_cc_flag_unknown_warning_option=no
14673 fi
14674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14675 fi
14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14677 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14678 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14679 CFLAGS="$xorg_testset_save_CFLAGS"
14680 fi
14681
14682 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685 fi
14686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14688 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14689 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14690 then :
14691 printf %s "(cached) " >&6
14692 else $as_nop
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14695 int i;
14696 _ACEOF
14697 if ac_fn_c_try_compile "$LINENO"
14698 then :
14699 xorg_cv_cc_flag_unused_command_line_argument=yes
14700 else $as_nop
14701 xorg_cv_cc_flag_unused_command_line_argument=no
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14704 fi
14705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14708 CFLAGS="$xorg_testset_save_CFLAGS"
14709 fi
14710
14711 found="no"
14712
14713 if test $found = "no" ; then
14714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14716 fi
14717
14718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14720 fi
14721
14722 CFLAGS="$CFLAGS -Wmissing-noreturn"
14723
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14725 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14726 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14727 if eval test \${$cacheid+y}
14728 then :
14729 printf %s "(cached) " >&6
14730 else $as_nop
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 int i;
14734 int
14735 main (void)
14736 {
14737
14738 ;
14739 return 0;
14740 }
14741 _ACEOF
14742 if ac_fn_c_try_link "$LINENO"
14743 then :
14744 eval $cacheid=yes
14745 else $as_nop
14746 eval $cacheid=no
14747 fi
14748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14749 conftest$ac_exeext conftest.$ac_ext
14750 fi
14751
14752
14753 CFLAGS="$xorg_testset_save_CFLAGS"
14754
14755 eval supported=\$$cacheid
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14757 printf "%s\n" "$supported" >&6; }
14758 if test "$supported" = "yes" ; then
14759 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14760 found="yes"
14761 fi
14762 fi
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778 xorg_testset_save_CFLAGS="$CFLAGS"
14779
14780 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14783 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14784 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14785 then :
14786 printf %s "(cached) " >&6
14787 else $as_nop
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 int i;
14791 _ACEOF
14792 if ac_fn_c_try_compile "$LINENO"
14793 then :
14794 xorg_cv_cc_flag_unknown_warning_option=yes
14795 else $as_nop
14796 xorg_cv_cc_flag_unknown_warning_option=no
14797 fi
14798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14799 fi
14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14801 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14803 CFLAGS="$xorg_testset_save_CFLAGS"
14804 fi
14805
14806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14809 fi
14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14812 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14813 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14814 then :
14815 printf %s "(cached) " >&6
14816 else $as_nop
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819 int i;
14820 _ACEOF
14821 if ac_fn_c_try_compile "$LINENO"
14822 then :
14823 xorg_cv_cc_flag_unused_command_line_argument=yes
14824 else $as_nop
14825 xorg_cv_cc_flag_unused_command_line_argument=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14828 fi
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14830 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14832 CFLAGS="$xorg_testset_save_CFLAGS"
14833 fi
14834
14835 found="no"
14836
14837 if test $found = "no" ; then
14838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14840 fi
14841
14842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14844 fi
14845
14846 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14847
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14849 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14850 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14851 if eval test \${$cacheid+y}
14852 then :
14853 printf %s "(cached) " >&6
14854 else $as_nop
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857 int i;
14858 int
14859 main (void)
14860 {
14861
14862 ;
14863 return 0;
14864 }
14865 _ACEOF
14866 if ac_fn_c_try_link "$LINENO"
14867 then :
14868 eval $cacheid=yes
14869 else $as_nop
14870 eval $cacheid=no
14871 fi
14872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14873 conftest$ac_exeext conftest.$ac_ext
14874 fi
14875
14876
14877 CFLAGS="$xorg_testset_save_CFLAGS"
14878
14879 eval supported=\$$cacheid
14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14881 printf "%s\n" "$supported" >&6; }
14882 if test "$supported" = "yes" ; then
14883 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14884 found="yes"
14885 fi
14886 fi
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902 xorg_testset_save_CFLAGS="$CFLAGS"
14903
14904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14907 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14908 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14909 then :
14910 printf %s "(cached) " >&6
14911 else $as_nop
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 int i;
14915 _ACEOF
14916 if ac_fn_c_try_compile "$LINENO"
14917 then :
14918 xorg_cv_cc_flag_unknown_warning_option=yes
14919 else $as_nop
14920 xorg_cv_cc_flag_unknown_warning_option=no
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14923 fi
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14925 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14927 CFLAGS="$xorg_testset_save_CFLAGS"
14928 fi
14929
14930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14933 fi
14934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14936 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14937 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14938 then :
14939 printf %s "(cached) " >&6
14940 else $as_nop
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14943 int i;
14944 _ACEOF
14945 if ac_fn_c_try_compile "$LINENO"
14946 then :
14947 xorg_cv_cc_flag_unused_command_line_argument=yes
14948 else $as_nop
14949 xorg_cv_cc_flag_unused_command_line_argument=no
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14952 fi
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14954 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14956 CFLAGS="$xorg_testset_save_CFLAGS"
14957 fi
14958
14959 found="no"
14960
14961 if test $found = "no" ; then
14962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964 fi
14965
14966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968 fi
14969
14970 CFLAGS="$CFLAGS -Wredundant-decls"
14971
14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14973 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
14974 cacheid=xorg_cv_cc_flag__Wredundant_decls
14975 if eval test \${$cacheid+y}
14976 then :
14977 printf %s "(cached) " >&6
14978 else $as_nop
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14981 int i;
14982 int
14983 main (void)
14984 {
14985
14986 ;
14987 return 0;
14988 }
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"
14991 then :
14992 eval $cacheid=yes
14993 else $as_nop
14994 eval $cacheid=no
14995 fi
14996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14997 conftest$ac_exeext conftest.$ac_ext
14998 fi
14999
15000
15001 CFLAGS="$xorg_testset_save_CFLAGS"
15002
15003 eval supported=\$$cacheid
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15005 printf "%s\n" "$supported" >&6; }
15006 if test "$supported" = "yes" ; then
15007 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15008 found="yes"
15009 fi
15010 fi
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026 xorg_testset_save_CFLAGS="$CFLAGS"
15027
15028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15032 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15033 then :
15034 printf %s "(cached) " >&6
15035 else $as_nop
15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15037 /* end confdefs.h. */
15038 int i;
15039 _ACEOF
15040 if ac_fn_c_try_compile "$LINENO"
15041 then :
15042 xorg_cv_cc_flag_unknown_warning_option=yes
15043 else $as_nop
15044 xorg_cv_cc_flag_unknown_warning_option=no
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15047 fi
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15051 CFLAGS="$xorg_testset_save_CFLAGS"
15052 fi
15053
15054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057 fi
15058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15062 then :
15063 printf %s "(cached) " >&6
15064 else $as_nop
15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15066 /* end confdefs.h. */
15067 int i;
15068 _ACEOF
15069 if ac_fn_c_try_compile "$LINENO"
15070 then :
15071 xorg_cv_cc_flag_unused_command_line_argument=yes
15072 else $as_nop
15073 xorg_cv_cc_flag_unused_command_line_argument=no
15074 fi
15075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15076 fi
15077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15078 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15080 CFLAGS="$xorg_testset_save_CFLAGS"
15081 fi
15082
15083 found="no"
15084
15085 if test $found = "no" ; then
15086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088 fi
15089
15090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092 fi
15093
15094 CFLAGS="$CFLAGS -Wlogical-op"
15095
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15097 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15098 cacheid=xorg_cv_cc_flag__Wlogical_op
15099 if eval test \${$cacheid+y}
15100 then :
15101 printf %s "(cached) " >&6
15102 else $as_nop
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 int i;
15106 int
15107 main (void)
15108 {
15109
15110 ;
15111 return 0;
15112 }
15113 _ACEOF
15114 if ac_fn_c_try_link "$LINENO"
15115 then :
15116 eval $cacheid=yes
15117 else $as_nop
15118 eval $cacheid=no
15119 fi
15120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15121 conftest$ac_exeext conftest.$ac_ext
15122 fi
15123
15124
15125 CFLAGS="$xorg_testset_save_CFLAGS"
15126
15127 eval supported=\$$cacheid
15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15129 printf "%s\n" "$supported" >&6; }
15130 if test "$supported" = "yes" ; then
15131 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15132 found="yes"
15133 fi
15134 fi
15135
15136
15137
15138 # These are currently disabled because they are noisy. They will be enabled
15139 # in the future once the codebase is sufficiently modernized to silence
15140 # them. For now, I don't want them to drown out the other warnings.
15141 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15142 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15143 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15144
15145 # Turn some warnings into errors, so we don't accidentally get successful builds
15146 # when there are problems that should be fixed.
15147
15148 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162 xorg_testset_save_CFLAGS="$CFLAGS"
15163
15164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15167 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15168 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15169 then :
15170 printf %s "(cached) " >&6
15171 else $as_nop
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15174 int i;
15175 _ACEOF
15176 if ac_fn_c_try_compile "$LINENO"
15177 then :
15178 xorg_cv_cc_flag_unknown_warning_option=yes
15179 else $as_nop
15180 xorg_cv_cc_flag_unknown_warning_option=no
15181 fi
15182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15183 fi
15184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15185 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15187 CFLAGS="$xorg_testset_save_CFLAGS"
15188 fi
15189
15190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15193 fi
15194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15196 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15197 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15198 then :
15199 printf %s "(cached) " >&6
15200 else $as_nop
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 int i;
15204 _ACEOF
15205 if ac_fn_c_try_compile "$LINENO"
15206 then :
15207 xorg_cv_cc_flag_unused_command_line_argument=yes
15208 else $as_nop
15209 xorg_cv_cc_flag_unused_command_line_argument=no
15210 fi
15211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15212 fi
15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15214 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15215 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15216 CFLAGS="$xorg_testset_save_CFLAGS"
15217 fi
15218
15219 found="no"
15220
15221 if test $found = "no" ; then
15222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224 fi
15225
15226 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15228 fi
15229
15230 CFLAGS="$CFLAGS -Werror=implicit"
15231
15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15233 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15234 cacheid=xorg_cv_cc_flag__Werror_implicit
15235 if eval test \${$cacheid+y}
15236 then :
15237 printf %s "(cached) " >&6
15238 else $as_nop
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15241 int i;
15242 int
15243 main (void)
15244 {
15245
15246 ;
15247 return 0;
15248 }
15249 _ACEOF
15250 if ac_fn_c_try_link "$LINENO"
15251 then :
15252 eval $cacheid=yes
15253 else $as_nop
15254 eval $cacheid=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15257 conftest$ac_exeext conftest.$ac_ext
15258 fi
15259
15260
15261 CFLAGS="$xorg_testset_save_CFLAGS"
15262
15263 eval supported=\$$cacheid
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15265 printf "%s\n" "$supported" >&6; }
15266 if test "$supported" = "yes" ; then
15267 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15268 found="yes"
15269 fi
15270 fi
15271
15272 if test $found = "no" ; then
15273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15275 fi
15276
15277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15279 fi
15280
15281 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15282
15283 { 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
15284 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15285 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15286 if eval test \${$cacheid+y}
15287 then :
15288 printf %s "(cached) " >&6
15289 else $as_nop
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 int i;
15293 int
15294 main (void)
15295 {
15296
15297 ;
15298 return 0;
15299 }
15300 _ACEOF
15301 if ac_fn_c_try_link "$LINENO"
15302 then :
15303 eval $cacheid=yes
15304 else $as_nop
15305 eval $cacheid=no
15306 fi
15307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15308 conftest$ac_exeext conftest.$ac_ext
15309 fi
15310
15311
15312 CFLAGS="$xorg_testset_save_CFLAGS"
15313
15314 eval supported=\$$cacheid
15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15316 printf "%s\n" "$supported" >&6; }
15317 if test "$supported" = "yes" ; then
15318 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15319 found="yes"
15320 fi
15321 fi
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337 xorg_testset_save_CFLAGS="$CFLAGS"
15338
15339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15343 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15344 then :
15345 printf %s "(cached) " >&6
15346 else $as_nop
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 int i;
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"
15352 then :
15353 xorg_cv_cc_flag_unknown_warning_option=yes
15354 else $as_nop
15355 xorg_cv_cc_flag_unknown_warning_option=no
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15358 fi
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15362 CFLAGS="$xorg_testset_save_CFLAGS"
15363 fi
15364
15365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15368 fi
15369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15373 then :
15374 printf %s "(cached) " >&6
15375 else $as_nop
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15378 int i;
15379 _ACEOF
15380 if ac_fn_c_try_compile "$LINENO"
15381 then :
15382 xorg_cv_cc_flag_unused_command_line_argument=yes
15383 else $as_nop
15384 xorg_cv_cc_flag_unused_command_line_argument=no
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15387 fi
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15389 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15391 CFLAGS="$xorg_testset_save_CFLAGS"
15392 fi
15393
15394 found="no"
15395
15396 if test $found = "no" ; then
15397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15399 fi
15400
15401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15403 fi
15404
15405 CFLAGS="$CFLAGS -Werror=nonnull"
15406
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15408 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15409 cacheid=xorg_cv_cc_flag__Werror_nonnull
15410 if eval test \${$cacheid+y}
15411 then :
15412 printf %s "(cached) " >&6
15413 else $as_nop
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15416 int i;
15417 int
15418 main (void)
15419 {
15420
15421 ;
15422 return 0;
15423 }
15424 _ACEOF
15425 if ac_fn_c_try_link "$LINENO"
15426 then :
15427 eval $cacheid=yes
15428 else $as_nop
15429 eval $cacheid=no
15430 fi
15431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15432 conftest$ac_exeext conftest.$ac_ext
15433 fi
15434
15435
15436 CFLAGS="$xorg_testset_save_CFLAGS"
15437
15438 eval supported=\$$cacheid
15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15440 printf "%s\n" "$supported" >&6; }
15441 if test "$supported" = "yes" ; then
15442 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15443 found="yes"
15444 fi
15445 fi
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461 xorg_testset_save_CFLAGS="$CFLAGS"
15462
15463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15467 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15468 then :
15469 printf %s "(cached) " >&6
15470 else $as_nop
15471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15472 /* end confdefs.h. */
15473 int i;
15474 _ACEOF
15475 if ac_fn_c_try_compile "$LINENO"
15476 then :
15477 xorg_cv_cc_flag_unknown_warning_option=yes
15478 else $as_nop
15479 xorg_cv_cc_flag_unknown_warning_option=no
15480 fi
15481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15482 fi
15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15486 CFLAGS="$xorg_testset_save_CFLAGS"
15487 fi
15488
15489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15492 fi
15493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15497 then :
15498 printf %s "(cached) " >&6
15499 else $as_nop
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15502 int i;
15503 _ACEOF
15504 if ac_fn_c_try_compile "$LINENO"
15505 then :
15506 xorg_cv_cc_flag_unused_command_line_argument=yes
15507 else $as_nop
15508 xorg_cv_cc_flag_unused_command_line_argument=no
15509 fi
15510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15511 fi
15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15515 CFLAGS="$xorg_testset_save_CFLAGS"
15516 fi
15517
15518 found="no"
15519
15520 if test $found = "no" ; then
15521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523 fi
15524
15525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15527 fi
15528
15529 CFLAGS="$CFLAGS -Werror=init-self"
15530
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15532 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15533 cacheid=xorg_cv_cc_flag__Werror_init_self
15534 if eval test \${$cacheid+y}
15535 then :
15536 printf %s "(cached) " >&6
15537 else $as_nop
15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h. */
15540 int i;
15541 int
15542 main (void)
15543 {
15544
15545 ;
15546 return 0;
15547 }
15548 _ACEOF
15549 if ac_fn_c_try_link "$LINENO"
15550 then :
15551 eval $cacheid=yes
15552 else $as_nop
15553 eval $cacheid=no
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15556 conftest$ac_exeext conftest.$ac_ext
15557 fi
15558
15559
15560 CFLAGS="$xorg_testset_save_CFLAGS"
15561
15562 eval supported=\$$cacheid
15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15564 printf "%s\n" "$supported" >&6; }
15565 if test "$supported" = "yes" ; then
15566 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15567 found="yes"
15568 fi
15569 fi
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585 xorg_testset_save_CFLAGS="$CFLAGS"
15586
15587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15591 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15592 then :
15593 printf %s "(cached) " >&6
15594 else $as_nop
15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15596 /* end confdefs.h. */
15597 int i;
15598 _ACEOF
15599 if ac_fn_c_try_compile "$LINENO"
15600 then :
15601 xorg_cv_cc_flag_unknown_warning_option=yes
15602 else $as_nop
15603 xorg_cv_cc_flag_unknown_warning_option=no
15604 fi
15605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15606 fi
15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15610 CFLAGS="$xorg_testset_save_CFLAGS"
15611 fi
15612
15613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15616 fi
15617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15621 then :
15622 printf %s "(cached) " >&6
15623 else $as_nop
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 int i;
15627 _ACEOF
15628 if ac_fn_c_try_compile "$LINENO"
15629 then :
15630 xorg_cv_cc_flag_unused_command_line_argument=yes
15631 else $as_nop
15632 xorg_cv_cc_flag_unused_command_line_argument=no
15633 fi
15634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15635 fi
15636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15639 CFLAGS="$xorg_testset_save_CFLAGS"
15640 fi
15641
15642 found="no"
15643
15644 if test $found = "no" ; then
15645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15647 fi
15648
15649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15651 fi
15652
15653 CFLAGS="$CFLAGS -Werror=main"
15654
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15656 printf %s "checking if $CC supports -Werror=main... " >&6; }
15657 cacheid=xorg_cv_cc_flag__Werror_main
15658 if eval test \${$cacheid+y}
15659 then :
15660 printf %s "(cached) " >&6
15661 else $as_nop
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15664 int i;
15665 int
15666 main (void)
15667 {
15668
15669 ;
15670 return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_link "$LINENO"
15674 then :
15675 eval $cacheid=yes
15676 else $as_nop
15677 eval $cacheid=no
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15680 conftest$ac_exeext conftest.$ac_ext
15681 fi
15682
15683
15684 CFLAGS="$xorg_testset_save_CFLAGS"
15685
15686 eval supported=\$$cacheid
15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15688 printf "%s\n" "$supported" >&6; }
15689 if test "$supported" = "yes" ; then
15690 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15691 found="yes"
15692 fi
15693 fi
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709 xorg_testset_save_CFLAGS="$CFLAGS"
15710
15711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15715 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15716 then :
15717 printf %s "(cached) " >&6
15718 else $as_nop
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 int i;
15722 _ACEOF
15723 if ac_fn_c_try_compile "$LINENO"
15724 then :
15725 xorg_cv_cc_flag_unknown_warning_option=yes
15726 else $as_nop
15727 xorg_cv_cc_flag_unknown_warning_option=no
15728 fi
15729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15730 fi
15731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15734 CFLAGS="$xorg_testset_save_CFLAGS"
15735 fi
15736
15737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15740 fi
15741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15745 then :
15746 printf %s "(cached) " >&6
15747 else $as_nop
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750 int i;
15751 _ACEOF
15752 if ac_fn_c_try_compile "$LINENO"
15753 then :
15754 xorg_cv_cc_flag_unused_command_line_argument=yes
15755 else $as_nop
15756 xorg_cv_cc_flag_unused_command_line_argument=no
15757 fi
15758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15759 fi
15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15763 CFLAGS="$xorg_testset_save_CFLAGS"
15764 fi
15765
15766 found="no"
15767
15768 if test $found = "no" ; then
15769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15771 fi
15772
15773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15775 fi
15776
15777 CFLAGS="$CFLAGS -Werror=missing-braces"
15778
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15780 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15781 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15782 if eval test \${$cacheid+y}
15783 then :
15784 printf %s "(cached) " >&6
15785 else $as_nop
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788 int i;
15789 int
15790 main (void)
15791 {
15792
15793 ;
15794 return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_c_try_link "$LINENO"
15798 then :
15799 eval $cacheid=yes
15800 else $as_nop
15801 eval $cacheid=no
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15804 conftest$ac_exeext conftest.$ac_ext
15805 fi
15806
15807
15808 CFLAGS="$xorg_testset_save_CFLAGS"
15809
15810 eval supported=\$$cacheid
15811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15812 printf "%s\n" "$supported" >&6; }
15813 if test "$supported" = "yes" ; then
15814 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15815 found="yes"
15816 fi
15817 fi
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833 xorg_testset_save_CFLAGS="$CFLAGS"
15834
15835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15840 then :
15841 printf %s "(cached) " >&6
15842 else $as_nop
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845 int i;
15846 _ACEOF
15847 if ac_fn_c_try_compile "$LINENO"
15848 then :
15849 xorg_cv_cc_flag_unknown_warning_option=yes
15850 else $as_nop
15851 xorg_cv_cc_flag_unknown_warning_option=no
15852 fi
15853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15854 fi
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15858 CFLAGS="$xorg_testset_save_CFLAGS"
15859 fi
15860
15861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15864 fi
15865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15869 then :
15870 printf %s "(cached) " >&6
15871 else $as_nop
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15874 int i;
15875 _ACEOF
15876 if ac_fn_c_try_compile "$LINENO"
15877 then :
15878 xorg_cv_cc_flag_unused_command_line_argument=yes
15879 else $as_nop
15880 xorg_cv_cc_flag_unused_command_line_argument=no
15881 fi
15882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15883 fi
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15887 CFLAGS="$xorg_testset_save_CFLAGS"
15888 fi
15889
15890 found="no"
15891
15892 if test $found = "no" ; then
15893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15895 fi
15896
15897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15899 fi
15900
15901 CFLAGS="$CFLAGS -Werror=sequence-point"
15902
15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15904 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
15905 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15906 if eval test \${$cacheid+y}
15907 then :
15908 printf %s "(cached) " >&6
15909 else $as_nop
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912 int i;
15913 int
15914 main (void)
15915 {
15916
15917 ;
15918 return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_link "$LINENO"
15922 then :
15923 eval $cacheid=yes
15924 else $as_nop
15925 eval $cacheid=no
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15928 conftest$ac_exeext conftest.$ac_ext
15929 fi
15930
15931
15932 CFLAGS="$xorg_testset_save_CFLAGS"
15933
15934 eval supported=\$$cacheid
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15936 printf "%s\n" "$supported" >&6; }
15937 if test "$supported" = "yes" ; then
15938 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15939 found="yes"
15940 fi
15941 fi
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957 xorg_testset_save_CFLAGS="$CFLAGS"
15958
15959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15964 then :
15965 printf %s "(cached) " >&6
15966 else $as_nop
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 int i;
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"
15972 then :
15973 xorg_cv_cc_flag_unknown_warning_option=yes
15974 else $as_nop
15975 xorg_cv_cc_flag_unknown_warning_option=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 fi
15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15982 CFLAGS="$xorg_testset_save_CFLAGS"
15983 fi
15984
15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15988 fi
15989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15993 then :
15994 printf %s "(cached) " >&6
15995 else $as_nop
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15998 int i;
15999 _ACEOF
16000 if ac_fn_c_try_compile "$LINENO"
16001 then :
16002 xorg_cv_cc_flag_unused_command_line_argument=yes
16003 else $as_nop
16004 xorg_cv_cc_flag_unused_command_line_argument=no
16005 fi
16006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16007 fi
16008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16011 CFLAGS="$xorg_testset_save_CFLAGS"
16012 fi
16013
16014 found="no"
16015
16016 if test $found = "no" ; then
16017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16019 fi
16020
16021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023 fi
16024
16025 CFLAGS="$CFLAGS -Werror=return-type"
16026
16027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16028 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16029 cacheid=xorg_cv_cc_flag__Werror_return_type
16030 if eval test \${$cacheid+y}
16031 then :
16032 printf %s "(cached) " >&6
16033 else $as_nop
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 int i;
16037 int
16038 main (void)
16039 {
16040
16041 ;
16042 return 0;
16043 }
16044 _ACEOF
16045 if ac_fn_c_try_link "$LINENO"
16046 then :
16047 eval $cacheid=yes
16048 else $as_nop
16049 eval $cacheid=no
16050 fi
16051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16052 conftest$ac_exeext conftest.$ac_ext
16053 fi
16054
16055
16056 CFLAGS="$xorg_testset_save_CFLAGS"
16057
16058 eval supported=\$$cacheid
16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16060 printf "%s\n" "$supported" >&6; }
16061 if test "$supported" = "yes" ; then
16062 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16063 found="yes"
16064 fi
16065 fi
16066
16067 if test $found = "no" ; then
16068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16070 fi
16071
16072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16074 fi
16075
16076 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16077
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16079 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16080 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16081 if eval test \${$cacheid+y}
16082 then :
16083 printf %s "(cached) " >&6
16084 else $as_nop
16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16086 /* end confdefs.h. */
16087 int i;
16088 int
16089 main (void)
16090 {
16091
16092 ;
16093 return 0;
16094 }
16095 _ACEOF
16096 if ac_fn_c_try_link "$LINENO"
16097 then :
16098 eval $cacheid=yes
16099 else $as_nop
16100 eval $cacheid=no
16101 fi
16102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16103 conftest$ac_exeext conftest.$ac_ext
16104 fi
16105
16106
16107 CFLAGS="$xorg_testset_save_CFLAGS"
16108
16109 eval supported=\$$cacheid
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16111 printf "%s\n" "$supported" >&6; }
16112 if test "$supported" = "yes" ; then
16113 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16114 found="yes"
16115 fi
16116 fi
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132 xorg_testset_save_CFLAGS="$CFLAGS"
16133
16134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16138 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16139 then :
16140 printf %s "(cached) " >&6
16141 else $as_nop
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 int i;
16145 _ACEOF
16146 if ac_fn_c_try_compile "$LINENO"
16147 then :
16148 xorg_cv_cc_flag_unknown_warning_option=yes
16149 else $as_nop
16150 xorg_cv_cc_flag_unknown_warning_option=no
16151 fi
16152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16153 fi
16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16157 CFLAGS="$xorg_testset_save_CFLAGS"
16158 fi
16159
16160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16163 fi
16164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16168 then :
16169 printf %s "(cached) " >&6
16170 else $as_nop
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 int i;
16174 _ACEOF
16175 if ac_fn_c_try_compile "$LINENO"
16176 then :
16177 xorg_cv_cc_flag_unused_command_line_argument=yes
16178 else $as_nop
16179 xorg_cv_cc_flag_unused_command_line_argument=no
16180 fi
16181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16182 fi
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16186 CFLAGS="$xorg_testset_save_CFLAGS"
16187 fi
16188
16189 found="no"
16190
16191 if test $found = "no" ; then
16192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16194 fi
16195
16196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198 fi
16199
16200 CFLAGS="$CFLAGS -Werror=trigraphs"
16201
16202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16203 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16204 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16205 if eval test \${$cacheid+y}
16206 then :
16207 printf %s "(cached) " >&6
16208 else $as_nop
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211 int i;
16212 int
16213 main (void)
16214 {
16215
16216 ;
16217 return 0;
16218 }
16219 _ACEOF
16220 if ac_fn_c_try_link "$LINENO"
16221 then :
16222 eval $cacheid=yes
16223 else $as_nop
16224 eval $cacheid=no
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16227 conftest$ac_exeext conftest.$ac_ext
16228 fi
16229
16230
16231 CFLAGS="$xorg_testset_save_CFLAGS"
16232
16233 eval supported=\$$cacheid
16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16235 printf "%s\n" "$supported" >&6; }
16236 if test "$supported" = "yes" ; then
16237 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16238 found="yes"
16239 fi
16240 fi
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256 xorg_testset_save_CFLAGS="$CFLAGS"
16257
16258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16262 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16263 then :
16264 printf %s "(cached) " >&6
16265 else $as_nop
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 int i;
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"
16271 then :
16272 xorg_cv_cc_flag_unknown_warning_option=yes
16273 else $as_nop
16274 xorg_cv_cc_flag_unknown_warning_option=no
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16277 fi
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16281 CFLAGS="$xorg_testset_save_CFLAGS"
16282 fi
16283
16284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16287 fi
16288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16292 then :
16293 printf %s "(cached) " >&6
16294 else $as_nop
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16296 /* end confdefs.h. */
16297 int i;
16298 _ACEOF
16299 if ac_fn_c_try_compile "$LINENO"
16300 then :
16301 xorg_cv_cc_flag_unused_command_line_argument=yes
16302 else $as_nop
16303 xorg_cv_cc_flag_unused_command_line_argument=no
16304 fi
16305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16306 fi
16307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16308 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16310 CFLAGS="$xorg_testset_save_CFLAGS"
16311 fi
16312
16313 found="no"
16314
16315 if test $found = "no" ; then
16316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16318 fi
16319
16320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16322 fi
16323
16324 CFLAGS="$CFLAGS -Werror=array-bounds"
16325
16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16327 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16328 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16329 if eval test \${$cacheid+y}
16330 then :
16331 printf %s "(cached) " >&6
16332 else $as_nop
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16335 int i;
16336 int
16337 main (void)
16338 {
16339
16340 ;
16341 return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"
16345 then :
16346 eval $cacheid=yes
16347 else $as_nop
16348 eval $cacheid=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16351 conftest$ac_exeext conftest.$ac_ext
16352 fi
16353
16354
16355 CFLAGS="$xorg_testset_save_CFLAGS"
16356
16357 eval supported=\$$cacheid
16358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16359 printf "%s\n" "$supported" >&6; }
16360 if test "$supported" = "yes" ; then
16361 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16362 found="yes"
16363 fi
16364 fi
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380 xorg_testset_save_CFLAGS="$CFLAGS"
16381
16382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16385 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16386 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16387 then :
16388 printf %s "(cached) " >&6
16389 else $as_nop
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 int i;
16393 _ACEOF
16394 if ac_fn_c_try_compile "$LINENO"
16395 then :
16396 xorg_cv_cc_flag_unknown_warning_option=yes
16397 else $as_nop
16398 xorg_cv_cc_flag_unknown_warning_option=no
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16401 fi
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16403 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16405 CFLAGS="$xorg_testset_save_CFLAGS"
16406 fi
16407
16408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16411 fi
16412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16415 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16416 then :
16417 printf %s "(cached) " >&6
16418 else $as_nop
16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16420 /* end confdefs.h. */
16421 int i;
16422 _ACEOF
16423 if ac_fn_c_try_compile "$LINENO"
16424 then :
16425 xorg_cv_cc_flag_unused_command_line_argument=yes
16426 else $as_nop
16427 xorg_cv_cc_flag_unused_command_line_argument=no
16428 fi
16429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16430 fi
16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16432 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16434 CFLAGS="$xorg_testset_save_CFLAGS"
16435 fi
16436
16437 found="no"
16438
16439 if test $found = "no" ; then
16440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16442 fi
16443
16444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16446 fi
16447
16448 CFLAGS="$CFLAGS -Werror=write-strings"
16449
16450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16451 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16452 cacheid=xorg_cv_cc_flag__Werror_write_strings
16453 if eval test \${$cacheid+y}
16454 then :
16455 printf %s "(cached) " >&6
16456 else $as_nop
16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458 /* end confdefs.h. */
16459 int i;
16460 int
16461 main (void)
16462 {
16463
16464 ;
16465 return 0;
16466 }
16467 _ACEOF
16468 if ac_fn_c_try_link "$LINENO"
16469 then :
16470 eval $cacheid=yes
16471 else $as_nop
16472 eval $cacheid=no
16473 fi
16474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16475 conftest$ac_exeext conftest.$ac_ext
16476 fi
16477
16478
16479 CFLAGS="$xorg_testset_save_CFLAGS"
16480
16481 eval supported=\$$cacheid
16482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16483 printf "%s\n" "$supported" >&6; }
16484 if test "$supported" = "yes" ; then
16485 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16486 found="yes"
16487 fi
16488 fi
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504 xorg_testset_save_CFLAGS="$CFLAGS"
16505
16506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16509 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16510 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16511 then :
16512 printf %s "(cached) " >&6
16513 else $as_nop
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 int i;
16517 _ACEOF
16518 if ac_fn_c_try_compile "$LINENO"
16519 then :
16520 xorg_cv_cc_flag_unknown_warning_option=yes
16521 else $as_nop
16522 xorg_cv_cc_flag_unknown_warning_option=no
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16525 fi
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16527 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16528 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16529 CFLAGS="$xorg_testset_save_CFLAGS"
16530 fi
16531
16532 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16535 fi
16536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16538 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16539 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16540 then :
16541 printf %s "(cached) " >&6
16542 else $as_nop
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545 int i;
16546 _ACEOF
16547 if ac_fn_c_try_compile "$LINENO"
16548 then :
16549 xorg_cv_cc_flag_unused_command_line_argument=yes
16550 else $as_nop
16551 xorg_cv_cc_flag_unused_command_line_argument=no
16552 fi
16553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16554 fi
16555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16556 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16558 CFLAGS="$xorg_testset_save_CFLAGS"
16559 fi
16560
16561 found="no"
16562
16563 if test $found = "no" ; then
16564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16566 fi
16567
16568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16570 fi
16571
16572 CFLAGS="$CFLAGS -Werror=address"
16573
16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16575 printf %s "checking if $CC supports -Werror=address... " >&6; }
16576 cacheid=xorg_cv_cc_flag__Werror_address
16577 if eval test \${$cacheid+y}
16578 then :
16579 printf %s "(cached) " >&6
16580 else $as_nop
16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h. */
16583 int i;
16584 int
16585 main (void)
16586 {
16587
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_link "$LINENO"
16593 then :
16594 eval $cacheid=yes
16595 else $as_nop
16596 eval $cacheid=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16599 conftest$ac_exeext conftest.$ac_ext
16600 fi
16601
16602
16603 CFLAGS="$xorg_testset_save_CFLAGS"
16604
16605 eval supported=\$$cacheid
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16607 printf "%s\n" "$supported" >&6; }
16608 if test "$supported" = "yes" ; then
16609 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16610 found="yes"
16611 fi
16612 fi
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628 xorg_testset_save_CFLAGS="$CFLAGS"
16629
16630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16635 then :
16636 printf %s "(cached) " >&6
16637 else $as_nop
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 int i;
16641 _ACEOF
16642 if ac_fn_c_try_compile "$LINENO"
16643 then :
16644 xorg_cv_cc_flag_unknown_warning_option=yes
16645 else $as_nop
16646 xorg_cv_cc_flag_unknown_warning_option=no
16647 fi
16648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16649 fi
16650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16651 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16653 CFLAGS="$xorg_testset_save_CFLAGS"
16654 fi
16655
16656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659 fi
16660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16663 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16664 then :
16665 printf %s "(cached) " >&6
16666 else $as_nop
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* end confdefs.h. */
16669 int i;
16670 _ACEOF
16671 if ac_fn_c_try_compile "$LINENO"
16672 then :
16673 xorg_cv_cc_flag_unused_command_line_argument=yes
16674 else $as_nop
16675 xorg_cv_cc_flag_unused_command_line_argument=no
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16678 fi
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16680 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16682 CFLAGS="$xorg_testset_save_CFLAGS"
16683 fi
16684
16685 found="no"
16686
16687 if test $found = "no" ; then
16688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16690 fi
16691
16692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16694 fi
16695
16696 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16697
16698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16699 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16700 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16701 if eval test \${$cacheid+y}
16702 then :
16703 printf %s "(cached) " >&6
16704 else $as_nop
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16707 int i;
16708 int
16709 main (void)
16710 {
16711
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 if ac_fn_c_try_link "$LINENO"
16717 then :
16718 eval $cacheid=yes
16719 else $as_nop
16720 eval $cacheid=no
16721 fi
16722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16723 conftest$ac_exeext conftest.$ac_ext
16724 fi
16725
16726
16727 CFLAGS="$xorg_testset_save_CFLAGS"
16728
16729 eval supported=\$$cacheid
16730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16731 printf "%s\n" "$supported" >&6; }
16732 if test "$supported" = "yes" ; then
16733 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16734 found="yes"
16735 fi
16736 fi
16737
16738 if test $found = "no" ; then
16739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16741 fi
16742
16743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16745 fi
16746
16747 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16748
16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16750 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16751 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16752 if eval test \${$cacheid+y}
16753 then :
16754 printf %s "(cached) " >&6
16755 else $as_nop
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758 int i;
16759 int
16760 main (void)
16761 {
16762
16763 ;
16764 return 0;
16765 }
16766 _ACEOF
16767 if ac_fn_c_try_link "$LINENO"
16768 then :
16769 eval $cacheid=yes
16770 else $as_nop
16771 eval $cacheid=no
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16774 conftest$ac_exeext conftest.$ac_ext
16775 fi
16776
16777
16778 CFLAGS="$xorg_testset_save_CFLAGS"
16779
16780 eval supported=\$$cacheid
16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16782 printf "%s\n" "$supported" >&6; }
16783 if test "$supported" = "yes" ; then
16784 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16785 found="yes"
16786 fi
16787 fi
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803 xorg_testset_save_CFLAGS="$CFLAGS"
16804
16805 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16808 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16809 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16810 then :
16811 printf %s "(cached) " >&6
16812 else $as_nop
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16815 int i;
16816 _ACEOF
16817 if ac_fn_c_try_compile "$LINENO"
16818 then :
16819 xorg_cv_cc_flag_unknown_warning_option=yes
16820 else $as_nop
16821 xorg_cv_cc_flag_unknown_warning_option=no
16822 fi
16823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16824 fi
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16826 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16828 CFLAGS="$xorg_testset_save_CFLAGS"
16829 fi
16830
16831 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16834 fi
16835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16837 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16838 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16839 then :
16840 printf %s "(cached) " >&6
16841 else $as_nop
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16844 int i;
16845 _ACEOF
16846 if ac_fn_c_try_compile "$LINENO"
16847 then :
16848 xorg_cv_cc_flag_unused_command_line_argument=yes
16849 else $as_nop
16850 xorg_cv_cc_flag_unused_command_line_argument=no
16851 fi
16852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16853 fi
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16855 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16857 CFLAGS="$xorg_testset_save_CFLAGS"
16858 fi
16859
16860 found="no"
16861
16862 if test $found = "no" ; then
16863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16865 fi
16866
16867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869 fi
16870
16871 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16872
16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16874 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16875 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16876 if eval test \${$cacheid+y}
16877 then :
16878 printf %s "(cached) " >&6
16879 else $as_nop
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16882 int i;
16883 int
16884 main (void)
16885 {
16886
16887 ;
16888 return 0;
16889 }
16890 _ACEOF
16891 if ac_fn_c_try_link "$LINENO"
16892 then :
16893 eval $cacheid=yes
16894 else $as_nop
16895 eval $cacheid=no
16896 fi
16897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16898 conftest$ac_exeext conftest.$ac_ext
16899 fi
16900
16901
16902 CFLAGS="$xorg_testset_save_CFLAGS"
16903
16904 eval supported=\$$cacheid
16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16906 printf "%s\n" "$supported" >&6; }
16907 if test "$supported" = "yes" ; then
16908 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16909 found="yes"
16910 fi
16911 fi
16912
16913 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16914 else
16915 { 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
16916 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;}
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930 xorg_testset_save_CFLAGS="$CFLAGS"
16931
16932 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16933 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16935 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16936 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16937 then :
16938 printf %s "(cached) " >&6
16939 else $as_nop
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942 int i;
16943 _ACEOF
16944 if ac_fn_c_try_compile "$LINENO"
16945 then :
16946 xorg_cv_cc_flag_unknown_warning_option=yes
16947 else $as_nop
16948 xorg_cv_cc_flag_unknown_warning_option=no
16949 fi
16950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16951 fi
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16955 CFLAGS="$xorg_testset_save_CFLAGS"
16956 fi
16957
16958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16961 fi
16962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16966 then :
16967 printf %s "(cached) " >&6
16968 else $as_nop
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16971 int i;
16972 _ACEOF
16973 if ac_fn_c_try_compile "$LINENO"
16974 then :
16975 xorg_cv_cc_flag_unused_command_line_argument=yes
16976 else $as_nop
16977 xorg_cv_cc_flag_unused_command_line_argument=no
16978 fi
16979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16980 fi
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16982 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16984 CFLAGS="$xorg_testset_save_CFLAGS"
16985 fi
16986
16987 found="no"
16988
16989 if test $found = "no" ; then
16990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16992 fi
16993
16994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16996 fi
16997
16998 CFLAGS="$CFLAGS -Wimplicit"
16999
17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17001 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17002 cacheid=xorg_cv_cc_flag__Wimplicit
17003 if eval test \${$cacheid+y}
17004 then :
17005 printf %s "(cached) " >&6
17006 else $as_nop
17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17009 int i;
17010 int
17011 main (void)
17012 {
17013
17014 ;
17015 return 0;
17016 }
17017 _ACEOF
17018 if ac_fn_c_try_link "$LINENO"
17019 then :
17020 eval $cacheid=yes
17021 else $as_nop
17022 eval $cacheid=no
17023 fi
17024 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17025 conftest$ac_exeext conftest.$ac_ext
17026 fi
17027
17028
17029 CFLAGS="$xorg_testset_save_CFLAGS"
17030
17031 eval supported=\$$cacheid
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17033 printf "%s\n" "$supported" >&6; }
17034 if test "$supported" = "yes" ; then
17035 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17036 found="yes"
17037 fi
17038 fi
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054 xorg_testset_save_CFLAGS="$CFLAGS"
17055
17056 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17059 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17060 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17061 then :
17062 printf %s "(cached) " >&6
17063 else $as_nop
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17066 int i;
17067 _ACEOF
17068 if ac_fn_c_try_compile "$LINENO"
17069 then :
17070 xorg_cv_cc_flag_unknown_warning_option=yes
17071 else $as_nop
17072 xorg_cv_cc_flag_unknown_warning_option=no
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17075 fi
17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17077 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17079 CFLAGS="$xorg_testset_save_CFLAGS"
17080 fi
17081
17082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17085 fi
17086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17088 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17089 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17090 then :
17091 printf %s "(cached) " >&6
17092 else $as_nop
17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095 int i;
17096 _ACEOF
17097 if ac_fn_c_try_compile "$LINENO"
17098 then :
17099 xorg_cv_cc_flag_unused_command_line_argument=yes
17100 else $as_nop
17101 xorg_cv_cc_flag_unused_command_line_argument=no
17102 fi
17103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17104 fi
17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17106 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17108 CFLAGS="$xorg_testset_save_CFLAGS"
17109 fi
17110
17111 found="no"
17112
17113 if test $found = "no" ; then
17114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17116 fi
17117
17118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17120 fi
17121
17122 CFLAGS="$CFLAGS -Wnonnull"
17123
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17125 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17126 cacheid=xorg_cv_cc_flag__Wnonnull
17127 if eval test \${$cacheid+y}
17128 then :
17129 printf %s "(cached) " >&6
17130 else $as_nop
17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 int i;
17134 int
17135 main (void)
17136 {
17137
17138 ;
17139 return 0;
17140 }
17141 _ACEOF
17142 if ac_fn_c_try_link "$LINENO"
17143 then :
17144 eval $cacheid=yes
17145 else $as_nop
17146 eval $cacheid=no
17147 fi
17148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17149 conftest$ac_exeext conftest.$ac_ext
17150 fi
17151
17152
17153 CFLAGS="$xorg_testset_save_CFLAGS"
17154
17155 eval supported=\$$cacheid
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17157 printf "%s\n" "$supported" >&6; }
17158 if test "$supported" = "yes" ; then
17159 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17160 found="yes"
17161 fi
17162 fi
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178 xorg_testset_save_CFLAGS="$CFLAGS"
17179
17180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17183 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17184 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17185 then :
17186 printf %s "(cached) " >&6
17187 else $as_nop
17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189 /* end confdefs.h. */
17190 int i;
17191 _ACEOF
17192 if ac_fn_c_try_compile "$LINENO"
17193 then :
17194 xorg_cv_cc_flag_unknown_warning_option=yes
17195 else $as_nop
17196 xorg_cv_cc_flag_unknown_warning_option=no
17197 fi
17198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17199 fi
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17201 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17203 CFLAGS="$xorg_testset_save_CFLAGS"
17204 fi
17205
17206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209 fi
17210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17212 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17213 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17214 then :
17215 printf %s "(cached) " >&6
17216 else $as_nop
17217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17218 /* end confdefs.h. */
17219 int i;
17220 _ACEOF
17221 if ac_fn_c_try_compile "$LINENO"
17222 then :
17223 xorg_cv_cc_flag_unused_command_line_argument=yes
17224 else $as_nop
17225 xorg_cv_cc_flag_unused_command_line_argument=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17228 fi
17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17230 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17232 CFLAGS="$xorg_testset_save_CFLAGS"
17233 fi
17234
17235 found="no"
17236
17237 if test $found = "no" ; then
17238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17240 fi
17241
17242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17244 fi
17245
17246 CFLAGS="$CFLAGS -Winit-self"
17247
17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17249 printf %s "checking if $CC supports -Winit-self... " >&6; }
17250 cacheid=xorg_cv_cc_flag__Winit_self
17251 if eval test \${$cacheid+y}
17252 then :
17253 printf %s "(cached) " >&6
17254 else $as_nop
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 int i;
17258 int
17259 main (void)
17260 {
17261
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"
17267 then :
17268 eval $cacheid=yes
17269 else $as_nop
17270 eval $cacheid=no
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17273 conftest$ac_exeext conftest.$ac_ext
17274 fi
17275
17276
17277 CFLAGS="$xorg_testset_save_CFLAGS"
17278
17279 eval supported=\$$cacheid
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17281 printf "%s\n" "$supported" >&6; }
17282 if test "$supported" = "yes" ; then
17283 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17284 found="yes"
17285 fi
17286 fi
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302 xorg_testset_save_CFLAGS="$CFLAGS"
17303
17304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17308 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17309 then :
17310 printf %s "(cached) " >&6
17311 else $as_nop
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 int i;
17315 _ACEOF
17316 if ac_fn_c_try_compile "$LINENO"
17317 then :
17318 xorg_cv_cc_flag_unknown_warning_option=yes
17319 else $as_nop
17320 xorg_cv_cc_flag_unknown_warning_option=no
17321 fi
17322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17323 fi
17324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17325 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17327 CFLAGS="$xorg_testset_save_CFLAGS"
17328 fi
17329
17330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333 fi
17334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17336 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17337 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17338 then :
17339 printf %s "(cached) " >&6
17340 else $as_nop
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17343 int i;
17344 _ACEOF
17345 if ac_fn_c_try_compile "$LINENO"
17346 then :
17347 xorg_cv_cc_flag_unused_command_line_argument=yes
17348 else $as_nop
17349 xorg_cv_cc_flag_unused_command_line_argument=no
17350 fi
17351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17352 fi
17353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17354 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17356 CFLAGS="$xorg_testset_save_CFLAGS"
17357 fi
17358
17359 found="no"
17360
17361 if test $found = "no" ; then
17362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17364 fi
17365
17366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17368 fi
17369
17370 CFLAGS="$CFLAGS -Wmain"
17371
17372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17373 printf %s "checking if $CC supports -Wmain... " >&6; }
17374 cacheid=xorg_cv_cc_flag__Wmain
17375 if eval test \${$cacheid+y}
17376 then :
17377 printf %s "(cached) " >&6
17378 else $as_nop
17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380 /* end confdefs.h. */
17381 int i;
17382 int
17383 main (void)
17384 {
17385
17386 ;
17387 return 0;
17388 }
17389 _ACEOF
17390 if ac_fn_c_try_link "$LINENO"
17391 then :
17392 eval $cacheid=yes
17393 else $as_nop
17394 eval $cacheid=no
17395 fi
17396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17397 conftest$ac_exeext conftest.$ac_ext
17398 fi
17399
17400
17401 CFLAGS="$xorg_testset_save_CFLAGS"
17402
17403 eval supported=\$$cacheid
17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17405 printf "%s\n" "$supported" >&6; }
17406 if test "$supported" = "yes" ; then
17407 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17408 found="yes"
17409 fi
17410 fi
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426 xorg_testset_save_CFLAGS="$CFLAGS"
17427
17428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17431 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17432 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17433 then :
17434 printf %s "(cached) " >&6
17435 else $as_nop
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"
17441 then :
17442 xorg_cv_cc_flag_unknown_warning_option=yes
17443 else $as_nop
17444 xorg_cv_cc_flag_unknown_warning_option=no
17445 fi
17446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17447 fi
17448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17449 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17451 CFLAGS="$xorg_testset_save_CFLAGS"
17452 fi
17453
17454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457 fi
17458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17460 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17461 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17462 then :
17463 printf %s "(cached) " >&6
17464 else $as_nop
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 int i;
17468 _ACEOF
17469 if ac_fn_c_try_compile "$LINENO"
17470 then :
17471 xorg_cv_cc_flag_unused_command_line_argument=yes
17472 else $as_nop
17473 xorg_cv_cc_flag_unused_command_line_argument=no
17474 fi
17475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17476 fi
17477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17478 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17480 CFLAGS="$xorg_testset_save_CFLAGS"
17481 fi
17482
17483 found="no"
17484
17485 if test $found = "no" ; then
17486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17488 fi
17489
17490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17492 fi
17493
17494 CFLAGS="$CFLAGS -Wmissing-braces"
17495
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17497 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17498 cacheid=xorg_cv_cc_flag__Wmissing_braces
17499 if eval test \${$cacheid+y}
17500 then :
17501 printf %s "(cached) " >&6
17502 else $as_nop
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 int i;
17506 int
17507 main (void)
17508 {
17509
17510 ;
17511 return 0;
17512 }
17513 _ACEOF
17514 if ac_fn_c_try_link "$LINENO"
17515 then :
17516 eval $cacheid=yes
17517 else $as_nop
17518 eval $cacheid=no
17519 fi
17520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17521 conftest$ac_exeext conftest.$ac_ext
17522 fi
17523
17524
17525 CFLAGS="$xorg_testset_save_CFLAGS"
17526
17527 eval supported=\$$cacheid
17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17529 printf "%s\n" "$supported" >&6; }
17530 if test "$supported" = "yes" ; then
17531 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17532 found="yes"
17533 fi
17534 fi
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550 xorg_testset_save_CFLAGS="$CFLAGS"
17551
17552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17555 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17556 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17557 then :
17558 printf %s "(cached) " >&6
17559 else $as_nop
17560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17561 /* end confdefs.h. */
17562 int i;
17563 _ACEOF
17564 if ac_fn_c_try_compile "$LINENO"
17565 then :
17566 xorg_cv_cc_flag_unknown_warning_option=yes
17567 else $as_nop
17568 xorg_cv_cc_flag_unknown_warning_option=no
17569 fi
17570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17571 fi
17572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17573 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17575 CFLAGS="$xorg_testset_save_CFLAGS"
17576 fi
17577
17578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17581 fi
17582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17584 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17585 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17586 then :
17587 printf %s "(cached) " >&6
17588 else $as_nop
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17591 int i;
17592 _ACEOF
17593 if ac_fn_c_try_compile "$LINENO"
17594 then :
17595 xorg_cv_cc_flag_unused_command_line_argument=yes
17596 else $as_nop
17597 xorg_cv_cc_flag_unused_command_line_argument=no
17598 fi
17599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17600 fi
17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17602 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17604 CFLAGS="$xorg_testset_save_CFLAGS"
17605 fi
17606
17607 found="no"
17608
17609 if test $found = "no" ; then
17610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17612 fi
17613
17614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616 fi
17617
17618 CFLAGS="$CFLAGS -Wsequence-point"
17619
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17621 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17622 cacheid=xorg_cv_cc_flag__Wsequence_point
17623 if eval test \${$cacheid+y}
17624 then :
17625 printf %s "(cached) " >&6
17626 else $as_nop
17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628 /* end confdefs.h. */
17629 int i;
17630 int
17631 main (void)
17632 {
17633
17634 ;
17635 return 0;
17636 }
17637 _ACEOF
17638 if ac_fn_c_try_link "$LINENO"
17639 then :
17640 eval $cacheid=yes
17641 else $as_nop
17642 eval $cacheid=no
17643 fi
17644 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17645 conftest$ac_exeext conftest.$ac_ext
17646 fi
17647
17648
17649 CFLAGS="$xorg_testset_save_CFLAGS"
17650
17651 eval supported=\$$cacheid
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17653 printf "%s\n" "$supported" >&6; }
17654 if test "$supported" = "yes" ; then
17655 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17656 found="yes"
17657 fi
17658 fi
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674 xorg_testset_save_CFLAGS="$CFLAGS"
17675
17676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17679 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17680 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17681 then :
17682 printf %s "(cached) " >&6
17683 else $as_nop
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686 int i;
17687 _ACEOF
17688 if ac_fn_c_try_compile "$LINENO"
17689 then :
17690 xorg_cv_cc_flag_unknown_warning_option=yes
17691 else $as_nop
17692 xorg_cv_cc_flag_unknown_warning_option=no
17693 fi
17694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17695 fi
17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17697 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17699 CFLAGS="$xorg_testset_save_CFLAGS"
17700 fi
17701
17702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17705 fi
17706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17708 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17709 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17710 then :
17711 printf %s "(cached) " >&6
17712 else $as_nop
17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17714 /* end confdefs.h. */
17715 int i;
17716 _ACEOF
17717 if ac_fn_c_try_compile "$LINENO"
17718 then :
17719 xorg_cv_cc_flag_unused_command_line_argument=yes
17720 else $as_nop
17721 xorg_cv_cc_flag_unused_command_line_argument=no
17722 fi
17723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17724 fi
17725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17726 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17728 CFLAGS="$xorg_testset_save_CFLAGS"
17729 fi
17730
17731 found="no"
17732
17733 if test $found = "no" ; then
17734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17736 fi
17737
17738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17740 fi
17741
17742 CFLAGS="$CFLAGS -Wreturn-type"
17743
17744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17745 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17746 cacheid=xorg_cv_cc_flag__Wreturn_type
17747 if eval test \${$cacheid+y}
17748 then :
17749 printf %s "(cached) " >&6
17750 else $as_nop
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17753 int i;
17754 int
17755 main (void)
17756 {
17757
17758 ;
17759 return 0;
17760 }
17761 _ACEOF
17762 if ac_fn_c_try_link "$LINENO"
17763 then :
17764 eval $cacheid=yes
17765 else $as_nop
17766 eval $cacheid=no
17767 fi
17768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17769 conftest$ac_exeext conftest.$ac_ext
17770 fi
17771
17772
17773 CFLAGS="$xorg_testset_save_CFLAGS"
17774
17775 eval supported=\$$cacheid
17776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17777 printf "%s\n" "$supported" >&6; }
17778 if test "$supported" = "yes" ; then
17779 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17780 found="yes"
17781 fi
17782 fi
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798 xorg_testset_save_CFLAGS="$CFLAGS"
17799
17800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17803 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17804 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17805 then :
17806 printf %s "(cached) " >&6
17807 else $as_nop
17808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17810 int i;
17811 _ACEOF
17812 if ac_fn_c_try_compile "$LINENO"
17813 then :
17814 xorg_cv_cc_flag_unknown_warning_option=yes
17815 else $as_nop
17816 xorg_cv_cc_flag_unknown_warning_option=no
17817 fi
17818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17819 fi
17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17821 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17823 CFLAGS="$xorg_testset_save_CFLAGS"
17824 fi
17825
17826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17829 fi
17830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17832 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17833 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17834 then :
17835 printf %s "(cached) " >&6
17836 else $as_nop
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17839 int i;
17840 _ACEOF
17841 if ac_fn_c_try_compile "$LINENO"
17842 then :
17843 xorg_cv_cc_flag_unused_command_line_argument=yes
17844 else $as_nop
17845 xorg_cv_cc_flag_unused_command_line_argument=no
17846 fi
17847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17848 fi
17849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17850 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17852 CFLAGS="$xorg_testset_save_CFLAGS"
17853 fi
17854
17855 found="no"
17856
17857 if test $found = "no" ; then
17858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17860 fi
17861
17862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17864 fi
17865
17866 CFLAGS="$CFLAGS -Wtrigraphs"
17867
17868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17869 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
17870 cacheid=xorg_cv_cc_flag__Wtrigraphs
17871 if eval test \${$cacheid+y}
17872 then :
17873 printf %s "(cached) " >&6
17874 else $as_nop
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17877 int i;
17878 int
17879 main (void)
17880 {
17881
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"
17887 then :
17888 eval $cacheid=yes
17889 else $as_nop
17890 eval $cacheid=no
17891 fi
17892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17893 conftest$ac_exeext conftest.$ac_ext
17894 fi
17895
17896
17897 CFLAGS="$xorg_testset_save_CFLAGS"
17898
17899 eval supported=\$$cacheid
17900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17901 printf "%s\n" "$supported" >&6; }
17902 if test "$supported" = "yes" ; then
17903 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17904 found="yes"
17905 fi
17906 fi
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922 xorg_testset_save_CFLAGS="$CFLAGS"
17923
17924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17927 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17928 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17929 then :
17930 printf %s "(cached) " >&6
17931 else $as_nop
17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933 /* end confdefs.h. */
17934 int i;
17935 _ACEOF
17936 if ac_fn_c_try_compile "$LINENO"
17937 then :
17938 xorg_cv_cc_flag_unknown_warning_option=yes
17939 else $as_nop
17940 xorg_cv_cc_flag_unknown_warning_option=no
17941 fi
17942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17943 fi
17944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17945 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17947 CFLAGS="$xorg_testset_save_CFLAGS"
17948 fi
17949
17950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17953 fi
17954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17956 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17957 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17958 then :
17959 printf %s "(cached) " >&6
17960 else $as_nop
17961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962 /* end confdefs.h. */
17963 int i;
17964 _ACEOF
17965 if ac_fn_c_try_compile "$LINENO"
17966 then :
17967 xorg_cv_cc_flag_unused_command_line_argument=yes
17968 else $as_nop
17969 xorg_cv_cc_flag_unused_command_line_argument=no
17970 fi
17971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17972 fi
17973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17974 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17976 CFLAGS="$xorg_testset_save_CFLAGS"
17977 fi
17978
17979 found="no"
17980
17981 if test $found = "no" ; then
17982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17984 fi
17985
17986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17988 fi
17989
17990 CFLAGS="$CFLAGS -Warray-bounds"
17991
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17993 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
17994 cacheid=xorg_cv_cc_flag__Warray_bounds
17995 if eval test \${$cacheid+y}
17996 then :
17997 printf %s "(cached) " >&6
17998 else $as_nop
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 int i;
18002 int
18003 main (void)
18004 {
18005
18006 ;
18007 return 0;
18008 }
18009 _ACEOF
18010 if ac_fn_c_try_link "$LINENO"
18011 then :
18012 eval $cacheid=yes
18013 else $as_nop
18014 eval $cacheid=no
18015 fi
18016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18017 conftest$ac_exeext conftest.$ac_ext
18018 fi
18019
18020
18021 CFLAGS="$xorg_testset_save_CFLAGS"
18022
18023 eval supported=\$$cacheid
18024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18025 printf "%s\n" "$supported" >&6; }
18026 if test "$supported" = "yes" ; then
18027 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18028 found="yes"
18029 fi
18030 fi
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046 xorg_testset_save_CFLAGS="$CFLAGS"
18047
18048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18051 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18052 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18053 then :
18054 printf %s "(cached) " >&6
18055 else $as_nop
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 int i;
18059 _ACEOF
18060 if ac_fn_c_try_compile "$LINENO"
18061 then :
18062 xorg_cv_cc_flag_unknown_warning_option=yes
18063 else $as_nop
18064 xorg_cv_cc_flag_unknown_warning_option=no
18065 fi
18066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18067 fi
18068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18069 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18071 CFLAGS="$xorg_testset_save_CFLAGS"
18072 fi
18073
18074 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18077 fi
18078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18080 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18081 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18082 then :
18083 printf %s "(cached) " >&6
18084 else $as_nop
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087 int i;
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"
18090 then :
18091 xorg_cv_cc_flag_unused_command_line_argument=yes
18092 else $as_nop
18093 xorg_cv_cc_flag_unused_command_line_argument=no
18094 fi
18095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18096 fi
18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18098 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18100 CFLAGS="$xorg_testset_save_CFLAGS"
18101 fi
18102
18103 found="no"
18104
18105 if test $found = "no" ; then
18106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18108 fi
18109
18110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112 fi
18113
18114 CFLAGS="$CFLAGS -Wwrite-strings"
18115
18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18117 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18118 cacheid=xorg_cv_cc_flag__Wwrite_strings
18119 if eval test \${$cacheid+y}
18120 then :
18121 printf %s "(cached) " >&6
18122 else $as_nop
18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124 /* end confdefs.h. */
18125 int i;
18126 int
18127 main (void)
18128 {
18129
18130 ;
18131 return 0;
18132 }
18133 _ACEOF
18134 if ac_fn_c_try_link "$LINENO"
18135 then :
18136 eval $cacheid=yes
18137 else $as_nop
18138 eval $cacheid=no
18139 fi
18140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18141 conftest$ac_exeext conftest.$ac_ext
18142 fi
18143
18144
18145 CFLAGS="$xorg_testset_save_CFLAGS"
18146
18147 eval supported=\$$cacheid
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18149 printf "%s\n" "$supported" >&6; }
18150 if test "$supported" = "yes" ; then
18151 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18152 found="yes"
18153 fi
18154 fi
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170 xorg_testset_save_CFLAGS="$CFLAGS"
18171
18172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18177 then :
18178 printf %s "(cached) " >&6
18179 else $as_nop
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182 int i;
18183 _ACEOF
18184 if ac_fn_c_try_compile "$LINENO"
18185 then :
18186 xorg_cv_cc_flag_unknown_warning_option=yes
18187 else $as_nop
18188 xorg_cv_cc_flag_unknown_warning_option=no
18189 fi
18190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18191 fi
18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18195 CFLAGS="$xorg_testset_save_CFLAGS"
18196 fi
18197
18198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18201 fi
18202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18206 then :
18207 printf %s "(cached) " >&6
18208 else $as_nop
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18211 int i;
18212 _ACEOF
18213 if ac_fn_c_try_compile "$LINENO"
18214 then :
18215 xorg_cv_cc_flag_unused_command_line_argument=yes
18216 else $as_nop
18217 xorg_cv_cc_flag_unused_command_line_argument=no
18218 fi
18219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18220 fi
18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18224 CFLAGS="$xorg_testset_save_CFLAGS"
18225 fi
18226
18227 found="no"
18228
18229 if test $found = "no" ; then
18230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232 fi
18233
18234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236 fi
18237
18238 CFLAGS="$CFLAGS -Waddress"
18239
18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18241 printf %s "checking if $CC supports -Waddress... " >&6; }
18242 cacheid=xorg_cv_cc_flag__Waddress
18243 if eval test \${$cacheid+y}
18244 then :
18245 printf %s "(cached) " >&6
18246 else $as_nop
18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18249 int i;
18250 int
18251 main (void)
18252 {
18253
18254 ;
18255 return 0;
18256 }
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"
18259 then :
18260 eval $cacheid=yes
18261 else $as_nop
18262 eval $cacheid=no
18263 fi
18264 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18265 conftest$ac_exeext conftest.$ac_ext
18266 fi
18267
18268
18269 CFLAGS="$xorg_testset_save_CFLAGS"
18270
18271 eval supported=\$$cacheid
18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18273 printf "%s\n" "$supported" >&6; }
18274 if test "$supported" = "yes" ; then
18275 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18276 found="yes"
18277 fi
18278 fi
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294 xorg_testset_save_CFLAGS="$CFLAGS"
18295
18296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18300 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18301 then :
18302 printf %s "(cached) " >&6
18303 else $as_nop
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18306 int i;
18307 _ACEOF
18308 if ac_fn_c_try_compile "$LINENO"
18309 then :
18310 xorg_cv_cc_flag_unknown_warning_option=yes
18311 else $as_nop
18312 xorg_cv_cc_flag_unknown_warning_option=no
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18315 fi
18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18319 CFLAGS="$xorg_testset_save_CFLAGS"
18320 fi
18321
18322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18325 fi
18326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18330 then :
18331 printf %s "(cached) " >&6
18332 else $as_nop
18333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h. */
18335 int i;
18336 _ACEOF
18337 if ac_fn_c_try_compile "$LINENO"
18338 then :
18339 xorg_cv_cc_flag_unused_command_line_argument=yes
18340 else $as_nop
18341 xorg_cv_cc_flag_unused_command_line_argument=no
18342 fi
18343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18344 fi
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18348 CFLAGS="$xorg_testset_save_CFLAGS"
18349 fi
18350
18351 found="no"
18352
18353 if test $found = "no" ; then
18354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18356 fi
18357
18358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18360 fi
18361
18362 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18363
18364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18365 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18366 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18367 if eval test \${$cacheid+y}
18368 then :
18369 printf %s "(cached) " >&6
18370 else $as_nop
18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h. */
18373 int i;
18374 int
18375 main (void)
18376 {
18377
18378 ;
18379 return 0;
18380 }
18381 _ACEOF
18382 if ac_fn_c_try_link "$LINENO"
18383 then :
18384 eval $cacheid=yes
18385 else $as_nop
18386 eval $cacheid=no
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18389 conftest$ac_exeext conftest.$ac_ext
18390 fi
18391
18392
18393 CFLAGS="$xorg_testset_save_CFLAGS"
18394
18395 eval supported=\$$cacheid
18396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18397 printf "%s\n" "$supported" >&6; }
18398 if test "$supported" = "yes" ; then
18399 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18400 found="yes"
18401 fi
18402 fi
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418 xorg_testset_save_CFLAGS="$CFLAGS"
18419
18420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18424 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18425 then :
18426 printf %s "(cached) " >&6
18427 else $as_nop
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18430 int i;
18431 _ACEOF
18432 if ac_fn_c_try_compile "$LINENO"
18433 then :
18434 xorg_cv_cc_flag_unknown_warning_option=yes
18435 else $as_nop
18436 xorg_cv_cc_flag_unknown_warning_option=no
18437 fi
18438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18439 fi
18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18443 CFLAGS="$xorg_testset_save_CFLAGS"
18444 fi
18445
18446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18449 fi
18450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18454 then :
18455 printf %s "(cached) " >&6
18456 else $as_nop
18457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458 /* end confdefs.h. */
18459 int i;
18460 _ACEOF
18461 if ac_fn_c_try_compile "$LINENO"
18462 then :
18463 xorg_cv_cc_flag_unused_command_line_argument=yes
18464 else $as_nop
18465 xorg_cv_cc_flag_unused_command_line_argument=no
18466 fi
18467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18468 fi
18469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18470 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18472 CFLAGS="$xorg_testset_save_CFLAGS"
18473 fi
18474
18475 found="no"
18476
18477 if test $found = "no" ; then
18478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18480 fi
18481
18482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18484 fi
18485
18486 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18487
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18489 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18490 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18491 if eval test \${$cacheid+y}
18492 then :
18493 printf %s "(cached) " >&6
18494 else $as_nop
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497 int i;
18498 int
18499 main (void)
18500 {
18501
18502 ;
18503 return 0;
18504 }
18505 _ACEOF
18506 if ac_fn_c_try_link "$LINENO"
18507 then :
18508 eval $cacheid=yes
18509 else $as_nop
18510 eval $cacheid=no
18511 fi
18512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18513 conftest$ac_exeext conftest.$ac_ext
18514 fi
18515
18516
18517 CFLAGS="$xorg_testset_save_CFLAGS"
18518
18519 eval supported=\$$cacheid
18520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18521 printf "%s\n" "$supported" >&6; }
18522 if test "$supported" = "yes" ; then
18523 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18524 found="yes"
18525 fi
18526 fi
18527
18528
18529 fi
18530
18531
18532
18533
18534
18535
18536
18537 CWARNFLAGS="$BASE_CFLAGS"
18538 if test "x$GCC" = xyes ; then
18539 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18540 fi
18541
18542
18543
18544
18545
18546
18547
18548
18549 # Check whether --enable-strict-compilation was given.
18550 if test ${enable_strict_compilation+y}
18551 then :
18552 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18553 else $as_nop
18554 STRICT_COMPILE=no
18555 fi
18556
18557
18558
18559
18560
18561
18562 STRICT_CFLAGS=""
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576 xorg_testset_save_CFLAGS="$CFLAGS"
18577
18578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18581 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18582 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18583 then :
18584 printf %s "(cached) " >&6
18585 else $as_nop
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18588 int i;
18589 _ACEOF
18590 if ac_fn_c_try_compile "$LINENO"
18591 then :
18592 xorg_cv_cc_flag_unknown_warning_option=yes
18593 else $as_nop
18594 xorg_cv_cc_flag_unknown_warning_option=no
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18597 fi
18598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18599 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18600 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18601 CFLAGS="$xorg_testset_save_CFLAGS"
18602 fi
18603
18604 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18607 fi
18608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18610 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18611 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18612 then :
18613 printf %s "(cached) " >&6
18614 else $as_nop
18615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18617 int i;
18618 _ACEOF
18619 if ac_fn_c_try_compile "$LINENO"
18620 then :
18621 xorg_cv_cc_flag_unused_command_line_argument=yes
18622 else $as_nop
18623 xorg_cv_cc_flag_unused_command_line_argument=no
18624 fi
18625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18626 fi
18627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18628 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18630 CFLAGS="$xorg_testset_save_CFLAGS"
18631 fi
18632
18633 found="no"
18634
18635 if test $found = "no" ; then
18636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18638 fi
18639
18640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18642 fi
18643
18644 CFLAGS="$CFLAGS -pedantic"
18645
18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18647 printf %s "checking if $CC supports -pedantic... " >&6; }
18648 cacheid=xorg_cv_cc_flag__pedantic
18649 if eval test \${$cacheid+y}
18650 then :
18651 printf %s "(cached) " >&6
18652 else $as_nop
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18655 int i;
18656 int
18657 main (void)
18658 {
18659
18660 ;
18661 return 0;
18662 }
18663 _ACEOF
18664 if ac_fn_c_try_link "$LINENO"
18665 then :
18666 eval $cacheid=yes
18667 else $as_nop
18668 eval $cacheid=no
18669 fi
18670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18671 conftest$ac_exeext conftest.$ac_ext
18672 fi
18673
18674
18675 CFLAGS="$xorg_testset_save_CFLAGS"
18676
18677 eval supported=\$$cacheid
18678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18679 printf "%s\n" "$supported" >&6; }
18680 if test "$supported" = "yes" ; then
18681 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18682 found="yes"
18683 fi
18684 fi
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700 xorg_testset_save_CFLAGS="$CFLAGS"
18701
18702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18707 then :
18708 printf %s "(cached) " >&6
18709 else $as_nop
18710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18712 int i;
18713 _ACEOF
18714 if ac_fn_c_try_compile "$LINENO"
18715 then :
18716 xorg_cv_cc_flag_unknown_warning_option=yes
18717 else $as_nop
18718 xorg_cv_cc_flag_unknown_warning_option=no
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18721 fi
18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18723 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18725 CFLAGS="$xorg_testset_save_CFLAGS"
18726 fi
18727
18728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18731 fi
18732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18736 then :
18737 printf %s "(cached) " >&6
18738 else $as_nop
18739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h. */
18741 int i;
18742 _ACEOF
18743 if ac_fn_c_try_compile "$LINENO"
18744 then :
18745 xorg_cv_cc_flag_unused_command_line_argument=yes
18746 else $as_nop
18747 xorg_cv_cc_flag_unused_command_line_argument=no
18748 fi
18749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18750 fi
18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18754 CFLAGS="$xorg_testset_save_CFLAGS"
18755 fi
18756
18757 found="no"
18758
18759 if test $found = "no" ; then
18760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18762 fi
18763
18764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18766 fi
18767
18768 CFLAGS="$CFLAGS -Werror"
18769
18770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18771 printf %s "checking if $CC supports -Werror... " >&6; }
18772 cacheid=xorg_cv_cc_flag__Werror
18773 if eval test \${$cacheid+y}
18774 then :
18775 printf %s "(cached) " >&6
18776 else $as_nop
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18779 int i;
18780 int
18781 main (void)
18782 {
18783
18784 ;
18785 return 0;
18786 }
18787 _ACEOF
18788 if ac_fn_c_try_link "$LINENO"
18789 then :
18790 eval $cacheid=yes
18791 else $as_nop
18792 eval $cacheid=no
18793 fi
18794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18795 conftest$ac_exeext conftest.$ac_ext
18796 fi
18797
18798
18799 CFLAGS="$xorg_testset_save_CFLAGS"
18800
18801 eval supported=\$$cacheid
18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18803 printf "%s\n" "$supported" >&6; }
18804 if test "$supported" = "yes" ; then
18805 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18806 found="yes"
18807 fi
18808 fi
18809
18810 if test $found = "no" ; then
18811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18813 fi
18814
18815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18817 fi
18818
18819 CFLAGS="$CFLAGS -errwarn"
18820
18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18822 printf %s "checking if $CC supports -errwarn... " >&6; }
18823 cacheid=xorg_cv_cc_flag__errwarn
18824 if eval test \${$cacheid+y}
18825 then :
18826 printf %s "(cached) " >&6
18827 else $as_nop
18828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18830 int i;
18831 int
18832 main (void)
18833 {
18834
18835 ;
18836 return 0;
18837 }
18838 _ACEOF
18839 if ac_fn_c_try_link "$LINENO"
18840 then :
18841 eval $cacheid=yes
18842 else $as_nop
18843 eval $cacheid=no
18844 fi
18845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18846 conftest$ac_exeext conftest.$ac_ext
18847 fi
18848
18849
18850 CFLAGS="$xorg_testset_save_CFLAGS"
18851
18852 eval supported=\$$cacheid
18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18854 printf "%s\n" "$supported" >&6; }
18855 if test "$supported" = "yes" ; then
18856 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18857 found="yes"
18858 fi
18859 fi
18860
18861
18862
18863 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18864 # activate it with -Werror, so we add it here explicitly.
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878 xorg_testset_save_CFLAGS="$CFLAGS"
18879
18880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18885 then :
18886 printf %s "(cached) " >&6
18887 else $as_nop
18888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18889 /* end confdefs.h. */
18890 int i;
18891 _ACEOF
18892 if ac_fn_c_try_compile "$LINENO"
18893 then :
18894 xorg_cv_cc_flag_unknown_warning_option=yes
18895 else $as_nop
18896 xorg_cv_cc_flag_unknown_warning_option=no
18897 fi
18898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18899 fi
18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18903 CFLAGS="$xorg_testset_save_CFLAGS"
18904 fi
18905
18906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18909 fi
18910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18914 then :
18915 printf %s "(cached) " >&6
18916 else $as_nop
18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h. */
18919 int i;
18920 _ACEOF
18921 if ac_fn_c_try_compile "$LINENO"
18922 then :
18923 xorg_cv_cc_flag_unused_command_line_argument=yes
18924 else $as_nop
18925 xorg_cv_cc_flag_unused_command_line_argument=no
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18928 fi
18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18930 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18932 CFLAGS="$xorg_testset_save_CFLAGS"
18933 fi
18934
18935 found="no"
18936
18937 if test $found = "no" ; then
18938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18940 fi
18941
18942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18944 fi
18945
18946 CFLAGS="$CFLAGS -Werror=attributes"
18947
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18949 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
18950 cacheid=xorg_cv_cc_flag__Werror_attributes
18951 if eval test \${$cacheid+y}
18952 then :
18953 printf %s "(cached) " >&6
18954 else $as_nop
18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18957 int i;
18958 int
18959 main (void)
18960 {
18961
18962 ;
18963 return 0;
18964 }
18965 _ACEOF
18966 if ac_fn_c_try_link "$LINENO"
18967 then :
18968 eval $cacheid=yes
18969 else $as_nop
18970 eval $cacheid=no
18971 fi
18972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18973 conftest$ac_exeext conftest.$ac_ext
18974 fi
18975
18976
18977 CFLAGS="$xorg_testset_save_CFLAGS"
18978
18979 eval supported=\$$cacheid
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18981 printf "%s\n" "$supported" >&6; }
18982 if test "$supported" = "yes" ; then
18983 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18984 found="yes"
18985 fi
18986 fi
18987
18988
18989
18990 if test "x$STRICT_COMPILE" = "xyes"; then
18991 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18992 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18993 fi
18994
18995
18996
18997
18998
18999
19000
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19004 _ACEOF
19005
19006 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19007 if test "x$PVM" = "x"; then
19008 PVM="0"
19009 fi
19010
19011 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19012
19013 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19014 if test "x$PVP" = "x"; then
19015 PVP="0"
19016 fi
19017
19018 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19019
19020
19021
19022 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19023 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19024 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19025 touch \$(top_srcdir)/ChangeLog; \
19026 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19027
19028
19029
19030
19031 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19032 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19033 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19034 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19035 touch \$(top_srcdir)/INSTALL; \
19036 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19037
19038
19039
19040
19041
19042
19043 case $host_os in
19044 solaris*)
19045 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19046 # check for a man page file found in later versions that use
19047 # traditional section numbers instead
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19049 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19050 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19051 then :
19052 printf %s "(cached) " >&6
19053 else $as_nop
19054 test "$cross_compiling" = yes &&
19055 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19056 if test -r "/usr/share/man/man7/attributes.7"; then
19057 ac_cv_file__usr_share_man_man7_attributes_7=yes
19058 else
19059 ac_cv_file__usr_share_man_man7_attributes_7=no
19060 fi
19061 fi
19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19063 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19064 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19065 then :
19066 SYSV_MAN_SECTIONS=false
19067 else $as_nop
19068 SYSV_MAN_SECTIONS=true
19069 fi
19070
19071 ;;
19072 *) SYSV_MAN_SECTIONS=false ;;
19073 esac
19074
19075 if test x$APP_MAN_SUFFIX = x ; then
19076 APP_MAN_SUFFIX=1
19077 fi
19078 if test x$APP_MAN_DIR = x ; then
19079 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19080 fi
19081
19082 if test x$LIB_MAN_SUFFIX = x ; then
19083 LIB_MAN_SUFFIX=3
19084 fi
19085 if test x$LIB_MAN_DIR = x ; then
19086 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19087 fi
19088
19089 if test x$FILE_MAN_SUFFIX = x ; then
19090 case $SYSV_MAN_SECTIONS in
19091 true) FILE_MAN_SUFFIX=4 ;;
19092 *) FILE_MAN_SUFFIX=5 ;;
19093 esac
19094 fi
19095 if test x$FILE_MAN_DIR = x ; then
19096 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19097 fi
19098
19099 if test x$MISC_MAN_SUFFIX = x ; then
19100 case $SYSV_MAN_SECTIONS in
19101 true) MISC_MAN_SUFFIX=5 ;;
19102 *) MISC_MAN_SUFFIX=7 ;;
19103 esac
19104 fi
19105 if test x$MISC_MAN_DIR = x ; then
19106 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19107 fi
19108
19109 if test x$DRIVER_MAN_SUFFIX = x ; then
19110 case $SYSV_MAN_SECTIONS in
19111 true) DRIVER_MAN_SUFFIX=7 ;;
19112 *) DRIVER_MAN_SUFFIX=4 ;;
19113 esac
19114 fi
19115 if test x$DRIVER_MAN_DIR = x ; then
19116 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19117 fi
19118
19119 if test x$ADMIN_MAN_SUFFIX = x ; then
19120 case $SYSV_MAN_SECTIONS in
19121 true) ADMIN_MAN_SUFFIX=1m ;;
19122 *) ADMIN_MAN_SUFFIX=8 ;;
19123 esac
19124 fi
19125 if test x$ADMIN_MAN_DIR = x ; then
19126 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19127 fi
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143 XORG_MAN_PAGE="X Version 11"
19144
19145 MAN_SUBSTS="\
19146 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19147 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19148 -e 's|__xservername__|Xorg|g' \
19149 -e 's|__xconfigfile__|xorg.conf|g' \
19150 -e 's|__projectroot__|\$(prefix)|g' \
19151 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19152 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19153 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19154 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19155 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19156 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19157 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19158
19159
19160
19161 # Check whether --enable-silent-rules was given.
19162 if test ${enable_silent_rules+y}
19163 then :
19164 enableval=$enable_silent_rules;
19165 fi
19166
19167 case $enable_silent_rules in # (((
19168 yes) AM_DEFAULT_VERBOSITY=0;;
19169 no) AM_DEFAULT_VERBOSITY=1;;
19170 *) AM_DEFAULT_VERBOSITY=0;;
19171 esac
19172 am_make=${MAKE-make}
19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19174 printf %s "checking whether $am_make supports nested variables... " >&6; }
19175 if test ${am_cv_make_support_nested_variables+y}
19176 then :
19177 printf %s "(cached) " >&6
19178 else $as_nop
19179 if printf "%s\n" 'TRUE=$(BAR$(V))
19180 BAR0=false
19181 BAR1=true
19182 V=1
19183 am__doit:
19184 @$(TRUE)
19185 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19186 am_cv_make_support_nested_variables=yes
19187 else
19188 am_cv_make_support_nested_variables=no
19189 fi
19190 fi
19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19192 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19193 if test $am_cv_make_support_nested_variables = yes; then
19194 AM_V='$(V)'
19195 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19196 else
19197 AM_V=$AM_DEFAULT_VERBOSITY
19198 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19199 fi
19200 AM_BACKSLASH='\'
19201
19202
19203
19204
19205 # Check fixesext configuration, strip extra digits from package version to
19206 # find the required protocol version
19207 FIXESEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19208
19209
19210 # Obtain compiler/linker options for dependencies
19211
19212 pkg_failed=no
19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FIXESEXT" >&5
19214 printf %s "checking for FIXESEXT... " >&6; }
19215
19216 if test -n "$FIXESEXT_CFLAGS"; then
19217 pkg_cv_FIXESEXT_CFLAGS="$FIXESEXT_CFLAGS"
19218 elif test -n "$PKG_CONFIG"; then
19219 if test -n "$PKG_CONFIG" && \
19220 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fixesproto >= \$FIXESEXT_VERSION xextproto x11 >= 1.6\""; } >&5
19221 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6") 2>&5
19222 ac_status=$?
19223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19224 test $ac_status = 0; }; then
19225 pkg_cv_FIXESEXT_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>/dev/null`
19226 test "x$?" != "x0" && pkg_failed=yes
19227 else
19228 pkg_failed=yes
19229 fi
19230 else
19231 pkg_failed=untried
19232 fi
19233 if test -n "$FIXESEXT_LIBS"; then
19234 pkg_cv_FIXESEXT_LIBS="$FIXESEXT_LIBS"
19235 elif test -n "$PKG_CONFIG"; then
19236 if test -n "$PKG_CONFIG" && \
19237 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.22 fixesproto >= \$FIXESEXT_VERSION xextproto x11 >= 1.6\""; } >&5
19238 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6") 2>&5
19239 ac_status=$?
19240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19241 test $ac_status = 0; }; then
19242 pkg_cv_FIXESEXT_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>/dev/null`
19243 test "x$?" != "x0" && pkg_failed=yes
19244 else
19245 pkg_failed=yes
19246 fi
19247 else
19248 pkg_failed=untried
19249 fi
19250
19251
19252
19253 if test $pkg_failed = yes; then
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19255 printf "%s\n" "no" >&6; }
19256
19257 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19258 _pkg_short_errors_supported=yes
19259 else
19260 _pkg_short_errors_supported=no
19261 fi
19262 if test $_pkg_short_errors_supported = yes; then
19263 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>&1`
19264 else
19265 FIXESEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6" 2>&1`
19266 fi
19267 # Put the nasty error message in config.log where it belongs
19268 echo "$FIXESEXT_PKG_ERRORS" >&5
19269
19270 as_fn_error $? "Package requirements (xproto >= 7.0.22 fixesproto >= $FIXESEXT_VERSION xextproto x11 >= 1.6) were not met:
19271
19272 $FIXESEXT_PKG_ERRORS
19273
19274 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19275 installed software in a non-standard prefix.
19276
19277 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
19278 and FIXESEXT_LIBS to avoid the need to call pkg-config.
19279 See the pkg-config man page for more details." "$LINENO" 5
19280 elif test $pkg_failed = untried; then
19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19282 printf "%s\n" "no" >&6; }
19283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19284 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19285 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19286 is in your PATH or set the PKG_CONFIG environment variable to the full
19287 path to pkg-config.
19288
19289 Alternatively, you may set the environment variables FIXESEXT_CFLAGS
19290 and FIXESEXT_LIBS to avoid the need to call pkg-config.
19291 See the pkg-config man page for more details.
19292
19293 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19294 See \`config.log' for more details" "$LINENO" 5; }
19295 else
19296 FIXESEXT_CFLAGS=$pkg_cv_FIXESEXT_CFLAGS
19297 FIXESEXT_LIBS=$pkg_cv_FIXESEXT_LIBS
19298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19299 printf "%s\n" "yes" >&6; }
19300
19301 fi
19302
19303
19304 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xfixes.pc"
19305
19306 cat >confcache <<\_ACEOF
19307 # This file is a shell script that caches the results of configure
19308 # tests run on this system so they can be shared between configure
19309 # scripts and configure runs, see configure's option --config-cache.
19310 # It is not useful on other systems. If it contains results you don't
19311 # want to keep, you may remove or edit it.
19312 #
19313 # config.status only pays attention to the cache file if you give it
19314 # the --recheck option to rerun configure.
19315 #
19316 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19317 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19318 # following values.
19319
19320 _ACEOF
19321
19322 # The following way of writing the cache mishandles newlines in values,
19323 # but we know of no workaround that is simple, portable, and efficient.
19324 # So, we kill variables containing newlines.
19325 # Ultrix sh set writes to stderr and can't be redirected directly,
19326 # and sets the high bit in the cache file unless we assign to the vars.
19327 (
19328 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19329 eval ac_val=\$$ac_var
19330 case $ac_val in #(
19331 *${as_nl}*)
19332 case $ac_var in #(
19333 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19334 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19335 esac
19336 case $ac_var in #(
19337 _ | IFS | as_nl) ;; #(
19338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19339 *) { eval $ac_var=; unset $ac_var;} ;;
19340 esac ;;
19341 esac
19342 done
19343
19344 (set) 2>&1 |
19345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19346 *${as_nl}ac_space=\ *)
19347 # `set' does not quote correctly, so add quotes: double-quote
19348 # substitution turns \\\\ into \\, and sed turns \\ into \.
19349 sed -n \
19350 "s/'/'\\\\''/g;
19351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19352 ;; #(
19353 *)
19354 # `set' quotes correctly as required by POSIX, so do not add quotes.
19355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19356 ;;
19357 esac |
19358 sort
19359 ) |
19360 sed '
19361 /^ac_cv_env_/b end
19362 t clear
19363 :clear
19364 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19365 t end
19366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19367 :end' >>confcache
19368 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19369 if test -w "$cache_file"; then
19370 if test "x$cache_file" != "x/dev/null"; then
19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19372 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19373 if test ! -f "$cache_file" || test -h "$cache_file"; then
19374 cat confcache >"$cache_file"
19375 else
19376 case $cache_file in #(
19377 */* | ?:*)
19378 mv -f confcache "$cache_file"$$ &&
19379 mv -f "$cache_file"$$ "$cache_file" ;; #(
19380 *)
19381 mv -f confcache "$cache_file" ;;
19382 esac
19383 fi
19384 fi
19385 else
19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19387 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19388 fi
19389 fi
19390 rm -f confcache
19391
19392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19393 # Let make expand exec_prefix.
19394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19395
19396 DEFS=-DHAVE_CONFIG_H
19397
19398 ac_libobjs=
19399 ac_ltlibobjs=
19400 U=
19401 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19402 # 1. Remove the extension, and $U if already installed.
19403 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19404 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19405 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19406 # will be set to the directory where LIBOBJS objects are built.
19407 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19408 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19409 done
19410 LIBOBJS=$ac_libobjs
19411
19412 LTLIBOBJS=$ac_ltlibobjs
19413
19414
19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19416 printf %s "checking that generated files are newer than configure... " >&6; }
19417 if test -n "$am_sleep_pid"; then
19418 # Hide warnings about reused PIDs.
19419 wait $am_sleep_pid 2>/dev/null
19420 fi
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19422 printf "%s\n" "done" >&6; }
19423 if test -n "$EXEEXT"; then
19424 am__EXEEXT_TRUE=
19425 am__EXEEXT_FALSE='#'
19426 else
19427 am__EXEEXT_TRUE='#'
19428 am__EXEEXT_FALSE=
19429 fi
19430
19431 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19432 as_fn_error $? "conditional \"AMDEP\" was never defined.
19433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19434 fi
19435 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19436 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19438 fi
19439
19440 : "${CONFIG_STATUS=./config.status}"
19441 ac_write_fail=0
19442 ac_clean_files_save=$ac_clean_files
19443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19445 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19446 as_write_fail=0
19447 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19448 #! $SHELL
19449 # Generated by $as_me.
19450 # Run this file to recreate the current configuration.
19451 # Compiler output produced by configure, useful for debugging
19452 # configure, is in config.log if it exists.
19453
19454 debug=false
19455 ac_cs_recheck=false
19456 ac_cs_silent=false
19457
19458 SHELL=\${CONFIG_SHELL-$SHELL}
19459 export SHELL
19460 _ASEOF
19461 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19462 ## -------------------- ##
19463 ## M4sh Initialization. ##
19464 ## -------------------- ##
19465
19466 # Be more Bourne compatible
19467 DUALCASE=1; export DUALCASE # for MKS sh
19468 as_nop=:
19469 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19470 then :
19471 emulate sh
19472 NULLCMD=:
19473 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19474 # is contrary to our usage. Disable this feature.
19475 alias -g '${1+"$@"}'='"$@"'
19476 setopt NO_GLOB_SUBST
19477 else $as_nop
19478 case `(set -o) 2>/dev/null` in #(
19479 *posix*) :
19480 set -o posix ;; #(
19481 *) :
19482 ;;
19483 esac
19484 fi
19485
19486
19487
19488 # Reset variables that may have inherited troublesome values from
19489 # the environment.
19490
19491 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19492 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19493 # side effect of setting IFS to empty, thus disabling word splitting.)
19494 # Quoting is to prevent editors from complaining about space-tab.
19495 as_nl='
19496 '
19497 export as_nl
19498 IFS=" "" $as_nl"
19499
19500 PS1='$ '
19501 PS2='> '
19502 PS4='+ '
19503
19504 # Ensure predictable behavior from utilities with locale-dependent output.
19505 LC_ALL=C
19506 export LC_ALL
19507 LANGUAGE=C
19508 export LANGUAGE
19509
19510 # We cannot yet rely on "unset" to work, but we need these variables
19511 # to be unset--not just set to an empty or harmless value--now, to
19512 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19513 # also avoids known problems related to "unset" and subshell syntax
19514 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19515 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19516 do eval test \${$as_var+y} \
19517 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19518 done
19519
19520 # Ensure that fds 0, 1, and 2 are open.
19521 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19522 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19523 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19524
19525 # The user is always right.
19526 if ${PATH_SEPARATOR+false} :; then
19527 PATH_SEPARATOR=:
19528 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19529 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19530 PATH_SEPARATOR=';'
19531 }
19532 fi
19533
19534
19535 # Find who we are. Look in the path if we contain no directory separator.
19536 as_myself=
19537 case $0 in #((
19538 *[\\/]* ) as_myself=$0 ;;
19539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19540 for as_dir in $PATH
19541 do
19542 IFS=$as_save_IFS
19543 case $as_dir in #(((
19544 '') as_dir=./ ;;
19545 */) ;;
19546 *) as_dir=$as_dir/ ;;
19547 esac
19548 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19549 done
19550 IFS=$as_save_IFS
19551
19552 ;;
19553 esac
19554 # We did not find ourselves, most probably we were run as `sh COMMAND'
19555 # in which case we are not to be found in the path.
19556 if test "x$as_myself" = x; then
19557 as_myself=$0
19558 fi
19559 if test ! -f "$as_myself"; then
19560 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19561 exit 1
19562 fi
19563
19564
19565
19566 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19567 # ----------------------------------------
19568 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19569 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19570 # script with STATUS, using 1 if that was 0.
19571 as_fn_error ()
19572 {
19573 as_status=$1; test $as_status -eq 0 && as_status=1
19574 if test "$4"; then
19575 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19577 fi
19578 printf "%s\n" "$as_me: error: $2" >&2
19579 as_fn_exit $as_status
19580 } # as_fn_error
19581
19582
19583
19584 # as_fn_set_status STATUS
19585 # -----------------------
19586 # Set $? to STATUS, without forking.
19587 as_fn_set_status ()
19588 {
19589 return $1
19590 } # as_fn_set_status
19591
19592 # as_fn_exit STATUS
19593 # -----------------
19594 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19595 as_fn_exit ()
19596 {
19597 set +e
19598 as_fn_set_status $1
19599 exit $1
19600 } # as_fn_exit
19601
19602 # as_fn_unset VAR
19603 # ---------------
19604 # Portably unset VAR.
19605 as_fn_unset ()
19606 {
19607 { eval $1=; unset $1;}
19608 }
19609 as_unset=as_fn_unset
19610
19611 # as_fn_append VAR VALUE
19612 # ----------------------
19613 # Append the text in VALUE to the end of the definition contained in VAR. Take
19614 # advantage of any shell optimizations that allow amortized linear growth over
19615 # repeated appends, instead of the typical quadratic growth present in naive
19616 # implementations.
19617 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19618 then :
19619 eval 'as_fn_append ()
19620 {
19621 eval $1+=\$2
19622 }'
19623 else $as_nop
19624 as_fn_append ()
19625 {
19626 eval $1=\$$1\$2
19627 }
19628 fi # as_fn_append
19629
19630 # as_fn_arith ARG...
19631 # ------------------
19632 # Perform arithmetic evaluation on the ARGs, and store the result in the
19633 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19634 # must be portable across $(()) and expr.
19635 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19636 then :
19637 eval 'as_fn_arith ()
19638 {
19639 as_val=$(( $* ))
19640 }'
19641 else $as_nop
19642 as_fn_arith ()
19643 {
19644 as_val=`expr "$@" || test $? -eq 1`
19645 }
19646 fi # as_fn_arith
19647
19648
19649 if expr a : '\(a\)' >/dev/null 2>&1 &&
19650 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19651 as_expr=expr
19652 else
19653 as_expr=false
19654 fi
19655
19656 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19657 as_basename=basename
19658 else
19659 as_basename=false
19660 fi
19661
19662 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19663 as_dirname=dirname
19664 else
19665 as_dirname=false
19666 fi
19667
19668 as_me=`$as_basename -- "$0" ||
19669 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19670 X"$0" : 'X\(//\)$' \| \
19671 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19672 printf "%s\n" X/"$0" |
19673 sed '/^.*\/\([^/][^/]*\)\/*$/{
19674 s//\1/
19675 q
19676 }
19677 /^X\/\(\/\/\)$/{
19678 s//\1/
19679 q
19680 }
19681 /^X\/\(\/\).*/{
19682 s//\1/
19683 q
19684 }
19685 s/.*/./; q'`
19686
19687 # Avoid depending upon Character Ranges.
19688 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19689 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19690 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19691 as_cr_digits='0123456789'
19692 as_cr_alnum=$as_cr_Letters$as_cr_digits
19693
19694
19695 # Determine whether it's possible to make 'echo' print without a newline.
19696 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19697 # for compatibility with existing Makefiles.
19698 ECHO_C= ECHO_N= ECHO_T=
19699 case `echo -n x` in #(((((
19700 -n*)
19701 case `echo 'xy\c'` in
19702 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19703 xy) ECHO_C='\c';;
19704 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19705 ECHO_T=' ';;
19706 esac;;
19707 *)
19708 ECHO_N='-n';;
19709 esac
19710
19711 # For backward compatibility with old third-party macros, we provide
19712 # the shell variables $as_echo and $as_echo_n. New code should use
19713 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19714 as_echo='printf %s\n'
19715 as_echo_n='printf %s'
19716
19717 rm -f conf$$ conf$$.exe conf$$.file
19718 if test -d conf$$.dir; then
19719 rm -f conf$$.dir/conf$$.file
19720 else
19721 rm -f conf$$.dir
19722 mkdir conf$$.dir 2>/dev/null
19723 fi
19724 if (echo >conf$$.file) 2>/dev/null; then
19725 if ln -s conf$$.file conf$$ 2>/dev/null; then
19726 as_ln_s='ln -s'
19727 # ... but there are two gotchas:
19728 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19729 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19730 # In both cases, we have to default to `cp -pR'.
19731 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19732 as_ln_s='cp -pR'
19733 elif ln conf$$.file conf$$ 2>/dev/null; then
19734 as_ln_s=ln
19735 else
19736 as_ln_s='cp -pR'
19737 fi
19738 else
19739 as_ln_s='cp -pR'
19740 fi
19741 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19742 rmdir conf$$.dir 2>/dev/null
19743
19744
19745 # as_fn_mkdir_p
19746 # -------------
19747 # Create "$as_dir" as a directory, including parents if necessary.
19748 as_fn_mkdir_p ()
19749 {
19750
19751 case $as_dir in #(
19752 -*) as_dir=./$as_dir;;
19753 esac
19754 test -d "$as_dir" || eval $as_mkdir_p || {
19755 as_dirs=
19756 while :; do
19757 case $as_dir in #(
19758 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19759 *) as_qdir=$as_dir;;
19760 esac
19761 as_dirs="'$as_qdir' $as_dirs"
19762 as_dir=`$as_dirname -- "$as_dir" ||
19763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19764 X"$as_dir" : 'X\(//\)[^/]' \| \
19765 X"$as_dir" : 'X\(//\)$' \| \
19766 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19767 printf "%s\n" X"$as_dir" |
19768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19769 s//\1/
19770 q
19771 }
19772 /^X\(\/\/\)[^/].*/{
19773 s//\1/
19774 q
19775 }
19776 /^X\(\/\/\)$/{
19777 s//\1/
19778 q
19779 }
19780 /^X\(\/\).*/{
19781 s//\1/
19782 q
19783 }
19784 s/.*/./; q'`
19785 test -d "$as_dir" && break
19786 done
19787 test -z "$as_dirs" || eval "mkdir $as_dirs"
19788 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19789
19790
19791 } # as_fn_mkdir_p
19792 if mkdir -p . 2>/dev/null; then
19793 as_mkdir_p='mkdir -p "$as_dir"'
19794 else
19795 test -d ./-p && rmdir ./-p
19796 as_mkdir_p=false
19797 fi
19798
19799
19800 # as_fn_executable_p FILE
19801 # -----------------------
19802 # Test if FILE is an executable regular file.
19803 as_fn_executable_p ()
19804 {
19805 test -f "$1" && test -x "$1"
19806 } # as_fn_executable_p
19807 as_test_x='test -x'
19808 as_executable_p=as_fn_executable_p
19809
19810 # Sed expression to map a string onto a valid CPP name.
19811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19812
19813 # Sed expression to map a string onto a valid variable name.
19814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19815
19816
19817 exec 6>&1
19818 ## ----------------------------------- ##
19819 ## Main body of $CONFIG_STATUS script. ##
19820 ## ----------------------------------- ##
19821 _ASEOF
19822 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19823
19824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19825 # Save the log message, to keep $0 and so on meaningful, and to
19826 # report actual input values of CONFIG_FILES etc. instead of their
19827 # values after options handling.
19828 ac_log="
19829 This file was extended by libXfixes $as_me 6.0.1, which was
19830 generated by GNU Autoconf 2.71. Invocation command line was
19831
19832 CONFIG_FILES = $CONFIG_FILES
19833 CONFIG_HEADERS = $CONFIG_HEADERS
19834 CONFIG_LINKS = $CONFIG_LINKS
19835 CONFIG_COMMANDS = $CONFIG_COMMANDS
19836 $ $0 $@
19837
19838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19839 "
19840
19841 _ACEOF
19842
19843 case $ac_config_files in *"
19844 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19845 esac
19846
19847 case $ac_config_headers in *"
19848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19849 esac
19850
19851
19852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19853 # Files that config.status was made for.
19854 config_files="$ac_config_files"
19855 config_headers="$ac_config_headers"
19856 config_commands="$ac_config_commands"
19857
19858 _ACEOF
19859
19860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19861 ac_cs_usage="\
19862 \`$as_me' instantiates files and other configuration actions
19863 from templates according to the current configuration. Unless the files
19864 and actions are specified as TAGs, all are instantiated by default.
19865
19866 Usage: $0 [OPTION]... [TAG]...
19867
19868 -h, --help print this help, then exit
19869 -V, --version print version number and configuration settings, then exit
19870 --config print configuration, then exit
19871 -q, --quiet, --silent
19872 do not print progress messages
19873 -d, --debug don't remove temporary files
19874 --recheck update $as_me by reconfiguring in the same conditions
19875 --file=FILE[:TEMPLATE]
19876 instantiate the configuration file FILE
19877 --header=FILE[:TEMPLATE]
19878 instantiate the configuration header FILE
19879
19880 Configuration files:
19881 $config_files
19882
19883 Configuration headers:
19884 $config_headers
19885
19886 Configuration commands:
19887 $config_commands
19888
19889 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues>."
19890
19891 _ACEOF
19892 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19893 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895 ac_cs_config='$ac_cs_config_escaped'
19896 ac_cs_version="\\
19897 libXfixes config.status 6.0.1
19898 configured by $0, generated by GNU Autoconf 2.71,
19899 with options \\"\$ac_cs_config\\"
19900
19901 Copyright (C) 2021 Free Software Foundation, Inc.
19902 This config.status script is free software; the Free Software Foundation
19903 gives unlimited permission to copy, distribute and modify it."
19904
19905 ac_pwd='$ac_pwd'
19906 srcdir='$srcdir'
19907 INSTALL='$INSTALL'
19908 MKDIR_P='$MKDIR_P'
19909 AWK='$AWK'
19910 test -n "\$AWK" || AWK=awk
19911 _ACEOF
19912
19913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19914 # The default lists apply if the user does not specify any file.
19915 ac_need_defaults=:
19916 while test $# != 0
19917 do
19918 case $1 in
19919 --*=?*)
19920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19921 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19922 ac_shift=:
19923 ;;
19924 --*=)
19925 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19926 ac_optarg=
19927 ac_shift=:
19928 ;;
19929 *)
19930 ac_option=$1
19931 ac_optarg=$2
19932 ac_shift=shift
19933 ;;
19934 esac
19935
19936 case $ac_option in
19937 # Handling of the options.
19938 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19939 ac_cs_recheck=: ;;
19940 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19941 printf "%s\n" "$ac_cs_version"; exit ;;
19942 --config | --confi | --conf | --con | --co | --c )
19943 printf "%s\n" "$ac_cs_config"; exit ;;
19944 --debug | --debu | --deb | --de | --d | -d )
19945 debug=: ;;
19946 --file | --fil | --fi | --f )
19947 $ac_shift
19948 case $ac_optarg in
19949 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19950 '') as_fn_error $? "missing file argument" ;;
19951 esac
19952 as_fn_append CONFIG_FILES " '$ac_optarg'"
19953 ac_need_defaults=false;;
19954 --header | --heade | --head | --hea )
19955 $ac_shift
19956 case $ac_optarg in
19957 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19958 esac
19959 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19960 ac_need_defaults=false;;
19961 --he | --h)
19962 # Conflict between --help and --header
19963 as_fn_error $? "ambiguous option: \`$1'
19964 Try \`$0 --help' for more information.";;
19965 --help | --hel | -h )
19966 printf "%s\n" "$ac_cs_usage"; exit ;;
19967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19968 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19969 ac_cs_silent=: ;;
19970
19971 # This is an error.
19972 -*) as_fn_error $? "unrecognized option: \`$1'
19973 Try \`$0 --help' for more information." ;;
19974
19975 *) as_fn_append ac_config_targets " $1"
19976 ac_need_defaults=false ;;
19977
19978 esac
19979 shift
19980 done
19981
19982 ac_configure_extra_args=
19983
19984 if $ac_cs_silent; then
19985 exec 6>/dev/null
19986 ac_configure_extra_args="$ac_configure_extra_args --silent"
19987 fi
19988
19989 _ACEOF
19990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19991 if \$ac_cs_recheck; then
19992 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19993 shift
19994 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19995 CONFIG_SHELL='$SHELL'
19996 export CONFIG_SHELL
19997 exec "\$@"
19998 fi
19999
20000 _ACEOF
20001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20002 exec 5>>config.log
20003 {
20004 echo
20005 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20006 ## Running $as_me. ##
20007 _ASBOX
20008 printf "%s\n" "$ac_log"
20009 } >&5
20010
20011 _ACEOF
20012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20013 #
20014 # INIT-COMMANDS
20015 #
20016 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20017
20018
20019 # The HP-UX ksh and POSIX shell print the target directory to stdout
20020 # if CDPATH is set.
20021 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20022
20023 sed_quote_subst='$sed_quote_subst'
20024 double_quote_subst='$double_quote_subst'
20025 delay_variable_subst='$delay_variable_subst'
20026 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20027 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20028 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20029 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20030 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20031 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20032 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20033 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20034 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20035 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20036 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20037 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20038 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20039 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20040 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20041 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20042 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20043 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20044 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20045 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20046 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20047 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20048 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20049 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20050 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20051 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20052 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20053 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20054 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20055 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20056 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20057 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20058 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20059 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20060 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20061 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20062 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20063 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20064 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20065 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20066 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20067 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20068 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20069 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20070 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20071 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20072 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20073 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20074 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20075 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20076 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20077 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20078 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20079 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20080 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20081 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20082 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20083 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20084 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20085 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20086 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"`'
20087 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20088 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20089 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20090 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20091 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20092 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20093 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20094 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20095 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20096 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20097 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20098 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20099 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20100 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20101 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20102 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20103 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20104 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20105 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20106 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20107 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20108 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20109 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20110 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20111 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20112 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20113 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20114 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20115 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20116 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20117 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20118 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20119 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20120 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20121 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20122 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20123 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20124 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20125 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20126 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20127 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20128 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20129 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20130 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20131 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20132 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20133 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20134 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20135 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20136 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20137 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20138 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20139 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20140 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20141 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20142 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20143 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20144 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20145 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20146 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20147 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20148 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20149 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20150 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20151 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20152 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20153 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20154 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20155 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20156 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20157 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20158 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20159 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20160 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20161 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20162 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20163
20164 LTCC='$LTCC'
20165 LTCFLAGS='$LTCFLAGS'
20166 compiler='$compiler_DEFAULT'
20167
20168 # A function that is used when there is no print builtin or printf.
20169 func_fallback_echo ()
20170 {
20171 eval 'cat <<_LTECHO_EOF
20172 \$1
20173 _LTECHO_EOF'
20174 }
20175
20176 # Quote evaled strings.
20177 for var in SHELL \
20178 ECHO \
20179 PATH_SEPARATOR \
20180 SED \
20181 GREP \
20182 EGREP \
20183 FGREP \
20184 LD \
20185 NM \
20186 LN_S \
20187 lt_SP2NL \
20188 lt_NL2SP \
20189 reload_flag \
20190 FILECMD \
20191 OBJDUMP \
20192 deplibs_check_method \
20193 file_magic_cmd \
20194 file_magic_glob \
20195 want_nocaseglob \
20196 DLLTOOL \
20197 sharedlib_from_linklib_cmd \
20198 AR \
20199 archiver_list_spec \
20200 STRIP \
20201 RANLIB \
20202 CC \
20203 CFLAGS \
20204 compiler \
20205 lt_cv_sys_global_symbol_pipe \
20206 lt_cv_sys_global_symbol_to_cdecl \
20207 lt_cv_sys_global_symbol_to_import \
20208 lt_cv_sys_global_symbol_to_c_name_address \
20209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20210 lt_cv_nm_interface \
20211 nm_file_list_spec \
20212 lt_cv_truncate_bin \
20213 lt_prog_compiler_no_builtin_flag \
20214 lt_prog_compiler_pic \
20215 lt_prog_compiler_wl \
20216 lt_prog_compiler_static \
20217 lt_cv_prog_compiler_c_o \
20218 need_locks \
20219 MANIFEST_TOOL \
20220 DSYMUTIL \
20221 NMEDIT \
20222 LIPO \
20223 OTOOL \
20224 OTOOL64 \
20225 shrext_cmds \
20226 export_dynamic_flag_spec \
20227 whole_archive_flag_spec \
20228 compiler_needs_object \
20229 with_gnu_ld \
20230 allow_undefined_flag \
20231 no_undefined_flag \
20232 hardcode_libdir_flag_spec \
20233 hardcode_libdir_separator \
20234 exclude_expsyms \
20235 include_expsyms \
20236 file_list_spec \
20237 variables_saved_for_relink \
20238 libname_spec \
20239 library_names_spec \
20240 soname_spec \
20241 install_override_mode \
20242 finish_eval \
20243 old_striplib \
20244 striplib; do
20245 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20246 *[\\\\\\\`\\"\\\$]*)
20247 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20248 ;;
20249 *)
20250 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20251 ;;
20252 esac
20253 done
20254
20255 # Double-quote double-evaled strings.
20256 for var in reload_cmds \
20257 old_postinstall_cmds \
20258 old_postuninstall_cmds \
20259 old_archive_cmds \
20260 extract_expsyms_cmds \
20261 old_archive_from_new_cmds \
20262 old_archive_from_expsyms_cmds \
20263 archive_cmds \
20264 archive_expsym_cmds \
20265 module_cmds \
20266 module_expsym_cmds \
20267 export_symbols_cmds \
20268 prelink_cmds \
20269 postlink_cmds \
20270 postinstall_cmds \
20271 postuninstall_cmds \
20272 finish_cmds \
20273 sys_lib_search_path_spec \
20274 configure_time_dlsearch_path \
20275 configure_time_lt_sys_library_path; do
20276 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20277 *[\\\\\\\`\\"\\\$]*)
20278 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20279 ;;
20280 *)
20281 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20282 ;;
20283 esac
20284 done
20285
20286 ac_aux_dir='$ac_aux_dir'
20287
20288 # See if we are running on zsh, and set the options that allow our
20289 # commands through without removal of \ escapes INIT.
20290 if test -n "\${ZSH_VERSION+set}"; then
20291 setopt NO_GLOB_SUBST
20292 fi
20293
20294
20295 PACKAGE='$PACKAGE'
20296 VERSION='$VERSION'
20297 RM='$RM'
20298 ofile='$ofile'
20299
20300
20301
20302
20303 _ACEOF
20304
20305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20306
20307 # Handling of arguments.
20308 for ac_config_target in $ac_config_targets
20309 do
20310 case $ac_config_target in
20311 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20312 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20313 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20314 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20315 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20316 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20317 "xfixes.pc") CONFIG_FILES="$CONFIG_FILES xfixes.pc" ;;
20318
20319 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20320 esac
20321 done
20322
20323
20324 # If the user did not use the arguments to specify the items to instantiate,
20325 # then the envvar interface is used. Set only those that are not.
20326 # We use the long form for the default assignment because of an extremely
20327 # bizarre bug on SunOS 4.1.3.
20328 if $ac_need_defaults; then
20329 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20330 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20331 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20332 fi
20333
20334 # Have a temporary directory for convenience. Make it in the build tree
20335 # simply because there is no reason against having it here, and in addition,
20336 # creating and moving files from /tmp can sometimes cause problems.
20337 # Hook for its removal unless debugging.
20338 # Note that there is a small window in which the directory will not be cleaned:
20339 # after its creation but before its name has been assigned to `$tmp'.
20340 $debug ||
20341 {
20342 tmp= ac_tmp=
20343 trap 'exit_status=$?
20344 : "${ac_tmp:=$tmp}"
20345 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20346 ' 0
20347 trap 'as_fn_exit 1' 1 2 13 15
20348 }
20349 # Create a (secure) tmp directory for tmp files.
20350
20351 {
20352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20353 test -d "$tmp"
20354 } ||
20355 {
20356 tmp=./conf$$-$RANDOM
20357 (umask 077 && mkdir "$tmp")
20358 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20359 ac_tmp=$tmp
20360
20361 # Set up the scripts for CONFIG_FILES section.
20362 # No need to generate them if there are no CONFIG_FILES.
20363 # This happens for instance with `./config.status config.h'.
20364 if test -n "$CONFIG_FILES"; then
20365
20366
20367 ac_cr=`echo X | tr X '\015'`
20368 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20369 # But we know of no other shell where ac_cr would be empty at this
20370 # point, so we can use a bashism as a fallback.
20371 if test "x$ac_cr" = x; then
20372 eval ac_cr=\$\'\\r\'
20373 fi
20374 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20375 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20376 ac_cs_awk_cr='\\r'
20377 else
20378 ac_cs_awk_cr=$ac_cr
20379 fi
20380
20381 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20382 _ACEOF
20383
20384
20385 {
20386 echo "cat >conf$$subs.awk <<_ACEOF" &&
20387 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20388 echo "_ACEOF"
20389 } >conf$$subs.sh ||
20390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20391 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20392 ac_delim='%!_!# '
20393 for ac_last_try in false false false false false :; do
20394 . ./conf$$subs.sh ||
20395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20396
20397 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20398 if test $ac_delim_n = $ac_delim_num; then
20399 break
20400 elif $ac_last_try; then
20401 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20402 else
20403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20404 fi
20405 done
20406 rm -f conf$$subs.sh
20407
20408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20410 _ACEOF
20411 sed -n '
20412 h
20413 s/^/S["/; s/!.*/"]=/
20414 p
20415 g
20416 s/^[^!]*!//
20417 :repl
20418 t repl
20419 s/'"$ac_delim"'$//
20420 t delim
20421 :nl
20422 h
20423 s/\(.\{148\}\)..*/\1/
20424 t more1
20425 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20426 p
20427 n
20428 b repl
20429 :more1
20430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20431 p
20432 g
20433 s/.\{148\}//
20434 t nl
20435 :delim
20436 h
20437 s/\(.\{148\}\)..*/\1/
20438 t more2
20439 s/["\\]/\\&/g; s/^/"/; s/$/"/
20440 p
20441 b
20442 :more2
20443 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20444 p
20445 g
20446 s/.\{148\}//
20447 t delim
20448 ' <conf$$subs.awk | sed '
20449 /^[^""]/{
20450 N
20451 s/\n//
20452 }
20453 ' >>$CONFIG_STATUS || ac_write_fail=1
20454 rm -f conf$$subs.awk
20455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20456 _ACAWK
20457 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20458 for (key in S) S_is_set[key] = 1
20459 FS = ""
20460
20461 }
20462 {
20463 line = $ 0
20464 nfields = split(line, field, "@")
20465 substed = 0
20466 len = length(field[1])
20467 for (i = 2; i < nfields; i++) {
20468 key = field[i]
20469 keylen = length(key)
20470 if (S_is_set[key]) {
20471 value = S[key]
20472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20473 len += length(value) + length(field[++i])
20474 substed = 1
20475 } else
20476 len += 1 + keylen
20477 }
20478
20479 print line
20480 }
20481
20482 _ACAWK
20483 _ACEOF
20484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20485 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20486 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20487 else
20488 cat
20489 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20490 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20491 _ACEOF
20492
20493 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20494 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20495 # trailing colons and then remove the whole line if VPATH becomes empty
20496 # (actually we leave an empty line to preserve line numbers).
20497 if test "x$srcdir" = x.; then
20498 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20499 h
20500 s///
20501 s/^/:/
20502 s/[ ]*$/:/
20503 s/:\$(srcdir):/:/g
20504 s/:\${srcdir}:/:/g
20505 s/:@srcdir@:/:/g
20506 s/^:*//
20507 s/:*$//
20508 x
20509 s/\(=[ ]*\).*/\1/
20510 G
20511 s/\n//
20512 s/^[^=]*=[ ]*$//
20513 }'
20514 fi
20515
20516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20517 fi # test -n "$CONFIG_FILES"
20518
20519 # Set up the scripts for CONFIG_HEADERS section.
20520 # No need to generate them if there are no CONFIG_HEADERS.
20521 # This happens for instance with `./config.status Makefile'.
20522 if test -n "$CONFIG_HEADERS"; then
20523 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20524 BEGIN {
20525 _ACEOF
20526
20527 # Transform confdefs.h into an awk script `defines.awk', embedded as
20528 # here-document in config.status, that substitutes the proper values into
20529 # config.h.in to produce config.h.
20530
20531 # Create a delimiter string that does not exist in confdefs.h, to ease
20532 # handling of long lines.
20533 ac_delim='%!_!# '
20534 for ac_last_try in false false :; do
20535 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20536 if test -z "$ac_tt"; then
20537 break
20538 elif $ac_last_try; then
20539 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20540 else
20541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20542 fi
20543 done
20544
20545 # For the awk script, D is an array of macro values keyed by name,
20546 # likewise P contains macro parameters if any. Preserve backslash
20547 # newline sequences.
20548
20549 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20550 sed -n '
20551 s/.\{148\}/&'"$ac_delim"'/g
20552 t rset
20553 :rset
20554 s/^[ ]*#[ ]*define[ ][ ]*/ /
20555 t def
20556 d
20557 :def
20558 s/\\$//
20559 t bsnl
20560 s/["\\]/\\&/g
20561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20562 D["\1"]=" \3"/p
20563 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20564 d
20565 :bsnl
20566 s/["\\]/\\&/g
20567 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20568 D["\1"]=" \3\\\\\\n"\\/p
20569 t cont
20570 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20571 t cont
20572 d
20573 :cont
20574 n
20575 s/.\{148\}/&'"$ac_delim"'/g
20576 t clear
20577 :clear
20578 s/\\$//
20579 t bsnlc
20580 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20581 d
20582 :bsnlc
20583 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20584 b cont
20585 ' <confdefs.h | sed '
20586 s/'"$ac_delim"'/"\\\
20587 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20588
20589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20590 for (key in D) D_is_set[key] = 1
20591 FS = ""
20592 }
20593 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20594 line = \$ 0
20595 split(line, arg, " ")
20596 if (arg[1] == "#") {
20597 defundef = arg[2]
20598 mac1 = arg[3]
20599 } else {
20600 defundef = substr(arg[1], 2)
20601 mac1 = arg[2]
20602 }
20603 split(mac1, mac2, "(") #)
20604 macro = mac2[1]
20605 prefix = substr(line, 1, index(line, defundef) - 1)
20606 if (D_is_set[macro]) {
20607 # Preserve the white space surrounding the "#".
20608 print prefix "define", macro P[macro] D[macro]
20609 next
20610 } else {
20611 # Replace #undef with comments. This is necessary, for example,
20612 # in the case of _POSIX_SOURCE, which is predefined and required
20613 # on some systems where configure will not decide to define it.
20614 if (defundef == "undef") {
20615 print "/*", prefix defundef, macro, "*/"
20616 next
20617 }
20618 }
20619 }
20620 { print }
20621 _ACAWK
20622 _ACEOF
20623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20624 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20625 fi # test -n "$CONFIG_HEADERS"
20626
20627
20628 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20629 shift
20630 for ac_tag
20631 do
20632 case $ac_tag in
20633 :[FHLC]) ac_mode=$ac_tag; continue;;
20634 esac
20635 case $ac_mode$ac_tag in
20636 :[FHL]*:*);;
20637 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20638 :[FH]-) ac_tag=-:-;;
20639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20640 esac
20641 ac_save_IFS=$IFS
20642 IFS=:
20643 set x $ac_tag
20644 IFS=$ac_save_IFS
20645 shift
20646 ac_file=$1
20647 shift
20648
20649 case $ac_mode in
20650 :L) ac_source=$1;;
20651 :[FH])
20652 ac_file_inputs=
20653 for ac_f
20654 do
20655 case $ac_f in
20656 -) ac_f="$ac_tmp/stdin";;
20657 *) # Look for the file first in the build tree, then in the source tree
20658 # (if the path is not absolute). The absolute path cannot be DOS-style,
20659 # because $ac_f cannot contain `:'.
20660 test -f "$ac_f" ||
20661 case $ac_f in
20662 [\\/$]*) false;;
20663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20664 esac ||
20665 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20666 esac
20667 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20668 as_fn_append ac_file_inputs " '$ac_f'"
20669 done
20670
20671 # Let's still pretend it is `configure' which instantiates (i.e., don't
20672 # use $as_me), people would be surprised to read:
20673 # /* config.h. Generated by config.status. */
20674 configure_input='Generated from '`
20675 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20676 `' by configure.'
20677 if test x"$ac_file" != x-; then
20678 configure_input="$ac_file. $configure_input"
20679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20680 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20681 fi
20682 # Neutralize special characters interpreted by sed in replacement strings.
20683 case $configure_input in #(
20684 *\&* | *\|* | *\\* )
20685 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20687 *) ac_sed_conf_input=$configure_input;;
20688 esac
20689
20690 case $ac_tag in
20691 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20693 esac
20694 ;;
20695 esac
20696
20697 ac_dir=`$as_dirname -- "$ac_file" ||
20698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20699 X"$ac_file" : 'X\(//\)[^/]' \| \
20700 X"$ac_file" : 'X\(//\)$' \| \
20701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20702 printf "%s\n" X"$ac_file" |
20703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20704 s//\1/
20705 q
20706 }
20707 /^X\(\/\/\)[^/].*/{
20708 s//\1/
20709 q
20710 }
20711 /^X\(\/\/\)$/{
20712 s//\1/
20713 q
20714 }
20715 /^X\(\/\).*/{
20716 s//\1/
20717 q
20718 }
20719 s/.*/./; q'`
20720 as_dir="$ac_dir"; as_fn_mkdir_p
20721 ac_builddir=.
20722
20723 case "$ac_dir" in
20724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20725 *)
20726 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20727 # A ".." for each directory in $ac_dir_suffix.
20728 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20729 case $ac_top_builddir_sub in
20730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20732 esac ;;
20733 esac
20734 ac_abs_top_builddir=$ac_pwd
20735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20736 # for backward compatibility:
20737 ac_top_builddir=$ac_top_build_prefix
20738
20739 case $srcdir in
20740 .) # We are building in place.
20741 ac_srcdir=.
20742 ac_top_srcdir=$ac_top_builddir_sub
20743 ac_abs_top_srcdir=$ac_pwd ;;
20744 [\\/]* | ?:[\\/]* ) # Absolute name.
20745 ac_srcdir=$srcdir$ac_dir_suffix;
20746 ac_top_srcdir=$srcdir
20747 ac_abs_top_srcdir=$srcdir ;;
20748 *) # Relative name.
20749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20750 ac_top_srcdir=$ac_top_build_prefix$srcdir
20751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20752 esac
20753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20754
20755
20756 case $ac_mode in
20757 :F)
20758 #
20759 # CONFIG_FILE
20760 #
20761
20762 case $INSTALL in
20763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20764 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20765 esac
20766 ac_MKDIR_P=$MKDIR_P
20767 case $MKDIR_P in
20768 [\\/$]* | ?:[\\/]* ) ;;
20769 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20770 esac
20771 _ACEOF
20772
20773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20774 # If the template does not know about datarootdir, expand it.
20775 # FIXME: This hack should be removed a few years after 2.60.
20776 ac_datarootdir_hack=; ac_datarootdir_seen=
20777 ac_sed_dataroot='
20778 /datarootdir/ {
20779 p
20780 q
20781 }
20782 /@datadir@/p
20783 /@docdir@/p
20784 /@infodir@/p
20785 /@localedir@/p
20786 /@mandir@/p'
20787 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20788 *datarootdir*) ac_datarootdir_seen=yes;;
20789 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20791 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20792 _ACEOF
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794 ac_datarootdir_hack='
20795 s&@datadir@&$datadir&g
20796 s&@docdir@&$docdir&g
20797 s&@infodir@&$infodir&g
20798 s&@localedir@&$localedir&g
20799 s&@mandir@&$mandir&g
20800 s&\\\${datarootdir}&$datarootdir&g' ;;
20801 esac
20802 _ACEOF
20803
20804 # Neutralize VPATH when `$srcdir' = `.'.
20805 # Shell code in configure.ac might set extrasub.
20806 # FIXME: do we really want to maintain this feature?
20807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20808 ac_sed_extra="$ac_vpsub
20809 $extrasub
20810 _ACEOF
20811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20812 :t
20813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20814 s|@configure_input@|$ac_sed_conf_input|;t t
20815 s&@top_builddir@&$ac_top_builddir_sub&;t t
20816 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20817 s&@srcdir@&$ac_srcdir&;t t
20818 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20819 s&@top_srcdir@&$ac_top_srcdir&;t t
20820 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20821 s&@builddir@&$ac_builddir&;t t
20822 s&@abs_builddir@&$ac_abs_builddir&;t t
20823 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20824 s&@INSTALL@&$ac_INSTALL&;t t
20825 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20826 $ac_datarootdir_hack
20827 "
20828 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20829 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20830
20831 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20832 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20833 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20834 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20836 which seems to be undefined. Please make sure it is defined" >&5
20837 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20838 which seems to be undefined. Please make sure it is defined" >&2;}
20839
20840 rm -f "$ac_tmp/stdin"
20841 case $ac_file in
20842 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20843 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20844 esac \
20845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20846 ;;
20847 :H)
20848 #
20849 # CONFIG_HEADER
20850 #
20851 if test x"$ac_file" != x-; then
20852 {
20853 printf "%s\n" "/* $configure_input */" >&1 \
20854 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20855 } >"$ac_tmp/config.h" \
20856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20857 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20859 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20860 else
20861 rm -f "$ac_file"
20862 mv "$ac_tmp/config.h" "$ac_file" \
20863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20864 fi
20865 else
20866 printf "%s\n" "/* $configure_input */" >&1 \
20867 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20868 || as_fn_error $? "could not create -" "$LINENO" 5
20869 fi
20870 # Compute "$ac_file"'s index in $config_headers.
20871 _am_arg="$ac_file"
20872 _am_stamp_count=1
20873 for _am_header in $config_headers :; do
20874 case $_am_header in
20875 $_am_arg | $_am_arg:* )
20876 break ;;
20877 * )
20878 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20879 esac
20880 done
20881 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20882 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20883 X"$_am_arg" : 'X\(//\)[^/]' \| \
20884 X"$_am_arg" : 'X\(//\)$' \| \
20885 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20886 printf "%s\n" X"$_am_arg" |
20887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20888 s//\1/
20889 q
20890 }
20891 /^X\(\/\/\)[^/].*/{
20892 s//\1/
20893 q
20894 }
20895 /^X\(\/\/\)$/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\).*/{
20900 s//\1/
20901 q
20902 }
20903 s/.*/./; q'`/stamp-h$_am_stamp_count
20904 ;;
20905
20906 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20907 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20908 ;;
20909 esac
20910
20911
20912 case $ac_file$ac_mode in
20913 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20914 # Older Autoconf quotes --file arguments for eval, but not when files
20915 # are listed without --file. Let's play safe and only enable the eval
20916 # if we detect the quoting.
20917 # TODO: see whether this extra hack can be removed once we start
20918 # requiring Autoconf 2.70 or later.
20919 case $CONFIG_FILES in #(
20920 *\'*) :
20921 eval set x "$CONFIG_FILES" ;; #(
20922 *) :
20923 set x $CONFIG_FILES ;; #(
20924 *) :
20925 ;;
20926 esac
20927 shift
20928 # Used to flag and report bootstrapping failures.
20929 am_rc=0
20930 for am_mf
20931 do
20932 # Strip MF so we end up with the name of the file.
20933 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20934 # Check whether this is an Automake generated Makefile which includes
20935 # dependency-tracking related rules and includes.
20936 # Grep'ing the whole file directly is not great: AIX grep has a line
20937 # limit of 2048, but all sed's we know have understand at least 4000.
20938 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20939 || continue
20940 am_dirpart=`$as_dirname -- "$am_mf" ||
20941 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20942 X"$am_mf" : 'X\(//\)[^/]' \| \
20943 X"$am_mf" : 'X\(//\)$' \| \
20944 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20945 printf "%s\n" X"$am_mf" |
20946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20947 s//\1/
20948 q
20949 }
20950 /^X\(\/\/\)[^/].*/{
20951 s//\1/
20952 q
20953 }
20954 /^X\(\/\/\)$/{
20955 s//\1/
20956 q
20957 }
20958 /^X\(\/\).*/{
20959 s//\1/
20960 q
20961 }
20962 s/.*/./; q'`
20963 am_filepart=`$as_basename -- "$am_mf" ||
20964 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20965 X"$am_mf" : 'X\(//\)$' \| \
20966 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20967 printf "%s\n" X/"$am_mf" |
20968 sed '/^.*\/\([^/][^/]*\)\/*$/{
20969 s//\1/
20970 q
20971 }
20972 /^X\/\(\/\/\)$/{
20973 s//\1/
20974 q
20975 }
20976 /^X\/\(\/\).*/{
20977 s//\1/
20978 q
20979 }
20980 s/.*/./; q'`
20981 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20982 && sed -e '/# am--include-marker/d' "$am_filepart" \
20983 | $MAKE -f - am--depfiles" >&5
20984 (cd "$am_dirpart" \
20985 && sed -e '/# am--include-marker/d' "$am_filepart" \
20986 | $MAKE -f - am--depfiles) >&5 2>&5
20987 ac_status=$?
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } || am_rc=$?
20990 done
20991 if test $am_rc -ne 0; then
20992 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20993 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20994 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20995 for automatic dependency tracking. If GNU make was not used, consider
20996 re-running the configure script with MAKE=\"gmake\" (or whatever is
20997 necessary). You can also try re-running configure with the
20998 '--disable-dependency-tracking' option to at least be able to build
20999 the package (albeit without support for automatic dependency tracking).
21000 See \`config.log' for more details" "$LINENO" 5; }
21001 fi
21002 { am_dirpart=; unset am_dirpart;}
21003 { am_filepart=; unset am_filepart;}
21004 { am_mf=; unset am_mf;}
21005 { am_rc=; unset am_rc;}
21006 rm -f conftest-deps.mk
21007 }
21008 ;;
21009 "libtool":C)
21010
21011 # See if we are running on zsh, and set the options that allow our
21012 # commands through without removal of \ escapes.
21013 if test -n "${ZSH_VERSION+set}"; then
21014 setopt NO_GLOB_SUBST
21015 fi
21016
21017 cfgfile=${ofile}T
21018 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21019 $RM "$cfgfile"
21020
21021 cat <<_LT_EOF >> "$cfgfile"
21022 #! $SHELL
21023 # Generated automatically by $as_me ($PACKAGE) $VERSION
21024 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21025 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21026
21027 # Provide generalized library-building support services.
21028 # Written by Gordon Matzigkeit, 1996
21029
21030 # Copyright (C) 2014 Free Software Foundation, Inc.
21031 # This is free software; see the source for copying conditions. There is NO
21032 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21033
21034 # GNU Libtool is free software; you can redistribute it and/or modify
21035 # it under the terms of the GNU General Public License as published by
21036 # the Free Software Foundation; either version 2 of of the License, or
21037 # (at your option) any later version.
21038 #
21039 # As a special exception to the GNU General Public License, if you
21040 # distribute this file as part of a program or library that is built
21041 # using GNU Libtool, you may include this file under the same
21042 # distribution terms that you use for the rest of that program.
21043 #
21044 # GNU Libtool is distributed in the hope that it will be useful, but
21045 # WITHOUT ANY WARRANTY; without even the implied warranty of
21046 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21047 # GNU General Public License for more details.
21048 #
21049 # You should have received a copy of the GNU General Public License
21050 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21051
21052
21053 # The names of the tagged configurations supported by this script.
21054 available_tags=''
21055
21056 # Configured defaults for sys_lib_dlsearch_path munging.
21057 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21058
21059 # ### BEGIN LIBTOOL CONFIG
21060
21061 # Which release of libtool.m4 was used?
21062 macro_version=$macro_version
21063 macro_revision=$macro_revision
21064
21065 # Whether or not to build shared libraries.
21066 build_libtool_libs=$enable_shared
21067
21068 # Whether or not to build static libraries.
21069 build_old_libs=$enable_static
21070
21071 # What type of objects to build.
21072 pic_mode=$pic_mode
21073
21074 # Whether or not to optimize for fast installation.
21075 fast_install=$enable_fast_install
21076
21077 # Shared archive member basename,for filename based shared library versioning on AIX.
21078 shared_archive_member_spec=$shared_archive_member_spec
21079
21080 # Shell to use when invoking shell scripts.
21081 SHELL=$lt_SHELL
21082
21083 # An echo program that protects backslashes.
21084 ECHO=$lt_ECHO
21085
21086 # The PATH separator for the build system.
21087 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21088
21089 # The host system.
21090 host_alias=$host_alias
21091 host=$host
21092 host_os=$host_os
21093
21094 # The build system.
21095 build_alias=$build_alias
21096 build=$build
21097 build_os=$build_os
21098
21099 # A sed program that does not truncate output.
21100 SED=$lt_SED
21101
21102 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21103 Xsed="\$SED -e 1s/^X//"
21104
21105 # A grep program that handles long lines.
21106 GREP=$lt_GREP
21107
21108 # An ERE matcher.
21109 EGREP=$lt_EGREP
21110
21111 # A literal string matcher.
21112 FGREP=$lt_FGREP
21113
21114 # A BSD- or MS-compatible name lister.
21115 NM=$lt_NM
21116
21117 # Whether we need soft or hard links.
21118 LN_S=$lt_LN_S
21119
21120 # What is the maximum length of a command?
21121 max_cmd_len=$max_cmd_len
21122
21123 # Object file suffix (normally "o").
21124 objext=$ac_objext
21125
21126 # Executable file suffix (normally "").
21127 exeext=$exeext
21128
21129 # whether the shell understands "unset".
21130 lt_unset=$lt_unset
21131
21132 # turn spaces into newlines.
21133 SP2NL=$lt_lt_SP2NL
21134
21135 # turn newlines into spaces.
21136 NL2SP=$lt_lt_NL2SP
21137
21138 # convert \$build file names to \$host format.
21139 to_host_file_cmd=$lt_cv_to_host_file_cmd
21140
21141 # convert \$build files to toolchain format.
21142 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21143
21144 # A file(cmd) program that detects file types.
21145 FILECMD=$lt_FILECMD
21146
21147 # An object symbol dumper.
21148 OBJDUMP=$lt_OBJDUMP
21149
21150 # Method to check whether dependent libraries are shared objects.
21151 deplibs_check_method=$lt_deplibs_check_method
21152
21153 # Command to use when deplibs_check_method = "file_magic".
21154 file_magic_cmd=$lt_file_magic_cmd
21155
21156 # How to find potential files when deplibs_check_method = "file_magic".
21157 file_magic_glob=$lt_file_magic_glob
21158
21159 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21160 want_nocaseglob=$lt_want_nocaseglob
21161
21162 # DLL creation program.
21163 DLLTOOL=$lt_DLLTOOL
21164
21165 # Command to associate shared and link libraries.
21166 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21167
21168 # The archiver.
21169 AR=$lt_AR
21170
21171 # Flags to create an archive (by configure).
21172 lt_ar_flags=$lt_ar_flags
21173
21174 # Flags to create an archive.
21175 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21176
21177 # How to feed a file listing to the archiver.
21178 archiver_list_spec=$lt_archiver_list_spec
21179
21180 # A symbol stripping program.
21181 STRIP=$lt_STRIP
21182
21183 # Commands used to install an old-style archive.
21184 RANLIB=$lt_RANLIB
21185 old_postinstall_cmds=$lt_old_postinstall_cmds
21186 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21187
21188 # Whether to use a lock for old archive extraction.
21189 lock_old_archive_extraction=$lock_old_archive_extraction
21190
21191 # A C compiler.
21192 LTCC=$lt_CC
21193
21194 # LTCC compiler flags.
21195 LTCFLAGS=$lt_CFLAGS
21196
21197 # Take the output of nm and produce a listing of raw symbols and C names.
21198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21199
21200 # Transform the output of nm in a proper C declaration.
21201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21202
21203 # Transform the output of nm into a list of symbols to manually relocate.
21204 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21205
21206 # Transform the output of nm in a C name address pair.
21207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21208
21209 # Transform the output of nm in a C name address pair when lib prefix is needed.
21210 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21211
21212 # The name lister interface.
21213 nm_interface=$lt_lt_cv_nm_interface
21214
21215 # Specify filename containing input files for \$NM.
21216 nm_file_list_spec=$lt_nm_file_list_spec
21217
21218 # The root where to search for dependent libraries,and where our libraries should be installed.
21219 lt_sysroot=$lt_sysroot
21220
21221 # Command to truncate a binary pipe.
21222 lt_truncate_bin=$lt_lt_cv_truncate_bin
21223
21224 # The name of the directory that contains temporary libtool files.
21225 objdir=$objdir
21226
21227 # Used to examine libraries when file_magic_cmd begins with "file".
21228 MAGIC_CMD=$MAGIC_CMD
21229
21230 # Must we lock files when doing compilation?
21231 need_locks=$lt_need_locks
21232
21233 # Manifest tool.
21234 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21235
21236 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21237 DSYMUTIL=$lt_DSYMUTIL
21238
21239 # Tool to change global to local symbols on Mac OS X.
21240 NMEDIT=$lt_NMEDIT
21241
21242 # Tool to manipulate fat objects and archives on Mac OS X.
21243 LIPO=$lt_LIPO
21244
21245 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21246 OTOOL=$lt_OTOOL
21247
21248 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21249 OTOOL64=$lt_OTOOL64
21250
21251 # Old archive suffix (normally "a").
21252 libext=$libext
21253
21254 # Shared library suffix (normally ".so").
21255 shrext_cmds=$lt_shrext_cmds
21256
21257 # The commands to extract the exported symbol list from a shared archive.
21258 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21259
21260 # Variables whose values should be saved in libtool wrapper scripts and
21261 # restored at link time.
21262 variables_saved_for_relink=$lt_variables_saved_for_relink
21263
21264 # Do we need the "lib" prefix for modules?
21265 need_lib_prefix=$need_lib_prefix
21266
21267 # Do we need a version for libraries?
21268 need_version=$need_version
21269
21270 # Library versioning type.
21271 version_type=$version_type
21272
21273 # Shared library runtime path variable.
21274 runpath_var=$runpath_var
21275
21276 # Shared library path variable.
21277 shlibpath_var=$shlibpath_var
21278
21279 # Is shlibpath searched before the hard-coded library search path?
21280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21281
21282 # Format of library name prefix.
21283 libname_spec=$lt_libname_spec
21284
21285 # List of archive names. First name is the real one, the rest are links.
21286 # The last name is the one that the linker finds with -lNAME
21287 library_names_spec=$lt_library_names_spec
21288
21289 # The coded name of the library, if different from the real name.
21290 soname_spec=$lt_soname_spec
21291
21292 # Permission mode override for installation of shared libraries.
21293 install_override_mode=$lt_install_override_mode
21294
21295 # Command to use after installation of a shared archive.
21296 postinstall_cmds=$lt_postinstall_cmds
21297
21298 # Command to use after uninstallation of a shared archive.
21299 postuninstall_cmds=$lt_postuninstall_cmds
21300
21301 # Commands used to finish a libtool library installation in a directory.
21302 finish_cmds=$lt_finish_cmds
21303
21304 # As "finish_cmds", except a single script fragment to be evaled but
21305 # not shown.
21306 finish_eval=$lt_finish_eval
21307
21308 # Whether we should hardcode library paths into libraries.
21309 hardcode_into_libs=$hardcode_into_libs
21310
21311 # Compile-time system search path for libraries.
21312 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21313
21314 # Detected run-time system search path for libraries.
21315 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21316
21317 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21318 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21319
21320 # Whether dlopen is supported.
21321 dlopen_support=$enable_dlopen
21322
21323 # Whether dlopen of programs is supported.
21324 dlopen_self=$enable_dlopen_self
21325
21326 # Whether dlopen of statically linked programs is supported.
21327 dlopen_self_static=$enable_dlopen_self_static
21328
21329 # Commands to strip libraries.
21330 old_striplib=$lt_old_striplib
21331 striplib=$lt_striplib
21332
21333
21334 # The linker used to build libraries.
21335 LD=$lt_LD
21336
21337 # How to create reloadable object files.
21338 reload_flag=$lt_reload_flag
21339 reload_cmds=$lt_reload_cmds
21340
21341 # Commands used to build an old-style archive.
21342 old_archive_cmds=$lt_old_archive_cmds
21343
21344 # A language specific compiler.
21345 CC=$lt_compiler
21346
21347 # Is the compiler the GNU compiler?
21348 with_gcc=$GCC
21349
21350 # Compiler flag to turn off builtin functions.
21351 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21352
21353 # Additional compiler flags for building library objects.
21354 pic_flag=$lt_lt_prog_compiler_pic
21355
21356 # How to pass a linker flag through the compiler.
21357 wl=$lt_lt_prog_compiler_wl
21358
21359 # Compiler flag to prevent dynamic linking.
21360 link_static_flag=$lt_lt_prog_compiler_static
21361
21362 # Does compiler simultaneously support -c and -o options?
21363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21364
21365 # Whether or not to add -lc for building shared libraries.
21366 build_libtool_need_lc=$archive_cmds_need_lc
21367
21368 # Whether or not to disallow shared libs when runtime libs are static.
21369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21370
21371 # Compiler flag to allow reflexive dlopens.
21372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21373
21374 # Compiler flag to generate shared objects directly from archives.
21375 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21376
21377 # Whether the compiler copes with passing no objects directly.
21378 compiler_needs_object=$lt_compiler_needs_object
21379
21380 # Create an old-style archive from a shared archive.
21381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21382
21383 # Create a temporary old-style archive to link instead of a shared archive.
21384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21385
21386 # Commands used to build a shared archive.
21387 archive_cmds=$lt_archive_cmds
21388 archive_expsym_cmds=$lt_archive_expsym_cmds
21389
21390 # Commands used to build a loadable module if different from building
21391 # a shared archive.
21392 module_cmds=$lt_module_cmds
21393 module_expsym_cmds=$lt_module_expsym_cmds
21394
21395 # Whether we are building with GNU ld or not.
21396 with_gnu_ld=$lt_with_gnu_ld
21397
21398 # Flag that allows shared libraries with undefined symbols to be built.
21399 allow_undefined_flag=$lt_allow_undefined_flag
21400
21401 # Flag that enforces no undefined symbols.
21402 no_undefined_flag=$lt_no_undefined_flag
21403
21404 # Flag to hardcode \$libdir into a binary during linking.
21405 # This must work even if \$libdir does not exist
21406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21407
21408 # Whether we need a single "-rpath" flag with a separated argument.
21409 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21410
21411 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21412 # DIR into the resulting binary.
21413 hardcode_direct=$hardcode_direct
21414
21415 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21416 # DIR into the resulting binary and the resulting library dependency is
21417 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21418 # library is relocated.
21419 hardcode_direct_absolute=$hardcode_direct_absolute
21420
21421 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21422 # into the resulting binary.
21423 hardcode_minus_L=$hardcode_minus_L
21424
21425 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21426 # into the resulting binary.
21427 hardcode_shlibpath_var=$hardcode_shlibpath_var
21428
21429 # Set to "yes" if building a shared library automatically hardcodes DIR
21430 # into the library and all subsequent libraries and executables linked
21431 # against it.
21432 hardcode_automatic=$hardcode_automatic
21433
21434 # Set to yes if linker adds runtime paths of dependent libraries
21435 # to runtime path list.
21436 inherit_rpath=$inherit_rpath
21437
21438 # Whether libtool must link a program against all its dependency libraries.
21439 link_all_deplibs=$link_all_deplibs
21440
21441 # Set to "yes" if exported symbols are required.
21442 always_export_symbols=$always_export_symbols
21443
21444 # The commands to list exported symbols.
21445 export_symbols_cmds=$lt_export_symbols_cmds
21446
21447 # Symbols that should not be listed in the preloaded symbols.
21448 exclude_expsyms=$lt_exclude_expsyms
21449
21450 # Symbols that must always be exported.
21451 include_expsyms=$lt_include_expsyms
21452
21453 # Commands necessary for linking programs (against libraries) with templates.
21454 prelink_cmds=$lt_prelink_cmds
21455
21456 # Commands necessary for finishing linking programs.
21457 postlink_cmds=$lt_postlink_cmds
21458
21459 # Specify filename containing input files.
21460 file_list_spec=$lt_file_list_spec
21461
21462 # How to hardcode a shared library path into an executable.
21463 hardcode_action=$hardcode_action
21464
21465 # ### END LIBTOOL CONFIG
21466
21467 _LT_EOF
21468
21469 cat <<'_LT_EOF' >> "$cfgfile"
21470
21471 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21472
21473 # func_munge_path_list VARIABLE PATH
21474 # -----------------------------------
21475 # VARIABLE is name of variable containing _space_ separated list of
21476 # directories to be munged by the contents of PATH, which is string
21477 # having a format:
21478 # "DIR[:DIR]:"
21479 # string "DIR[ DIR]" will be prepended to VARIABLE
21480 # ":DIR[:DIR]"
21481 # string "DIR[ DIR]" will be appended to VARIABLE
21482 # "DIRP[:DIRP]::[DIRA:]DIRA"
21483 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21484 # "DIRA[ DIRA]" will be appended to VARIABLE
21485 # "DIR[:DIR]"
21486 # VARIABLE will be replaced by "DIR[ DIR]"
21487 func_munge_path_list ()
21488 {
21489 case x$2 in
21490 x)
21491 ;;
21492 *:)
21493 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21494 ;;
21495 x:*)
21496 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21497 ;;
21498 *::*)
21499 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21500 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21501 ;;
21502 *)
21503 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21504 ;;
21505 esac
21506 }
21507
21508
21509 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21510 func_cc_basename ()
21511 {
21512 for cc_temp in $*""; do
21513 case $cc_temp in
21514 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21515 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21516 \-*) ;;
21517 *) break;;
21518 esac
21519 done
21520 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21521 }
21522
21523
21524 # ### END FUNCTIONS SHARED WITH CONFIGURE
21525
21526 _LT_EOF
21527
21528 case $host_os in
21529 aix3*)
21530 cat <<\_LT_EOF >> "$cfgfile"
21531 # AIX sometimes has problems with the GCC collect2 program. For some
21532 # reason, if we set the COLLECT_NAMES environment variable, the problems
21533 # vanish in a puff of smoke.
21534 if test set != "${COLLECT_NAMES+set}"; then
21535 COLLECT_NAMES=
21536 export COLLECT_NAMES
21537 fi
21538 _LT_EOF
21539 ;;
21540 esac
21541
21542
21543
21544 ltmain=$ac_aux_dir/ltmain.sh
21545
21546
21547 # We use sed instead of cat because bash on DJGPP gets confused if
21548 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21549 # text mode, it properly converts lines to CR/LF. This bash problem
21550 # is reportedly fixed, but why not run on old versions too?
21551 $SED '$q' "$ltmain" >> "$cfgfile" \
21552 || (rm -f "$cfgfile"; exit 1)
21553
21554 mv -f "$cfgfile" "$ofile" ||
21555 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21556 chmod +x "$ofile"
21557
21558 ;;
21559
21560 esac
21561 done # for ac_tag
21562
21563
21564 as_fn_exit 0
21565 _ACEOF
21566 ac_clean_files=$ac_clean_files_save
21567
21568 test $ac_write_fail = 0 ||
21569 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21570
21571
21572 # configure is writing to config.log, and then calls config.status.
21573 # config.status does its own redirection, appending to config.log.
21574 # Unfortunately, on DOS this fails, as config.log is still kept open
21575 # by configure, so config.status won't be able to write to it; its
21576 # output is simply discarded. So we exec the FD to /dev/null,
21577 # effectively closing config.log, so it can be properly (re)opened and
21578 # appended to by config.status. When coming back to configure, we
21579 # need to make the FD available again.
21580 if test "$no_create" != yes; then
21581 ac_cs_success=:
21582 ac_config_status_args=
21583 test "$silent" = yes &&
21584 ac_config_status_args="$ac_config_status_args --quiet"
21585 exec 5>/dev/null
21586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21587 exec 5>>config.log
21588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21589 # would make configure fail if this is the last instruction.
21590 $ac_cs_success || as_fn_exit 1
21591 fi
21592 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21594 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21595 fi
21596
21597
21598