configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXau 1.0.11.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/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/libxau/-/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='libXau'
624 PACKAGE_TARNAME='libXau'
625 PACKAGE_VERSION='1.0.11'
626 PACKAGE_STRING='libXau 1.0.11'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxau/-/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 MAKE_LINT_LIB_FALSE
668 MAKE_LINT_LIB_TRUE
669 LINTLIB
670 LINT_FALSE
671 LINT_TRUE
672 LINT_FLAGS
673 LINT
674 XAU_LIBS
675 XAU_CFLAGS
676 MAN_SUBSTS
677 XORG_MAN_PAGE
678 ADMIN_MAN_DIR
679 DRIVER_MAN_DIR
680 MISC_MAN_DIR
681 FILE_MAN_DIR
682 LIB_MAN_DIR
683 APP_MAN_DIR
684 ADMIN_MAN_SUFFIX
685 DRIVER_MAN_SUFFIX
686 MISC_MAN_SUFFIX
687 FILE_MAN_SUFFIX
688 LIB_MAN_SUFFIX
689 APP_MAN_SUFFIX
690 INSTALL_CMD
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 CHANGELOG_CMD
695 STRICT_CFLAGS
696 CWARNFLAGS
697 BASE_CFLAGS
698 LT_SYS_LIBRARY_PATH
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 MANIFEST_TOOL
705 RANLIB
706 ac_ct_AR
707 AR
708 FILECMD
709 LN_S
710 NM
711 ac_ct_DUMPBIN
712 DUMPBIN
713 LD
714 FGREP
715 EGREP
716 GREP
717 SED
718 LIBTOOL
719 OBJDUMP
720 DLLTOOL
721 AS
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 CSCOPE
735 ETAGS
736 CTAGS
737 am__fastdepCC_FALSE
738 am__fastdepCC_TRUE
739 CCDEPMODE
740 am__nodep
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__include
745 DEPDIR
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 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 runstatedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL
815 am__quote'
816 ac_subst_files=''
817 ac_user_opts='
818 enable_option_checking
819 enable_dependency_tracking
820 enable_silent_rules
821 enable_shared
822 enable_static
823 with_pic
824 enable_fast_install
825 with_aix_soname
826 with_gnu_ld
827 with_sysroot
828 enable_libtool_lock
829 enable_selective_werror
830 enable_strict_compilation
831 enable_largefile
832 enable_xthreads
833 with_lint
834 enable_lint_library
835 '
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 LT_SYS_LIBRARY_PATH
845 PKG_CONFIG
846 PKG_CONFIG_PATH
847 PKG_CONFIG_LIBDIR
848 XAU_CFLAGS
849 XAU_LIBS
850 LINT
851 LINT_FLAGS'
852
853
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 ac_unrecognized_opts=
858 ac_unrecognized_sep=
859 # The variables have the same names as the options, with
860 # dashes changed to underlines.
861 cache_file=/dev/null
862 exec_prefix=NONE
863 no_create=
864 no_recursion=
865 prefix=NONE
866 program_prefix=NONE
867 program_suffix=NONE
868 program_transform_name=s,x,x,
869 silent=
870 site=
871 srcdir=
872 verbose=
873 x_includes=NONE
874 x_libraries=NONE
875
876 # Installation directory options.
877 # These are left unexpanded so users can "make install exec_prefix=/foo"
878 # and all the variables that are supposed to be based on exec_prefix
879 # by default will actually change.
880 # Use braces instead of parens because sh, perl, etc. also accept them.
881 # (The list follows the same order as the GNU Coding Standards.)
882 bindir='${exec_prefix}/bin'
883 sbindir='${exec_prefix}/sbin'
884 libexecdir='${exec_prefix}/libexec'
885 datarootdir='${prefix}/share'
886 datadir='${datarootdir}'
887 sysconfdir='${prefix}/etc'
888 sharedstatedir='${prefix}/com'
889 localstatedir='${prefix}/var'
890 runstatedir='${localstatedir}/run'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
910 ac_prev=
911 continue
912 fi
913
914 case $ac_option in
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 *=) ac_optarg= ;;
917 *) ac_optarg=yes ;;
918 esac
919
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
923
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
928
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
933
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
940
941 --config-cache | -C)
942 cache_file=config.cache ;;
943
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
948
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
955
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: \`$ac_useropt'"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
971
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
976
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
981
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: \`$ac_useropt'"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
997
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1006
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1010
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1017
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1022
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1028
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1035
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1040
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1045
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1052
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1057
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1064
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1069
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1073
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1077
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1081
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1090
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1095
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1102
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1109
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1126
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1131
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1136
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1140
1141 -runstatedir | --runstatedir | --runstatedi | --runstated \
1142 | --runstate | --runstat | --runsta | --runst | --runs \
1143 | --run | --ru | --r)
1144 ac_prev=runstatedir ;;
1145 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1146 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1147 | --run=* | --ru=* | --r=*)
1148 runstatedir=$ac_optarg ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: \`$ac_useropt'"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
1210
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: \`$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1247 ;;
1248
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 ;;
1266
1267 esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1273 fi
1274
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
1281 fi
1282
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir runstatedir
1288 do
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 printf "%s\n" X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures libXau 1.0.11 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/libXau]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1455
1456 cat <<\_ACEOF
1457
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1467 fi
1468
1469 if test -n "$ac_init_help"; then
1470 case $ac_init_help in
1471 short | recursive ) echo "Configuration of libXau 1.0.11:";;
1472 esac
1473 cat <<\_ACEOF
1474
1475 Optional Features:
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --disable-selective-werror
1491 Turn off selective compiler errors. (default:
1492 enabled)
1493 --enable-strict-compilation
1494 Enable all warnings from compiler and make them
1495 errors (default: disabled)
1496 --disable-largefile omit support for large files
1497 --disable-xthreads Disable libXau support for Multithreading
1498 --enable-lint-library Create lint library (default: disabled)
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511 --with-lint Use a lint-style source code checker (default:
1512 disabled)
1513
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1522 LT_SYS_LIBRARY_PATH
1523 User-defined run-time library search path.
1524 PKG_CONFIG path to pkg-config utility
1525 PKG_CONFIG_PATH
1526 directories to add to pkg-config's search path
1527 PKG_CONFIG_LIBDIR
1528 path overriding pkg-config's built-in search path
1529 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config
1530 XAU_LIBS linker flags for XAU, overriding pkg-config
1531 LINT Path to a lint-style command
1532 LINT_FLAGS Flags for the lint-style command
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for configure.gnu first; this name is used for a wrapper for
1584 # Metaconfig's "Configure" on case-insensitive file systems.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 libXau configure 1.0.11
1602 generated by GNU Autoconf 2.71
1603
1604 Copyright (C) 2021 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest.beam
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 printf "%s\n" "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext
1641 then :
1642 ac_retval=0
1643 else $as_nop
1644 printf "%s\n" "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 printf %s "checking for $2... " >&6; }
1663 if eval test \${$3+y}
1664 then :
1665 printf %s "(cached) " >&6
1666 else $as_nop
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"
1673 then :
1674 eval "$3=yes"
1675 else $as_nop
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 printf "%s\n" "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 printf "%s\n" "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 test -x conftest$ac_exeext
1715 }
1716 then :
1717 ac_retval=0
1718 else $as_nop
1719 printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else $as_nop
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (void); below. */
1754
1755 #include <limits.h>
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 (void);
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main (void)
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else $as_nop
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1787 conftest$ac_exeext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_func
1795
1796 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1797 # ------------------------------------------------------------------
1798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1799 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1800 ac_fn_check_decl ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 as_decl_name=`echo $2|sed 's/ *(.*//'`
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1805 printf %s "checking whether $as_decl_name is declared... " >&6; }
1806 if eval test \${$3+y}
1807 then :
1808 printf %s "(cached) " >&6
1809 else $as_nop
1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1811 eval ac_save_FLAGS=\$$6
1812 as_fn_append $6 " $5"
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 int
1817 main (void)
1818 {
1819 #ifndef $as_decl_name
1820 #ifdef __cplusplus
1821 (void) $as_decl_use;
1822 #else
1823 (void) $as_decl_name;
1824 #endif
1825 #endif
1826
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"
1832 then :
1833 eval "$3=yes"
1834 else $as_nop
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1838 eval $6=\$ac_save_FLAGS
1839
1840 fi
1841 eval ac_res=\$$3
1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 printf "%s\n" "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_check_decl
1847 ac_configure_args_raw=
1848 for ac_arg
1849 do
1850 case $ac_arg in
1851 *\'*)
1852 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 esac
1854 as_fn_append ac_configure_args_raw " '$ac_arg'"
1855 done
1856
1857 case $ac_configure_args_raw in
1858 *$as_nl*)
1859 ac_safe_unquote= ;;
1860 *)
1861 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1862 ac_unsafe_a="$ac_unsafe_z#~"
1863 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1864 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1865 esac
1866
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by libXau $as_me 1.0.11, which was
1872 generated by GNU Autoconf 2.71. Invocation command line was
1873
1874 $ $0$ac_configure_args_raw
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 case $as_dir in #(((
1908 '') as_dir=./ ;;
1909 */) ;;
1910 *) as_dir=$as_dir/ ;;
1911 esac
1912 printf "%s\n" "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Sanitize IFS.
1983 IFS=" "" $as_nl"
1984 # Save into config.log some information that might help in debugging.
1985 {
1986 echo
1987
1988 printf "%s\n" "## ---------------- ##
1989 ## Cache variables. ##
1990 ## ---------------- ##"
1991 echo
1992 # The following way of writing the cache mishandles newlines in values,
1993 (
1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in #(
1997 *${as_nl}*)
1998 case $ac_var in #(
1999 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001 esac
2002 case $ac_var in #(
2003 _ | IFS | as_nl) ;; #(
2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005 *) { eval $ac_var=; unset $ac_var;} ;;
2006 esac ;;
2007 esac
2008 done
2009 (set) 2>&1 |
2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011 *${as_nl}ac_space=\ *)
2012 sed -n \
2013 "s/'\''/'\''\\\\'\'''\''/g;
2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015 ;; #(
2016 *)
2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 ;;
2019 esac |
2020 sort
2021 )
2022 echo
2023
2024 printf "%s\n" "## ----------------- ##
2025 ## Output variables. ##
2026 ## ----------------- ##"
2027 echo
2028 for ac_var in $ac_subst_vars
2029 do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in
2032 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033 esac
2034 printf "%s\n" "$ac_var='\''$ac_val'\''"
2035 done | sort
2036 echo
2037
2038 if test -n "$ac_subst_files"; then
2039 printf "%s\n" "## ------------------- ##
2040 ## File substitutions. ##
2041 ## ------------------- ##"
2042 echo
2043 for ac_var in $ac_subst_files
2044 do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in
2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 esac
2049 printf "%s\n" "$ac_var='\''$ac_val'\''"
2050 done | sort
2051 echo
2052 fi
2053
2054 if test -s confdefs.h; then
2055 printf "%s\n" "## ----------- ##
2056 ## confdefs.h. ##
2057 ## ----------- ##"
2058 echo
2059 cat confdefs.h
2060 echo
2061 fi
2062 test "$ac_signal" != 0 &&
2063 printf "%s\n" "$as_me: caught signal $ac_signal"
2064 printf "%s\n" "$as_me: exit $exit_status"
2065 } >&5
2066 rm -f core *.core core.conftest.* &&
2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068 exit $exit_status
2069 ' 0
2070 for ac_signal in 1 2 13 15; do
2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072 done
2073 ac_signal=0
2074
2075 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2076 rm -f -r conftest* confdefs.h
2077
2078 printf "%s\n" "/* confdefs.h */" > confdefs.h
2079
2080 # Predefined preprocessor variables.
2081
2082 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2097 if test -n "$CONFIG_SITE"; then
2098 ac_site_files="$CONFIG_SITE"
2099 elif test "x$prefix" != xNONE; then
2100 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2101 else
2102 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2103 fi
2104
2105 for ac_site_file in $ac_site_files
2106 do
2107 case $ac_site_file in #(
2108 */*) :
2109 ;; #(
2110 *) :
2111 ac_site_file=./$ac_site_file ;;
2112 esac
2113 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2117 . "$ac_site_file" \
2118 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $? "failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2122 fi
2123 done
2124
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2131 case $cache_file in
2132 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133 *) . "./$cache_file";;
2134 esac
2135 fi
2136 else
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2139 >$cache_file
2140 fi
2141
2142 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2143 # Test code for whether the C compiler supports C89 (global declarations)
2144 ac_c_conftest_c89_globals='
2145 /* Does the compiler advertise C89 conformance?
2146 Do not test the value of __STDC__, because some compilers set it to 0
2147 while being otherwise adequately conformant. */
2148 #if !defined __STDC__
2149 # error "Compiler does not advertise C89 conformance"
2150 #endif
2151
2152 #include <stddef.h>
2153 #include <stdarg.h>
2154 struct stat;
2155 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2156 struct buf { int x; };
2157 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (char **p, int i)
2159 {
2160 return p[i];
2161 }
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2163 {
2164 char *s;
2165 va_list v;
2166 va_start (v,p);
2167 s = g (p, va_arg (v,int));
2168 va_end (v);
2169 return s;
2170 }
2171
2172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not \xHH hex character constants.
2174 These do not provoke an error unfortunately, instead are silently treated
2175 as an "x". The following induces an error, until -std is added to get
2176 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2177 array size at least. It is necessary to write \x00 == 0 to get something
2178 that is true only with -std. */
2179 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2180
2181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2182 inside strings and character constants. */
2183 #define FOO(x) '\''x'\''
2184 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2185
2186 int test (int i, double x);
2187 struct s1 {int (*f) (int a);};
2188 struct s2 {int (*f) (double a);};
2189 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2190 int, int);'
2191
2192 # Test code for whether the C compiler supports C89 (body of main).
2193 ac_c_conftest_c89_main='
2194 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2195 '
2196
2197 # Test code for whether the C compiler supports C99 (global declarations)
2198 ac_c_conftest_c99_globals='
2199 // Does the compiler advertise C99 conformance?
2200 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2201 # error "Compiler does not advertise C99 conformance"
2202 #endif
2203
2204 #include <stdbool.h>
2205 extern int puts (const char *);
2206 extern int printf (const char *, ...);
2207 extern int dprintf (int, const char *, ...);
2208 extern void *malloc (size_t);
2209 extern void free (void *);
2210
2211 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2212 // dprintf is used instead of fprintf to avoid needing to declare
2213 // FILE and stderr.
2214 #define debug(...) dprintf (2, __VA_ARGS__)
2215 #define showlist(...) puts (#__VA_ARGS__)
2216 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2217 static void
2218 test_varargs_macros (void)
2219 {
2220 int x = 1234;
2221 int y = 5678;
2222 debug ("Flag");
2223 debug ("X = %d\n", x);
2224 showlist (The first, second, and third items.);
2225 report (x>y, "x is %d but y is %d", x, y);
2226 }
2227
2228 // Check long long types.
2229 #define BIG64 18446744073709551615ull
2230 #define BIG32 4294967295ul
2231 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2232 #if !BIG_OK
2233 #error "your preprocessor is broken"
2234 #endif
2235 #if BIG_OK
2236 #else
2237 #error "your preprocessor is broken"
2238 #endif
2239 static long long int bignum = -9223372036854775807LL;
2240 static unsigned long long int ubignum = BIG64;
2241
2242 struct incomplete_array
2243 {
2244 int datasize;
2245 double data[];
2246 };
2247
2248 struct named_init {
2249 int number;
2250 const wchar_t *name;
2251 double average;
2252 };
2253
2254 typedef const char *ccp;
2255
2256 static inline int
2257 test_restrict (ccp restrict text)
2258 {
2259 // See if C++-style comments work.
2260 // Iterate through items via the restricted pointer.
2261 // Also check for declarations in for loops.
2262 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2263 continue;
2264 return 0;
2265 }
2266
2267 // Check varargs and va_copy.
2268 static bool
2269 test_varargs (const char *format, ...)
2270 {
2271 va_list args;
2272 va_start (args, format);
2273 va_list args_copy;
2274 va_copy (args_copy, args);
2275
2276 const char *str = "";
2277 int number = 0;
2278 float fnumber = 0;
2279
2280 while (*format)
2281 {
2282 switch (*format++)
2283 {
2284 case '\''s'\'': // string
2285 str = va_arg (args_copy, const char *);
2286 break;
2287 case '\''d'\'': // int
2288 number = va_arg (args_copy, int);
2289 break;
2290 case '\''f'\'': // float
2291 fnumber = va_arg (args_copy, double);
2292 break;
2293 default:
2294 break;
2295 }
2296 }
2297 va_end (args_copy);
2298 va_end (args);
2299
2300 return *str && number && fnumber;
2301 }
2302 '
2303
2304 # Test code for whether the C compiler supports C99 (body of main).
2305 ac_c_conftest_c99_main='
2306 // Check bool.
2307 _Bool success = false;
2308 success |= (argc != 0);
2309
2310 // Check restrict.
2311 if (test_restrict ("String literal") == 0)
2312 success = true;
2313 char *restrict newvar = "Another string";
2314
2315 // Check varargs.
2316 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2317 test_varargs_macros ();
2318
2319 // Check flexible array members.
2320 struct incomplete_array *ia =
2321 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2322 ia->datasize = 10;
2323 for (int i = 0; i < ia->datasize; ++i)
2324 ia->data[i] = i * 1.234;
2325
2326 // Check named initializers.
2327 struct named_init ni = {
2328 .number = 34,
2329 .name = L"Test wide string",
2330 .average = 543.34343,
2331 };
2332
2333 ni.number = 58;
2334
2335 int dynamic_array[ni.number];
2336 dynamic_array[0] = argv[0][0];
2337 dynamic_array[ni.number - 1] = 543;
2338
2339 // work around unused variable warnings
2340 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2341 || dynamic_array[ni.number - 1] != 543);
2342 '
2343
2344 # Test code for whether the C compiler supports C11 (global declarations)
2345 ac_c_conftest_c11_globals='
2346 // Does the compiler advertise C11 conformance?
2347 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2348 # error "Compiler does not advertise C11 conformance"
2349 #endif
2350
2351 // Check _Alignas.
2352 char _Alignas (double) aligned_as_double;
2353 char _Alignas (0) no_special_alignment;
2354 extern char aligned_as_int;
2355 char _Alignas (0) _Alignas (int) aligned_as_int;
2356
2357 // Check _Alignof.
2358 enum
2359 {
2360 int_alignment = _Alignof (int),
2361 int_array_alignment = _Alignof (int[100]),
2362 char_alignment = _Alignof (char)
2363 };
2364 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2365
2366 // Check _Noreturn.
2367 int _Noreturn does_not_return (void) { for (;;) continue; }
2368
2369 // Check _Static_assert.
2370 struct test_static_assert
2371 {
2372 int x;
2373 _Static_assert (sizeof (int) <= sizeof (long int),
2374 "_Static_assert does not work in struct");
2375 long int y;
2376 };
2377
2378 // Check UTF-8 literals.
2379 #define u8 syntax error!
2380 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2381
2382 // Check duplicate typedefs.
2383 typedef long *long_ptr;
2384 typedef long int *long_ptr;
2385 typedef long_ptr long_ptr;
2386
2387 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2388 struct anonymous
2389 {
2390 union {
2391 struct { int i; int j; };
2392 struct { int k; long int l; } w;
2393 };
2394 int m;
2395 } v1;
2396 '
2397
2398 # Test code for whether the C compiler supports C11 (body of main).
2399 ac_c_conftest_c11_main='
2400 _Static_assert ((offsetof (struct anonymous, i)
2401 == offsetof (struct anonymous, w.k)),
2402 "Anonymous union alignment botch");
2403 v1.i = 2;
2404 v1.w.k = 5;
2405 ok |= v1.i != 5;
2406 '
2407
2408 # Test code for whether the C compiler supports C11 (complete).
2409 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2410 ${ac_c_conftest_c99_globals}
2411 ${ac_c_conftest_c11_globals}
2412
2413 int
2414 main (int argc, char **argv)
2415 {
2416 int ok = 0;
2417 ${ac_c_conftest_c89_main}
2418 ${ac_c_conftest_c99_main}
2419 ${ac_c_conftest_c11_main}
2420 return ok;
2421 }
2422 "
2423
2424 # Test code for whether the C compiler supports C99 (complete).
2425 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2426 ${ac_c_conftest_c99_globals}
2427
2428 int
2429 main (int argc, char **argv)
2430 {
2431 int ok = 0;
2432 ${ac_c_conftest_c89_main}
2433 ${ac_c_conftest_c99_main}
2434 return ok;
2435 }
2436 "
2437
2438 # Test code for whether the C compiler supports C89 (complete).
2439 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2440
2441 int
2442 main (int argc, char **argv)
2443 {
2444 int ok = 0;
2445 ${ac_c_conftest_c89_main}
2446 return ok;
2447 }
2448 "
2449
2450 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2451 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2452 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2453 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2454 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2455 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2456 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2457 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2458 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2459 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2460
2461 # Auxiliary files required by this configure script.
2462 ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile"
2463
2464 # Locations in which to look for auxiliary files.
2465 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2466
2467 # Search for a directory containing all of the required auxiliary files,
2468 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2469 # If we don't find one directory that contains all the files we need,
2470 # we report the set of missing files from the *first* directory in
2471 # $ac_aux_dir_candidates and give up.
2472 ac_missing_aux_files=""
2473 ac_first_candidate=:
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 as_found=false
2477 for as_dir in $ac_aux_dir_candidates
2478 do
2479 IFS=$as_save_IFS
2480 case $as_dir in #(((
2481 '') as_dir=./ ;;
2482 */) ;;
2483 *) as_dir=$as_dir/ ;;
2484 esac
2485 as_found=:
2486
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2488 ac_aux_dir_found=yes
2489 ac_install_sh=
2490 for ac_aux in $ac_aux_files
2491 do
2492 # As a special case, if "install-sh" is required, that requirement
2493 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2494 # and $ac_install_sh is set appropriately for whichever one is found.
2495 if test x"$ac_aux" = x"install-sh"
2496 then
2497 if test -f "${as_dir}install-sh"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2499 ac_install_sh="${as_dir}install-sh -c"
2500 elif test -f "${as_dir}install.sh"; then
2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2502 ac_install_sh="${as_dir}install.sh -c"
2503 elif test -f "${as_dir}shtool"; then
2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2505 ac_install_sh="${as_dir}shtool install -c"
2506 else
2507 ac_aux_dir_found=no
2508 if $ac_first_candidate; then
2509 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2510 else
2511 break
2512 fi
2513 fi
2514 else
2515 if test -f "${as_dir}${ac_aux}"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2517 else
2518 ac_aux_dir_found=no
2519 if $ac_first_candidate; then
2520 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2521 else
2522 break
2523 fi
2524 fi
2525 fi
2526 done
2527 if test "$ac_aux_dir_found" = yes; then
2528 ac_aux_dir="$as_dir"
2529 break
2530 fi
2531 ac_first_candidate=false
2532
2533 as_found=false
2534 done
2535 IFS=$as_save_IFS
2536 if $as_found
2537 then :
2538
2539 else $as_nop
2540 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2541 fi
2542
2543
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 if test -f "${ac_aux_dir}config.guess"; then
2549 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2550 fi
2551 if test -f "${ac_aux_dir}config.sub"; then
2552 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2553 fi
2554 if test -f "$ac_aux_dir/configure"; then
2555 ac_configure="$SHELL ${ac_aux_dir}configure"
2556 fi
2557
2558 # Check that the precious variables saved in the cache have kept the same
2559 # value.
2560 ac_cache_corrupted=false
2561 for ac_var in $ac_precious_vars; do
2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563 eval ac_new_set=\$ac_env_${ac_var}_set
2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565 eval ac_new_val=\$ac_env_${ac_var}_value
2566 case $ac_old_set,$ac_new_set in
2567 set,)
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,set)
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2575 ,);;
2576 *)
2577 if test "x$ac_old_val" != "x$ac_new_val"; then
2578 # differences in whitespace do not lead to failure.
2579 ac_old_val_w=`echo x $ac_old_val`
2580 ac_new_val_w=`echo x $ac_new_val`
2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584 ac_cache_corrupted=:
2585 else
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588 eval $ac_var=\$ac_old_val
2589 fi
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2591 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2593 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2594 fi;;
2595 esac
2596 # Pass precious variables to config.status.
2597 if test "$ac_new_set" = set; then
2598 case $ac_new_val in
2599 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600 *) ac_arg=$ac_var=$ac_new_val ;;
2601 esac
2602 case " $ac_configure_args " in
2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605 esac
2606 fi
2607 done
2608 if $ac_cache_corrupted; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2613 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2614 and start over" "$LINENO" 5
2615 fi
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628 ac_config_headers="$ac_config_headers config.h"
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641 # Expand $ac_aux_dir to an absolute path.
2642 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 printf %s "checking for $ac_word... " >&6; }
2654 if test ${ac_cv_prog_CC+y}
2655 then :
2656 printf %s "(cached) " >&6
2657 else $as_nop
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 case $as_dir in #(((
2666 '') as_dir=./ ;;
2667 */) ;;
2668 *) as_dir=$as_dir/ ;;
2669 esac
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 CC=$ac_cv_prog_CC
2683 if test -n "$CC"; then
2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2685 printf "%s\n" "$CC" >&6; }
2686 else
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 printf "%s\n" "no" >&6; }
2689 fi
2690
2691
2692 fi
2693 if test -z "$ac_cv_prog_CC"; then
2694 ac_ct_CC=$CC
2695 # Extract the first word of "gcc", so it can be a program name with args.
2696 set dummy gcc; ac_word=$2
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 printf %s "checking for $ac_word... " >&6; }
2699 if test ${ac_cv_prog_ac_ct_CC+y}
2700 then :
2701 printf %s "(cached) " >&6
2702 else $as_nop
2703 if test -n "$ac_ct_CC"; then
2704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 case $as_dir in #(((
2711 '') as_dir=./ ;;
2712 */) ;;
2713 *) as_dir=$as_dir/ ;;
2714 esac
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_ac_ct_CC="gcc"
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2728 if test -n "$ac_ct_CC"; then
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2730 printf "%s\n" "$ac_ct_CC" >&6; }
2731 else
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 printf "%s\n" "no" >&6; }
2734 fi
2735
2736 if test "x$ac_ct_CC" = x; then
2737 CC=""
2738 else
2739 case $cross_compiling:$ac_tool_warned in
2740 yes:)
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2742 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2743 ac_tool_warned=yes ;;
2744 esac
2745 CC=$ac_ct_CC
2746 fi
2747 else
2748 CC="$ac_cv_prog_CC"
2749 fi
2750
2751 if test -z "$CC"; then
2752 if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2754 set dummy ${ac_tool_prefix}cc; ac_word=$2
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 printf %s "checking for $ac_word... " >&6; }
2757 if test ${ac_cv_prog_CC+y}
2758 then :
2759 printf %s "(cached) " >&6
2760 else $as_nop
2761 if test -n "$CC"; then
2762 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 case $as_dir in #(((
2769 '') as_dir=./ ;;
2770 */) ;;
2771 *) as_dir=$as_dir/ ;;
2772 esac
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2775 ac_cv_prog_CC="${ac_tool_prefix}cc"
2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 printf "%s\n" "$CC" >&6; }
2789 else
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 printf "%s\n" "no" >&6; }
2792 fi
2793
2794
2795 fi
2796 fi
2797 if test -z "$CC"; then
2798 # Extract the first word of "cc", so it can be a program name with args.
2799 set dummy cc; ac_word=$2
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 printf %s "checking for $ac_word... " >&6; }
2802 if test ${ac_cv_prog_CC+y}
2803 then :
2804 printf %s "(cached) " >&6
2805 else $as_nop
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 ac_prog_rejected=no
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813 IFS=$as_save_IFS
2814 case $as_dir in #(((
2815 '') as_dir=./ ;;
2816 */) ;;
2817 *) as_dir=$as_dir/ ;;
2818 esac
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2821 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2822 ac_prog_rejected=yes
2823 continue
2824 fi
2825 ac_cv_prog_CC="cc"
2826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 if test $ac_prog_rejected = yes; then
2834 # We found a bogon in the path, so make sure we never use it.
2835 set dummy $ac_cv_prog_CC
2836 shift
2837 if test $# != 0; then
2838 # We chose a different compiler from the bogus one.
2839 # However, it has the same basename, so the bogon will be chosen
2840 # first if we set CC to just the basename; use the full file name.
2841 shift
2842 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2843 fi
2844 fi
2845 fi
2846 fi
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850 printf "%s\n" "$CC" >&6; }
2851 else
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 printf "%s\n" "no" >&6; }
2854 fi
2855
2856
2857 fi
2858 if test -z "$CC"; then
2859 if test -n "$ac_tool_prefix"; then
2860 for ac_prog in cl.exe
2861 do
2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 printf %s "checking for $ac_word... " >&6; }
2866 if test ${ac_cv_prog_CC+y}
2867 then :
2868 printf %s "(cached) " >&6
2869 else $as_nop
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876 IFS=$as_save_IFS
2877 case $as_dir in #(((
2878 '') as_dir=./ ;;
2879 */) ;;
2880 *) as_dir=$as_dir/ ;;
2881 esac
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 printf "%s\n" "$CC" >&6; }
2898 else
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 printf "%s\n" "no" >&6; }
2901 fi
2902
2903
2904 test -n "$CC" && break
2905 done
2906 fi
2907 if test -z "$CC"; then
2908 ac_ct_CC=$CC
2909 for ac_prog in cl.exe
2910 do
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 printf %s "checking for $ac_word... " >&6; }
2915 if test ${ac_cv_prog_ac_ct_CC+y}
2916 then :
2917 printf %s "(cached) " >&6
2918 else $as_nop
2919 if test -n "$ac_ct_CC"; then
2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 case $as_dir in #(((
2927 '') as_dir=./ ;;
2928 */) ;;
2929 *) as_dir=$as_dir/ ;;
2930 esac
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_ac_ct_CC="$ac_prog"
2934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi
2942 fi
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946 printf "%s\n" "$ac_ct_CC" >&6; }
2947 else
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 printf "%s\n" "no" >&6; }
2950 fi
2951
2952
2953 test -n "$ac_ct_CC" && break
2954 done
2955
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 CC=$ac_ct_CC
2966 fi
2967 fi
2968
2969 fi
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}clang; ac_word=$2
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 printf %s "checking for $ac_word... " >&6; }
2976 if test ${ac_cv_prog_CC+y}
2977 then :
2978 printf %s "(cached) " >&6
2979 else $as_nop
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 case $as_dir in #(((
2988 '') as_dir=./ ;;
2989 */) ;;
2990 *) as_dir=$as_dir/ ;;
2991 esac
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="${ac_tool_prefix}clang"
2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 CC=$ac_cv_prog_CC
3005 if test -n "$CC"; then
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007 printf "%s\n" "$CC" >&6; }
3008 else
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 printf "%s\n" "no" >&6; }
3011 fi
3012
3013
3014 fi
3015 if test -z "$ac_cv_prog_CC"; then
3016 ac_ct_CC=$CC
3017 # Extract the first word of "clang", so it can be a program name with args.
3018 set dummy clang; ac_word=$2
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 printf %s "checking for $ac_word... " >&6; }
3021 if test ${ac_cv_prog_ac_ct_CC+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else $as_nop
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 case $as_dir in #(((
3033 '') as_dir=./ ;;
3034 */) ;;
3035 *) as_dir=$as_dir/ ;;
3036 esac
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_ac_ct_CC="clang"
3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 printf "%s\n" "$ac_ct_CC" >&6; }
3053 else
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 printf "%s\n" "no" >&6; }
3056 fi
3057
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3068 fi
3069 else
3070 CC="$ac_cv_prog_CC"
3071 fi
3072
3073 fi
3074
3075
3076 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details" "$LINENO" 5; }
3080
3081 # Provide some information about the compiler.
3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 set X $ac_compile
3084 ac_compiler=$2
3085 for ac_option in --version -v -V -qversion -version; do
3086 { { ac_try="$ac_compiler $ac_option >&5"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 printf "%s\n" "$ac_try_echo"; } >&5
3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3094 ac_status=$?
3095 if test -s conftest.err; then
3096 sed '10a\
3097 ... rest of stderr output deleted ...
3098 10q' conftest.err >conftest.er1
3099 cat conftest.er1 >&5
3100 fi
3101 rm -f conftest.er1 conftest.err
3102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }
3104 done
3105
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3108
3109 int
3110 main (void)
3111 {
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 ac_clean_files_save=$ac_clean_files
3118 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3119 # Try to create an executable without -o first, disregard a.out.
3120 # It will help us diagnose broken compilers, and finding out an intuition
3121 # of exeext.
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3123 printf %s "checking whether the C compiler works... " >&6; }
3124 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3125
3126 # The possible output files:
3127 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128
3129 ac_rmfiles=
3130 for ac_file in $ac_files
3131 do
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 esac
3136 done
3137 rm -f $ac_rmfiles
3138
3139 if { { ac_try="$ac_link_default"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 printf "%s\n" "$ac_try_echo"; } >&5
3146 (eval "$ac_link_default") 2>&5
3147 ac_status=$?
3148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }
3150 then :
3151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3152 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3153 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3154 # so that the user can short-circuit this test for compilers unknown to
3155 # Autoconf.
3156 for ac_file in $ac_files ''
3157 do
3158 test -f "$ac_file" || continue
3159 case $ac_file in
3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3161 ;;
3162 [ab].out )
3163 # We found the default executable, but exeext='' is most
3164 # certainly right.
3165 break;;
3166 *.* )
3167 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3168 then :; else
3169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3170 fi
3171 # We set ac_cv_exeext here because the later test for it is not
3172 # safe: cross compilers may not add the suffix if given an `-o'
3173 # argument, so we may need to know it at that point already.
3174 # Even if this section looks crufty: it has the advantage of
3175 # actually working.
3176 break;;
3177 * )
3178 break;;
3179 esac
3180 done
3181 test "$ac_cv_exeext" = no && ac_cv_exeext=
3182
3183 else $as_nop
3184 ac_file=''
3185 fi
3186 if test -z "$ac_file"
3187 then :
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 printf "%s\n" "no" >&6; }
3190 printf "%s\n" "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error 77 "C compiler cannot create executables
3196 See \`config.log' for more details" "$LINENO" 5; }
3197 else $as_nop
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 printf "%s\n" "yes" >&6; }
3200 fi
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3202 printf %s "checking for C compiler default output file name... " >&6; }
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3204 printf "%s\n" "$ac_file" >&6; }
3205 ac_exeext=$ac_cv_exeext
3206
3207 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3208 ac_clean_files=$ac_clean_files_save
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210 printf %s "checking for suffix of executables... " >&6; }
3211 if { { ac_try="$ac_link"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 printf "%s\n" "$ac_try_echo"; } >&5
3218 (eval "$ac_link") 2>&5
3219 ac_status=$?
3220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3222 then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else $as_nop
3237 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3241 fi
3242 rm -f conftest conftest$ac_cv_exeext
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 printf "%s\n" "$ac_cv_exeext" >&6; }
3245
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3252 int
3253 main (void)
3254 {
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 printf %s "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 printf "%s\n" "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 printf "%s\n" "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error 77 "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3300 fi
3301 fi
3302 fi
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 printf "%s\n" "$cross_compiling" >&6; }
3305
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3309 printf %s "checking for suffix of object files... " >&6; }
3310 if test ${ac_cv_objext+y}
3311 then :
3312 printf %s "(cached) " >&6
3313 else $as_nop
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3316
3317 int
3318 main (void)
3319 {
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.o conftest.obj
3326 if { { ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 printf "%s\n" "$ac_try_echo"; } >&5
3333 (eval "$ac_compile") 2>&5
3334 ac_status=$?
3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 then :
3338 for ac_file in conftest.o conftest.obj conftest.*; do
3339 test -f "$ac_file" || continue;
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3343 break;;
3344 esac
3345 done
3346 else $as_nop
3347 printf "%s\n" "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3349
3350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $? "cannot compute suffix of object files: cannot compile
3353 See \`config.log' for more details" "$LINENO" 5; }
3354 fi
3355 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 fi
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3358 printf "%s\n" "$ac_cv_objext" >&6; }
3359 OBJEXT=$ac_cv_objext
3360 ac_objext=$OBJEXT
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3362 printf %s "checking whether the compiler supports GNU C... " >&6; }
3363 if test ${ac_cv_c_compiler_gnu+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else $as_nop
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main (void)
3372 {
3373 #ifndef __GNUC__
3374 choke me
3375 #endif
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"
3382 then :
3383 ac_compiler_gnu=yes
3384 else $as_nop
3385 ac_compiler_gnu=no
3386 fi
3387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3389
3390 fi
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3392 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395 if test $ac_compiler_gnu = yes; then
3396 GCC=yes
3397 else
3398 GCC=
3399 fi
3400 ac_test_CFLAGS=${CFLAGS+y}
3401 ac_save_CFLAGS=$CFLAGS
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3403 printf %s "checking whether $CC accepts -g... " >&6; }
3404 if test ${ac_cv_prog_cc_g+y}
3405 then :
3406 printf %s "(cached) " >&6
3407 else $as_nop
3408 ac_save_c_werror_flag=$ac_c_werror_flag
3409 ac_c_werror_flag=yes
3410 ac_cv_prog_cc_g=no
3411 CFLAGS="-g"
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main (void)
3417 {
3418
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 if ac_fn_c_try_compile "$LINENO"
3424 then :
3425 ac_cv_prog_cc_g=yes
3426 else $as_nop
3427 CFLAGS=""
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main (void)
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"
3440 then :
3441
3442 else $as_nop
3443 ac_c_werror_flag=$ac_save_c_werror_flag
3444 CFLAGS="-g"
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447
3448 int
3449 main (void)
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_c_try_compile "$LINENO"
3457 then :
3458 ac_cv_prog_cc_g=yes
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3465 ac_c_werror_flag=$ac_save_c_werror_flag
3466 fi
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3468 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3469 if test $ac_test_CFLAGS; then
3470 CFLAGS=$ac_save_CFLAGS
3471 elif test $ac_cv_prog_cc_g = yes; then
3472 if test "$GCC" = yes; then
3473 CFLAGS="-g -O2"
3474 else
3475 CFLAGS="-g"
3476 fi
3477 else
3478 if test "$GCC" = yes; then
3479 CFLAGS="-O2"
3480 else
3481 CFLAGS=
3482 fi
3483 fi
3484 ac_prog_cc_stdc=no
3485 if test x$ac_prog_cc_stdc = xno
3486 then :
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3488 printf %s "checking for $CC option to enable C11 features... " >&6; }
3489 if test ${ac_cv_prog_cc_c11+y}
3490 then :
3491 printf %s "(cached) " >&6
3492 else $as_nop
3493 ac_cv_prog_cc_c11=no
3494 ac_save_CC=$CC
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 $ac_c_conftest_c11_program
3498 _ACEOF
3499 for ac_arg in '' -std=gnu11
3500 do
3501 CC="$ac_save_CC $ac_arg"
3502 if ac_fn_c_try_compile "$LINENO"
3503 then :
3504 ac_cv_prog_cc_c11=$ac_arg
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.beam
3507 test "x$ac_cv_prog_cc_c11" != "xno" && break
3508 done
3509 rm -f conftest.$ac_ext
3510 CC=$ac_save_CC
3511 fi
3512
3513 if test "x$ac_cv_prog_cc_c11" = xno
3514 then :
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3516 printf "%s\n" "unsupported" >&6; }
3517 else $as_nop
3518 if test "x$ac_cv_prog_cc_c11" = x
3519 then :
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 printf "%s\n" "none needed" >&6; }
3522 else $as_nop
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3524 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3525 CC="$CC $ac_cv_prog_cc_c11"
3526 fi
3527 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3528 ac_prog_cc_stdc=c11
3529 fi
3530 fi
3531 if test x$ac_prog_cc_stdc = xno
3532 then :
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3534 printf %s "checking for $CC option to enable C99 features... " >&6; }
3535 if test ${ac_cv_prog_cc_c99+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else $as_nop
3539 ac_cv_prog_cc_c99=no
3540 ac_save_CC=$CC
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543 $ac_c_conftest_c99_program
3544 _ACEOF
3545 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3546 do
3547 CC="$ac_save_CC $ac_arg"
3548 if ac_fn_c_try_compile "$LINENO"
3549 then :
3550 ac_cv_prog_cc_c99=$ac_arg
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.beam
3553 test "x$ac_cv_prog_cc_c99" != "xno" && break
3554 done
3555 rm -f conftest.$ac_ext
3556 CC=$ac_save_CC
3557 fi
3558
3559 if test "x$ac_cv_prog_cc_c99" = xno
3560 then :
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3562 printf "%s\n" "unsupported" >&6; }
3563 else $as_nop
3564 if test "x$ac_cv_prog_cc_c99" = x
3565 then :
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567 printf "%s\n" "none needed" >&6; }
3568 else $as_nop
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3570 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3571 CC="$CC $ac_cv_prog_cc_c99"
3572 fi
3573 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3574 ac_prog_cc_stdc=c99
3575 fi
3576 fi
3577 if test x$ac_prog_cc_stdc = xno
3578 then :
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3580 printf %s "checking for $CC option to enable C89 features... " >&6; }
3581 if test ${ac_cv_prog_cc_c89+y}
3582 then :
3583 printf %s "(cached) " >&6
3584 else $as_nop
3585 ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 $ac_c_conftest_c89_program
3590 _ACEOF
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592 do
3593 CC="$ac_save_CC $ac_arg"
3594 if ac_fn_c_try_compile "$LINENO"
3595 then :
3596 ac_cv_prog_cc_c89=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.beam
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC
3603 fi
3604
3605 if test "x$ac_cv_prog_cc_c89" = xno
3606 then :
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3608 printf "%s\n" "unsupported" >&6; }
3609 else $as_nop
3610 if test "x$ac_cv_prog_cc_c89" = x
3611 then :
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613 printf "%s\n" "none needed" >&6; }
3614 else $as_nop
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3616 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3617 CC="$CC $ac_cv_prog_cc_c89"
3618 fi
3619 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3620 ac_prog_cc_stdc=c89
3621 fi
3622 fi
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3637 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3638 if test ${am_cv_prog_cc_c_o+y}
3639 then :
3640 printf %s "(cached) " >&6
3641 else $as_nop
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main (void)
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 # Make sure it works both with $CC and with simple cc.
3654 # Following AC_PROG_CC_C_O, we do the test twice because some
3655 # compilers refuse to overwrite an existing .o file with -o,
3656 # though they will create one.
3657 am_cv_prog_cc_c_o=yes
3658 for am_i in 1 2; do
3659 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3660 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3661 ac_status=$?
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } \
3664 && test -f conftest2.$ac_objext; then
3665 : OK
3666 else
3667 am_cv_prog_cc_c_o=no
3668 break
3669 fi
3670 done
3671 rm -f core conftest*
3672 unset am_i
3673 fi
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3675 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3676 if test "$am_cv_prog_cc_c_o" != yes; then
3677 # Losing compiler, so override with the script.
3678 # FIXME: It is wrong to rewrite CC.
3679 # But if we don't then we get into trouble of one sort or another.
3680 # A longer-term fix would be to have automake use am__CC in this case,
3681 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3682 CC="$am_aux_dir/compile $CC"
3683 fi
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690
3691
3692 ac_header= ac_cache=
3693 for ac_item in $ac_header_c_list
3694 do
3695 if test $ac_cache; then
3696 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3697 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3698 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3699 fi
3700 ac_header= ac_cache=
3701 elif test $ac_header; then
3702 ac_cache=$ac_item
3703 else
3704 ac_header=$ac_item
3705 fi
3706 done
3707
3708
3709
3710
3711
3712
3713
3714
3715 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3716 then :
3717
3718 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3719
3720 fi
3721
3722
3723
3724
3725
3726
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3728 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3729 if test ${ac_cv_safe_to_define___extensions__+y}
3730 then :
3731 printf %s "(cached) " >&6
3732 else $as_nop
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735
3736 # define __EXTENSIONS__ 1
3737 $ac_includes_default
3738 int
3739 main (void)
3740 {
3741
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 if ac_fn_c_try_compile "$LINENO"
3747 then :
3748 ac_cv_safe_to_define___extensions__=yes
3749 else $as_nop
3750 ac_cv_safe_to_define___extensions__=no
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3753 fi
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3755 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3756
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3758 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3759 if test ${ac_cv_should_define__xopen_source+y}
3760 then :
3761 printf %s "(cached) " >&6
3762 else $as_nop
3763 ac_cv_should_define__xopen_source=no
3764 if test $ac_cv_header_wchar_h = yes
3765 then :
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768
3769 #include <wchar.h>
3770 mbstate_t x;
3771 int
3772 main (void)
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 if ac_fn_c_try_compile "$LINENO"
3780 then :
3781
3782 else $as_nop
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 #define _XOPEN_SOURCE 500
3787 #include <wchar.h>
3788 mbstate_t x;
3789 int
3790 main (void)
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"
3798 then :
3799 ac_cv_should_define__xopen_source=yes
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3804 fi
3805 fi
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3807 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3808
3809 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3810
3811 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3812
3813 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3814
3815 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3816
3817 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3818
3819 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3820
3821 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3822
3823 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3824
3825 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3826
3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3828
3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3830
3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3832
3833 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3834
3835 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3836
3837 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3838
3839 if test $ac_cv_header_minix_config_h = yes
3840 then :
3841 MINIX=yes
3842 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3843
3844 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3845
3846 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3847
3848 else $as_nop
3849 MINIX=
3850 fi
3851 if test $ac_cv_safe_to_define___extensions__ = yes
3852 then :
3853 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3854
3855 fi
3856 if test $ac_cv_should_define__xopen_source = yes
3857 then :
3858 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3859
3860 fi
3861
3862
3863 # Initialize Automake
3864 am__api_version='1.16'
3865
3866
3867 # Find a good install program. We prefer a C program (faster),
3868 # so one script is as good as another. But avoid the broken or
3869 # incompatible versions:
3870 # SysV /etc/install, /usr/sbin/install
3871 # SunOS /usr/etc/install
3872 # IRIX /sbin/install
3873 # AIX /bin/install
3874 # AmigaOS /C/install, which installs bootblocks on floppy discs
3875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3878 # OS/2's system install, which has a completely different semantic
3879 # ./install, which can be erroneously created by make from ./install.sh.
3880 # Reject install programs that cannot install multiple files.
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3882 printf %s "checking for a BSD-compatible install... " >&6; }
3883 if test -z "$INSTALL"; then
3884 if test ${ac_cv_path_install+y}
3885 then :
3886 printf %s "(cached) " >&6
3887 else $as_nop
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 case $as_dir in #(((
3893 '') as_dir=./ ;;
3894 */) ;;
3895 *) as_dir=$as_dir/ ;;
3896 esac
3897 # Account for fact that we put trailing slashes in our PATH walk.
3898 case $as_dir in #((
3899 ./ | /[cC]/* | \
3900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3901 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3902 /usr/ucb/* ) ;;
3903 *)
3904 # OSF1 and SCO ODT 3.0 have their own names for install.
3905 # Don't use installbsd from OSF since it installs stuff as root
3906 # by default.
3907 for ac_prog in ginstall scoinst install; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3910 if test $ac_prog = install &&
3911 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3912 # AIX install. It has an incompatible calling convention.
3913 :
3914 elif test $ac_prog = install &&
3915 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3916 # program-specific install script used by HP pwplus--don't use.
3917 :
3918 else
3919 rm -rf conftest.one conftest.two conftest.dir
3920 echo one > conftest.one
3921 echo two > conftest.two
3922 mkdir conftest.dir
3923 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3924 test -s conftest.one && test -s conftest.two &&
3925 test -s conftest.dir/conftest.one &&
3926 test -s conftest.dir/conftest.two
3927 then
3928 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3929 break 3
3930 fi
3931 fi
3932 fi
3933 done
3934 done
3935 ;;
3936 esac
3937
3938 done
3939 IFS=$as_save_IFS
3940
3941 rm -rf conftest.one conftest.two conftest.dir
3942
3943 fi
3944 if test ${ac_cv_path_install+y}; then
3945 INSTALL=$ac_cv_path_install
3946 else
3947 # As a last resort, use the slow shell script. Don't cache a
3948 # value for INSTALL within a source directory, because that will
3949 # break other packages using the cache if that directory is
3950 # removed, or if the value is a relative name.
3951 INSTALL=$ac_install_sh
3952 fi
3953 fi
3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3955 printf "%s\n" "$INSTALL" >&6; }
3956
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3960
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3962
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3964
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3966 printf %s "checking whether build environment is sane... " >&6; }
3967 # Reject unsafe characters in $srcdir or the absolute working directory
3968 # name. Accept space and tab only in the latter.
3969 am_lf='
3970 '
3971 case `pwd` in
3972 *[\\\"\#\$\&\'\`$am_lf]*)
3973 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3974 esac
3975 case $srcdir in
3976 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3977 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3978 esac
3979
3980 # Do 'set' in a subshell so we don't clobber the current shell's
3981 # arguments. Must try -L first in case configure is actually a
3982 # symlink; some systems play weird games with the mod time of symlinks
3983 # (eg FreeBSD returns the mod time of the symlink's containing
3984 # directory).
3985 if (
3986 am_has_slept=no
3987 for am_try in 1 2; do
3988 echo "timestamp, slept: $am_has_slept" > conftest.file
3989 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3990 if test "$*" = "X"; then
3991 # -L didn't work.
3992 set X `ls -t "$srcdir/configure" conftest.file`
3993 fi
3994 if test "$*" != "X $srcdir/configure conftest.file" \
3995 && test "$*" != "X conftest.file $srcdir/configure"; then
3996
3997 # If neither matched, then we have a broken ls. This can happen
3998 # if, for instance, CONFIG_SHELL is bash and it inherits a
3999 # broken ls alias from the environment. This has actually
4000 # happened. Such a system could not be considered "sane".
4001 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4002 alias in your environment" "$LINENO" 5
4003 fi
4004 if test "$2" = conftest.file || test $am_try -eq 2; then
4005 break
4006 fi
4007 # Just in case.
4008 sleep 1
4009 am_has_slept=yes
4010 done
4011 test "$2" = conftest.file
4012 )
4013 then
4014 # Ok.
4015 :
4016 else
4017 as_fn_error $? "newly created file is older than distributed files!
4018 Check your system clock" "$LINENO" 5
4019 fi
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021 printf "%s\n" "yes" >&6; }
4022 # If we didn't sleep, we still need to ensure time stamps of config.status and
4023 # generated files are strictly newer.
4024 am_sleep_pid=
4025 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4026 ( sleep 1 ) &
4027 am_sleep_pid=$!
4028 fi
4029
4030 rm -f conftest.file
4031
4032 test "$program_prefix" != NONE &&
4033 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4034 # Use a double $ so make ignores it.
4035 test "$program_suffix" != NONE &&
4036 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4037 # Double any \ or $.
4038 # By default was `s,x,x', remove it if useless.
4039 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4040 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4041
4042
4043 if test x"${MISSING+set}" != xset; then
4044 MISSING="\${SHELL} '$am_aux_dir/missing'"
4045 fi
4046 # Use eval to expand $SHELL
4047 if eval "$MISSING --is-lightweight"; then
4048 am_missing_run="$MISSING "
4049 else
4050 am_missing_run=
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4052 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4053 fi
4054
4055 if test x"${install_sh+set}" != xset; then
4056 case $am_aux_dir in
4057 *\ * | *\ *)
4058 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4059 *)
4060 install_sh="\${SHELL} $am_aux_dir/install-sh"
4061 esac
4062 fi
4063
4064 # Installed binaries are usually stripped using 'strip' when the user
4065 # run "make install-strip". However 'strip' might not be the right
4066 # tool to use in cross-compilation environments, therefore Automake
4067 # will honor the 'STRIP' environment variable to overrule this program.
4068 if test "$cross_compiling" != no; then
4069 if test -n "$ac_tool_prefix"; then
4070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4071 set dummy ${ac_tool_prefix}strip; ac_word=$2
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073 printf %s "checking for $ac_word... " >&6; }
4074 if test ${ac_cv_prog_STRIP+y}
4075 then :
4076 printf %s "(cached) " >&6
4077 else $as_nop
4078 if test -n "$STRIP"; then
4079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084 IFS=$as_save_IFS
4085 case $as_dir in #(((
4086 '') as_dir=./ ;;
4087 */) ;;
4088 *) as_dir=$as_dir/ ;;
4089 esac
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 STRIP=$ac_cv_prog_STRIP
4103 if test -n "$STRIP"; then
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4105 printf "%s\n" "$STRIP" >&6; }
4106 else
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 printf "%s\n" "no" >&6; }
4109 fi
4110
4111
4112 fi
4113 if test -z "$ac_cv_prog_STRIP"; then
4114 ac_ct_STRIP=$STRIP
4115 # Extract the first word of "strip", so it can be a program name with args.
4116 set dummy strip; ac_word=$2
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 printf %s "checking for $ac_word... " >&6; }
4119 if test ${ac_cv_prog_ac_ct_STRIP+y}
4120 then :
4121 printf %s "(cached) " >&6
4122 else $as_nop
4123 if test -n "$ac_ct_STRIP"; then
4124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 case $as_dir in #(((
4131 '') as_dir=./ ;;
4132 */) ;;
4133 *) as_dir=$as_dir/ ;;
4134 esac
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4137 ac_cv_prog_ac_ct_STRIP="strip"
4138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4148 if test -n "$ac_ct_STRIP"; then
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4150 printf "%s\n" "$ac_ct_STRIP" >&6; }
4151 else
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 printf "%s\n" "no" >&6; }
4154 fi
4155
4156 if test "x$ac_ct_STRIP" = x; then
4157 STRIP=":"
4158 else
4159 case $cross_compiling:$ac_tool_warned in
4160 yes:)
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4163 ac_tool_warned=yes ;;
4164 esac
4165 STRIP=$ac_ct_STRIP
4166 fi
4167 else
4168 STRIP="$ac_cv_prog_STRIP"
4169 fi
4170
4171 fi
4172 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4173
4174
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4176 printf %s "checking for a race-free mkdir -p... " >&6; }
4177 if test -z "$MKDIR_P"; then
4178 if test ${ac_cv_path_mkdir+y}
4179 then :
4180 printf %s "(cached) " >&6
4181 else $as_nop
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4184 do
4185 IFS=$as_save_IFS
4186 case $as_dir in #(((
4187 '') as_dir=./ ;;
4188 */) ;;
4189 *) as_dir=$as_dir/ ;;
4190 esac
4191 for ac_prog in mkdir gmkdir; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4194 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4195 'mkdir ('*'coreutils) '* | \
4196 'BusyBox '* | \
4197 'mkdir (fileutils) '4.1*)
4198 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4199 break 3;;
4200 esac
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206 fi
4207
4208 test -d ./--version && rmdir ./--version
4209 if test ${ac_cv_path_mkdir+y}; then
4210 MKDIR_P="$ac_cv_path_mkdir -p"
4211 else
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for MKDIR_P within a source directory, because that will
4214 # break other packages using the cache if that directory is
4215 # removed, or if the value is a relative name.
4216 MKDIR_P="$ac_install_sh -d"
4217 fi
4218 fi
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4220 printf "%s\n" "$MKDIR_P" >&6; }
4221
4222 for ac_prog in gawk mawk nawk awk
4223 do
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 printf %s "checking for $ac_word... " >&6; }
4228 if test ${ac_cv_prog_AWK+y}
4229 then :
4230 printf %s "(cached) " >&6
4231 else $as_nop
4232 if test -n "$AWK"; then
4233 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238 IFS=$as_save_IFS
4239 case $as_dir in #(((
4240 '') as_dir=./ ;;
4241 */) ;;
4242 *) as_dir=$as_dir/ ;;
4243 esac
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_AWK="$ac_prog"
4247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250 done
4251 done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 AWK=$ac_cv_prog_AWK
4257 if test -n "$AWK"; then
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4259 printf "%s\n" "$AWK" >&6; }
4260 else
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 printf "%s\n" "no" >&6; }
4263 fi
4264
4265
4266 test -n "$AWK" && break
4267 done
4268
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4270 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4271 set x ${MAKE-make}
4272 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4273 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 cat >conftest.make <<\_ACEOF
4278 SHELL = /bin/sh
4279 all:
4280 @echo '@@@%%%=$(MAKE)=@@@%%%'
4281 _ACEOF
4282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4283 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4284 *@@@%%%=?*=@@@%%%*)
4285 eval ac_cv_prog_make_${ac_make}_set=yes;;
4286 *)
4287 eval ac_cv_prog_make_${ac_make}_set=no;;
4288 esac
4289 rm -f conftest.make
4290 fi
4291 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 printf "%s\n" "yes" >&6; }
4294 SET_MAKE=
4295 else
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 printf "%s\n" "no" >&6; }
4298 SET_MAKE="MAKE=${MAKE-make}"
4299 fi
4300
4301 rm -rf .tst 2>/dev/null
4302 mkdir .tst 2>/dev/null
4303 if test -d .tst; then
4304 am__leading_dot=.
4305 else
4306 am__leading_dot=_
4307 fi
4308 rmdir .tst 2>/dev/null
4309
4310 DEPDIR="${am__leading_dot}deps"
4311
4312 ac_config_commands="$ac_config_commands depfiles"
4313
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4315 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4316 cat > confinc.mk << 'END'
4317 am__doit:
4318 @echo this is the am__doit target >confinc.out
4319 .PHONY: am__doit
4320 END
4321 am__include="#"
4322 am__quote=
4323 # BSD make does it like this.
4324 echo '.include "confinc.mk" # ignored' > confmf.BSD
4325 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4326 echo 'include confinc.mk # ignored' > confmf.GNU
4327 _am_result=no
4328 for s in GNU BSD; do
4329 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4330 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }
4334 case $?:`cat confinc.out 2>/dev/null` in #(
4335 '0:this is the am__doit target') :
4336 case $s in #(
4337 BSD) :
4338 am__include='.include' am__quote='"' ;; #(
4339 *) :
4340 am__include='include' am__quote='' ;;
4341 esac ;; #(
4342 *) :
4343 ;;
4344 esac
4345 if test "$am__include" != "#"; then
4346 _am_result="yes ($s style)"
4347 break
4348 fi
4349 done
4350 rm -f confinc.* confmf.*
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4352 printf "%s\n" "${_am_result}" >&6; }
4353
4354 # Check whether --enable-dependency-tracking was given.
4355 if test ${enable_dependency_tracking+y}
4356 then :
4357 enableval=$enable_dependency_tracking;
4358 fi
4359
4360 if test "x$enable_dependency_tracking" != xno; then
4361 am_depcomp="$ac_aux_dir/depcomp"
4362 AMDEPBACKSLASH='\'
4363 am__nodep='_no'
4364 fi
4365 if test "x$enable_dependency_tracking" != xno; then
4366 AMDEP_TRUE=
4367 AMDEP_FALSE='#'
4368 else
4369 AMDEP_TRUE='#'
4370 AMDEP_FALSE=
4371 fi
4372
4373
4374 # Check whether --enable-silent-rules was given.
4375 if test ${enable_silent_rules+y}
4376 then :
4377 enableval=$enable_silent_rules;
4378 fi
4379
4380 case $enable_silent_rules in # (((
4381 yes) AM_DEFAULT_VERBOSITY=0;;
4382 no) AM_DEFAULT_VERBOSITY=1;;
4383 *) AM_DEFAULT_VERBOSITY=1;;
4384 esac
4385 am_make=${MAKE-make}
4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4387 printf %s "checking whether $am_make supports nested variables... " >&6; }
4388 if test ${am_cv_make_support_nested_variables+y}
4389 then :
4390 printf %s "(cached) " >&6
4391 else $as_nop
4392 if printf "%s\n" 'TRUE=$(BAR$(V))
4393 BAR0=false
4394 BAR1=true
4395 V=1
4396 am__doit:
4397 @$(TRUE)
4398 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4399 am_cv_make_support_nested_variables=yes
4400 else
4401 am_cv_make_support_nested_variables=no
4402 fi
4403 fi
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4405 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4406 if test $am_cv_make_support_nested_variables = yes; then
4407 AM_V='$(V)'
4408 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4409 else
4410 AM_V=$AM_DEFAULT_VERBOSITY
4411 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4412 fi
4413 AM_BACKSLASH='\'
4414
4415 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4416 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4417 # is not polluted with repeated "-I."
4418 am__isrc=' -I$(srcdir)'
4419 # test to see if srcdir already configured
4420 if test -f $srcdir/config.status; then
4421 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4422 fi
4423 fi
4424
4425 # test whether we have cygpath
4426 if test -z "$CYGPATH_W"; then
4427 if (cygpath --version) >/dev/null 2>/dev/null; then
4428 CYGPATH_W='cygpath -w'
4429 else
4430 CYGPATH_W=echo
4431 fi
4432 fi
4433
4434
4435 # Define the identity of the package.
4436 PACKAGE='libXau'
4437 VERSION='1.0.11'
4438
4439
4440 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4441
4442
4443 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4444
4445 # Some tools Automake needs.
4446
4447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4448
4449
4450 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4451
4452
4453 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4454
4455
4456 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4457
4458
4459 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4460
4461 # For better backward compatibility. To be removed once Automake 1.9.x
4462 # dies out for good. For more background, see:
4463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4464 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4465 mkdir_p='$(MKDIR_P)'
4466
4467 # We need awk for the "check" target (and possibly the TAP driver). The
4468 # system "awk" is bad on some platforms.
4469 # Always define AMTAR for backward compatibility. Yes, it's still used
4470 # in the wild :-( We should find a proper way to deprecate it ...
4471 AMTAR='$${TAR-tar}'
4472
4473
4474 # We'll loop over all known methods to create a tar archive until one works.
4475 _am_tools='gnutar pax cpio none'
4476
4477 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4478
4479
4480
4481
4482
4483 depcc="$CC" am_compiler_list=
4484
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4486 printf %s "checking dependency style of $depcc... " >&6; }
4487 if test ${am_cv_CC_dependencies_compiler_type+y}
4488 then :
4489 printf %s "(cached) " >&6
4490 else $as_nop
4491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4492 # We make a subdir and do the tests there. Otherwise we can end up
4493 # making bogus files that we don't know about and never remove. For
4494 # instance it was reported that on HP-UX the gcc test will end up
4495 # making a dummy file named 'D' -- because '-MD' means "put the output
4496 # in D".
4497 rm -rf conftest.dir
4498 mkdir conftest.dir
4499 # Copy depcomp to subdir because otherwise we won't find it if we're
4500 # using a relative directory.
4501 cp "$am_depcomp" conftest.dir
4502 cd conftest.dir
4503 # We will build objects and dependencies in a subdirectory because
4504 # it helps to detect inapplicable dependency modes. For instance
4505 # both Tru64's cc and ICC support -MD to output dependencies as a
4506 # side effect of compilation, but ICC will put the dependencies in
4507 # the current directory while Tru64 will put them in the object
4508 # directory.
4509 mkdir sub
4510
4511 am_cv_CC_dependencies_compiler_type=none
4512 if test "$am_compiler_list" = ""; then
4513 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4514 fi
4515 am__universal=false
4516 case " $depcc " in #(
4517 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4518 esac
4519
4520 for depmode in $am_compiler_list; do
4521 # Setup a source with many dependencies, because some compilers
4522 # like to wrap large dependency lists on column 80 (with \), and
4523 # we should not choose a depcomp mode which is confused by this.
4524 #
4525 # We need to recreate these files for each test, as the compiler may
4526 # overwrite some of them when testing with obscure command lines.
4527 # This happens at least with the AIX C compiler.
4528 : > sub/conftest.c
4529 for i in 1 2 3 4 5 6; do
4530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4531 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4532 # Solaris 10 /bin/sh.
4533 echo '/* dummy */' > sub/conftst$i.h
4534 done
4535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4536
4537 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4538 # mode. It turns out that the SunPro C++ compiler does not properly
4539 # handle '-M -o', and we need to detect this. Also, some Intel
4540 # versions had trouble with output in subdirs.
4541 am__obj=sub/conftest.${OBJEXT-o}
4542 am__minus_obj="-o $am__obj"
4543 case $depmode in
4544 gcc)
4545 # This depmode causes a compiler race in universal mode.
4546 test "$am__universal" = false || continue
4547 ;;
4548 nosideeffect)
4549 # After this tag, mechanisms are not by side-effect, so they'll
4550 # only be used when explicitly requested.
4551 if test "x$enable_dependency_tracking" = xyes; then
4552 continue
4553 else
4554 break
4555 fi
4556 ;;
4557 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4558 # This compiler won't grok '-c -o', but also, the minuso test has
4559 # not run yet. These depmodes are late enough in the game, and
4560 # so weak that their functioning should not be impacted.
4561 am__obj=conftest.${OBJEXT-o}
4562 am__minus_obj=
4563 ;;
4564 none) break ;;
4565 esac
4566 if depmode=$depmode \
4567 source=sub/conftest.c object=$am__obj \
4568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4569 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4570 >/dev/null 2>conftest.err &&
4571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4573 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4575 # icc doesn't choke on unknown options, it will just issue warnings
4576 # or remarks (even with -Werror). So we grep stderr for any message
4577 # that says an option was ignored or not supported.
4578 # When given -MP, icc 7.0 and 7.1 complain thusly:
4579 # icc: Command line warning: ignoring option '-M'; no argument required
4580 # The diagnosis changed in icc 8.0:
4581 # icc: Command line remark: option '-MP' not supported
4582 if (grep 'ignoring option' conftest.err ||
4583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4584 am_cv_CC_dependencies_compiler_type=$depmode
4585 break
4586 fi
4587 fi
4588 done
4589
4590 cd ..
4591 rm -rf conftest.dir
4592 else
4593 am_cv_CC_dependencies_compiler_type=none
4594 fi
4595
4596 fi
4597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4598 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4599 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4600
4601 if
4602 test "x$enable_dependency_tracking" != xno \
4603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4604 am__fastdepCC_TRUE=
4605 am__fastdepCC_FALSE='#'
4606 else
4607 am__fastdepCC_TRUE='#'
4608 am__fastdepCC_FALSE=
4609 fi
4610
4611
4612 # Variables for tags utilities; see am/tags.am
4613 if test -z "$CTAGS"; then
4614 CTAGS=ctags
4615 fi
4616
4617 if test -z "$ETAGS"; then
4618 ETAGS=etags
4619 fi
4620
4621 if test -z "$CSCOPE"; then
4622 CSCOPE=cscope
4623 fi
4624
4625
4626
4627 # POSIX will say in a future version that running "rm -f" with no argument
4628 # is OK; and we want to be able to make that assumption in our Makefile
4629 # recipes. So use an aggressive probe to check that the usage we want is
4630 # actually supported "in the wild" to an acceptable degree.
4631 # See automake bug#10828.
4632 # To make any issue more visible, cause the running configure to be aborted
4633 # by default if the 'rm' program in use doesn't match our expectations; the
4634 # user can still override this though.
4635 if rm -f && rm -fr && rm -rf; then : OK; else
4636 cat >&2 <<'END'
4637 Oops!
4638
4639 Your 'rm' program seems unable to run without file operands specified
4640 on the command line, even when the '-f' option is present. This is contrary
4641 to the behaviour of most rm programs out there, and not conforming with
4642 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4643
4644 Please tell bug-automake@gnu.org about your system, including the value
4645 of your $PATH and any error possibly output before this message. This
4646 can help us improve future automake versions.
4647
4648 END
4649 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4650 echo 'Configuration will proceed anyway, since you have set the' >&2
4651 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4652 echo >&2
4653 else
4654 cat >&2 <<'END'
4655 Aborting the configuration process, to ensure you take notice of the issue.
4656
4657 You can download and install GNU coreutils to get an 'rm' implementation
4658 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4659
4660 If you want to complete the configuration process using your problematic
4661 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4662 to "yes", and re-run configure.
4663
4664 END
4665 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4666 fi
4667 fi
4668
4669
4670 # Initialize libtool
4671
4672
4673 # Make sure we can run config.sub.
4674 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4675 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4676
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4678 printf %s "checking build system type... " >&6; }
4679 if test ${ac_cv_build+y}
4680 then :
4681 printf %s "(cached) " >&6
4682 else $as_nop
4683 ac_build_alias=$build_alias
4684 test "x$ac_build_alias" = x &&
4685 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4686 test "x$ac_build_alias" = x &&
4687 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4688 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4689 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4690
4691 fi
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4693 printf "%s\n" "$ac_cv_build" >&6; }
4694 case $ac_cv_build in
4695 *-*-*) ;;
4696 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4697 esac
4698 build=$ac_cv_build
4699 ac_save_IFS=$IFS; IFS='-'
4700 set x $ac_cv_build
4701 shift
4702 build_cpu=$1
4703 build_vendor=$2
4704 shift; shift
4705 # Remember, the first character of IFS is used to create $*,
4706 # except with old shells:
4707 build_os=$*
4708 IFS=$ac_save_IFS
4709 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4710
4711
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4713 printf %s "checking host system type... " >&6; }
4714 if test ${ac_cv_host+y}
4715 then :
4716 printf %s "(cached) " >&6
4717 else $as_nop
4718 if test "x$host_alias" = x; then
4719 ac_cv_host=$ac_cv_build
4720 else
4721 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4722 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4723 fi
4724
4725 fi
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4727 printf "%s\n" "$ac_cv_host" >&6; }
4728 case $ac_cv_host in
4729 *-*-*) ;;
4730 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4731 esac
4732 host=$ac_cv_host
4733 ac_save_IFS=$IFS; IFS='-'
4734 set x $ac_cv_host
4735 shift
4736 host_cpu=$1
4737 host_vendor=$2
4738 shift; shift
4739 # Remember, the first character of IFS is used to create $*,
4740 # except with old shells:
4741 host_os=$*
4742 IFS=$ac_save_IFS
4743 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4744
4745
4746 enable_win32_dll=yes
4747
4748 case $host in
4749 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}as; ac_word=$2
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 printf %s "checking for $ac_word... " >&6; }
4755 if test ${ac_cv_prog_AS+y}
4756 then :
4757 printf %s "(cached) " >&6
4758 else $as_nop
4759 if test -n "$AS"; then
4760 ac_cv_prog_AS="$AS" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 case $as_dir in #(((
4767 '') as_dir=./ ;;
4768 */) ;;
4769 *) as_dir=$as_dir/ ;;
4770 esac
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_AS="${ac_tool_prefix}as"
4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 AS=$ac_cv_prog_AS
4784 if test -n "$AS"; then
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4786 printf "%s\n" "$AS" >&6; }
4787 else
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 printf "%s\n" "no" >&6; }
4790 fi
4791
4792
4793 fi
4794 if test -z "$ac_cv_prog_AS"; then
4795 ac_ct_AS=$AS
4796 # Extract the first word of "as", so it can be a program name with args.
4797 set dummy as; ac_word=$2
4798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 printf %s "checking for $ac_word... " >&6; }
4800 if test ${ac_cv_prog_ac_ct_AS+y}
4801 then :
4802 printf %s "(cached) " >&6
4803 else $as_nop
4804 if test -n "$ac_ct_AS"; then
4805 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810 IFS=$as_save_IFS
4811 case $as_dir in #(((
4812 '') as_dir=./ ;;
4813 */) ;;
4814 *) as_dir=$as_dir/ ;;
4815 esac
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_ac_ct_AS="as"
4819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4820 break 2
4821 fi
4822 done
4823 done
4824 IFS=$as_save_IFS
4825
4826 fi
4827 fi
4828 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4829 if test -n "$ac_ct_AS"; then
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4831 printf "%s\n" "$ac_ct_AS" >&6; }
4832 else
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 printf "%s\n" "no" >&6; }
4835 fi
4836
4837 if test "x$ac_ct_AS" = x; then
4838 AS="false"
4839 else
4840 case $cross_compiling:$ac_tool_warned in
4841 yes:)
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844 ac_tool_warned=yes ;;
4845 esac
4846 AS=$ac_ct_AS
4847 fi
4848 else
4849 AS="$ac_cv_prog_AS"
4850 fi
4851
4852 if test -n "$ac_tool_prefix"; then
4853 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4854 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 printf %s "checking for $ac_word... " >&6; }
4857 if test ${ac_cv_prog_DLLTOOL+y}
4858 then :
4859 printf %s "(cached) " >&6
4860 else $as_nop
4861 if test -n "$DLLTOOL"; then
4862 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4866 do
4867 IFS=$as_save_IFS
4868 case $as_dir in #(((
4869 '') as_dir=./ ;;
4870 */) ;;
4871 *) as_dir=$as_dir/ ;;
4872 esac
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 DLLTOOL=$ac_cv_prog_DLLTOOL
4886 if test -n "$DLLTOOL"; then
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4888 printf "%s\n" "$DLLTOOL" >&6; }
4889 else
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 printf "%s\n" "no" >&6; }
4892 fi
4893
4894
4895 fi
4896 if test -z "$ac_cv_prog_DLLTOOL"; then
4897 ac_ct_DLLTOOL=$DLLTOOL
4898 # Extract the first word of "dlltool", so it can be a program name with args.
4899 set dummy dlltool; ac_word=$2
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 printf %s "checking for $ac_word... " >&6; }
4902 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
4903 then :
4904 printf %s "(cached) " >&6
4905 else $as_nop
4906 if test -n "$ac_ct_DLLTOOL"; then
4907 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4908 else
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912 IFS=$as_save_IFS
4913 case $as_dir in #(((
4914 '') as_dir=./ ;;
4915 */) ;;
4916 *) as_dir=$as_dir/ ;;
4917 esac
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4931 if test -n "$ac_ct_DLLTOOL"; then
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4933 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
4934 else
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 printf "%s\n" "no" >&6; }
4937 fi
4938
4939 if test "x$ac_ct_DLLTOOL" = x; then
4940 DLLTOOL="false"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4946 ac_tool_warned=yes ;;
4947 esac
4948 DLLTOOL=$ac_ct_DLLTOOL
4949 fi
4950 else
4951 DLLTOOL="$ac_cv_prog_DLLTOOL"
4952 fi
4953
4954 if test -n "$ac_tool_prefix"; then
4955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 printf %s "checking for $ac_word... " >&6; }
4959 if test ${ac_cv_prog_OBJDUMP+y}
4960 then :
4961 printf %s "(cached) " >&6
4962 else $as_nop
4963 if test -n "$OBJDUMP"; then
4964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969 IFS=$as_save_IFS
4970 case $as_dir in #(((
4971 '') as_dir=./ ;;
4972 */) ;;
4973 *) as_dir=$as_dir/ ;;
4974 esac
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4977 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4979 break 2
4980 fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 fi
4986 fi
4987 OBJDUMP=$ac_cv_prog_OBJDUMP
4988 if test -n "$OBJDUMP"; then
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4990 printf "%s\n" "$OBJDUMP" >&6; }
4991 else
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 printf "%s\n" "no" >&6; }
4994 fi
4995
4996
4997 fi
4998 if test -z "$ac_cv_prog_OBJDUMP"; then
4999 ac_ct_OBJDUMP=$OBJDUMP
5000 # Extract the first word of "objdump", so it can be a program name with args.
5001 set dummy objdump; ac_word=$2
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 printf %s "checking for $ac_word... " >&6; }
5004 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else $as_nop
5008 if test -n "$ac_ct_OBJDUMP"; then
5009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 case $as_dir in #(((
5016 '') as_dir=./ ;;
5017 */) ;;
5018 *) as_dir=$as_dir/ ;;
5019 esac
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5033 if test -n "$ac_ct_OBJDUMP"; then
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5035 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5036 else
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 printf "%s\n" "no" >&6; }
5039 fi
5040
5041 if test "x$ac_ct_OBJDUMP" = x; then
5042 OBJDUMP="false"
5043 else
5044 case $cross_compiling:$ac_tool_warned in
5045 yes:)
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned=yes ;;
5049 esac
5050 OBJDUMP=$ac_ct_OBJDUMP
5051 fi
5052 else
5053 OBJDUMP="$ac_cv_prog_OBJDUMP"
5054 fi
5055
5056 ;;
5057 esac
5058
5059 test -z "$AS" && AS=as
5060
5061
5062
5063
5064
5065 test -z "$DLLTOOL" && DLLTOOL=dlltool
5066
5067
5068
5069
5070
5071 test -z "$OBJDUMP" && OBJDUMP=objdump
5072
5073
5074
5075
5076
5077
5078
5079 case `pwd` in
5080 *\ * | *\ *)
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5082 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5083 esac
5084
5085
5086
5087 macro_version='2.4.7'
5088 macro_revision='2.4.7'
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103 ltmain=$ac_aux_dir/ltmain.sh
5104
5105 # Backslashify metacharacters that are still active within
5106 # double-quoted strings.
5107 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5108
5109 # Same as above, but do not quote variable references.
5110 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5111
5112 # Sed substitution to delay expansion of an escaped shell variable in a
5113 # double_quote_subst'ed string.
5114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5115
5116 # Sed substitution to delay expansion of an escaped single quote.
5117 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5118
5119 # Sed substitution to avoid accidental globbing in evaled expressions
5120 no_glob_subst='s/\*/\\\*/g'
5121
5122 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5125
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5127 printf %s "checking how to print strings... " >&6; }
5128 # Test print first, because it will be a builtin if present.
5129 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5130 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5131 ECHO='print -r --'
5132 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5133 ECHO='printf %s\n'
5134 else
5135 # Use this function as a fallback that always works.
5136 func_fallback_echo ()
5137 {
5138 eval 'cat <<_LTECHO_EOF
5139 $1
5140 _LTECHO_EOF'
5141 }
5142 ECHO='func_fallback_echo'
5143 fi
5144
5145 # func_echo_all arg...
5146 # Invoke $ECHO with all args, space-separated.
5147 func_echo_all ()
5148 {
5149 $ECHO ""
5150 }
5151
5152 case $ECHO in
5153 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5154 printf "%s\n" "printf" >&6; } ;;
5155 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5156 printf "%s\n" "print -r" >&6; } ;;
5157 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5158 printf "%s\n" "cat" >&6; } ;;
5159 esac
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5175 printf %s "checking for a sed that does not truncate output... " >&6; }
5176 if test ${ac_cv_path_SED+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else $as_nop
5180 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5181 for ac_i in 1 2 3 4 5 6 7; do
5182 ac_script="$ac_script$as_nl$ac_script"
5183 done
5184 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5185 { ac_script=; unset ac_script;}
5186 if test -z "$SED"; then
5187 ac_path_SED_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 case $as_dir in #(((
5194 '') as_dir=./ ;;
5195 */) ;;
5196 *) as_dir=$as_dir/ ;;
5197 esac
5198 for ac_prog in sed gsed
5199 do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_SED" || continue
5203 # Check for GNU ac_path_SED and select it if it is found.
5204 # Check for GNU $ac_path_SED
5205 case `"$ac_path_SED" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5208 *)
5209 ac_count=0
5210 printf %s 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 printf "%s\n" '' >> "conftest.nl"
5217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_SED_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_SED="$ac_path_SED"
5223 ac_path_SED_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231 $ac_path_SED_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_SED"; then
5237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5238 fi
5239 else
5240 ac_cv_path_SED=$SED
5241 fi
5242
5243 fi
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5245 printf "%s\n" "$ac_cv_path_SED" >&6; }
5246 SED="$ac_cv_path_SED"
5247 rm -f conftest.sed
5248
5249 test -z "$SED" && SED=sed
5250 Xsed="$SED -e 1s/^X//"
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 printf %s "checking for grep that handles long lines and -e... " >&6; }
5264 if test ${ac_cv_path_GREP+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else $as_nop
5268 if test -z "$GREP"; then
5269 ac_path_GREP_found=false
5270 # Loop through the user's path and test for each of PROGNAME-LIST
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273 do
5274 IFS=$as_save_IFS
5275 case $as_dir in #(((
5276 '') as_dir=./ ;;
5277 */) ;;
5278 *) as_dir=$as_dir/ ;;
5279 esac
5280 for ac_prog in grep ggrep
5281 do
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5284 as_fn_executable_p "$ac_path_GREP" || continue
5285 # Check for GNU ac_path_GREP and select it if it is found.
5286 # Check for GNU $ac_path_GREP
5287 case `"$ac_path_GREP" --version 2>&1` in
5288 *GNU*)
5289 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5290 *)
5291 ac_count=0
5292 printf %s 0123456789 >"conftest.in"
5293 while :
5294 do
5295 cat "conftest.in" "conftest.in" >"conftest.tmp"
5296 mv "conftest.tmp" "conftest.in"
5297 cp "conftest.in" "conftest.nl"
5298 printf "%s\n" 'GREP' >> "conftest.nl"
5299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5301 as_fn_arith $ac_count + 1 && ac_count=$as_val
5302 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5303 # Best one so far, save it but keep looking for a better one
5304 ac_cv_path_GREP="$ac_path_GREP"
5305 ac_path_GREP_max=$ac_count
5306 fi
5307 # 10*(2^10) chars as input seems more than enough
5308 test $ac_count -gt 10 && break
5309 done
5310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5311 esac
5312
5313 $ac_path_GREP_found && break 3
5314 done
5315 done
5316 done
5317 IFS=$as_save_IFS
5318 if test -z "$ac_cv_path_GREP"; then
5319 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5320 fi
5321 else
5322 ac_cv_path_GREP=$GREP
5323 fi
5324
5325 fi
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5327 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5328 GREP="$ac_cv_path_GREP"
5329
5330
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5332 printf %s "checking for egrep... " >&6; }
5333 if test ${ac_cv_path_EGREP+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else $as_nop
5337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5338 then ac_cv_path_EGREP="$GREP -E"
5339 else
5340 if test -z "$EGREP"; then
5341 ac_path_EGREP_found=false
5342 # Loop through the user's path and test for each of PROGNAME-LIST
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5345 do
5346 IFS=$as_save_IFS
5347 case $as_dir in #(((
5348 '') as_dir=./ ;;
5349 */) ;;
5350 *) as_dir=$as_dir/ ;;
5351 esac
5352 for ac_prog in egrep
5353 do
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5356 as_fn_executable_p "$ac_path_EGREP" || continue
5357 # Check for GNU ac_path_EGREP and select it if it is found.
5358 # Check for GNU $ac_path_EGREP
5359 case `"$ac_path_EGREP" --version 2>&1` in
5360 *GNU*)
5361 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5362 *)
5363 ac_count=0
5364 printf %s 0123456789 >"conftest.in"
5365 while :
5366 do
5367 cat "conftest.in" "conftest.in" >"conftest.tmp"
5368 mv "conftest.tmp" "conftest.in"
5369 cp "conftest.in" "conftest.nl"
5370 printf "%s\n" 'EGREP' >> "conftest.nl"
5371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5373 as_fn_arith $ac_count + 1 && ac_count=$as_val
5374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5375 # Best one so far, save it but keep looking for a better one
5376 ac_cv_path_EGREP="$ac_path_EGREP"
5377 ac_path_EGREP_max=$ac_count
5378 fi
5379 # 10*(2^10) chars as input seems more than enough
5380 test $ac_count -gt 10 && break
5381 done
5382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5383 esac
5384
5385 $ac_path_EGREP_found && break 3
5386 done
5387 done
5388 done
5389 IFS=$as_save_IFS
5390 if test -z "$ac_cv_path_EGREP"; then
5391 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5392 fi
5393 else
5394 ac_cv_path_EGREP=$EGREP
5395 fi
5396
5397 fi
5398 fi
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5400 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5401 EGREP="$ac_cv_path_EGREP"
5402
5403
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5405 printf %s "checking for fgrep... " >&6; }
5406 if test ${ac_cv_path_FGREP+y}
5407 then :
5408 printf %s "(cached) " >&6
5409 else $as_nop
5410 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5411 then ac_cv_path_FGREP="$GREP -F"
5412 else
5413 if test -z "$FGREP"; then
5414 ac_path_FGREP_found=false
5415 # Loop through the user's path and test for each of PROGNAME-LIST
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5418 do
5419 IFS=$as_save_IFS
5420 case $as_dir in #(((
5421 '') as_dir=./ ;;
5422 */) ;;
5423 *) as_dir=$as_dir/ ;;
5424 esac
5425 for ac_prog in fgrep
5426 do
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5429 as_fn_executable_p "$ac_path_FGREP" || continue
5430 # Check for GNU ac_path_FGREP and select it if it is found.
5431 # Check for GNU $ac_path_FGREP
5432 case `"$ac_path_FGREP" --version 2>&1` in
5433 *GNU*)
5434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5435 *)
5436 ac_count=0
5437 printf %s 0123456789 >"conftest.in"
5438 while :
5439 do
5440 cat "conftest.in" "conftest.in" >"conftest.tmp"
5441 mv "conftest.tmp" "conftest.in"
5442 cp "conftest.in" "conftest.nl"
5443 printf "%s\n" 'FGREP' >> "conftest.nl"
5444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5446 as_fn_arith $ac_count + 1 && ac_count=$as_val
5447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5448 # Best one so far, save it but keep looking for a better one
5449 ac_cv_path_FGREP="$ac_path_FGREP"
5450 ac_path_FGREP_max=$ac_count
5451 fi
5452 # 10*(2^10) chars as input seems more than enough
5453 test $ac_count -gt 10 && break
5454 done
5455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5456 esac
5457
5458 $ac_path_FGREP_found && break 3
5459 done
5460 done
5461 done
5462 IFS=$as_save_IFS
5463 if test -z "$ac_cv_path_FGREP"; then
5464 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5465 fi
5466 else
5467 ac_cv_path_FGREP=$FGREP
5468 fi
5469
5470 fi
5471 fi
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5473 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5474 FGREP="$ac_cv_path_FGREP"
5475
5476
5477 test -z "$GREP" && GREP=grep
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 # Check whether --with-gnu-ld was given.
5498 if test ${with_gnu_ld+y}
5499 then :
5500 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5501 else $as_nop
5502 with_gnu_ld=no
5503 fi
5504
5505 ac_prog=ld
5506 if test yes = "$GCC"; then
5507 # Check if gcc -print-prog-name=ld gives a path.
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5509 printf %s "checking for ld used by $CC... " >&6; }
5510 case $host in
5511 *-*-mingw*)
5512 # gcc leaves a trailing carriage return, which upsets mingw
5513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5514 *)
5515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5516 esac
5517 case $ac_prog in
5518 # Accept absolute paths.
5519 [\\/]* | ?:[\\/]*)
5520 re_direlt='/[^/][^/]*/\.\./'
5521 # Canonicalize the pathname of ld
5522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5525 done
5526 test -z "$LD" && LD=$ac_prog
5527 ;;
5528 "")
5529 # If it fails, then pretend we aren't using GCC.
5530 ac_prog=ld
5531 ;;
5532 *)
5533 # If it is relative, then search for the first ld in PATH.
5534 with_gnu_ld=unknown
5535 ;;
5536 esac
5537 elif test yes = "$with_gnu_ld"; then
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5539 printf %s "checking for GNU ld... " >&6; }
5540 else
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5542 printf %s "checking for non-GNU ld... " >&6; }
5543 fi
5544 if test ${lt_cv_path_LD+y}
5545 then :
5546 printf %s "(cached) " >&6
5547 else $as_nop
5548 if test -z "$LD"; then
5549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5550 for ac_dir in $PATH; do
5551 IFS=$lt_save_ifs
5552 test -z "$ac_dir" && ac_dir=.
5553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5554 lt_cv_path_LD=$ac_dir/$ac_prog
5555 # Check to see if the program is GNU ld. I'd rather use --version,
5556 # but apparently some variants of GNU ld only accept -v.
5557 # Break only if it was the GNU/non-GNU ld that we prefer.
5558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560 test no != "$with_gnu_ld" && break
5561 ;;
5562 *)
5563 test yes != "$with_gnu_ld" && break
5564 ;;
5565 esac
5566 fi
5567 done
5568 IFS=$lt_save_ifs
5569 else
5570 lt_cv_path_LD=$LD # Let the user override the test with a path.
5571 fi
5572 fi
5573
5574 LD=$lt_cv_path_LD
5575 if test -n "$LD"; then
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5577 printf "%s\n" "$LD" >&6; }
5578 else
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 printf "%s\n" "no" >&6; }
5581 fi
5582 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5584 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5585 if test ${lt_cv_prog_gnu_ld+y}
5586 then :
5587 printf %s "(cached) " >&6
5588 else $as_nop
5589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5590 case `$LD -v 2>&1 </dev/null` in
5591 *GNU* | *'with BFD'*)
5592 lt_cv_prog_gnu_ld=yes
5593 ;;
5594 *)
5595 lt_cv_prog_gnu_ld=no
5596 ;;
5597 esac
5598 fi
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5600 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5601 with_gnu_ld=$lt_cv_prog_gnu_ld
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5612 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5613 if test ${lt_cv_path_NM+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else $as_nop
5617 if test -n "$NM"; then
5618 # Let the user override the test.
5619 lt_cv_path_NM=$NM
5620 else
5621 lt_nm_to_check=${ac_tool_prefix}nm
5622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5623 lt_nm_to_check="$lt_nm_to_check nm"
5624 fi
5625 for lt_tmp_nm in $lt_nm_to_check; do
5626 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5628 IFS=$lt_save_ifs
5629 test -z "$ac_dir" && ac_dir=.
5630 tmp_nm=$ac_dir/$lt_tmp_nm
5631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5632 # Check to see if the nm accepts a BSD-compat flag.
5633 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5634 # nm: unknown option "B" ignored
5635 # Tru64's nm complains that /dev/null is an invalid object file
5636 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5637 case $build_os in
5638 mingw*) lt_bad_file=conftest.nm/nofile ;;
5639 *) lt_bad_file=/dev/null ;;
5640 esac
5641 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5642 *$lt_bad_file* | *'Invalid file or object type'*)
5643 lt_cv_path_NM="$tmp_nm -B"
5644 break 2
5645 ;;
5646 *)
5647 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5648 */dev/null*)
5649 lt_cv_path_NM="$tmp_nm -p"
5650 break 2
5651 ;;
5652 *)
5653 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5654 continue # so that we can try to find one that supports BSD flags
5655 ;;
5656 esac
5657 ;;
5658 esac
5659 fi
5660 done
5661 IFS=$lt_save_ifs
5662 done
5663 : ${lt_cv_path_NM=no}
5664 fi
5665 fi
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5667 printf "%s\n" "$lt_cv_path_NM" >&6; }
5668 if test no != "$lt_cv_path_NM"; then
5669 NM=$lt_cv_path_NM
5670 else
5671 # Didn't find any BSD compatible name lister, look for dumpbin.
5672 if test -n "$DUMPBIN"; then :
5673 # Let the user override the test.
5674 else
5675 if test -n "$ac_tool_prefix"; then
5676 for ac_prog in dumpbin "link -dump"
5677 do
5678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5679 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_DUMPBIN+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else $as_nop
5686 if test -n "$DUMPBIN"; then
5687 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 DUMPBIN=$ac_cv_prog_DUMPBIN
5711 if test -n "$DUMPBIN"; then
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5713 printf "%s\n" "$DUMPBIN" >&6; }
5714 else
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 printf "%s\n" "no" >&6; }
5717 fi
5718
5719
5720 test -n "$DUMPBIN" && break
5721 done
5722 fi
5723 if test -z "$DUMPBIN"; then
5724 ac_ct_DUMPBIN=$DUMPBIN
5725 for ac_prog in dumpbin "link -dump"
5726 do
5727 # Extract the first word of "$ac_prog", so it can be a program name with args.
5728 set dummy $ac_prog; ac_word=$2
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 printf %s "checking for $ac_word... " >&6; }
5731 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5732 then :
5733 printf %s "(cached) " >&6
5734 else $as_nop
5735 if test -n "$ac_ct_DUMPBIN"; then
5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 case $as_dir in #(((
5743 '') as_dir=./ ;;
5744 */) ;;
5745 *) as_dir=$as_dir/ ;;
5746 esac
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5749 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5751 break 2
5752 fi
5753 done
5754 done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5760 if test -n "$ac_ct_DUMPBIN"; then
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5762 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5763 else
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 printf "%s\n" "no" >&6; }
5766 fi
5767
5768
5769 test -n "$ac_ct_DUMPBIN" && break
5770 done
5771
5772 if test "x$ac_ct_DUMPBIN" = x; then
5773 DUMPBIN=":"
5774 else
5775 case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781 DUMPBIN=$ac_ct_DUMPBIN
5782 fi
5783 fi
5784
5785 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5786 *COFF*)
5787 DUMPBIN="$DUMPBIN -symbols -headers"
5788 ;;
5789 *)
5790 DUMPBIN=:
5791 ;;
5792 esac
5793 fi
5794
5795 if test : != "$DUMPBIN"; then
5796 NM=$DUMPBIN
5797 fi
5798 fi
5799 test -z "$NM" && NM=nm
5800
5801
5802
5803
5804
5805
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5807 printf %s "checking the name lister ($NM) interface... " >&6; }
5808 if test ${lt_cv_nm_interface+y}
5809 then :
5810 printf %s "(cached) " >&6
5811 else $as_nop
5812 lt_cv_nm_interface="BSD nm"
5813 echo "int some_variable = 0;" > conftest.$ac_ext
5814 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5815 (eval "$ac_compile" 2>conftest.err)
5816 cat conftest.err >&5
5817 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5818 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5819 cat conftest.err >&5
5820 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5821 cat conftest.out >&5
5822 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5823 lt_cv_nm_interface="MS dumpbin"
5824 fi
5825 rm -f conftest*
5826 fi
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5828 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5829
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5831 printf %s "checking whether ln -s works... " >&6; }
5832 LN_S=$as_ln_s
5833 if test "$LN_S" = "ln -s"; then
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5835 printf "%s\n" "yes" >&6; }
5836 else
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5838 printf "%s\n" "no, using $LN_S" >&6; }
5839 fi
5840
5841 # find the maximum length of command line arguments
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5843 printf %s "checking the maximum length of command line arguments... " >&6; }
5844 if test ${lt_cv_sys_max_cmd_len+y}
5845 then :
5846 printf %s "(cached) " >&6
5847 else $as_nop
5848 i=0
5849 teststring=ABCD
5850
5851 case $build_os in
5852 msdosdjgpp*)
5853 # On DJGPP, this test can blow up pretty badly due to problems in libc
5854 # (any single argument exceeding 2000 bytes causes a buffer overrun
5855 # during glob expansion). Even if it were fixed, the result of this
5856 # check would be larger than it should be.
5857 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5858 ;;
5859
5860 gnu*)
5861 # Under GNU Hurd, this test is not required because there is
5862 # no limit to the length of command line arguments.
5863 # Libtool will interpret -1 as no limit whatsoever
5864 lt_cv_sys_max_cmd_len=-1;
5865 ;;
5866
5867 cygwin* | mingw* | cegcc*)
5868 # On Win9x/ME, this test blows up -- it succeeds, but takes
5869 # about 5 minutes as the teststring grows exponentially.
5870 # Worse, since 9x/ME are not pre-emptively multitasking,
5871 # you end up with a "frozen" computer, even though with patience
5872 # the test eventually succeeds (with a max line length of 256k).
5873 # Instead, let's just punt: use the minimum linelength reported by
5874 # all of the supported platforms: 8192 (on NT/2K/XP).
5875 lt_cv_sys_max_cmd_len=8192;
5876 ;;
5877
5878 mint*)
5879 # On MiNT this can take a long time and run out of memory.
5880 lt_cv_sys_max_cmd_len=8192;
5881 ;;
5882
5883 mint*)
5884 # On MiNT this can take a long time and run out of memory.
5885 lt_cv_sys_max_cmd_len=8192;
5886 ;;
5887
5888 amigaos*)
5889 # On AmigaOS with pdksh, this test takes hours, literally.
5890 # So we just punt and use a minimum line length of 8192.
5891 lt_cv_sys_max_cmd_len=8192;
5892 ;;
5893
5894 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5895 # This has been around since 386BSD, at least. Likely further.
5896 if test -x /sbin/sysctl; then
5897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5898 elif test -x /usr/sbin/sysctl; then
5899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5900 else
5901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5902 fi
5903 # And add a safety zone
5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5906 ;;
5907
5908 interix*)
5909 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5910 lt_cv_sys_max_cmd_len=196608
5911 ;;
5912
5913 os2*)
5914 # The test takes a long time on OS/2.
5915 lt_cv_sys_max_cmd_len=8192
5916 ;;
5917
5918 osf*)
5919 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5920 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5921 # nice to cause kernel panics so lets avoid the loop below.
5922 # First set a reasonable default.
5923 lt_cv_sys_max_cmd_len=16384
5924 #
5925 if test -x /sbin/sysconfig; then
5926 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5927 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5928 esac
5929 fi
5930 ;;
5931 sco3.2v5*)
5932 lt_cv_sys_max_cmd_len=102400
5933 ;;
5934 sysv5* | sco5v6* | sysv4.2uw2*)
5935 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5936 if test -n "$kargmax"; then
5937 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5938 else
5939 lt_cv_sys_max_cmd_len=32768
5940 fi
5941 ;;
5942 *)
5943 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5944 if test -n "$lt_cv_sys_max_cmd_len" && \
5945 test undefined != "$lt_cv_sys_max_cmd_len"; then
5946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5948 else
5949 # Make teststring a little bigger before we do anything with it.
5950 # a 1K string should be a reasonable start.
5951 for i in 1 2 3 4 5 6 7 8; do
5952 teststring=$teststring$teststring
5953 done
5954 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5955 # If test is not a shell built-in, we'll probably end up computing a
5956 # maximum length that is only half of the actual maximum length, but
5957 # we can't tell.
5958 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5959 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5960 test 17 != "$i" # 1/2 MB should be enough
5961 do
5962 i=`expr $i + 1`
5963 teststring=$teststring$teststring
5964 done
5965 # Only check the string length outside the loop.
5966 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5967 teststring=
5968 # Add a significant safety factor because C++ compilers can tack on
5969 # massive amounts of additional arguments before passing them to the
5970 # linker. It appears as though 1/2 is a usable value.
5971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5972 fi
5973 ;;
5974 esac
5975
5976 fi
5977
5978 if test -n "$lt_cv_sys_max_cmd_len"; then
5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5980 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5981 else
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5983 printf "%s\n" "none" >&6; }
5984 fi
5985 max_cmd_len=$lt_cv_sys_max_cmd_len
5986
5987
5988
5989
5990
5991
5992 : ${CP="cp -f"}
5993 : ${MV="mv -f"}
5994 : ${RM="rm -f"}
5995
5996 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5997 lt_unset=unset
5998 else
5999 lt_unset=false
6000 fi
6001
6002
6003
6004
6005
6006 # test EBCDIC or ASCII
6007 case `echo X|tr X '\101'` in
6008 A) # ASCII based system
6009 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6010 lt_SP2NL='tr \040 \012'
6011 lt_NL2SP='tr \015\012 \040\040'
6012 ;;
6013 *) # EBCDIC based system
6014 lt_SP2NL='tr \100 \n'
6015 lt_NL2SP='tr \r\n \100\100'
6016 ;;
6017 esac
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6028 printf %s "checking how to convert $build file names to $host format... " >&6; }
6029 if test ${lt_cv_to_host_file_cmd+y}
6030 then :
6031 printf %s "(cached) " >&6
6032 else $as_nop
6033 case $host in
6034 *-*-mingw* )
6035 case $build in
6036 *-*-mingw* ) # actually msys
6037 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6038 ;;
6039 *-*-cygwin* )
6040 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6041 ;;
6042 * ) # otherwise, assume *nix
6043 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6044 ;;
6045 esac
6046 ;;
6047 *-*-cygwin* )
6048 case $build in
6049 *-*-mingw* ) # actually msys
6050 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6051 ;;
6052 *-*-cygwin* )
6053 lt_cv_to_host_file_cmd=func_convert_file_noop
6054 ;;
6055 * ) # otherwise, assume *nix
6056 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6057 ;;
6058 esac
6059 ;;
6060 * ) # unhandled hosts (and "normal" native builds)
6061 lt_cv_to_host_file_cmd=func_convert_file_noop
6062 ;;
6063 esac
6064
6065 fi
6066
6067 to_host_file_cmd=$lt_cv_to_host_file_cmd
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6069 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6070
6071
6072
6073
6074
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6076 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6077 if test ${lt_cv_to_tool_file_cmd+y}
6078 then :
6079 printf %s "(cached) " >&6
6080 else $as_nop
6081 #assume ordinary cross tools, or native build.
6082 lt_cv_to_tool_file_cmd=func_convert_file_noop
6083 case $host in
6084 *-*-mingw* )
6085 case $build in
6086 *-*-mingw* ) # actually msys
6087 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6088 ;;
6089 esac
6090 ;;
6091 esac
6092
6093 fi
6094
6095 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6097 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6098
6099
6100
6101
6102
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6104 printf %s "checking for $LD option to reload object files... " >&6; }
6105 if test ${lt_cv_ld_reload_flag+y}
6106 then :
6107 printf %s "(cached) " >&6
6108 else $as_nop
6109 lt_cv_ld_reload_flag='-r'
6110 fi
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6112 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6113 reload_flag=$lt_cv_ld_reload_flag
6114 case $reload_flag in
6115 "" | " "*) ;;
6116 *) reload_flag=" $reload_flag" ;;
6117 esac
6118 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6119 case $host_os in
6120 cygwin* | mingw* | pw32* | cegcc*)
6121 if test yes != "$GCC"; then
6122 reload_cmds=false
6123 fi
6124 ;;
6125 darwin*)
6126 if test yes = "$GCC"; then
6127 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6128 else
6129 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6130 fi
6131 ;;
6132 esac
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}file; ac_word=$2
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 printf %s "checking for $ac_word... " >&6; }
6147 if test ${ac_cv_prog_FILECMD+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else $as_nop
6151 if test -n "$FILECMD"; then
6152 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157 IFS=$as_save_IFS
6158 case $as_dir in #(((
6159 '') as_dir=./ ;;
6160 */) ;;
6161 *) as_dir=$as_dir/ ;;
6162 esac
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6167 break 2
6168 fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 FILECMD=$ac_cv_prog_FILECMD
6176 if test -n "$FILECMD"; then
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6178 printf "%s\n" "$FILECMD" >&6; }
6179 else
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 printf "%s\n" "no" >&6; }
6182 fi
6183
6184
6185 fi
6186 if test -z "$ac_cv_prog_FILECMD"; then
6187 ac_ct_FILECMD=$FILECMD
6188 # Extract the first word of "file", so it can be a program name with args.
6189 set dummy file; ac_word=$2
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 printf %s "checking for $ac_word... " >&6; }
6192 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 if test -n "$ac_ct_FILECMD"; then
6197 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202 IFS=$as_save_IFS
6203 case $as_dir in #(((
6204 '') as_dir=./ ;;
6205 */) ;;
6206 *) as_dir=$as_dir/ ;;
6207 esac
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6210 ac_cv_prog_ac_ct_FILECMD="file"
6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6221 if test -n "$ac_ct_FILECMD"; then
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6223 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6224 else
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226 printf "%s\n" "no" >&6; }
6227 fi
6228
6229 if test "x$ac_ct_FILECMD" = x; then
6230 FILECMD=":"
6231 else
6232 case $cross_compiling:$ac_tool_warned in
6233 yes:)
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238 FILECMD=$ac_ct_FILECMD
6239 fi
6240 else
6241 FILECMD="$ac_cv_prog_FILECMD"
6242 fi
6243
6244
6245
6246
6247
6248
6249
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 printf %s "checking for $ac_word... " >&6; }
6255 if test ${ac_cv_prog_OBJDUMP+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else $as_nop
6259 if test -n "$OBJDUMP"; then
6260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 case $as_dir in #(((
6267 '') as_dir=./ ;;
6268 */) ;;
6269 *) as_dir=$as_dir/ ;;
6270 esac
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 OBJDUMP=$ac_cv_prog_OBJDUMP
6284 if test -n "$OBJDUMP"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6286 printf "%s\n" "$OBJDUMP" >&6; }
6287 else
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 printf "%s\n" "no" >&6; }
6290 fi
6291
6292
6293 fi
6294 if test -z "$ac_cv_prog_OBJDUMP"; then
6295 ac_ct_OBJDUMP=$OBJDUMP
6296 # Extract the first word of "objdump", so it can be a program name with args.
6297 set dummy objdump; ac_word=$2
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 printf %s "checking for $ac_word... " >&6; }
6300 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6301 then :
6302 printf %s "(cached) " >&6
6303 else $as_nop
6304 if test -n "$ac_ct_OBJDUMP"; then
6305 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 case $as_dir in #(((
6312 '') as_dir=./ ;;
6313 */) ;;
6314 *) as_dir=$as_dir/ ;;
6315 esac
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326 fi
6327 fi
6328 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6329 if test -n "$ac_ct_OBJDUMP"; then
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6331 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6332 else
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 printf "%s\n" "no" >&6; }
6335 fi
6336
6337 if test "x$ac_ct_OBJDUMP" = x; then
6338 OBJDUMP="false"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341 yes:)
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344 ac_tool_warned=yes ;;
6345 esac
6346 OBJDUMP=$ac_ct_OBJDUMP
6347 fi
6348 else
6349 OBJDUMP="$ac_cv_prog_OBJDUMP"
6350 fi
6351
6352 test -z "$OBJDUMP" && OBJDUMP=objdump
6353
6354
6355
6356
6357
6358
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6360 printf %s "checking how to recognize dependent libraries... " >&6; }
6361 if test ${lt_cv_deplibs_check_method+y}
6362 then :
6363 printf %s "(cached) " >&6
6364 else $as_nop
6365 lt_cv_file_magic_cmd='$MAGIC_CMD'
6366 lt_cv_file_magic_test_file=
6367 lt_cv_deplibs_check_method='unknown'
6368 # Need to set the preceding variable on all platforms that support
6369 # interlibrary dependencies.
6370 # 'none' -- dependencies not supported.
6371 # 'unknown' -- same as none, but documents that we really don't know.
6372 # 'pass_all' -- all dependencies passed with no checks.
6373 # 'test_compile' -- check by making test program.
6374 # 'file_magic [[regex]]' -- check by looking for files in library path
6375 # that responds to the $file_magic_cmd with a given extended regex.
6376 # If you have 'file' or equivalent on your system and you're not sure
6377 # whether 'pass_all' will *always* work, you probably want this one.
6378
6379 case $host_os in
6380 aix[4-9]*)
6381 lt_cv_deplibs_check_method=pass_all
6382 ;;
6383
6384 beos*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 bsdi[45]*)
6389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6390 lt_cv_file_magic_cmd='$FILECMD -L'
6391 lt_cv_file_magic_test_file=/shlib/libc.so
6392 ;;
6393
6394 cygwin*)
6395 # func_win32_libid is a shell function defined in ltmain.sh
6396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6397 lt_cv_file_magic_cmd='func_win32_libid'
6398 ;;
6399
6400 mingw* | pw32*)
6401 # Base MSYS/MinGW do not provide the 'file' command needed by
6402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6403 # unless we find 'file', for example because we are cross-compiling.
6404 if ( file / ) >/dev/null 2>&1; then
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6407 else
6408 # Keep this pattern in sync with the one in func_win32_libid.
6409 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6410 lt_cv_file_magic_cmd='$OBJDUMP -f'
6411 fi
6412 ;;
6413
6414 cegcc*)
6415 # use the weaker test based on 'objdump'. See mingw*.
6416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6417 lt_cv_file_magic_cmd='$OBJDUMP -f'
6418 ;;
6419
6420 darwin* | rhapsody*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 freebsd* | dragonfly* | midnightbsd*)
6425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6426 case $host_cpu in
6427 i*86 )
6428 # Not sure whether the presence of OpenBSD here was a mistake.
6429 # Let's accept both of them until this is cleared up.
6430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6431 lt_cv_file_magic_cmd=$FILECMD
6432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6433 ;;
6434 esac
6435 else
6436 lt_cv_deplibs_check_method=pass_all
6437 fi
6438 ;;
6439
6440 haiku*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 hpux10.20* | hpux11*)
6445 lt_cv_file_magic_cmd=$FILECMD
6446 case $host_cpu in
6447 ia64*)
6448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6450 ;;
6451 hppa*64*)
6452 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]'
6453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6454 ;;
6455 *)
6456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6457 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6458 ;;
6459 esac
6460 ;;
6461
6462 interix[3-9]*)
6463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6465 ;;
6466
6467 irix5* | irix6* | nonstopux*)
6468 case $LD in
6469 *-32|*"-32 ") libmagic=32-bit;;
6470 *-n32|*"-n32 ") libmagic=N32;;
6471 *-64|*"-64 ") libmagic=64-bit;;
6472 *) libmagic=never-match;;
6473 esac
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 # This must be glibc/ELF.
6478 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481
6482 netbsd*)
6483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6485 else
6486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6487 fi
6488 ;;
6489
6490 newos6*)
6491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6492 lt_cv_file_magic_cmd=$FILECMD
6493 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6494 ;;
6495
6496 *nto* | *qnx*)
6497 lt_cv_deplibs_check_method=pass_all
6498 ;;
6499
6500 openbsd* | bitrig*)
6501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6503 else
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6505 fi
6506 ;;
6507
6508 osf3* | osf4* | osf5*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 rdos*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
6516 solaris*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 sysv4 | sysv4.3*)
6525 case $host_vendor in
6526 motorola)
6527 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]'
6528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6529 ;;
6530 ncr)
6531 lt_cv_deplibs_check_method=pass_all
6532 ;;
6533 sequent)
6534 lt_cv_file_magic_cmd='/bin/file'
6535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6536 ;;
6537 sni)
6538 lt_cv_file_magic_cmd='/bin/file'
6539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6540 lt_cv_file_magic_test_file=/lib/libc.so
6541 ;;
6542 siemens)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545 pc)
6546 lt_cv_deplibs_check_method=pass_all
6547 ;;
6548 esac
6549 ;;
6550
6551 tpf*)
6552 lt_cv_deplibs_check_method=pass_all
6553 ;;
6554 os2*)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557 esac
6558
6559 fi
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6561 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6562
6563 file_magic_glob=
6564 want_nocaseglob=no
6565 if test "$build" = "$host"; then
6566 case $host_os in
6567 mingw* | pw32*)
6568 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6569 want_nocaseglob=yes
6570 else
6571 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6572 fi
6573 ;;
6574 esac
6575 fi
6576
6577 file_magic_cmd=$lt_cv_file_magic_cmd
6578 deplibs_check_method=$lt_cv_deplibs_check_method
6579 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 printf %s "checking for $ac_word... " >&6; }
6607 if test ${ac_cv_prog_DLLTOOL+y}
6608 then :
6609 printf %s "(cached) " >&6
6610 else $as_nop
6611 if test -n "$DLLTOOL"; then
6612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617 IFS=$as_save_IFS
6618 case $as_dir in #(((
6619 '') as_dir=./ ;;
6620 */) ;;
6621 *) as_dir=$as_dir/ ;;
6622 esac
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6625 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 DLLTOOL=$ac_cv_prog_DLLTOOL
6636 if test -n "$DLLTOOL"; then
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6638 printf "%s\n" "$DLLTOOL" >&6; }
6639 else
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 printf "%s\n" "no" >&6; }
6642 fi
6643
6644
6645 fi
6646 if test -z "$ac_cv_prog_DLLTOOL"; then
6647 ac_ct_DLLTOOL=$DLLTOOL
6648 # Extract the first word of "dlltool", so it can be a program name with args.
6649 set dummy dlltool; ac_word=$2
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 printf %s "checking for $ac_word... " >&6; }
6652 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6653 then :
6654 printf %s "(cached) " >&6
6655 else $as_nop
6656 if test -n "$ac_ct_DLLTOOL"; then
6657 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 case $as_dir in #(((
6664 '') as_dir=./ ;;
6665 */) ;;
6666 *) as_dir=$as_dir/ ;;
6667 esac
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6681 if test -n "$ac_ct_DLLTOOL"; then
6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6683 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6684 else
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 printf "%s\n" "no" >&6; }
6687 fi
6688
6689 if test "x$ac_ct_DLLTOOL" = x; then
6690 DLLTOOL="false"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693 yes:)
6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6697 esac
6698 DLLTOOL=$ac_ct_DLLTOOL
6699 fi
6700 else
6701 DLLTOOL="$ac_cv_prog_DLLTOOL"
6702 fi
6703
6704 test -z "$DLLTOOL" && DLLTOOL=dlltool
6705
6706
6707
6708
6709
6710
6711
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6713 printf %s "checking how to associate runtime and link libraries... " >&6; }
6714 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6715 then :
6716 printf %s "(cached) " >&6
6717 else $as_nop
6718 lt_cv_sharedlib_from_linklib_cmd='unknown'
6719
6720 case $host_os in
6721 cygwin* | mingw* | pw32* | cegcc*)
6722 # two different shell functions defined in ltmain.sh;
6723 # decide which one to use based on capabilities of $DLLTOOL
6724 case `$DLLTOOL --help 2>&1` in
6725 *--identify-strict*)
6726 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6727 ;;
6728 *)
6729 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6730 ;;
6731 esac
6732 ;;
6733 *)
6734 # fallback: assume linklib IS sharedlib
6735 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6736 ;;
6737 esac
6738
6739 fi
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6741 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6742 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6743 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6744
6745
6746
6747
6748
6749
6750
6751 if test -n "$ac_tool_prefix"; then
6752 for ac_prog in ar
6753 do
6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 printf %s "checking for $ac_word... " >&6; }
6758 if test ${ac_cv_prog_AR+y}
6759 then :
6760 printf %s "(cached) " >&6
6761 else $as_nop
6762 if test -n "$AR"; then
6763 ac_cv_prog_AR="$AR" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 case $as_dir in #(((
6770 '') as_dir=./ ;;
6771 */) ;;
6772 *) as_dir=$as_dir/ ;;
6773 esac
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784 fi
6785 fi
6786 AR=$ac_cv_prog_AR
6787 if test -n "$AR"; then
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6789 printf "%s\n" "$AR" >&6; }
6790 else
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 printf "%s\n" "no" >&6; }
6793 fi
6794
6795
6796 test -n "$AR" && break
6797 done
6798 fi
6799 if test -z "$AR"; then
6800 ac_ct_AR=$AR
6801 for ac_prog in ar
6802 do
6803 # Extract the first word of "$ac_prog", so it can be a program name with args.
6804 set dummy $ac_prog; ac_word=$2
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 printf %s "checking for $ac_word... " >&6; }
6807 if test ${ac_cv_prog_ac_ct_AR+y}
6808 then :
6809 printf %s "(cached) " >&6
6810 else $as_nop
6811 if test -n "$ac_ct_AR"; then
6812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817 IFS=$as_save_IFS
6818 case $as_dir in #(((
6819 '') as_dir=./ ;;
6820 */) ;;
6821 *) as_dir=$as_dir/ ;;
6822 esac
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_AR="$ac_prog"
6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6827 break 2
6828 fi
6829 done
6830 done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6836 if test -n "$ac_ct_AR"; then
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6838 printf "%s\n" "$ac_ct_AR" >&6; }
6839 else
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6842 fi
6843
6844
6845 test -n "$ac_ct_AR" && break
6846 done
6847
6848 if test "x$ac_ct_AR" = x; then
6849 AR="false"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 AR=$ac_ct_AR
6858 fi
6859 fi
6860
6861 : ${AR=ar}
6862
6863
6864
6865
6866
6867
6868 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6869 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6870 # higher priority because thats what people were doing historically (setting
6871 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6872 # variable obsoleted/removed.
6873
6874 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6875 lt_ar_flags=$AR_FLAGS
6876
6877
6878
6879
6880
6881
6882 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6883 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6884
6885
6886
6887
6888
6889
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6891 printf %s "checking for archiver @FILE support... " >&6; }
6892 if test ${lt_cv_ar_at_file+y}
6893 then :
6894 printf %s "(cached) " >&6
6895 else $as_nop
6896 lt_cv_ar_at_file=no
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899
6900 int
6901 main (void)
6902 {
6903
6904 ;
6905 return 0;
6906 }
6907 _ACEOF
6908 if ac_fn_c_try_compile "$LINENO"
6909 then :
6910 echo conftest.$ac_objext > conftest.lst
6911 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6913 (eval $lt_ar_try) 2>&5
6914 ac_status=$?
6915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6916 test $ac_status = 0; }
6917 if test 0 -eq "$ac_status"; then
6918 # Ensure the archiver fails upon bogus file names.
6919 rm -f conftest.$ac_objext libconftest.a
6920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6921 (eval $lt_ar_try) 2>&5
6922 ac_status=$?
6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; }
6925 if test 0 -ne "$ac_status"; then
6926 lt_cv_ar_at_file=@
6927 fi
6928 fi
6929 rm -f conftest.* libconftest.a
6930
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6933
6934 fi
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6936 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6937
6938 if test no = "$lt_cv_ar_at_file"; then
6939 archiver_list_spec=
6940 else
6941 archiver_list_spec=$lt_cv_ar_at_file
6942 fi
6943
6944
6945
6946
6947
6948
6949
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}strip; ac_word=$2
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 printf %s "checking for $ac_word... " >&6; }
6955 if test ${ac_cv_prog_STRIP+y}
6956 then :
6957 printf %s "(cached) " >&6
6958 else $as_nop
6959 if test -n "$STRIP"; then
6960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965 IFS=$as_save_IFS
6966 case $as_dir in #(((
6967 '') as_dir=./ ;;
6968 */) ;;
6969 *) as_dir=$as_dir/ ;;
6970 esac
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 STRIP=$ac_cv_prog_STRIP
6984 if test -n "$STRIP"; then
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6986 printf "%s\n" "$STRIP" >&6; }
6987 else
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 printf "%s\n" "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_STRIP"; then
6995 ac_ct_STRIP=$STRIP
6996 # Extract the first word of "strip", so it can be a program name with args.
6997 set dummy strip; ac_word=$2
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 printf %s "checking for $ac_word... " >&6; }
7000 if test ${ac_cv_prog_ac_ct_STRIP+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else $as_nop
7004 if test -n "$ac_ct_STRIP"; then
7005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010 IFS=$as_save_IFS
7011 case $as_dir in #(((
7012 '') as_dir=./ ;;
7013 */) ;;
7014 *) as_dir=$as_dir/ ;;
7015 esac
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7018 ac_cv_prog_ac_ct_STRIP="strip"
7019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7029 if test -n "$ac_ct_STRIP"; then
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7031 printf "%s\n" "$ac_ct_STRIP" >&6; }
7032 else
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 printf "%s\n" "no" >&6; }
7035 fi
7036
7037 if test "x$ac_ct_STRIP" = x; then
7038 STRIP=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046 STRIP=$ac_ct_STRIP
7047 fi
7048 else
7049 STRIP="$ac_cv_prog_STRIP"
7050 fi
7051
7052 test -z "$STRIP" && STRIP=:
7053
7054
7055
7056
7057
7058
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 printf %s "checking for $ac_word... " >&6; }
7064 if test ${ac_cv_prog_RANLIB+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else $as_nop
7068 if test -n "$RANLIB"; then
7069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 case $as_dir in #(((
7076 '') as_dir=./ ;;
7077 */) ;;
7078 *) as_dir=$as_dir/ ;;
7079 esac
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7084 break 2
7085 fi
7086 done
7087 done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 RANLIB=$ac_cv_prog_RANLIB
7093 if test -n "$RANLIB"; then
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7095 printf "%s\n" "$RANLIB" >&6; }
7096 else
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 printf "%s\n" "no" >&6; }
7099 fi
7100
7101
7102 fi
7103 if test -z "$ac_cv_prog_RANLIB"; then
7104 ac_ct_RANLIB=$RANLIB
7105 # Extract the first word of "ranlib", so it can be a program name with args.
7106 set dummy ranlib; ac_word=$2
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 printf %s "checking for $ac_word... " >&6; }
7109 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7110 then :
7111 printf %s "(cached) " >&6
7112 else $as_nop
7113 if test -n "$ac_ct_RANLIB"; then
7114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 case $as_dir in #(((
7121 '') as_dir=./ ;;
7122 */) ;;
7123 *) as_dir=$as_dir/ ;;
7124 esac
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_RANLIB="ranlib"
7128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7138 if test -n "$ac_ct_RANLIB"; then
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7140 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7141 else
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 printf "%s\n" "no" >&6; }
7144 fi
7145
7146 if test "x$ac_ct_RANLIB" = x; then
7147 RANLIB=":"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153 ac_tool_warned=yes ;;
7154 esac
7155 RANLIB=$ac_ct_RANLIB
7156 fi
7157 else
7158 RANLIB="$ac_cv_prog_RANLIB"
7159 fi
7160
7161 test -z "$RANLIB" && RANLIB=:
7162
7163
7164
7165
7166
7167
7168 # Determine commands to create old-style static archives.
7169 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7170 old_postinstall_cmds='chmod 644 $oldlib'
7171 old_postuninstall_cmds=
7172
7173 if test -n "$RANLIB"; then
7174 case $host_os in
7175 bitrig* | openbsd*)
7176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7177 ;;
7178 *)
7179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7180 ;;
7181 esac
7182 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7183 fi
7184
7185 case $host_os in
7186 darwin*)
7187 lock_old_archive_extraction=yes ;;
7188 *)
7189 lock_old_archive_extraction=no ;;
7190 esac
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230 # If no C compiler was specified, use CC.
7231 LTCC=${LTCC-"$CC"}
7232
7233 # If no C compiler flags were specified, use CFLAGS.
7234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7235
7236 # Allow CC to be a program name with arguments.
7237 compiler=$CC
7238
7239
7240 # Check for command to grab the raw symbol name followed by C symbol from nm.
7241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7242 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7243 if test ${lt_cv_sys_global_symbol_pipe+y}
7244 then :
7245 printf %s "(cached) " >&6
7246 else $as_nop
7247
7248 # These are sane defaults that work on at least a few old systems.
7249 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7250
7251 # Character class describing NM global symbol codes.
7252 symcode='[BCDEGRST]'
7253
7254 # Regexp to match symbols that can be accessed directly from C.
7255 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7256
7257 # Define system-specific variables.
7258 case $host_os in
7259 aix*)
7260 symcode='[BCDT]'
7261 ;;
7262 cygwin* | mingw* | pw32* | cegcc*)
7263 symcode='[ABCDGISTW]'
7264 ;;
7265 hpux*)
7266 if test ia64 = "$host_cpu"; then
7267 symcode='[ABCDEGRST]'
7268 fi
7269 ;;
7270 irix* | nonstopux*)
7271 symcode='[BCDEGRST]'
7272 ;;
7273 osf*)
7274 symcode='[BCDEGQRST]'
7275 ;;
7276 solaris*)
7277 symcode='[BDRT]'
7278 ;;
7279 sco3.2v5*)
7280 symcode='[DT]'
7281 ;;
7282 sysv4.2uw2*)
7283 symcode='[DT]'
7284 ;;
7285 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7286 symcode='[ABDT]'
7287 ;;
7288 sysv4)
7289 symcode='[DFNSTU]'
7290 ;;
7291 esac
7292
7293 # If we're using GNU nm, then use its standard symbol codes.
7294 case `$NM -V 2>&1` in
7295 *GNU* | *'with BFD'*)
7296 symcode='[ABCDGIRSTW]' ;;
7297 esac
7298
7299 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7300 # Gets list of data symbols to import.
7301 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7302 # Adjust the below global symbol transforms to fixup imported variables.
7303 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7304 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7305 lt_c_name_lib_hook="\
7306 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7307 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7308 else
7309 # Disable hooks by default.
7310 lt_cv_sys_global_symbol_to_import=
7311 lt_cdecl_hook=
7312 lt_c_name_hook=
7313 lt_c_name_lib_hook=
7314 fi
7315
7316 # Transform an extracted symbol line into a proper C declaration.
7317 # Some systems (esp. on ia64) link data and code symbols differently,
7318 # so use this general approach.
7319 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7320 $lt_cdecl_hook\
7321 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7322 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7323
7324 # Transform an extracted symbol line into symbol name and symbol address
7325 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7326 $lt_c_name_hook\
7327 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7328 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7329
7330 # Transform an extracted symbol line into symbol name with lib prefix and
7331 # symbol address.
7332 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7333 $lt_c_name_lib_hook\
7334 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7335 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7336 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7337
7338 # Handle CRLF in mingw tool chain
7339 opt_cr=
7340 case $build_os in
7341 mingw*)
7342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7343 ;;
7344 esac
7345
7346 # Try without a prefix underscore, then with it.
7347 for ac_symprfx in "" "_"; do
7348
7349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7350 symxfrm="\\1 $ac_symprfx\\2 \\2"
7351
7352 # Write the raw and C identifiers.
7353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7354 # Fake it for dumpbin and say T for any non-static function,
7355 # D for any global variable and I for any imported variable.
7356 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7357 # which start with @ or ?.
7358 lt_cv_sys_global_symbol_pipe="$AWK '"\
7359 " {last_section=section; section=\$ 3};"\
7360 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7361 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7362 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7363 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7364 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7365 " \$ 0!~/External *\|/{next};"\
7366 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7367 " {if(hide[section]) next};"\
7368 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7369 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7370 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7371 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7372 " ' prfx=^$ac_symprfx"
7373 else
7374 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7375 fi
7376 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7377
7378 # Check to see that the pipe works correctly.
7379 pipe_works=no
7380
7381 rm -f conftest*
7382 cat > conftest.$ac_ext <<_LT_EOF
7383 #ifdef __cplusplus
7384 extern "C" {
7385 #endif
7386 char nm_test_var;
7387 void nm_test_func(void);
7388 void nm_test_func(void){}
7389 #ifdef __cplusplus
7390 }
7391 #endif
7392 int main(){nm_test_var='a';nm_test_func();return(0);}
7393 _LT_EOF
7394
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 # Now try to grab the symbols.
7401 nlist=conftest.nm
7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7403 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7404 ac_status=$?
7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; } && test -s "$nlist"; then
7407 # Try sorting and uniquifying the output.
7408 if sort "$nlist" | uniq > "$nlist"T; then
7409 mv -f "$nlist"T "$nlist"
7410 else
7411 rm -f "$nlist"T
7412 fi
7413
7414 # Make sure that we snagged all the symbols we need.
7415 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7416 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7417 cat <<_LT_EOF > conftest.$ac_ext
7418 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7419 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7420 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7421 relocations are performed -- see ld's documentation on pseudo-relocs. */
7422 # define LT_DLSYM_CONST
7423 #elif defined __osf__
7424 /* This system does not cope well with relocations in const data. */
7425 # define LT_DLSYM_CONST
7426 #else
7427 # define LT_DLSYM_CONST const
7428 #endif
7429
7430 #ifdef __cplusplus
7431 extern "C" {
7432 #endif
7433
7434 _LT_EOF
7435 # Now generate the symbol file.
7436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7437
7438 cat <<_LT_EOF >> conftest.$ac_ext
7439
7440 /* The mapping between symbol names and symbols. */
7441 LT_DLSYM_CONST struct {
7442 const char *name;
7443 void *address;
7444 }
7445 lt__PROGRAM__LTX_preloaded_symbols[] =
7446 {
7447 { "@PROGRAM@", (void *) 0 },
7448 _LT_EOF
7449 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7450 cat <<\_LT_EOF >> conftest.$ac_ext
7451 {0, (void *) 0}
7452 };
7453
7454 /* This works around a problem in FreeBSD linker */
7455 #ifdef FREEBSD_WORKAROUND
7456 static const void *lt_preloaded_setup() {
7457 return lt__PROGRAM__LTX_preloaded_symbols;
7458 }
7459 #endif
7460
7461 #ifdef __cplusplus
7462 }
7463 #endif
7464 _LT_EOF
7465 # Now try linking the two files.
7466 mv conftest.$ac_objext conftstm.$ac_objext
7467 lt_globsym_save_LIBS=$LIBS
7468 lt_globsym_save_CFLAGS=$CFLAGS
7469 LIBS=conftstm.$ac_objext
7470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7476 pipe_works=yes
7477 fi
7478 LIBS=$lt_globsym_save_LIBS
7479 CFLAGS=$lt_globsym_save_CFLAGS
7480 else
7481 echo "cannot find nm_test_func in $nlist" >&5
7482 fi
7483 else
7484 echo "cannot find nm_test_var in $nlist" >&5
7485 fi
7486 else
7487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7488 fi
7489 else
7490 echo "$progname: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 fi
7493 rm -rf conftest* conftst*
7494
7495 # Do not use the global_symbol_pipe unless it works.
7496 if test yes = "$pipe_works"; then
7497 break
7498 else
7499 lt_cv_sys_global_symbol_pipe=
7500 fi
7501 done
7502
7503 fi
7504
7505 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7506 lt_cv_sys_global_symbol_to_cdecl=
7507 fi
7508 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7510 printf "%s\n" "failed" >&6; }
7511 else
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7513 printf "%s\n" "ok" >&6; }
7514 fi
7515
7516 # Response file support.
7517 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7518 nm_file_list_spec='@'
7519 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7520 nm_file_list_spec='@'
7521 fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7560 printf %s "checking for sysroot... " >&6; }
7561
7562 # Check whether --with-sysroot was given.
7563 if test ${with_sysroot+y}
7564 then :
7565 withval=$with_sysroot;
7566 else $as_nop
7567 with_sysroot=no
7568 fi
7569
7570
7571 lt_sysroot=
7572 case $with_sysroot in #(
7573 yes)
7574 if test yes = "$GCC"; then
7575 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7576 fi
7577 ;; #(
7578 /*)
7579 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7580 ;; #(
7581 no|'')
7582 ;; #(
7583 *)
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7585 printf "%s\n" "$with_sysroot" >&6; }
7586 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7587 ;;
7588 esac
7589
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7591 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7592
7593
7594
7595
7596
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7598 printf %s "checking for a working dd... " >&6; }
7599 if test ${ac_cv_path_lt_DD+y}
7600 then :
7601 printf %s "(cached) " >&6
7602 else $as_nop
7603 printf 0123456789abcdef0123456789abcdef >conftest.i
7604 cat conftest.i conftest.i >conftest2.i
7605 : ${lt_DD:=$DD}
7606 if test -z "$lt_DD"; then
7607 ac_path_lt_DD_found=false
7608 # Loop through the user's path and test for each of PROGNAME-LIST
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 case $as_dir in #(((
7614 '') as_dir=./ ;;
7615 */) ;;
7616 *) as_dir=$as_dir/ ;;
7617 esac
7618 for ac_prog in dd
7619 do
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7622 as_fn_executable_p "$ac_path_lt_DD" || continue
7623 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7624 cmp -s conftest.i conftest.out \
7625 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7626 fi
7627 $ac_path_lt_DD_found && break 3
7628 done
7629 done
7630 done
7631 IFS=$as_save_IFS
7632 if test -z "$ac_cv_path_lt_DD"; then
7633 :
7634 fi
7635 else
7636 ac_cv_path_lt_DD=$lt_DD
7637 fi
7638
7639 rm -f conftest.i conftest2.i conftest.out
7640 fi
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7642 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7643
7644
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7646 printf %s "checking how to truncate binary pipes... " >&6; }
7647 if test ${lt_cv_truncate_bin+y}
7648 then :
7649 printf %s "(cached) " >&6
7650 else $as_nop
7651 printf 0123456789abcdef0123456789abcdef >conftest.i
7652 cat conftest.i conftest.i >conftest2.i
7653 lt_cv_truncate_bin=
7654 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7655 cmp -s conftest.i conftest.out \
7656 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7657 fi
7658 rm -f conftest.i conftest2.i conftest.out
7659 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7662 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7663
7664
7665
7666
7667
7668
7669
7670 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7671 func_cc_basename ()
7672 {
7673 for cc_temp in $*""; do
7674 case $cc_temp in
7675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7677 \-*) ;;
7678 *) break;;
7679 esac
7680 done
7681 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7682 }
7683
7684 # Check whether --enable-libtool-lock was given.
7685 if test ${enable_libtool_lock+y}
7686 then :
7687 enableval=$enable_libtool_lock;
7688 fi
7689
7690 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7691
7692 # Some flags need to be propagated to the compiler or linker for good
7693 # libtool support.
7694 case $host in
7695 ia64-*-hpux*)
7696 # Find out what ABI is being produced by ac_compile, and set mode
7697 # options accordingly.
7698 echo 'int i;' > conftest.$ac_ext
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7701 ac_status=$?
7702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 case `$FILECMD conftest.$ac_objext` in
7705 *ELF-32*)
7706 HPUX_IA64_MODE=32
7707 ;;
7708 *ELF-64*)
7709 HPUX_IA64_MODE=64
7710 ;;
7711 esac
7712 fi
7713 rm -rf conftest*
7714 ;;
7715 *-*-irix6*)
7716 # Find out what ABI is being produced by ac_compile, and set linker
7717 # options accordingly.
7718 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; then
7724 if test yes = "$lt_cv_prog_gnu_ld"; then
7725 case `$FILECMD conftest.$ac_objext` in
7726 *32-bit*)
7727 LD="${LD-ld} -melf32bsmip"
7728 ;;
7729 *N32*)
7730 LD="${LD-ld} -melf32bmipn32"
7731 ;;
7732 *64-bit*)
7733 LD="${LD-ld} -melf64bmip"
7734 ;;
7735 esac
7736 else
7737 case `$FILECMD conftest.$ac_objext` in
7738 *32-bit*)
7739 LD="${LD-ld} -32"
7740 ;;
7741 *N32*)
7742 LD="${LD-ld} -n32"
7743 ;;
7744 *64-bit*)
7745 LD="${LD-ld} -64"
7746 ;;
7747 esac
7748 fi
7749 fi
7750 rm -rf conftest*
7751 ;;
7752
7753 mips64*-*linux*)
7754 # Find out what ABI is being produced by ac_compile, and set linker
7755 # options accordingly.
7756 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7758 (eval $ac_compile) 2>&5
7759 ac_status=$?
7760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7761 test $ac_status = 0; }; then
7762 emul=elf
7763 case `$FILECMD conftest.$ac_objext` in
7764 *32-bit*)
7765 emul="${emul}32"
7766 ;;
7767 *64-bit*)
7768 emul="${emul}64"
7769 ;;
7770 esac
7771 case `$FILECMD conftest.$ac_objext` in
7772 *MSB*)
7773 emul="${emul}btsmip"
7774 ;;
7775 *LSB*)
7776 emul="${emul}ltsmip"
7777 ;;
7778 esac
7779 case `$FILECMD conftest.$ac_objext` in
7780 *N32*)
7781 emul="${emul}n32"
7782 ;;
7783 esac
7784 LD="${LD-ld} -m $emul"
7785 fi
7786 rm -rf conftest*
7787 ;;
7788
7789 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7790 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7791 # Find out what ABI is being produced by ac_compile, and set linker
7792 # options accordingly. Note that the listed cases only cover the
7793 # situations where additional linker options are needed (such as when
7794 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7795 # vice versa); the common cases where no linker options are needed do
7796 # not appear in the list.
7797 echo 'int i;' > conftest.$ac_ext
7798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7799 (eval $ac_compile) 2>&5
7800 ac_status=$?
7801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 case `$FILECMD conftest.o` in
7804 *32-bit*)
7805 case $host in
7806 x86_64-*kfreebsd*-gnu)
7807 LD="${LD-ld} -m elf_i386_fbsd"
7808 ;;
7809 x86_64-*linux*)
7810 case `$FILECMD conftest.o` in
7811 *x86-64*)
7812 LD="${LD-ld} -m elf32_x86_64"
7813 ;;
7814 *)
7815 LD="${LD-ld} -m elf_i386"
7816 ;;
7817 esac
7818 ;;
7819 powerpc64le-*linux*)
7820 LD="${LD-ld} -m elf32lppclinux"
7821 ;;
7822 powerpc64-*linux*)
7823 LD="${LD-ld} -m elf32ppclinux"
7824 ;;
7825 s390x-*linux*)
7826 LD="${LD-ld} -m elf_s390"
7827 ;;
7828 sparc64-*linux*)
7829 LD="${LD-ld} -m elf32_sparc"
7830 ;;
7831 esac
7832 ;;
7833 *64-bit*)
7834 case $host in
7835 x86_64-*kfreebsd*-gnu)
7836 LD="${LD-ld} -m elf_x86_64_fbsd"
7837 ;;
7838 x86_64-*linux*)
7839 LD="${LD-ld} -m elf_x86_64"
7840 ;;
7841 powerpcle-*linux*|powerpc64le-*linux*)
7842 LD="${LD-ld} -m elf64lppc"
7843 ;;
7844 powerpc-*linux*|powerpc64-*linux*)
7845 LD="${LD-ld} -m elf64ppc"
7846 ;;
7847 s390*-*linux*|s390*-*tpf*)
7848 LD="${LD-ld} -m elf64_s390"
7849 ;;
7850 sparc*-*linux*)
7851 LD="${LD-ld} -m elf64_sparc"
7852 ;;
7853 esac
7854 ;;
7855 esac
7856 fi
7857 rm -rf conftest*
7858 ;;
7859
7860 *-*-sco3.2v5*)
7861 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7862 SAVE_CFLAGS=$CFLAGS
7863 CFLAGS="$CFLAGS -belf"
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7865 printf %s "checking whether the C compiler needs -belf... " >&6; }
7866 if test ${lt_cv_cc_needs_belf+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else $as_nop
7870 ac_ext=c
7871 ac_cpp='$CPP $CPPFLAGS'
7872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878
7879 int
7880 main (void)
7881 {
7882
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_link "$LINENO"
7888 then :
7889 lt_cv_cc_needs_belf=yes
7890 else $as_nop
7891 lt_cv_cc_needs_belf=no
7892 fi
7893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7894 conftest$ac_exeext conftest.$ac_ext
7895 ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901 fi
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7903 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7904 if test yes != "$lt_cv_cc_needs_belf"; then
7905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7906 CFLAGS=$SAVE_CFLAGS
7907 fi
7908 ;;
7909 *-*solaris*)
7910 # Find out what ABI is being produced by ac_compile, and set linker
7911 # options accordingly.
7912 echo 'int i;' > conftest.$ac_ext
7913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7914 (eval $ac_compile) 2>&5
7915 ac_status=$?
7916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7917 test $ac_status = 0; }; then
7918 case `$FILECMD conftest.o` in
7919 *64-bit*)
7920 case $lt_cv_prog_gnu_ld in
7921 yes*)
7922 case $host in
7923 i?86-*-solaris*|x86_64-*-solaris*)
7924 LD="${LD-ld} -m elf_x86_64"
7925 ;;
7926 sparc*-*-solaris*)
7927 LD="${LD-ld} -m elf64_sparc"
7928 ;;
7929 esac
7930 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7931 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7932 LD=${LD-ld}_sol2
7933 fi
7934 ;;
7935 *)
7936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7937 LD="${LD-ld} -64"
7938 fi
7939 ;;
7940 esac
7941 ;;
7942 esac
7943 fi
7944 rm -rf conftest*
7945 ;;
7946 esac
7947
7948 need_locks=$enable_libtool_lock
7949
7950 if test -n "$ac_tool_prefix"; then
7951 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7952 set dummy ${ac_tool_prefix}mt; ac_word=$2
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 printf %s "checking for $ac_word... " >&6; }
7955 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else $as_nop
7959 if test -n "$MANIFEST_TOOL"; then
7960 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 case $as_dir in #(((
7967 '') as_dir=./ ;;
7968 */) ;;
7969 *) as_dir=$as_dir/ ;;
7970 esac
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981 fi
7982 fi
7983 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7984 if test -n "$MANIFEST_TOOL"; then
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7986 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7987 else
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 printf "%s\n" "no" >&6; }
7990 fi
7991
7992
7993 fi
7994 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7996 # Extract the first word of "mt", so it can be a program name with args.
7997 set dummy mt; ac_word=$2
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 printf %s "checking for $ac_word... " >&6; }
8000 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8001 then :
8002 printf %s "(cached) " >&6
8003 else $as_nop
8004 if test -n "$ac_ct_MANIFEST_TOOL"; then
8005 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010 IFS=$as_save_IFS
8011 case $as_dir in #(((
8012 '') as_dir=./ ;;
8013 */) ;;
8014 *) as_dir=$as_dir/ ;;
8015 esac
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022 done
8023 done
8024 IFS=$as_save_IFS
8025
8026 fi
8027 fi
8028 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8029 if test -n "$ac_ct_MANIFEST_TOOL"; then
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8031 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8032 else
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8034 printf "%s\n" "no" >&6; }
8035 fi
8036
8037 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8038 MANIFEST_TOOL=":"
8039 else
8040 case $cross_compiling:$ac_tool_warned in
8041 yes:)
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8043 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8044 ac_tool_warned=yes ;;
8045 esac
8046 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8047 fi
8048 else
8049 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8050 fi
8051
8052 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8054 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8055 if test ${lt_cv_path_mainfest_tool+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else $as_nop
8059 lt_cv_path_mainfest_tool=no
8060 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8061 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8062 cat conftest.err >&5
8063 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8064 lt_cv_path_mainfest_tool=yes
8065 fi
8066 rm -f conftest*
8067 fi
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8069 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8070 if test yes != "$lt_cv_path_mainfest_tool"; then
8071 MANIFEST_TOOL=:
8072 fi
8073
8074
8075
8076
8077
8078
8079 case $host_os in
8080 rhapsody* | darwin*)
8081 if test -n "$ac_tool_prefix"; then
8082 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8083 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085 printf %s "checking for $ac_word... " >&6; }
8086 if test ${ac_cv_prog_DSYMUTIL+y}
8087 then :
8088 printf %s "(cached) " >&6
8089 else $as_nop
8090 if test -n "$DSYMUTIL"; then
8091 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8095 do
8096 IFS=$as_save_IFS
8097 case $as_dir in #(((
8098 '') as_dir=./ ;;
8099 */) ;;
8100 *) as_dir=$as_dir/ ;;
8101 esac
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8106 break 2
8107 fi
8108 done
8109 done
8110 IFS=$as_save_IFS
8111
8112 fi
8113 fi
8114 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8115 if test -n "$DSYMUTIL"; then
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8117 printf "%s\n" "$DSYMUTIL" >&6; }
8118 else
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 printf "%s\n" "no" >&6; }
8121 fi
8122
8123
8124 fi
8125 if test -z "$ac_cv_prog_DSYMUTIL"; then
8126 ac_ct_DSYMUTIL=$DSYMUTIL
8127 # Extract the first word of "dsymutil", so it can be a program name with args.
8128 set dummy dsymutil; ac_word=$2
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 printf %s "checking for $ac_word... " >&6; }
8131 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8132 then :
8133 printf %s "(cached) " >&6
8134 else $as_nop
8135 if test -n "$ac_ct_DSYMUTIL"; then
8136 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141 IFS=$as_save_IFS
8142 case $as_dir in #(((
8143 '') as_dir=./ ;;
8144 */) ;;
8145 *) as_dir=$as_dir/ ;;
8146 esac
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8151 break 2
8152 fi
8153 done
8154 done
8155 IFS=$as_save_IFS
8156
8157 fi
8158 fi
8159 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8160 if test -n "$ac_ct_DSYMUTIL"; then
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8162 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8163 else
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 printf "%s\n" "no" >&6; }
8166 fi
8167
8168 if test "x$ac_ct_DSYMUTIL" = x; then
8169 DSYMUTIL=":"
8170 else
8171 case $cross_compiling:$ac_tool_warned in
8172 yes:)
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8174 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8175 ac_tool_warned=yes ;;
8176 esac
8177 DSYMUTIL=$ac_ct_DSYMUTIL
8178 fi
8179 else
8180 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8181 fi
8182
8183 if test -n "$ac_tool_prefix"; then
8184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8185 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 printf %s "checking for $ac_word... " >&6; }
8188 if test ${ac_cv_prog_NMEDIT+y}
8189 then :
8190 printf %s "(cached) " >&6
8191 else $as_nop
8192 if test -n "$NMEDIT"; then
8193 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8194 else
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198 IFS=$as_save_IFS
8199 case $as_dir in #(((
8200 '') as_dir=./ ;;
8201 */) ;;
8202 *) as_dir=$as_dir/ ;;
8203 esac
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8208 break 2
8209 fi
8210 done
8211 done
8212 IFS=$as_save_IFS
8213
8214 fi
8215 fi
8216 NMEDIT=$ac_cv_prog_NMEDIT
8217 if test -n "$NMEDIT"; then
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8219 printf "%s\n" "$NMEDIT" >&6; }
8220 else
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 printf "%s\n" "no" >&6; }
8223 fi
8224
8225
8226 fi
8227 if test -z "$ac_cv_prog_NMEDIT"; then
8228 ac_ct_NMEDIT=$NMEDIT
8229 # Extract the first word of "nmedit", so it can be a program name with args.
8230 set dummy nmedit; ac_word=$2
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232 printf %s "checking for $ac_word... " >&6; }
8233 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8234 then :
8235 printf %s "(cached) " >&6
8236 else $as_nop
8237 if test -n "$ac_ct_NMEDIT"; then
8238 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8242 do
8243 IFS=$as_save_IFS
8244 case $as_dir in #(((
8245 '') as_dir=./ ;;
8246 */) ;;
8247 *) as_dir=$as_dir/ ;;
8248 esac
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8251 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8253 break 2
8254 fi
8255 done
8256 done
8257 IFS=$as_save_IFS
8258
8259 fi
8260 fi
8261 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8262 if test -n "$ac_ct_NMEDIT"; then
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8264 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8265 else
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 printf "%s\n" "no" >&6; }
8268 fi
8269
8270 if test "x$ac_ct_NMEDIT" = x; then
8271 NMEDIT=":"
8272 else
8273 case $cross_compiling:$ac_tool_warned in
8274 yes:)
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8277 ac_tool_warned=yes ;;
8278 esac
8279 NMEDIT=$ac_ct_NMEDIT
8280 fi
8281 else
8282 NMEDIT="$ac_cv_prog_NMEDIT"
8283 fi
8284
8285 if test -n "$ac_tool_prefix"; then
8286 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 printf %s "checking for $ac_word... " >&6; }
8290 if test ${ac_cv_prog_LIPO+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else $as_nop
8294 if test -n "$LIPO"; then
8295 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 case $as_dir in #(((
8302 '') as_dir=./ ;;
8303 */) ;;
8304 *) as_dir=$as_dir/ ;;
8305 esac
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 LIPO=$ac_cv_prog_LIPO
8319 if test -n "$LIPO"; then
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8321 printf "%s\n" "$LIPO" >&6; }
8322 else
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 printf "%s\n" "no" >&6; }
8325 fi
8326
8327
8328 fi
8329 if test -z "$ac_cv_prog_LIPO"; then
8330 ac_ct_LIPO=$LIPO
8331 # Extract the first word of "lipo", so it can be a program name with args.
8332 set dummy lipo; ac_word=$2
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 printf %s "checking for $ac_word... " >&6; }
8335 if test ${ac_cv_prog_ac_ct_LIPO+y}
8336 then :
8337 printf %s "(cached) " >&6
8338 else $as_nop
8339 if test -n "$ac_ct_LIPO"; then
8340 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8341 else
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343 for as_dir in $PATH
8344 do
8345 IFS=$as_save_IFS
8346 case $as_dir in #(((
8347 '') as_dir=./ ;;
8348 */) ;;
8349 *) as_dir=$as_dir/ ;;
8350 esac
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_ac_ct_LIPO="lipo"
8354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357 done
8358 done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8364 if test -n "$ac_ct_LIPO"; then
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8366 printf "%s\n" "$ac_ct_LIPO" >&6; }
8367 else
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 printf "%s\n" "no" >&6; }
8370 fi
8371
8372 if test "x$ac_ct_LIPO" = x; then
8373 LIPO=":"
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381 LIPO=$ac_ct_LIPO
8382 fi
8383 else
8384 LIPO="$ac_cv_prog_LIPO"
8385 fi
8386
8387 if test -n "$ac_tool_prefix"; then
8388 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8389 set dummy ${ac_tool_prefix}otool; ac_word=$2
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 printf %s "checking for $ac_word... " >&6; }
8392 if test ${ac_cv_prog_OTOOL+y}
8393 then :
8394 printf %s "(cached) " >&6
8395 else $as_nop
8396 if test -n "$OTOOL"; then
8397 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8401 do
8402 IFS=$as_save_IFS
8403 case $as_dir in #(((
8404 '') as_dir=./ ;;
8405 */) ;;
8406 *) as_dir=$as_dir/ ;;
8407 esac
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8410 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8412 break 2
8413 fi
8414 done
8415 done
8416 IFS=$as_save_IFS
8417
8418 fi
8419 fi
8420 OTOOL=$ac_cv_prog_OTOOL
8421 if test -n "$OTOOL"; then
8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8423 printf "%s\n" "$OTOOL" >&6; }
8424 else
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 printf "%s\n" "no" >&6; }
8427 fi
8428
8429
8430 fi
8431 if test -z "$ac_cv_prog_OTOOL"; then
8432 ac_ct_OTOOL=$OTOOL
8433 # Extract the first word of "otool", so it can be a program name with args.
8434 set dummy otool; ac_word=$2
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 printf %s "checking for $ac_word... " >&6; }
8437 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8438 then :
8439 printf %s "(cached) " >&6
8440 else $as_nop
8441 if test -n "$ac_ct_OTOOL"; then
8442 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447 IFS=$as_save_IFS
8448 case $as_dir in #(((
8449 '') as_dir=./ ;;
8450 */) ;;
8451 *) as_dir=$as_dir/ ;;
8452 esac
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_ac_ct_OTOOL="otool"
8456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8457 break 2
8458 fi
8459 done
8460 done
8461 IFS=$as_save_IFS
8462
8463 fi
8464 fi
8465 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8466 if test -n "$ac_ct_OTOOL"; then
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8468 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8469 else
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8472 fi
8473
8474 if test "x$ac_ct_OTOOL" = x; then
8475 OTOOL=":"
8476 else
8477 case $cross_compiling:$ac_tool_warned in
8478 yes:)
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8481 ac_tool_warned=yes ;;
8482 esac
8483 OTOOL=$ac_ct_OTOOL
8484 fi
8485 else
8486 OTOOL="$ac_cv_prog_OTOOL"
8487 fi
8488
8489 if test -n "$ac_tool_prefix"; then
8490 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8491 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 printf %s "checking for $ac_word... " >&6; }
8494 if test ${ac_cv_prog_OTOOL64+y}
8495 then :
8496 printf %s "(cached) " >&6
8497 else $as_nop
8498 if test -n "$OTOOL64"; then
8499 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8500 else
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504 IFS=$as_save_IFS
8505 case $as_dir in #(((
8506 '') as_dir=./ ;;
8507 */) ;;
8508 *) as_dir=$as_dir/ ;;
8509 esac
8510 for ac_exec_ext in '' $ac_executable_extensions; do
8511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8512 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8514 break 2
8515 fi
8516 done
8517 done
8518 IFS=$as_save_IFS
8519
8520 fi
8521 fi
8522 OTOOL64=$ac_cv_prog_OTOOL64
8523 if test -n "$OTOOL64"; then
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8525 printf "%s\n" "$OTOOL64" >&6; }
8526 else
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528 printf "%s\n" "no" >&6; }
8529 fi
8530
8531
8532 fi
8533 if test -z "$ac_cv_prog_OTOOL64"; then
8534 ac_ct_OTOOL64=$OTOOL64
8535 # Extract the first word of "otool64", so it can be a program name with args.
8536 set dummy otool64; ac_word=$2
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 printf %s "checking for $ac_word... " >&6; }
8539 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8540 then :
8541 printf %s "(cached) " >&6
8542 else $as_nop
8543 if test -n "$ac_ct_OTOOL64"; then
8544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549 IFS=$as_save_IFS
8550 case $as_dir in #(((
8551 '') as_dir=./ ;;
8552 */) ;;
8553 *) as_dir=$as_dir/ ;;
8554 esac
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_ac_ct_OTOOL64="otool64"
8558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565 fi
8566 fi
8567 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8568 if test -n "$ac_ct_OTOOL64"; then
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8570 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8571 else
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 printf "%s\n" "no" >&6; }
8574 fi
8575
8576 if test "x$ac_ct_OTOOL64" = x; then
8577 OTOOL64=":"
8578 else
8579 case $cross_compiling:$ac_tool_warned in
8580 yes:)
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8583 ac_tool_warned=yes ;;
8584 esac
8585 OTOOL64=$ac_ct_OTOOL64
8586 fi
8587 else
8588 OTOOL64="$ac_cv_prog_OTOOL64"
8589 fi
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8618 printf %s "checking for -single_module linker flag... " >&6; }
8619 if test ${lt_cv_apple_cc_single_mod+y}
8620 then :
8621 printf %s "(cached) " >&6
8622 else $as_nop
8623 lt_cv_apple_cc_single_mod=no
8624 if test -z "$LT_MULTI_MODULE"; then
8625 # By default we will add the -single_module flag. You can override
8626 # by either setting the environment variable LT_MULTI_MODULE
8627 # non-empty at configure time, or by adding -multi_module to the
8628 # link flags.
8629 rm -rf libconftest.dylib*
8630 echo "int foo(void){return 1;}" > conftest.c
8631 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8632 -dynamiclib -Wl,-single_module conftest.c" >&5
8633 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8634 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8635 _lt_result=$?
8636 # If there is a non-empty error log, and "single_module"
8637 # appears in it, assume the flag caused a linker warning
8638 if test -s conftest.err && $GREP single_module conftest.err; then
8639 cat conftest.err >&5
8640 # Otherwise, if the output was created with a 0 exit code from
8641 # the compiler, it worked.
8642 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8643 lt_cv_apple_cc_single_mod=yes
8644 else
8645 cat conftest.err >&5
8646 fi
8647 rm -rf libconftest.dylib*
8648 rm -f conftest.*
8649 fi
8650 fi
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8652 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8653
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8655 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8656 if test ${lt_cv_ld_exported_symbols_list+y}
8657 then :
8658 printf %s "(cached) " >&6
8659 else $as_nop
8660 lt_cv_ld_exported_symbols_list=no
8661 save_LDFLAGS=$LDFLAGS
8662 echo "_main" > conftest.sym
8663 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666
8667 int
8668 main (void)
8669 {
8670
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 if ac_fn_c_try_link "$LINENO"
8676 then :
8677 lt_cv_ld_exported_symbols_list=yes
8678 else $as_nop
8679 lt_cv_ld_exported_symbols_list=no
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LDFLAGS=$save_LDFLAGS
8684
8685 fi
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8687 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8688
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8690 printf %s "checking for -force_load linker flag... " >&6; }
8691 if test ${lt_cv_ld_force_load+y}
8692 then :
8693 printf %s "(cached) " >&6
8694 else $as_nop
8695 lt_cv_ld_force_load=no
8696 cat > conftest.c << _LT_EOF
8697 int forced_loaded() { return 2;}
8698 _LT_EOF
8699 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8700 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8701 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8702 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8703 echo "$RANLIB libconftest.a" >&5
8704 $RANLIB libconftest.a 2>&5
8705 cat > conftest.c << _LT_EOF
8706 int main() { return 0;}
8707 _LT_EOF
8708 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8709 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8710 _lt_result=$?
8711 if test -s conftest.err && $GREP force_load conftest.err; then
8712 cat conftest.err >&5
8713 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8714 lt_cv_ld_force_load=yes
8715 else
8716 cat conftest.err >&5
8717 fi
8718 rm -f conftest.err libconftest.a conftest conftest.c
8719 rm -rf conftest.dSYM
8720
8721 fi
8722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8723 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8724 case $host_os in
8725 rhapsody* | darwin1.[012])
8726 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8727 darwin1.*)
8728 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8729 darwin*)
8730 case $MACOSX_DEPLOYMENT_TARGET,$host in
8731 10.[012],*|,*powerpc*-darwin[5-8]*)
8732 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8733 *)
8734 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8735 esac
8736 ;;
8737 esac
8738 if test yes = "$lt_cv_apple_cc_single_mod"; then
8739 _lt_dar_single_mod='$single_module'
8740 fi
8741 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8742 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8743 else
8744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8745 fi
8746 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8747 _lt_dsymutil='~$DSYMUTIL $lib || :'
8748 else
8749 _lt_dsymutil=
8750 fi
8751 ;;
8752 esac
8753
8754 # func_munge_path_list VARIABLE PATH
8755 # -----------------------------------
8756 # VARIABLE is name of variable containing _space_ separated list of
8757 # directories to be munged by the contents of PATH, which is string
8758 # having a format:
8759 # "DIR[:DIR]:"
8760 # string "DIR[ DIR]" will be prepended to VARIABLE
8761 # ":DIR[:DIR]"
8762 # string "DIR[ DIR]" will be appended to VARIABLE
8763 # "DIRP[:DIRP]::[DIRA:]DIRA"
8764 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8765 # "DIRA[ DIRA]" will be appended to VARIABLE
8766 # "DIR[:DIR]"
8767 # VARIABLE will be replaced by "DIR[ DIR]"
8768 func_munge_path_list ()
8769 {
8770 case x$2 in
8771 x)
8772 ;;
8773 *:)
8774 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8775 ;;
8776 x:*)
8777 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8778 ;;
8779 *::*)
8780 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8781 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8782 ;;
8783 *)
8784 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8785 ;;
8786 esac
8787 }
8788
8789 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8790 "
8791 if test "x$ac_cv_header_dlfcn_h" = xyes
8792 then :
8793 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8794
8795 fi
8796
8797
8798
8799
8800
8801 # Set options
8802
8803
8804
8805 enable_dlopen=no
8806
8807
8808
8809 # Check whether --enable-shared was given.
8810 if test ${enable_shared+y}
8811 then :
8812 enableval=$enable_shared; p=${PACKAGE-default}
8813 case $enableval in
8814 yes) enable_shared=yes ;;
8815 no) enable_shared=no ;;
8816 *)
8817 enable_shared=no
8818 # Look at the argument we got. We use all the common list separators.
8819 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8820 for pkg in $enableval; do
8821 IFS=$lt_save_ifs
8822 if test "X$pkg" = "X$p"; then
8823 enable_shared=yes
8824 fi
8825 done
8826 IFS=$lt_save_ifs
8827 ;;
8828 esac
8829 else $as_nop
8830 enable_shared=yes
8831 fi
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841 # Check whether --enable-static was given.
8842 if test ${enable_static+y}
8843 then :
8844 enableval=$enable_static; p=${PACKAGE-default}
8845 case $enableval in
8846 yes) enable_static=yes ;;
8847 no) enable_static=no ;;
8848 *)
8849 enable_static=no
8850 # Look at the argument we got. We use all the common list separators.
8851 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8852 for pkg in $enableval; do
8853 IFS=$lt_save_ifs
8854 if test "X$pkg" = "X$p"; then
8855 enable_static=yes
8856 fi
8857 done
8858 IFS=$lt_save_ifs
8859 ;;
8860 esac
8861 else $as_nop
8862 enable_static=yes
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874 # Check whether --with-pic was given.
8875 if test ${with_pic+y}
8876 then :
8877 withval=$with_pic; lt_p=${PACKAGE-default}
8878 case $withval in
8879 yes|no) pic_mode=$withval ;;
8880 *)
8881 pic_mode=default
8882 # Look at the argument we got. We use all the common list separators.
8883 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8884 for lt_pkg in $withval; do
8885 IFS=$lt_save_ifs
8886 if test "X$lt_pkg" = "X$lt_p"; then
8887 pic_mode=yes
8888 fi
8889 done
8890 IFS=$lt_save_ifs
8891 ;;
8892 esac
8893 else $as_nop
8894 pic_mode=default
8895 fi
8896
8897
8898
8899
8900
8901
8902
8903
8904 # Check whether --enable-fast-install was given.
8905 if test ${enable_fast_install+y}
8906 then :
8907 enableval=$enable_fast_install; p=${PACKAGE-default}
8908 case $enableval in
8909 yes) enable_fast_install=yes ;;
8910 no) enable_fast_install=no ;;
8911 *)
8912 enable_fast_install=no
8913 # Look at the argument we got. We use all the common list separators.
8914 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8915 for pkg in $enableval; do
8916 IFS=$lt_save_ifs
8917 if test "X$pkg" = "X$p"; then
8918 enable_fast_install=yes
8919 fi
8920 done
8921 IFS=$lt_save_ifs
8922 ;;
8923 esac
8924 else $as_nop
8925 enable_fast_install=yes
8926 fi
8927
8928
8929
8930
8931
8932
8933
8934
8935 shared_archive_member_spec=
8936 case $host,$enable_shared in
8937 power*-*-aix[5-9]*,yes)
8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8939 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8940
8941 # Check whether --with-aix-soname was given.
8942 if test ${with_aix_soname+y}
8943 then :
8944 withval=$with_aix_soname; case $withval in
8945 aix|svr4|both)
8946 ;;
8947 *)
8948 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8949 ;;
8950 esac
8951 lt_cv_with_aix_soname=$with_aix_soname
8952 else $as_nop
8953 if test ${lt_cv_with_aix_soname+y}
8954 then :
8955 printf %s "(cached) " >&6
8956 else $as_nop
8957 lt_cv_with_aix_soname=aix
8958 fi
8959
8960 with_aix_soname=$lt_cv_with_aix_soname
8961 fi
8962
8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8964 printf "%s\n" "$with_aix_soname" >&6; }
8965 if test aix != "$with_aix_soname"; then
8966 # For the AIX way of multilib, we name the shared archive member
8967 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8968 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8969 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8970 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8971 if test 64 = "${OBJECT_MODE-32}"; then
8972 shared_archive_member_spec=shr_64
8973 else
8974 shared_archive_member_spec=shr
8975 fi
8976 fi
8977 ;;
8978 *)
8979 with_aix_soname=aix
8980 ;;
8981 esac
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992 # This can be used to rebuild libtool when needed
8993 LIBTOOL_DEPS=$ltmain
8994
8995 # Always use our own libtool.
8996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027 test -z "$LN_S" && LN_S="ln -s"
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 if test -n "${ZSH_VERSION+set}"; then
9043 setopt NO_GLOB_SUBST
9044 fi
9045
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9047 printf %s "checking for objdir... " >&6; }
9048 if test ${lt_cv_objdir+y}
9049 then :
9050 printf %s "(cached) " >&6
9051 else $as_nop
9052 rm -f .libs 2>/dev/null
9053 mkdir .libs 2>/dev/null
9054 if test -d .libs; then
9055 lt_cv_objdir=.libs
9056 else
9057 # MS-DOS does not allow filenames that begin with a dot.
9058 lt_cv_objdir=_libs
9059 fi
9060 rmdir .libs 2>/dev/null
9061 fi
9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9063 printf "%s\n" "$lt_cv_objdir" >&6; }
9064 objdir=$lt_cv_objdir
9065
9066
9067
9068
9069
9070 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9071
9072
9073
9074
9075 case $host_os in
9076 aix3*)
9077 # AIX sometimes has problems with the GCC collect2 program. For some
9078 # reason, if we set the COLLECT_NAMES environment variable, the problems
9079 # vanish in a puff of smoke.
9080 if test set != "${COLLECT_NAMES+set}"; then
9081 COLLECT_NAMES=
9082 export COLLECT_NAMES
9083 fi
9084 ;;
9085 esac
9086
9087 # Global variables:
9088 ofile=libtool
9089 can_build_shared=yes
9090
9091 # All known linkers require a '.a' archive for static linking (except MSVC and
9092 # ICC, which need '.lib').
9093 libext=a
9094
9095 with_gnu_ld=$lt_cv_prog_gnu_ld
9096
9097 old_CC=$CC
9098 old_CFLAGS=$CFLAGS
9099
9100 # Set sane defaults for various variables
9101 test -z "$CC" && CC=cc
9102 test -z "$LTCC" && LTCC=$CC
9103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9104 test -z "$LD" && LD=ld
9105 test -z "$ac_objext" && ac_objext=o
9106
9107 func_cc_basename $compiler
9108 cc_basename=$func_cc_basename_result
9109
9110
9111 # Only perform the check for file, if the check method requires it
9112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9113 case $deplibs_check_method in
9114 file_magic*)
9115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9117 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9118 if test ${lt_cv_path_MAGIC_CMD+y}
9119 then :
9120 printf %s "(cached) " >&6
9121 else $as_nop
9122 case $MAGIC_CMD in
9123 [\\/*] | ?:[\\/]*)
9124 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9125 ;;
9126 *)
9127 lt_save_MAGIC_CMD=$MAGIC_CMD
9128 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9130 for ac_dir in $ac_dummy; do
9131 IFS=$lt_save_ifs
9132 test -z "$ac_dir" && ac_dir=.
9133 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9134 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9135 if test -n "$file_magic_test_file"; then
9136 case $deplibs_check_method in
9137 "file_magic "*)
9138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9139 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9141 $EGREP "$file_magic_regex" > /dev/null; then
9142 :
9143 else
9144 cat <<_LT_EOF 1>&2
9145
9146 *** Warning: the command libtool uses to detect shared libraries,
9147 *** $file_magic_cmd, produces output that libtool cannot recognize.
9148 *** The result is that libtool may fail to recognize shared libraries
9149 *** as such. This will affect the creation of libtool libraries that
9150 *** depend on shared libraries, but programs linked with such libtool
9151 *** libraries will work regardless of this problem. Nevertheless, you
9152 *** may want to report the problem to your system manager and/or to
9153 *** bug-libtool@gnu.org
9154
9155 _LT_EOF
9156 fi ;;
9157 esac
9158 fi
9159 break
9160 fi
9161 done
9162 IFS=$lt_save_ifs
9163 MAGIC_CMD=$lt_save_MAGIC_CMD
9164 ;;
9165 esac
9166 fi
9167
9168 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9169 if test -n "$MAGIC_CMD"; then
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9171 printf "%s\n" "$MAGIC_CMD" >&6; }
9172 else
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174 printf "%s\n" "no" >&6; }
9175 fi
9176
9177
9178
9179
9180
9181 if test -z "$lt_cv_path_MAGIC_CMD"; then
9182 if test -n "$ac_tool_prefix"; then
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9184 printf %s "checking for file... " >&6; }
9185 if test ${lt_cv_path_MAGIC_CMD+y}
9186 then :
9187 printf %s "(cached) " >&6
9188 else $as_nop
9189 case $MAGIC_CMD in
9190 [\\/*] | ?:[\\/]*)
9191 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9192 ;;
9193 *)
9194 lt_save_MAGIC_CMD=$MAGIC_CMD
9195 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9196 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9197 for ac_dir in $ac_dummy; do
9198 IFS=$lt_save_ifs
9199 test -z "$ac_dir" && ac_dir=.
9200 if test -f "$ac_dir/file"; then
9201 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9202 if test -n "$file_magic_test_file"; then
9203 case $deplibs_check_method in
9204 "file_magic "*)
9205 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9206 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9208 $EGREP "$file_magic_regex" > /dev/null; then
9209 :
9210 else
9211 cat <<_LT_EOF 1>&2
9212
9213 *** Warning: the command libtool uses to detect shared libraries,
9214 *** $file_magic_cmd, produces output that libtool cannot recognize.
9215 *** The result is that libtool may fail to recognize shared libraries
9216 *** as such. This will affect the creation of libtool libraries that
9217 *** depend on shared libraries, but programs linked with such libtool
9218 *** libraries will work regardless of this problem. Nevertheless, you
9219 *** may want to report the problem to your system manager and/or to
9220 *** bug-libtool@gnu.org
9221
9222 _LT_EOF
9223 fi ;;
9224 esac
9225 fi
9226 break
9227 fi
9228 done
9229 IFS=$lt_save_ifs
9230 MAGIC_CMD=$lt_save_MAGIC_CMD
9231 ;;
9232 esac
9233 fi
9234
9235 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9236 if test -n "$MAGIC_CMD"; then
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9238 printf "%s\n" "$MAGIC_CMD" >&6; }
9239 else
9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 printf "%s\n" "no" >&6; }
9242 fi
9243
9244
9245 else
9246 MAGIC_CMD=:
9247 fi
9248 fi
9249
9250 fi
9251 ;;
9252 esac
9253
9254 # Use C for the default configuration in the libtool script
9255
9256 lt_save_CC=$CC
9257 ac_ext=c
9258 ac_cpp='$CPP $CPPFLAGS'
9259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9262
9263
9264 # Source file extension for C test sources.
9265 ac_ext=c
9266
9267 # Object file extension for compiled C test sources.
9268 objext=o
9269 objext=$objext
9270
9271 # Code to be used in simple compile tests
9272 lt_simple_compile_test_code="int some_variable = 0;"
9273
9274 # Code to be used in simple link tests
9275 lt_simple_link_test_code='int main(){return(0);}'
9276
9277
9278
9279
9280
9281
9282
9283 # If no C compiler was specified, use CC.
9284 LTCC=${LTCC-"$CC"}
9285
9286 # If no C compiler flags were specified, use CFLAGS.
9287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9288
9289 # Allow CC to be a program name with arguments.
9290 compiler=$CC
9291
9292 # Save the default compiler, since it gets overwritten when the other
9293 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9294 compiler_DEFAULT=$CC
9295
9296 # save warnings/boilerplate of simple test code
9297 ac_outfile=conftest.$ac_objext
9298 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9300 _lt_compiler_boilerplate=`cat conftest.err`
9301 $RM conftest*
9302
9303 ac_outfile=conftest.$ac_objext
9304 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9306 _lt_linker_boilerplate=`cat conftest.err`
9307 $RM -r conftest*
9308
9309
9310 if test -n "$compiler"; then
9311
9312 lt_prog_compiler_no_builtin_flag=
9313
9314 if test yes = "$GCC"; then
9315 case $cc_basename in
9316 nvcc*)
9317 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9318 *)
9319 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9320 esac
9321
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9323 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9324 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else $as_nop
9328 lt_cv_prog_compiler_rtti_exceptions=no
9329 ac_outfile=conftest.$ac_objext
9330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9331 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9332 # Insert the option either (1) after the last *FLAGS variable, or
9333 # (2) before a word containing "conftest.", or (3) at the end.
9334 # Note that $ac_compile itself does not contain backslashes and begins
9335 # with a dollar sign (not a hyphen), so the echo should work correctly.
9336 # The option is referenced via a variable to avoid confusing sed.
9337 lt_compile=`echo "$ac_compile" | $SED \
9338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9340 -e 's:$: $lt_compiler_flag:'`
9341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9342 (eval "$lt_compile" 2>conftest.err)
9343 ac_status=$?
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 if (exit $ac_status) && test -s "$ac_outfile"; then
9347 # The compiler can only warn and ignore the option if not recognized
9348 # So say no if there are warnings other than the usual output.
9349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9352 lt_cv_prog_compiler_rtti_exceptions=yes
9353 fi
9354 fi
9355 $RM conftest*
9356
9357 fi
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9359 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9360
9361 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9362 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9363 else
9364 :
9365 fi
9366
9367 fi
9368
9369
9370
9371
9372
9373
9374 lt_prog_compiler_wl=
9375 lt_prog_compiler_pic=
9376 lt_prog_compiler_static=
9377
9378
9379 if test yes = "$GCC"; then
9380 lt_prog_compiler_wl='-Wl,'
9381 lt_prog_compiler_static='-static'
9382
9383 case $host_os in
9384 aix*)
9385 # All AIX code is PIC.
9386 if test ia64 = "$host_cpu"; then
9387 # AIX 5 now supports IA64 processor
9388 lt_prog_compiler_static='-Bstatic'
9389 fi
9390 lt_prog_compiler_pic='-fPIC'
9391 ;;
9392
9393 amigaos*)
9394 case $host_cpu in
9395 powerpc)
9396 # see comment about AmigaOS4 .so support
9397 lt_prog_compiler_pic='-fPIC'
9398 ;;
9399 m68k)
9400 # FIXME: we need at least 68020 code to build shared libraries, but
9401 # adding the '-m68020' flag to GCC prevents building anything better,
9402 # like '-m68040'.
9403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9404 ;;
9405 esac
9406 ;;
9407
9408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9409 # PIC is the default for these OSes.
9410 ;;
9411
9412 mingw* | cygwin* | pw32* | os2* | cegcc*)
9413 # This hack is so that the source file can tell whether it is being
9414 # built for inclusion in a dll (and should export symbols for example).
9415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9416 # (--disable-auto-import) libraries
9417 lt_prog_compiler_pic='-DDLL_EXPORT'
9418 case $host_os in
9419 os2*)
9420 lt_prog_compiler_static='$wl-static'
9421 ;;
9422 esac
9423 ;;
9424
9425 darwin* | rhapsody*)
9426 # PIC is the default on this platform
9427 # Common symbols not allowed in MH_DYLIB files
9428 lt_prog_compiler_pic='-fno-common'
9429 ;;
9430
9431 haiku*)
9432 # PIC is the default for Haiku.
9433 # The "-static" flag exists, but is broken.
9434 lt_prog_compiler_static=
9435 ;;
9436
9437 hpux*)
9438 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9439 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9440 # sets the default TLS model and affects inlining.
9441 case $host_cpu in
9442 hppa*64*)
9443 # +Z the default
9444 ;;
9445 *)
9446 lt_prog_compiler_pic='-fPIC'
9447 ;;
9448 esac
9449 ;;
9450
9451 interix[3-9]*)
9452 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9453 # Instead, we relocate shared libraries at runtime.
9454 ;;
9455
9456 msdosdjgpp*)
9457 # Just because we use GCC doesn't mean we suddenly get shared libraries
9458 # on systems that don't support them.
9459 lt_prog_compiler_can_build_shared=no
9460 enable_shared=no
9461 ;;
9462
9463 *nto* | *qnx*)
9464 # QNX uses GNU C++, but need to define -shared option too, otherwise
9465 # it will coredump.
9466 lt_prog_compiler_pic='-fPIC -shared'
9467 ;;
9468
9469 sysv4*MP*)
9470 if test -d /usr/nec; then
9471 lt_prog_compiler_pic=-Kconform_pic
9472 fi
9473 ;;
9474
9475 *)
9476 lt_prog_compiler_pic='-fPIC'
9477 ;;
9478 esac
9479
9480 case $cc_basename in
9481 nvcc*) # Cuda Compiler Driver 2.2
9482 lt_prog_compiler_wl='-Xlinker '
9483 if test -n "$lt_prog_compiler_pic"; then
9484 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9485 fi
9486 ;;
9487 esac
9488 else
9489 # PORTME Check for flag to pass linker flags through the system compiler.
9490 case $host_os in
9491 aix*)
9492 lt_prog_compiler_wl='-Wl,'
9493 if test ia64 = "$host_cpu"; then
9494 # AIX 5 now supports IA64 processor
9495 lt_prog_compiler_static='-Bstatic'
9496 else
9497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9498 fi
9499 ;;
9500
9501 darwin* | rhapsody*)
9502 # PIC is the default on this platform
9503 # Common symbols not allowed in MH_DYLIB files
9504 lt_prog_compiler_pic='-fno-common'
9505 case $cc_basename in
9506 nagfor*)
9507 # NAG Fortran compiler
9508 lt_prog_compiler_wl='-Wl,-Wl,,'
9509 lt_prog_compiler_pic='-PIC'
9510 lt_prog_compiler_static='-Bstatic'
9511 ;;
9512 esac
9513 ;;
9514
9515 mingw* | cygwin* | pw32* | os2* | cegcc*)
9516 # This hack is so that the source file can tell whether it is being
9517 # built for inclusion in a dll (and should export symbols for example).
9518 lt_prog_compiler_pic='-DDLL_EXPORT'
9519 case $host_os in
9520 os2*)
9521 lt_prog_compiler_static='$wl-static'
9522 ;;
9523 esac
9524 ;;
9525
9526 hpux9* | hpux10* | hpux11*)
9527 lt_prog_compiler_wl='-Wl,'
9528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9529 # not for PA HP-UX.
9530 case $host_cpu in
9531 hppa*64*|ia64*)
9532 # +Z the default
9533 ;;
9534 *)
9535 lt_prog_compiler_pic='+Z'
9536 ;;
9537 esac
9538 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9539 lt_prog_compiler_static='$wl-a ${wl}archive'
9540 ;;
9541
9542 irix5* | irix6* | nonstopux*)
9543 lt_prog_compiler_wl='-Wl,'
9544 # PIC (with -KPIC) is the default.
9545 lt_prog_compiler_static='-non_shared'
9546 ;;
9547
9548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9549 case $cc_basename in
9550 # old Intel for x86_64, which still supported -KPIC.
9551 ecc*)
9552 lt_prog_compiler_wl='-Wl,'
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-static'
9555 ;;
9556 # icc used to be incompatible with GCC.
9557 # ICC 10 doesn't accept -KPIC any more.
9558 icc* | ifort*)
9559 lt_prog_compiler_wl='-Wl,'
9560 lt_prog_compiler_pic='-fPIC'
9561 lt_prog_compiler_static='-static'
9562 ;;
9563 # Lahey Fortran 8.1.
9564 lf95*)
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_pic='--shared'
9567 lt_prog_compiler_static='--static'
9568 ;;
9569 nagfor*)
9570 # NAG Fortran compiler
9571 lt_prog_compiler_wl='-Wl,-Wl,,'
9572 lt_prog_compiler_pic='-PIC'
9573 lt_prog_compiler_static='-Bstatic'
9574 ;;
9575 tcc*)
9576 # Fabrice Bellard et al's Tiny C Compiler
9577 lt_prog_compiler_wl='-Wl,'
9578 lt_prog_compiler_pic='-fPIC'
9579 lt_prog_compiler_static='-static'
9580 ;;
9581 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9582 # Portland Group compilers (*not* the Pentium gcc compiler,
9583 # which looks to be a dead project)
9584 lt_prog_compiler_wl='-Wl,'
9585 lt_prog_compiler_pic='-fpic'
9586 lt_prog_compiler_static='-Bstatic'
9587 ;;
9588 ccc*)
9589 lt_prog_compiler_wl='-Wl,'
9590 # All Alpha code is PIC.
9591 lt_prog_compiler_static='-non_shared'
9592 ;;
9593 xl* | bgxl* | bgf* | mpixl*)
9594 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9595 lt_prog_compiler_wl='-Wl,'
9596 lt_prog_compiler_pic='-qpic'
9597 lt_prog_compiler_static='-qstaticlink'
9598 ;;
9599 *)
9600 case `$CC -V 2>&1 | $SED 5q` in
9601 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9602 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9605 lt_prog_compiler_wl=''
9606 ;;
9607 *Sun\ F* | *Sun*Fortran*)
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-Bstatic'
9610 lt_prog_compiler_wl='-Qoption ld '
9611 ;;
9612 *Sun\ C*)
9613 # Sun C 5.9
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-Bstatic'
9616 lt_prog_compiler_wl='-Wl,'
9617 ;;
9618 *Intel*\ [CF]*Compiler*)
9619 lt_prog_compiler_wl='-Wl,'
9620 lt_prog_compiler_pic='-fPIC'
9621 lt_prog_compiler_static='-static'
9622 ;;
9623 *Portland\ Group*)
9624 lt_prog_compiler_wl='-Wl,'
9625 lt_prog_compiler_pic='-fpic'
9626 lt_prog_compiler_static='-Bstatic'
9627 ;;
9628 esac
9629 ;;
9630 esac
9631 ;;
9632
9633 newsos6)
9634 lt_prog_compiler_pic='-KPIC'
9635 lt_prog_compiler_static='-Bstatic'
9636 ;;
9637
9638 *nto* | *qnx*)
9639 # QNX uses GNU C++, but need to define -shared option too, otherwise
9640 # it will coredump.
9641 lt_prog_compiler_pic='-fPIC -shared'
9642 ;;
9643
9644 osf3* | osf4* | osf5*)
9645 lt_prog_compiler_wl='-Wl,'
9646 # All OSF/1 code is PIC.
9647 lt_prog_compiler_static='-non_shared'
9648 ;;
9649
9650 rdos*)
9651 lt_prog_compiler_static='-non_shared'
9652 ;;
9653
9654 solaris*)
9655 lt_prog_compiler_pic='-KPIC'
9656 lt_prog_compiler_static='-Bstatic'
9657 case $cc_basename in
9658 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9659 lt_prog_compiler_wl='-Qoption ld ';;
9660 *)
9661 lt_prog_compiler_wl='-Wl,';;
9662 esac
9663 ;;
9664
9665 sunos4*)
9666 lt_prog_compiler_wl='-Qoption ld '
9667 lt_prog_compiler_pic='-PIC'
9668 lt_prog_compiler_static='-Bstatic'
9669 ;;
9670
9671 sysv4 | sysv4.2uw2* | sysv4.3*)
9672 lt_prog_compiler_wl='-Wl,'
9673 lt_prog_compiler_pic='-KPIC'
9674 lt_prog_compiler_static='-Bstatic'
9675 ;;
9676
9677 sysv4*MP*)
9678 if test -d /usr/nec; then
9679 lt_prog_compiler_pic='-Kconform_pic'
9680 lt_prog_compiler_static='-Bstatic'
9681 fi
9682 ;;
9683
9684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9685 lt_prog_compiler_wl='-Wl,'
9686 lt_prog_compiler_pic='-KPIC'
9687 lt_prog_compiler_static='-Bstatic'
9688 ;;
9689
9690 unicos*)
9691 lt_prog_compiler_wl='-Wl,'
9692 lt_prog_compiler_can_build_shared=no
9693 ;;
9694
9695 uts4*)
9696 lt_prog_compiler_pic='-pic'
9697 lt_prog_compiler_static='-Bstatic'
9698 ;;
9699
9700 *)
9701 lt_prog_compiler_can_build_shared=no
9702 ;;
9703 esac
9704 fi
9705
9706 case $host_os in
9707 # For platforms that do not support PIC, -DPIC is meaningless:
9708 *djgpp*)
9709 lt_prog_compiler_pic=
9710 ;;
9711 *)
9712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9713 ;;
9714 esac
9715
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9717 printf %s "checking for $compiler option to produce PIC... " >&6; }
9718 if test ${lt_cv_prog_compiler_pic+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else $as_nop
9722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9723 fi
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9725 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9726 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9727
9728 #
9729 # Check to make sure the PIC flag actually works.
9730 #
9731 if test -n "$lt_prog_compiler_pic"; then
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9733 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9734 if test ${lt_cv_prog_compiler_pic_works+y}
9735 then :
9736 printf %s "(cached) " >&6
9737 else $as_nop
9738 lt_cv_prog_compiler_pic_works=no
9739 ac_outfile=conftest.$ac_objext
9740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9741 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9742 # Insert the option either (1) after the last *FLAGS variable, or
9743 # (2) before a word containing "conftest.", or (3) at the end.
9744 # Note that $ac_compile itself does not contain backslashes and begins
9745 # with a dollar sign (not a hyphen), so the echo should work correctly.
9746 # The option is referenced via a variable to avoid confusing sed.
9747 lt_compile=`echo "$ac_compile" | $SED \
9748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9750 -e 's:$: $lt_compiler_flag:'`
9751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9752 (eval "$lt_compile" 2>conftest.err)
9753 ac_status=$?
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 if (exit $ac_status) && test -s "$ac_outfile"; then
9757 # The compiler can only warn and ignore the option if not recognized
9758 # So say no if there are warnings other than the usual output.
9759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9762 lt_cv_prog_compiler_pic_works=yes
9763 fi
9764 fi
9765 $RM conftest*
9766
9767 fi
9768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9769 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9770
9771 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9772 case $lt_prog_compiler_pic in
9773 "" | " "*) ;;
9774 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9775 esac
9776 else
9777 lt_prog_compiler_pic=
9778 lt_prog_compiler_can_build_shared=no
9779 fi
9780
9781 fi
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793 #
9794 # Check to make sure the static flag actually works.
9795 #
9796 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9798 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9799 if test ${lt_cv_prog_compiler_static_works+y}
9800 then :
9801 printf %s "(cached) " >&6
9802 else $as_nop
9803 lt_cv_prog_compiler_static_works=no
9804 save_LDFLAGS=$LDFLAGS
9805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9806 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9808 # The linker can only warn and ignore the option if not recognized
9809 # So say no if there are warnings
9810 if test -s conftest.err; then
9811 # Append any errors to the config.log.
9812 cat conftest.err 1>&5
9813 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9815 if diff conftest.exp conftest.er2 >/dev/null; then
9816 lt_cv_prog_compiler_static_works=yes
9817 fi
9818 else
9819 lt_cv_prog_compiler_static_works=yes
9820 fi
9821 fi
9822 $RM -r conftest*
9823 LDFLAGS=$save_LDFLAGS
9824
9825 fi
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9827 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9828
9829 if test yes = "$lt_cv_prog_compiler_static_works"; then
9830 :
9831 else
9832 lt_prog_compiler_static=
9833 fi
9834
9835
9836
9837
9838
9839
9840
9841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9842 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9843 if test ${lt_cv_prog_compiler_c_o+y}
9844 then :
9845 printf %s "(cached) " >&6
9846 else $as_nop
9847 lt_cv_prog_compiler_c_o=no
9848 $RM -r conftest 2>/dev/null
9849 mkdir conftest
9850 cd conftest
9851 mkdir out
9852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9853
9854 lt_compiler_flag="-o out/conftest2.$ac_objext"
9855 # Insert the option either (1) after the last *FLAGS variable, or
9856 # (2) before a word containing "conftest.", or (3) at the end.
9857 # Note that $ac_compile itself does not contain backslashes and begins
9858 # with a dollar sign (not a hyphen), so the echo should work correctly.
9859 lt_compile=`echo "$ac_compile" | $SED \
9860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9862 -e 's:$: $lt_compiler_flag:'`
9863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9864 (eval "$lt_compile" 2>out/conftest.err)
9865 ac_status=$?
9866 cat out/conftest.err >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9869 then
9870 # The compiler can only warn and ignore the option if not recognized
9871 # So say no if there are warnings
9872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9875 lt_cv_prog_compiler_c_o=yes
9876 fi
9877 fi
9878 chmod u+w . 2>&5
9879 $RM conftest*
9880 # SGI C++ compiler will create directory out/ii_files/ for
9881 # template instantiation
9882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9883 $RM out/* && rmdir out
9884 cd ..
9885 $RM -r conftest
9886 $RM conftest*
9887
9888 fi
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9890 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9891
9892
9893
9894
9895
9896
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9898 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9899 if test ${lt_cv_prog_compiler_c_o+y}
9900 then :
9901 printf %s "(cached) " >&6
9902 else $as_nop
9903 lt_cv_prog_compiler_c_o=no
9904 $RM -r conftest 2>/dev/null
9905 mkdir conftest
9906 cd conftest
9907 mkdir out
9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9909
9910 lt_compiler_flag="-o out/conftest2.$ac_objext"
9911 # Insert the option either (1) after the last *FLAGS variable, or
9912 # (2) before a word containing "conftest.", or (3) at the end.
9913 # Note that $ac_compile itself does not contain backslashes and begins
9914 # with a dollar sign (not a hyphen), so the echo should work correctly.
9915 lt_compile=`echo "$ac_compile" | $SED \
9916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9918 -e 's:$: $lt_compiler_flag:'`
9919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9920 (eval "$lt_compile" 2>out/conftest.err)
9921 ac_status=$?
9922 cat out/conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9925 then
9926 # The compiler can only warn and ignore the option if not recognized
9927 # So say no if there are warnings
9928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9931 lt_cv_prog_compiler_c_o=yes
9932 fi
9933 fi
9934 chmod u+w . 2>&5
9935 $RM conftest*
9936 # SGI C++ compiler will create directory out/ii_files/ for
9937 # template instantiation
9938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9939 $RM out/* && rmdir out
9940 cd ..
9941 $RM -r conftest
9942 $RM conftest*
9943
9944 fi
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9946 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9947
9948
9949
9950
9951 hard_links=nottested
9952 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9953 # do not overwrite the value of need_locks provided by the user
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9955 printf %s "checking if we can lock with hard links... " >&6; }
9956 hard_links=yes
9957 $RM conftest*
9958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9959 touch conftest.a
9960 ln conftest.a conftest.b 2>&5 || hard_links=no
9961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9963 printf "%s\n" "$hard_links" >&6; }
9964 if test no = "$hard_links"; then
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9966 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9967 need_locks=warn
9968 fi
9969 else
9970 need_locks=no
9971 fi
9972
9973
9974
9975
9976
9977
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9979 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9980
9981 runpath_var=
9982 allow_undefined_flag=
9983 always_export_symbols=no
9984 archive_cmds=
9985 archive_expsym_cmds=
9986 compiler_needs_object=no
9987 enable_shared_with_static_runtimes=no
9988 export_dynamic_flag_spec=
9989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9990 hardcode_automatic=no
9991 hardcode_direct=no
9992 hardcode_direct_absolute=no
9993 hardcode_libdir_flag_spec=
9994 hardcode_libdir_separator=
9995 hardcode_minus_L=no
9996 hardcode_shlibpath_var=unsupported
9997 inherit_rpath=no
9998 link_all_deplibs=unknown
9999 module_cmds=
10000 module_expsym_cmds=
10001 old_archive_from_new_cmds=
10002 old_archive_from_expsyms_cmds=
10003 thread_safe_flag_spec=
10004 whole_archive_flag_spec=
10005 # include_expsyms should be a list of space-separated symbols to be *always*
10006 # included in the symbol list
10007 include_expsyms=
10008 # exclude_expsyms can be an extended regexp of symbols to exclude
10009 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10010 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10011 # as well as any symbol that contains 'd'.
10012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10014 # platforms (ab)use it in PIC code, but their linkers get confused if
10015 # the symbol is explicitly referenced. Since portable code cannot
10016 # rely on this symbol name, it's probably fine to never include it in
10017 # preloaded symbol tables.
10018 # Exclude shared library initialization/finalization symbols.
10019 extract_expsyms_cmds=
10020
10021 case $host_os in
10022 cygwin* | mingw* | pw32* | cegcc*)
10023 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10024 # When not using gcc, we currently assume that we are using
10025 # Microsoft Visual C++ or Intel C++ Compiler.
10026 if test yes != "$GCC"; then
10027 with_gnu_ld=no
10028 fi
10029 ;;
10030 interix*)
10031 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10032 with_gnu_ld=yes
10033 ;;
10034 openbsd* | bitrig*)
10035 with_gnu_ld=no
10036 ;;
10037 esac
10038
10039 ld_shlibs=yes
10040
10041 # On some targets, GNU ld is compatible enough with the native linker
10042 # that we're better off using the native interface for both.
10043 lt_use_gnu_ld_interface=no
10044 if test yes = "$with_gnu_ld"; then
10045 case $host_os in
10046 aix*)
10047 # The AIX port of GNU ld has always aspired to compatibility
10048 # with the native linker. However, as the warning in the GNU ld
10049 # block says, versions before 2.19.5* couldn't really create working
10050 # shared libraries, regardless of the interface used.
10051 case `$LD -v 2>&1` in
10052 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10053 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10054 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10055 *)
10056 lt_use_gnu_ld_interface=yes
10057 ;;
10058 esac
10059 ;;
10060 *)
10061 lt_use_gnu_ld_interface=yes
10062 ;;
10063 esac
10064 fi
10065
10066 if test yes = "$lt_use_gnu_ld_interface"; then
10067 # If archive_cmds runs LD, not CC, wlarc should be empty
10068 wlarc='$wl'
10069
10070 # Set some defaults for GNU ld with shared library support. These
10071 # are reset later if shared libraries are not supported. Putting them
10072 # here allows them to be overridden if necessary.
10073 runpath_var=LD_RUN_PATH
10074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10075 export_dynamic_flag_spec='$wl--export-dynamic'
10076 # ancient GNU ld didn't support --whole-archive et. al.
10077 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10078 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10079 else
10080 whole_archive_flag_spec=
10081 fi
10082 supports_anon_versioning=no
10083 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10084 *GNU\ gold*) supports_anon_versioning=yes ;;
10085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10088 *\ 2.11.*) ;; # other 2.11 versions
10089 *) supports_anon_versioning=yes ;;
10090 esac
10091
10092 # See if GNU ld supports shared libraries.
10093 case $host_os in
10094 aix[3-9]*)
10095 # On AIX/PPC, the GNU linker is very broken
10096 if test ia64 != "$host_cpu"; then
10097 ld_shlibs=no
10098 cat <<_LT_EOF 1>&2
10099
10100 *** Warning: the GNU linker, at least up to release 2.19, is reported
10101 *** to be unable to reliably create shared libraries on AIX.
10102 *** Therefore, libtool is disabling shared libraries support. If you
10103 *** really care for shared libraries, you may want to install binutils
10104 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10105 *** You will then need to restart the configuration process.
10106
10107 _LT_EOF
10108 fi
10109 ;;
10110
10111 amigaos*)
10112 case $host_cpu in
10113 powerpc)
10114 # see comment about AmigaOS4 .so support
10115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10116 archive_expsym_cmds=''
10117 ;;
10118 m68k)
10119 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)'
10120 hardcode_libdir_flag_spec='-L$libdir'
10121 hardcode_minus_L=yes
10122 ;;
10123 esac
10124 ;;
10125
10126 beos*)
10127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10128 allow_undefined_flag=unsupported
10129 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10130 # support --undefined. This deserves some investigation. FIXME
10131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10132 else
10133 ld_shlibs=no
10134 fi
10135 ;;
10136
10137 cygwin* | mingw* | pw32* | cegcc*)
10138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10139 # as there is no search path for DLLs.
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 export_dynamic_flag_spec='$wl--export-all-symbols'
10142 allow_undefined_flag=unsupported
10143 always_export_symbols=no
10144 enable_shared_with_static_runtimes=yes
10145 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'
10146 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10147
10148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10150 # If the export-symbols file already is a .def file, use it as
10151 # is; otherwise, prepend EXPORTS...
10152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10153 cp $export_symbols $output_objdir/$soname.def;
10154 else
10155 echo EXPORTS > $output_objdir/$soname.def;
10156 cat $export_symbols >> $output_objdir/$soname.def;
10157 fi~
10158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10159 else
10160 ld_shlibs=no
10161 fi
10162 ;;
10163
10164 haiku*)
10165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10166 link_all_deplibs=yes
10167 ;;
10168
10169 os2*)
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_minus_L=yes
10172 allow_undefined_flag=unsupported
10173 shrext_cmds=.dll
10174 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10177 $ECHO EXPORTS >> $output_objdir/$libname.def~
10178 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10179 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10180 emximp -o $lib $output_objdir/$libname.def'
10181 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10184 $ECHO EXPORTS >> $output_objdir/$libname.def~
10185 prefix_cmds="$SED"~
10186 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10187 prefix_cmds="$prefix_cmds -e 1d";
10188 fi~
10189 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10190 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10191 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10192 emximp -o $lib $output_objdir/$libname.def'
10193 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10194 enable_shared_with_static_runtimes=yes
10195 file_list_spec='@'
10196 ;;
10197
10198 interix[3-9]*)
10199 hardcode_direct=no
10200 hardcode_shlibpath_var=no
10201 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10202 export_dynamic_flag_spec='$wl-E'
10203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10204 # Instead, shared libraries are loaded at an image base (0x10000000 by
10205 # default) and relocated if they conflict, which is a slow very memory
10206 # consuming and fragmenting process. To avoid this, we pick a random,
10207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10208 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10210 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'
10211 ;;
10212
10213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10214 tmp_diet=no
10215 if test linux-dietlibc = "$host_os"; then
10216 case $cc_basename in
10217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10218 esac
10219 fi
10220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10221 && test no = "$tmp_diet"
10222 then
10223 tmp_addflag=' $pic_flag'
10224 tmp_sharedflag='-shared'
10225 case $cc_basename,$host_cpu in
10226 pgcc*) # Portland Group C compiler
10227 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'
10228 tmp_addflag=' $pic_flag'
10229 ;;
10230 pgf77* | pgf90* | pgf95* | pgfortran*)
10231 # Portland Group f77 and f90 compilers
10232 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'
10233 tmp_addflag=' $pic_flag -Mnomain' ;;
10234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10235 tmp_addflag=' -i_dynamic' ;;
10236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10237 tmp_addflag=' -i_dynamic -nofor_main' ;;
10238 ifc* | ifort*) # Intel Fortran compiler
10239 tmp_addflag=' -nofor_main' ;;
10240 lf95*) # Lahey Fortran 8.1
10241 whole_archive_flag_spec=
10242 tmp_sharedflag='--shared' ;;
10243 nagfor*) # NAGFOR 5.3
10244 tmp_sharedflag='-Wl,-shared' ;;
10245 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10246 tmp_sharedflag='-qmkshrobj'
10247 tmp_addflag= ;;
10248 nvcc*) # Cuda Compiler Driver 2.2
10249 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'
10250 compiler_needs_object=yes
10251 ;;
10252 esac
10253 case `$CC -V 2>&1 | $SED 5q` in
10254 *Sun\ C*) # Sun C 5.9
10255 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'
10256 compiler_needs_object=yes
10257 tmp_sharedflag='-G' ;;
10258 *Sun\ F*) # Sun Fortran 8.3
10259 tmp_sharedflag='-G' ;;
10260 esac
10261 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10262
10263 if test yes = "$supports_anon_versioning"; then
10264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10265 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10266 echo "local: *; };" >> $output_objdir/$libname.ver~
10267 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10268 fi
10269
10270 case $cc_basename in
10271 tcc*)
10272 export_dynamic_flag_spec='-rdynamic'
10273 ;;
10274 xlf* | bgf* | bgxlf* | mpixlf*)
10275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10277 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10278 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10279 if test yes = "$supports_anon_versioning"; then
10280 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10281 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10282 echo "local: *; };" >> $output_objdir/$libname.ver~
10283 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10284 fi
10285 ;;
10286 esac
10287 else
10288 ld_shlibs=no
10289 fi
10290 ;;
10291
10292 netbsd*)
10293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10295 wlarc=
10296 else
10297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10299 fi
10300 ;;
10301
10302 solaris*)
10303 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10304 ld_shlibs=no
10305 cat <<_LT_EOF 1>&2
10306
10307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10308 *** create shared libraries on Solaris systems. Therefore, libtool
10309 *** is disabling shared libraries support. We urge you to upgrade GNU
10310 *** binutils to release 2.9.1 or newer. Another option is to modify
10311 *** your PATH or compiler configuration so that the native linker is
10312 *** used, and then restart.
10313
10314 _LT_EOF
10315 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10318 else
10319 ld_shlibs=no
10320 fi
10321 ;;
10322
10323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10324 case `$LD -v 2>&1` in
10325 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10326 ld_shlibs=no
10327 cat <<_LT_EOF 1>&2
10328
10329 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10330 *** reliably create shared libraries on SCO systems. Therefore, libtool
10331 *** is disabling shared libraries support. We urge you to upgrade GNU
10332 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10333 *** your PATH or compiler configuration so that the native linker is
10334 *** used, and then restart.
10335
10336 _LT_EOF
10337 ;;
10338 *)
10339 # For security reasons, it is highly recommended that you always
10340 # use absolute paths for naming shared libraries, and exclude the
10341 # DT_RUNPATH tag from executables and libraries. But doing so
10342 # requires that you compile everything twice, which is a pain.
10343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10347 else
10348 ld_shlibs=no
10349 fi
10350 ;;
10351 esac
10352 ;;
10353
10354 sunos4*)
10355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10356 wlarc=
10357 hardcode_direct=yes
10358 hardcode_shlibpath_var=no
10359 ;;
10360
10361 *)
10362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10365 else
10366 ld_shlibs=no
10367 fi
10368 ;;
10369 esac
10370
10371 if test no = "$ld_shlibs"; then
10372 runpath_var=
10373 hardcode_libdir_flag_spec=
10374 export_dynamic_flag_spec=
10375 whole_archive_flag_spec=
10376 fi
10377 else
10378 # PORTME fill in a description of your system's linker (not GNU ld)
10379 case $host_os in
10380 aix3*)
10381 allow_undefined_flag=unsupported
10382 always_export_symbols=yes
10383 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'
10384 # Note: this linker hardcodes the directories in LIBPATH if there
10385 # are no directories specified by -L.
10386 hardcode_minus_L=yes
10387 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10388 # Neither direct hardcoding nor static linking is supported with a
10389 # broken collect2.
10390 hardcode_direct=unsupported
10391 fi
10392 ;;
10393
10394 aix[4-9]*)
10395 if test ia64 = "$host_cpu"; then
10396 # On IA64, the linker does run time linking by default, so we don't
10397 # have to do anything special.
10398 aix_use_runtimelinking=no
10399 exp_sym_flag='-Bexport'
10400 no_entry_flag=
10401 else
10402 # If we're using GNU nm, then we don't want the "-C" option.
10403 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10404 # Without the "-l" option, or with the "-B" option, AIX nm treats
10405 # weak defined symbols like other global defined symbols, whereas
10406 # GNU nm marks them as "W".
10407 # While the 'weak' keyword is ignored in the Export File, we need
10408 # it in the Import File for the 'aix-soname' feature, so we have
10409 # to replace the "-B" option with "-P" for AIX nm.
10410 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10411 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'
10412 else
10413 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'
10414 fi
10415 aix_use_runtimelinking=no
10416
10417 # Test if we are trying to use run time linking or normal
10418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10419 # have runtime linking enabled, and use it for executables.
10420 # For shared libraries, we enable/disable runtime linking
10421 # depending on the kind of the shared library created -
10422 # when "with_aix_soname,aix_use_runtimelinking" is:
10423 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10424 # "aix,yes" lib.so shared, rtl:yes, for executables
10425 # lib.a static archive
10426 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10427 # lib.a(lib.so.V) shared, rtl:no, for executables
10428 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10429 # lib.a(lib.so.V) shared, rtl:no
10430 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10431 # lib.a static archive
10432 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10433 for ld_flag in $LDFLAGS; do
10434 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10435 aix_use_runtimelinking=yes
10436 break
10437 fi
10438 done
10439 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10440 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10441 # so we don't have lib.a shared libs to link our executables.
10442 # We have to force runtime linking in this case.
10443 aix_use_runtimelinking=yes
10444 LDFLAGS="$LDFLAGS -Wl,-brtl"
10445 fi
10446 ;;
10447 esac
10448
10449 exp_sym_flag='-bexport'
10450 no_entry_flag='-bnoentry'
10451 fi
10452
10453 # When large executables or shared objects are built, AIX ld can
10454 # have problems creating the table of contents. If linking a library
10455 # or program results in "error TOC overflow" add -mminimal-toc to
10456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10458
10459 archive_cmds=''
10460 hardcode_direct=yes
10461 hardcode_direct_absolute=yes
10462 hardcode_libdir_separator=':'
10463 link_all_deplibs=yes
10464 file_list_spec='$wl-f,'
10465 case $with_aix_soname,$aix_use_runtimelinking in
10466 aix,*) ;; # traditional, no import file
10467 svr4,* | *,yes) # use import file
10468 # The Import File defines what to hardcode.
10469 hardcode_direct=no
10470 hardcode_direct_absolute=no
10471 ;;
10472 esac
10473
10474 if test yes = "$GCC"; then
10475 case $host_os in aix4.[012]|aix4.[012].*)
10476 # We only want to do this on AIX 4.2 and lower, the check
10477 # below for broken collect2 doesn't work under 4.3+
10478 collect2name=`$CC -print-prog-name=collect2`
10479 if test -f "$collect2name" &&
10480 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10481 then
10482 # We have reworked collect2
10483 :
10484 else
10485 # We have old collect2
10486 hardcode_direct=unsupported
10487 # It fails to find uninstalled libraries when the uninstalled
10488 # path is not listed in the libpath. Setting hardcode_minus_L
10489 # to unsupported forces relinking
10490 hardcode_minus_L=yes
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_libdir_separator=
10493 fi
10494 ;;
10495 esac
10496 shared_flag='-shared'
10497 if test yes = "$aix_use_runtimelinking"; then
10498 shared_flag="$shared_flag "'$wl-G'
10499 fi
10500 # Need to ensure runtime linking is disabled for the traditional
10501 # shared library, or the linker may eventually find shared libraries
10502 # /with/ Import File - we do not want to mix them.
10503 shared_flag_aix='-shared'
10504 shared_flag_svr4='-shared $wl-G'
10505 else
10506 # not using gcc
10507 if test ia64 = "$host_cpu"; then
10508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10509 # chokes on -Wl,-G. The following line is correct:
10510 shared_flag='-G'
10511 else
10512 if test yes = "$aix_use_runtimelinking"; then
10513 shared_flag='$wl-G'
10514 else
10515 shared_flag='$wl-bM:SRE'
10516 fi
10517 shared_flag_aix='$wl-bM:SRE'
10518 shared_flag_svr4='$wl-G'
10519 fi
10520 fi
10521
10522 export_dynamic_flag_spec='$wl-bexpall'
10523 # It seems that -bexpall does not export symbols beginning with
10524 # underscore (_), so it is better to generate a list of symbols to export.
10525 always_export_symbols=yes
10526 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10527 # Warning - without using the other runtime loading flags (-brtl),
10528 # -berok will link without error, but may produce a broken library.
10529 allow_undefined_flag='-berok'
10530 # Determine the default libpath from the value encoded in an
10531 # empty executable.
10532 if test set = "${lt_cv_aix_libpath+set}"; then
10533 aix_libpath=$lt_cv_aix_libpath
10534 else
10535 if test ${lt_cv_aix_libpath_+y}
10536 then :
10537 printf %s "(cached) " >&6
10538 else $as_nop
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541
10542 int
10543 main (void)
10544 {
10545
10546 ;
10547 return 0;
10548 }
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"
10551 then :
10552
10553 lt_aix_libpath_sed='
10554 /Import File Strings/,/^$/ {
10555 /^0/ {
10556 s/^0 *\([^ ]*\) *$/\1/
10557 p
10558 }
10559 }'
10560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10561 # Check for a 64-bit object if we didn't find anything.
10562 if test -z "$lt_cv_aix_libpath_"; then
10563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10564 fi
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10567 conftest$ac_exeext conftest.$ac_ext
10568 if test -z "$lt_cv_aix_libpath_"; then
10569 lt_cv_aix_libpath_=/usr/lib:/lib
10570 fi
10571
10572 fi
10573
10574 aix_libpath=$lt_cv_aix_libpath_
10575 fi
10576
10577 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10578 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
10579 else
10580 if test ia64 = "$host_cpu"; then
10581 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10582 allow_undefined_flag="-z nodefs"
10583 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"
10584 else
10585 # Determine the default libpath from the value encoded in an
10586 # empty executable.
10587 if test set = "${lt_cv_aix_libpath+set}"; then
10588 aix_libpath=$lt_cv_aix_libpath
10589 else
10590 if test ${lt_cv_aix_libpath_+y}
10591 then :
10592 printf %s "(cached) " >&6
10593 else $as_nop
10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 /* end confdefs.h. */
10596
10597 int
10598 main (void)
10599 {
10600
10601 ;
10602 return 0;
10603 }
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"
10606 then :
10607
10608 lt_aix_libpath_sed='
10609 /Import File Strings/,/^$/ {
10610 /^0/ {
10611 s/^0 *\([^ ]*\) *$/\1/
10612 p
10613 }
10614 }'
10615 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10616 # Check for a 64-bit object if we didn't find anything.
10617 if test -z "$lt_cv_aix_libpath_"; then
10618 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10619 fi
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10622 conftest$ac_exeext conftest.$ac_ext
10623 if test -z "$lt_cv_aix_libpath_"; then
10624 lt_cv_aix_libpath_=/usr/lib:/lib
10625 fi
10626
10627 fi
10628
10629 aix_libpath=$lt_cv_aix_libpath_
10630 fi
10631
10632 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10633 # Warning - without using the other run time loading flags,
10634 # -berok will link without error, but may produce a broken library.
10635 no_undefined_flag=' $wl-bernotok'
10636 allow_undefined_flag=' $wl-berok'
10637 if test yes = "$with_gnu_ld"; then
10638 # We only use this code for GNU lds that support --whole-archive.
10639 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10640 else
10641 # Exported symbols can be pulled into shared objects from archives
10642 whole_archive_flag_spec='$convenience'
10643 fi
10644 archive_cmds_need_lc=yes
10645 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10646 # -brtl affects multiple linker settings, -berok does not and is overridden later
10647 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10648 if test svr4 != "$with_aix_soname"; then
10649 # This is similar to how AIX traditionally builds its shared libraries.
10650 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'
10651 fi
10652 if test aix != "$with_aix_soname"; then
10653 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'
10654 else
10655 # used by -dlpreopen to get the symbols
10656 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10657 fi
10658 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10659 fi
10660 fi
10661 ;;
10662
10663 amigaos*)
10664 case $host_cpu in
10665 powerpc)
10666 # see comment about AmigaOS4 .so support
10667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10668 archive_expsym_cmds=''
10669 ;;
10670 m68k)
10671 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)'
10672 hardcode_libdir_flag_spec='-L$libdir'
10673 hardcode_minus_L=yes
10674 ;;
10675 esac
10676 ;;
10677
10678 bsdi[45]*)
10679 export_dynamic_flag_spec=-rdynamic
10680 ;;
10681
10682 cygwin* | mingw* | pw32* | cegcc*)
10683 # When not using gcc, we currently assume that we are using
10684 # Microsoft Visual C++ or Intel C++ Compiler.
10685 # hardcode_libdir_flag_spec is actually meaningless, as there is
10686 # no search path for DLLs.
10687 case $cc_basename in
10688 cl* | icl*)
10689 # Native MSVC or ICC
10690 hardcode_libdir_flag_spec=' '
10691 allow_undefined_flag=unsupported
10692 always_export_symbols=yes
10693 file_list_spec='@'
10694 # Tell ltmain to make .lib files, not .a files.
10695 libext=lib
10696 # Tell ltmain to make .dll files, not .so files.
10697 shrext_cmds=.dll
10698 # FIXME: Setting linknames here is a bad hack.
10699 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10700 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10701 cp "$export_symbols" "$output_objdir/$soname.def";
10702 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10703 else
10704 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10705 fi~
10706 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10707 linknames='
10708 # The linker will not automatically build a static lib if we build a DLL.
10709 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10710 enable_shared_with_static_runtimes=yes
10711 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10713 # Don't use ranlib
10714 old_postinstall_cmds='chmod 644 $oldlib'
10715 postlink_cmds='lt_outputfile="@OUTPUT@"~
10716 lt_tool_outputfile="@TOOL_OUTPUT@"~
10717 case $lt_outputfile in
10718 *.exe|*.EXE) ;;
10719 *)
10720 lt_outputfile=$lt_outputfile.exe
10721 lt_tool_outputfile=$lt_tool_outputfile.exe
10722 ;;
10723 esac~
10724 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10725 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10726 $RM "$lt_outputfile.manifest";
10727 fi'
10728 ;;
10729 *)
10730 # Assume MSVC and ICC wrapper
10731 hardcode_libdir_flag_spec=' '
10732 allow_undefined_flag=unsupported
10733 # Tell ltmain to make .lib files, not .a files.
10734 libext=lib
10735 # Tell ltmain to make .dll files, not .so files.
10736 shrext_cmds=.dll
10737 # FIXME: Setting linknames here is a bad hack.
10738 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10739 # The linker will automatically build a .lib file if we build a DLL.
10740 old_archive_from_new_cmds='true'
10741 # FIXME: Should let the user specify the lib program.
10742 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10743 enable_shared_with_static_runtimes=yes
10744 ;;
10745 esac
10746 ;;
10747
10748 darwin* | rhapsody*)
10749
10750
10751 archive_cmds_need_lc=no
10752 hardcode_direct=no
10753 hardcode_automatic=yes
10754 hardcode_shlibpath_var=unsupported
10755 if test yes = "$lt_cv_ld_force_load"; then
10756 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\"`'
10757
10758 else
10759 whole_archive_flag_spec=''
10760 fi
10761 link_all_deplibs=yes
10762 allow_undefined_flag=$_lt_dar_allow_undefined
10763 case $cc_basename in
10764 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10765 *) _lt_dar_can_shared=$GCC ;;
10766 esac
10767 if test yes = "$_lt_dar_can_shared"; then
10768 output_verbose_link_cmd=func_echo_all
10769 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10770 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10771 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"
10772 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"
10773
10774 else
10775 ld_shlibs=no
10776 fi
10777
10778 ;;
10779
10780 dgux*)
10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 hardcode_libdir_flag_spec='-L$libdir'
10783 hardcode_shlibpath_var=no
10784 ;;
10785
10786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10787 # support. Future versions do this automatically, but an explicit c++rt0.o
10788 # does not break anything, and helps significantly (at the cost of a little
10789 # extra space).
10790 freebsd2.2*)
10791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10792 hardcode_libdir_flag_spec='-R$libdir'
10793 hardcode_direct=yes
10794 hardcode_shlibpath_var=no
10795 ;;
10796
10797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10798 freebsd2.*)
10799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_direct=yes
10801 hardcode_minus_L=yes
10802 hardcode_shlibpath_var=no
10803 ;;
10804
10805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10806 freebsd* | dragonfly* | midnightbsd*)
10807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10808 hardcode_libdir_flag_spec='-R$libdir'
10809 hardcode_direct=yes
10810 hardcode_shlibpath_var=no
10811 ;;
10812
10813 hpux9*)
10814 if test yes = "$GCC"; then
10815 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'
10816 else
10817 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'
10818 fi
10819 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10820 hardcode_libdir_separator=:
10821 hardcode_direct=yes
10822
10823 # hardcode_minus_L: Not really in the search PATH,
10824 # but as the default location of the library.
10825 hardcode_minus_L=yes
10826 export_dynamic_flag_spec='$wl-E'
10827 ;;
10828
10829 hpux10*)
10830 if test yes,no = "$GCC,$with_gnu_ld"; then
10831 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10832 else
10833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10834 fi
10835 if test no = "$with_gnu_ld"; then
10836 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10837 hardcode_libdir_separator=:
10838 hardcode_direct=yes
10839 hardcode_direct_absolute=yes
10840 export_dynamic_flag_spec='$wl-E'
10841 # hardcode_minus_L: Not really in the search PATH,
10842 # but as the default location of the library.
10843 hardcode_minus_L=yes
10844 fi
10845 ;;
10846
10847 hpux11*)
10848 if test yes,no = "$GCC,$with_gnu_ld"; then
10849 case $host_cpu in
10850 hppa*64*)
10851 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 ;;
10853 ia64*)
10854 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10855 ;;
10856 *)
10857 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10858 ;;
10859 esac
10860 else
10861 case $host_cpu in
10862 hppa*64*)
10863 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10864 ;;
10865 ia64*)
10866 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10867 ;;
10868 *)
10869
10870 # Older versions of the 11.00 compiler do not understand -b yet
10871 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10873 printf %s "checking if $CC understands -b... " >&6; }
10874 if test ${lt_cv_prog_compiler__b+y}
10875 then :
10876 printf %s "(cached) " >&6
10877 else $as_nop
10878 lt_cv_prog_compiler__b=no
10879 save_LDFLAGS=$LDFLAGS
10880 LDFLAGS="$LDFLAGS -b"
10881 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10883 # The linker can only warn and ignore the option if not recognized
10884 # So say no if there are warnings
10885 if test -s conftest.err; then
10886 # Append any errors to the config.log.
10887 cat conftest.err 1>&5
10888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10890 if diff conftest.exp conftest.er2 >/dev/null; then
10891 lt_cv_prog_compiler__b=yes
10892 fi
10893 else
10894 lt_cv_prog_compiler__b=yes
10895 fi
10896 fi
10897 $RM -r conftest*
10898 LDFLAGS=$save_LDFLAGS
10899
10900 fi
10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10902 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10903
10904 if test yes = "$lt_cv_prog_compiler__b"; then
10905 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10906 else
10907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10908 fi
10909
10910 ;;
10911 esac
10912 fi
10913 if test no = "$with_gnu_ld"; then
10914 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10915 hardcode_libdir_separator=:
10916
10917 case $host_cpu in
10918 hppa*64*|ia64*)
10919 hardcode_direct=no
10920 hardcode_shlibpath_var=no
10921 ;;
10922 *)
10923 hardcode_direct=yes
10924 hardcode_direct_absolute=yes
10925 export_dynamic_flag_spec='$wl-E'
10926
10927 # hardcode_minus_L: Not really in the search PATH,
10928 # but as the default location of the library.
10929 hardcode_minus_L=yes
10930 ;;
10931 esac
10932 fi
10933 ;;
10934
10935 irix5* | irix6* | nonstopux*)
10936 if test yes = "$GCC"; then
10937 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'
10938 # Try to use the -exported_symbol ld option, if it does not
10939 # work, assume that -exports_file does not work either and
10940 # implicitly export all symbols.
10941 # This should be the same for all languages, so no per-tag cache variable.
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10943 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10944 if test ${lt_cv_irix_exported_symbol+y}
10945 then :
10946 printf %s "(cached) " >&6
10947 else $as_nop
10948 save_LDFLAGS=$LDFLAGS
10949 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 int foo (void) { return 0; }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"
10955 then :
10956 lt_cv_irix_exported_symbol=yes
10957 else $as_nop
10958 lt_cv_irix_exported_symbol=no
10959 fi
10960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10961 conftest$ac_exeext conftest.$ac_ext
10962 LDFLAGS=$save_LDFLAGS
10963 fi
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10965 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10966 if test yes = "$lt_cv_irix_exported_symbol"; then
10967 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'
10968 fi
10969 else
10970 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'
10971 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'
10972 fi
10973 archive_cmds_need_lc='no'
10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10975 hardcode_libdir_separator=:
10976 inherit_rpath=yes
10977 link_all_deplibs=yes
10978 ;;
10979
10980 linux*)
10981 case $cc_basename in
10982 tcc*)
10983 # Fabrice Bellard et al's Tiny C Compiler
10984 ld_shlibs=yes
10985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10986 ;;
10987 esac
10988 ;;
10989
10990 netbsd*)
10991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10993 else
10994 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10995 fi
10996 hardcode_libdir_flag_spec='-R$libdir'
10997 hardcode_direct=yes
10998 hardcode_shlibpath_var=no
10999 ;;
11000
11001 newsos6)
11002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11003 hardcode_direct=yes
11004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11005 hardcode_libdir_separator=:
11006 hardcode_shlibpath_var=no
11007 ;;
11008
11009 *nto* | *qnx*)
11010 ;;
11011
11012 openbsd* | bitrig*)
11013 if test -f /usr/libexec/ld.so; then
11014 hardcode_direct=yes
11015 hardcode_shlibpath_var=no
11016 hardcode_direct_absolute=yes
11017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11019 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11020 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11021 export_dynamic_flag_spec='$wl-E'
11022 else
11023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11024 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11025 fi
11026 else
11027 ld_shlibs=no
11028 fi
11029 ;;
11030
11031 os2*)
11032 hardcode_libdir_flag_spec='-L$libdir'
11033 hardcode_minus_L=yes
11034 allow_undefined_flag=unsupported
11035 shrext_cmds=.dll
11036 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11037 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11038 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11039 $ECHO EXPORTS >> $output_objdir/$libname.def~
11040 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11042 emximp -o $lib $output_objdir/$libname.def'
11043 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11044 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11045 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11046 $ECHO EXPORTS >> $output_objdir/$libname.def~
11047 prefix_cmds="$SED"~
11048 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11049 prefix_cmds="$prefix_cmds -e 1d";
11050 fi~
11051 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11052 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11053 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11054 emximp -o $lib $output_objdir/$libname.def'
11055 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11056 enable_shared_with_static_runtimes=yes
11057 file_list_spec='@'
11058 ;;
11059
11060 osf3*)
11061 if test yes = "$GCC"; then
11062 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11063 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'
11064 else
11065 allow_undefined_flag=' -expect_unresolved \*'
11066 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'
11067 fi
11068 archive_cmds_need_lc='no'
11069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11070 hardcode_libdir_separator=:
11071 ;;
11072
11073 osf4* | osf5*) # as osf3* with the addition of -msym flag
11074 if test yes = "$GCC"; then
11075 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11076 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'
11077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11078 else
11079 allow_undefined_flag=' -expect_unresolved \*'
11080 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'
11081 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~
11082 $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'
11083
11084 # Both c and cxx compiler support -rpath directly
11085 hardcode_libdir_flag_spec='-rpath $libdir'
11086 fi
11087 archive_cmds_need_lc='no'
11088 hardcode_libdir_separator=:
11089 ;;
11090
11091 solaris*)
11092 no_undefined_flag=' -z defs'
11093 if test yes = "$GCC"; then
11094 wlarc='$wl'
11095 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11097 $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'
11098 else
11099 case `$CC -V 2>&1` in
11100 *"Compilers 5.0"*)
11101 wlarc=''
11102 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11104 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11105 ;;
11106 *)
11107 wlarc='$wl'
11108 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11110 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11111 ;;
11112 esac
11113 fi
11114 hardcode_libdir_flag_spec='-R$libdir'
11115 hardcode_shlibpath_var=no
11116 case $host_os in
11117 solaris2.[0-5] | solaris2.[0-5].*) ;;
11118 *)
11119 # The compiler driver will combine and reorder linker options,
11120 # but understands '-z linker_flag'. GCC discards it without '$wl',
11121 # but is careful enough not to reorder.
11122 # Supported since Solaris 2.6 (maybe 2.5.1?)
11123 if test yes = "$GCC"; then
11124 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11125 else
11126 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11127 fi
11128 ;;
11129 esac
11130 link_all_deplibs=yes
11131 ;;
11132
11133 sunos4*)
11134 if test sequent = "$host_vendor"; then
11135 # Use $CC to link under sequent, because it throws in some extra .o
11136 # files that make .init and .fini sections work.
11137 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11138 else
11139 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11140 fi
11141 hardcode_libdir_flag_spec='-L$libdir'
11142 hardcode_direct=yes
11143 hardcode_minus_L=yes
11144 hardcode_shlibpath_var=no
11145 ;;
11146
11147 sysv4)
11148 case $host_vendor in
11149 sni)
11150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11151 hardcode_direct=yes # is this really true???
11152 ;;
11153 siemens)
11154 ## LD is ld it makes a PLAMLIB
11155 ## CC just makes a GrossModule.
11156 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11157 reload_cmds='$CC -r -o $output$reload_objs'
11158 hardcode_direct=no
11159 ;;
11160 motorola)
11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11162 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11163 ;;
11164 esac
11165 runpath_var='LD_RUN_PATH'
11166 hardcode_shlibpath_var=no
11167 ;;
11168
11169 sysv4.3*)
11170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11171 hardcode_shlibpath_var=no
11172 export_dynamic_flag_spec='-Bexport'
11173 ;;
11174
11175 sysv4*MP*)
11176 if test -d /usr/nec; then
11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 hardcode_shlibpath_var=no
11179 runpath_var=LD_RUN_PATH
11180 hardcode_runpath_var=yes
11181 ld_shlibs=yes
11182 fi
11183 ;;
11184
11185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11186 no_undefined_flag='$wl-z,text'
11187 archive_cmds_need_lc=no
11188 hardcode_shlibpath_var=no
11189 runpath_var='LD_RUN_PATH'
11190
11191 if test yes = "$GCC"; then
11192 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11193 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11194 else
11195 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11196 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11197 fi
11198 ;;
11199
11200 sysv5* | sco3.2v5* | sco5v6*)
11201 # Note: We CANNOT use -z defs as we might desire, because we do not
11202 # link with -lc, and that would cause any symbols used from libc to
11203 # always be unresolved, which means just about no library would
11204 # ever link correctly. If we're not using GNU ld we use -z text
11205 # though, which does catch some bad symbols but isn't as heavy-handed
11206 # as -z defs.
11207 no_undefined_flag='$wl-z,text'
11208 allow_undefined_flag='$wl-z,nodefs'
11209 archive_cmds_need_lc=no
11210 hardcode_shlibpath_var=no
11211 hardcode_libdir_flag_spec='$wl-R,$libdir'
11212 hardcode_libdir_separator=':'
11213 link_all_deplibs=yes
11214 export_dynamic_flag_spec='$wl-Bexport'
11215 runpath_var='LD_RUN_PATH'
11216
11217 if test yes = "$GCC"; then
11218 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11219 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11220 else
11221 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11223 fi
11224 ;;
11225
11226 uts4*)
11227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228 hardcode_libdir_flag_spec='-L$libdir'
11229 hardcode_shlibpath_var=no
11230 ;;
11231
11232 *)
11233 ld_shlibs=no
11234 ;;
11235 esac
11236
11237 if test sni = "$host_vendor"; then
11238 case $host in
11239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11240 export_dynamic_flag_spec='$wl-Blargedynsym'
11241 ;;
11242 esac
11243 fi
11244 fi
11245
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11247 printf "%s\n" "$ld_shlibs" >&6; }
11248 test no = "$ld_shlibs" && can_build_shared=no
11249
11250 with_gnu_ld=$with_gnu_ld
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266 #
11267 # Do we need to explicitly link libc?
11268 #
11269 case "x$archive_cmds_need_lc" in
11270 x|xyes)
11271 # Assume -lc should be added
11272 archive_cmds_need_lc=yes
11273
11274 if test yes,yes = "$GCC,$enable_shared"; then
11275 case $archive_cmds in
11276 *'~'*)
11277 # FIXME: we may have to deal with multi-command sequences.
11278 ;;
11279 '$CC '*)
11280 # Test whether the compiler implicitly links with -lc since on some
11281 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11282 # to ld, don't add -lc before -lgcc.
11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11284 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11285 if test ${lt_cv_archive_cmds_need_lc+y}
11286 then :
11287 printf %s "(cached) " >&6
11288 else $as_nop
11289 $RM conftest*
11290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11291
11292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11293 (eval $ac_compile) 2>&5
11294 ac_status=$?
11295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11296 test $ac_status = 0; } 2>conftest.err; then
11297 soname=conftest
11298 lib=conftest
11299 libobjs=conftest.$ac_objext
11300 deplibs=
11301 wl=$lt_prog_compiler_wl
11302 pic_flag=$lt_prog_compiler_pic
11303 compiler_flags=-v
11304 linker_flags=-v
11305 verstring=
11306 output_objdir=.
11307 libname=conftest
11308 lt_save_allow_undefined_flag=$allow_undefined_flag
11309 allow_undefined_flag=
11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11311 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11312 ac_status=$?
11313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; }
11315 then
11316 lt_cv_archive_cmds_need_lc=no
11317 else
11318 lt_cv_archive_cmds_need_lc=yes
11319 fi
11320 allow_undefined_flag=$lt_save_allow_undefined_flag
11321 else
11322 cat conftest.err 1>&5
11323 fi
11324 $RM conftest*
11325
11326 fi
11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11328 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11329 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11330 ;;
11331 esac
11332 fi
11333 ;;
11334 esac
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11488 printf %s "checking dynamic linker characteristics... " >&6; }
11489
11490 if test yes = "$GCC"; then
11491 case $host_os in
11492 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11493 *) lt_awk_arg='/^libraries:/' ;;
11494 esac
11495 case $host_os in
11496 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11497 *) lt_sed_strip_eq='s|=/|/|g' ;;
11498 esac
11499 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11500 case $lt_search_path_spec in
11501 *\;*)
11502 # if the path contains ";" then we assume it to be the separator
11503 # otherwise default to the standard path separator (i.e. ":") - it is
11504 # assumed that no part of a normal pathname contains ";" but that should
11505 # okay in the real world where ";" in dirpaths is itself problematic.
11506 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11507 ;;
11508 *)
11509 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11510 ;;
11511 esac
11512 # Ok, now we have the path, separated by spaces, we can step through it
11513 # and add multilib dir if necessary...
11514 lt_tmp_lt_search_path_spec=
11515 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11516 # ...but if some path component already ends with the multilib dir we assume
11517 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11518 case "$lt_multi_os_dir; $lt_search_path_spec " in
11519 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11520 lt_multi_os_dir=
11521 ;;
11522 esac
11523 for lt_sys_path in $lt_search_path_spec; do
11524 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11525 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11526 elif test -n "$lt_multi_os_dir"; then
11527 test -d "$lt_sys_path" && \
11528 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11529 fi
11530 done
11531 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11532 BEGIN {RS = " "; FS = "/|\n";} {
11533 lt_foo = "";
11534 lt_count = 0;
11535 for (lt_i = NF; lt_i > 0; lt_i--) {
11536 if ($lt_i != "" && $lt_i != ".") {
11537 if ($lt_i == "..") {
11538 lt_count++;
11539 } else {
11540 if (lt_count == 0) {
11541 lt_foo = "/" $lt_i lt_foo;
11542 } else {
11543 lt_count--;
11544 }
11545 }
11546 }
11547 }
11548 if (lt_foo != "") { lt_freq[lt_foo]++; }
11549 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11550 }'`
11551 # AWK program above erroneously prepends '/' to C:/dos/paths
11552 # for these hosts.
11553 case $host_os in
11554 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11555 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11556 esac
11557 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11558 else
11559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11560 fi
11561 library_names_spec=
11562 libname_spec='lib$name'
11563 soname_spec=
11564 shrext_cmds=.so
11565 postinstall_cmds=
11566 postuninstall_cmds=
11567 finish_cmds=
11568 finish_eval=
11569 shlibpath_var=
11570 shlibpath_overrides_runpath=unknown
11571 version_type=none
11572 dynamic_linker="$host_os ld.so"
11573 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11574 need_lib_prefix=unknown
11575 hardcode_into_libs=no
11576
11577 # when you set need_version to no, make sure it does not cause -set_version
11578 # flags to be left without arguments
11579 need_version=unknown
11580
11581
11582
11583 case $host_os in
11584 aix3*)
11585 version_type=linux # correct to gnu/linux during the next big refactor
11586 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11587 shlibpath_var=LIBPATH
11588
11589 # AIX 3 has no versioning support, so we append a major version to the name.
11590 soname_spec='$libname$release$shared_ext$major'
11591 ;;
11592
11593 aix[4-9]*)
11594 version_type=linux # correct to gnu/linux during the next big refactor
11595 need_lib_prefix=no
11596 need_version=no
11597 hardcode_into_libs=yes
11598 if test ia64 = "$host_cpu"; then
11599 # AIX 5 supports IA64
11600 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 else
11603 # With GCC up to 2.95.x, collect2 would create an import file
11604 # for dependence libraries. The import file would start with
11605 # the line '#! .'. This would cause the generated library to
11606 # depend on '.', always an invalid library. This was fixed in
11607 # development snapshots of GCC prior to 3.0.
11608 case $host_os in
11609 aix4 | aix4.[01] | aix4.[01].*)
11610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11611 echo ' yes '
11612 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11613 :
11614 else
11615 can_build_shared=no
11616 fi
11617 ;;
11618 esac
11619 # Using Import Files as archive members, it is possible to support
11620 # filename-based versioning of shared library archives on AIX. While
11621 # this would work for both with and without runtime linking, it will
11622 # prevent static linking of such archives. So we do filename-based
11623 # shared library versioning with .so extension only, which is used
11624 # when both runtime linking and shared linking is enabled.
11625 # Unfortunately, runtime linking may impact performance, so we do
11626 # not want this to be the default eventually. Also, we use the
11627 # versioned .so libs for executables only if there is the -brtl
11628 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11629 # To allow for filename-based versioning support, we need to create
11630 # libNAME.so.V as an archive file, containing:
11631 # *) an Import File, referring to the versioned filename of the
11632 # archive as well as the shared archive member, telling the
11633 # bitwidth (32 or 64) of that shared object, and providing the
11634 # list of exported symbols of that shared object, eventually
11635 # decorated with the 'weak' keyword
11636 # *) the shared object with the F_LOADONLY flag set, to really avoid
11637 # it being seen by the linker.
11638 # At run time we better use the real file rather than another symlink,
11639 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11640
11641 case $with_aix_soname,$aix_use_runtimelinking in
11642 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11643 # soname into executable. Probably we can add versioning support to
11644 # collect2, so additional links can be useful in future.
11645 aix,yes) # traditional libtool
11646 dynamic_linker='AIX unversionable lib.so'
11647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11648 # instead of lib<name>.a to let people know that these are not
11649 # typical AIX shared libraries.
11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11651 ;;
11652 aix,no) # traditional AIX only
11653 dynamic_linker='AIX lib.a(lib.so.V)'
11654 # We preserve .a as extension for shared libraries through AIX4.2
11655 # and later when we are not doing run time linking.
11656 library_names_spec='$libname$release.a $libname.a'
11657 soname_spec='$libname$release$shared_ext$major'
11658 ;;
11659 svr4,*) # full svr4 only
11660 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11661 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11662 # We do not specify a path in Import Files, so LIBPATH fires.
11663 shlibpath_overrides_runpath=yes
11664 ;;
11665 *,yes) # both, prefer svr4
11666 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11667 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11668 # unpreferred sharedlib libNAME.a needs extra handling
11669 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"'
11670 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"'
11671 # We do not specify a path in Import Files, so LIBPATH fires.
11672 shlibpath_overrides_runpath=yes
11673 ;;
11674 *,no) # both, prefer aix
11675 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11676 library_names_spec='$libname$release.a $libname.a'
11677 soname_spec='$libname$release$shared_ext$major'
11678 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11679 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)'
11680 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"'
11681 ;;
11682 esac
11683 shlibpath_var=LIBPATH
11684 fi
11685 ;;
11686
11687 amigaos*)
11688 case $host_cpu in
11689 powerpc)
11690 # Since July 2007 AmigaOS4 officially supports .so libraries.
11691 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11693 ;;
11694 m68k)
11695 library_names_spec='$libname.ixlibrary $libname.a'
11696 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11697 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'
11698 ;;
11699 esac
11700 ;;
11701
11702 beos*)
11703 library_names_spec='$libname$shared_ext'
11704 dynamic_linker="$host_os ld.so"
11705 shlibpath_var=LIBRARY_PATH
11706 ;;
11707
11708 bsdi[45]*)
11709 version_type=linux # correct to gnu/linux during the next big refactor
11710 need_version=no
11711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11712 soname_spec='$libname$release$shared_ext$major'
11713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11717 # the default ld.so.conf also contains /usr/contrib/lib and
11718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11719 # libtool to hard-code these into programs
11720 ;;
11721
11722 cygwin* | mingw* | pw32* | cegcc*)
11723 version_type=windows
11724 shrext_cmds=.dll
11725 need_version=no
11726 need_lib_prefix=no
11727
11728 case $GCC,$cc_basename in
11729 yes,*)
11730 # gcc
11731 library_names_spec='$libname.dll.a'
11732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11733 postinstall_cmds='base_file=`basename \$file`~
11734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11735 dldir=$destdir/`dirname \$dlpath`~
11736 test -d \$dldir || mkdir -p \$dldir~
11737 $install_prog $dir/$dlname \$dldir/$dlname~
11738 chmod a+x \$dldir/$dlname~
11739 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11740 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11741 fi'
11742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11743 dlpath=$dir/\$dldll~
11744 $RM \$dlpath'
11745 shlibpath_overrides_runpath=yes
11746
11747 case $host_os in
11748 cygwin*)
11749 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11750 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11751
11752 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11753 ;;
11754 mingw* | cegcc*)
11755 # MinGW DLLs use traditional 'lib' prefix
11756 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11757 ;;
11758 pw32*)
11759 # pw32 DLLs use 'pw' prefix rather than 'lib'
11760 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11761 ;;
11762 esac
11763 dynamic_linker='Win32 ld.exe'
11764 ;;
11765
11766 *,cl* | *,icl*)
11767 # Native MSVC or ICC
11768 libname_spec='$name'
11769 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11770 library_names_spec='$libname.dll.lib'
11771
11772 case $build_os in
11773 mingw*)
11774 sys_lib_search_path_spec=
11775 lt_save_ifs=$IFS
11776 IFS=';'
11777 for lt_path in $LIB
11778 do
11779 IFS=$lt_save_ifs
11780 # Let DOS variable expansion print the short 8.3 style file name.
11781 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11782 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11783 done
11784 IFS=$lt_save_ifs
11785 # Convert to MSYS style.
11786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11787 ;;
11788 cygwin*)
11789 # Convert to unix form, then to dos form, then back to unix form
11790 # but this time dos style (no spaces!) so that the unix form looks
11791 # like /cygdrive/c/PROGRA~1:/cygdr...
11792 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11793 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11794 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11795 ;;
11796 *)
11797 sys_lib_search_path_spec=$LIB
11798 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11799 # It is most probably a Windows format PATH.
11800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11801 else
11802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11803 fi
11804 # FIXME: find the short name or the path components, as spaces are
11805 # common. (e.g. "Program Files" -> "PROGRA~1")
11806 ;;
11807 esac
11808
11809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11810 postinstall_cmds='base_file=`basename \$file`~
11811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11812 dldir=$destdir/`dirname \$dlpath`~
11813 test -d \$dldir || mkdir -p \$dldir~
11814 $install_prog $dir/$dlname \$dldir/$dlname'
11815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11816 dlpath=$dir/\$dldll~
11817 $RM \$dlpath'
11818 shlibpath_overrides_runpath=yes
11819 dynamic_linker='Win32 link.exe'
11820 ;;
11821
11822 *)
11823 # Assume MSVC and ICC wrapper
11824 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11825 dynamic_linker='Win32 ld.exe'
11826 ;;
11827 esac
11828 # FIXME: first we should search . and the directory the executable is in
11829 shlibpath_var=PATH
11830 ;;
11831
11832 darwin* | rhapsody*)
11833 dynamic_linker="$host_os dyld"
11834 version_type=darwin
11835 need_lib_prefix=no
11836 need_version=no
11837 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11838 soname_spec='$libname$release$major$shared_ext'
11839 shlibpath_overrides_runpath=yes
11840 shlibpath_var=DYLD_LIBRARY_PATH
11841 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11842
11843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11845 ;;
11846
11847 dgux*)
11848 version_type=linux # correct to gnu/linux during the next big refactor
11849 need_lib_prefix=no
11850 need_version=no
11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11852 soname_spec='$libname$release$shared_ext$major'
11853 shlibpath_var=LD_LIBRARY_PATH
11854 ;;
11855
11856 freebsd* | dragonfly* | midnightbsd*)
11857 # DragonFly does not have aout. When/if they implement a new
11858 # versioning mechanism, adjust this.
11859 if test -x /usr/bin/objformat; then
11860 objformat=`/usr/bin/objformat`
11861 else
11862 case $host_os in
11863 freebsd[23].*) objformat=aout ;;
11864 *) objformat=elf ;;
11865 esac
11866 fi
11867 # Handle Gentoo/FreeBSD as it was Linux
11868 case $host_vendor in
11869 gentoo)
11870 version_type=linux ;;
11871 *)
11872 version_type=freebsd-$objformat ;;
11873 esac
11874
11875 case $version_type in
11876 freebsd-elf*)
11877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11878 soname_spec='$libname$release$shared_ext$major'
11879 need_version=no
11880 need_lib_prefix=no
11881 ;;
11882 freebsd-*)
11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11884 need_version=yes
11885 ;;
11886 linux)
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11888 soname_spec='${libname}${release}${shared_ext}$major'
11889 need_lib_prefix=no
11890 need_version=no
11891 ;;
11892 esac
11893 shlibpath_var=LD_LIBRARY_PATH
11894 case $host_os in
11895 freebsd2.*)
11896 shlibpath_overrides_runpath=yes
11897 ;;
11898 freebsd3.[01]* | freebsdelf3.[01]*)
11899 shlibpath_overrides_runpath=yes
11900 hardcode_into_libs=yes
11901 ;;
11902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11904 shlibpath_overrides_runpath=no
11905 hardcode_into_libs=yes
11906 ;;
11907 *) # from 4.6 on, and DragonFly
11908 shlibpath_overrides_runpath=yes
11909 hardcode_into_libs=yes
11910 ;;
11911 esac
11912 ;;
11913
11914 haiku*)
11915 version_type=linux # correct to gnu/linux during the next big refactor
11916 need_lib_prefix=no
11917 need_version=no
11918 dynamic_linker="$host_os runtime_loader"
11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11920 soname_spec='$libname$release$shared_ext$major'
11921 shlibpath_var=LIBRARY_PATH
11922 shlibpath_overrides_runpath=no
11923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11924 hardcode_into_libs=yes
11925 ;;
11926
11927 hpux9* | hpux10* | hpux11*)
11928 # Give a soname corresponding to the major version so that dld.sl refuses to
11929 # link against other versions.
11930 version_type=sunos
11931 need_lib_prefix=no
11932 need_version=no
11933 case $host_cpu in
11934 ia64*)
11935 shrext_cmds='.so'
11936 hardcode_into_libs=yes
11937 dynamic_linker="$host_os dld.so"
11938 shlibpath_var=LD_LIBRARY_PATH
11939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11941 soname_spec='$libname$release$shared_ext$major'
11942 if test 32 = "$HPUX_IA64_MODE"; then
11943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11944 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11945 else
11946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11947 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11948 fi
11949 ;;
11950 hppa*64*)
11951 shrext_cmds='.sl'
11952 hardcode_into_libs=yes
11953 dynamic_linker="$host_os dld.sl"
11954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11957 soname_spec='$libname$release$shared_ext$major'
11958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11960 ;;
11961 *)
11962 shrext_cmds='.sl'
11963 dynamic_linker="$host_os dld.sl"
11964 shlibpath_var=SHLIB_PATH
11965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 ;;
11969 esac
11970 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11971 postinstall_cmds='chmod 555 $lib'
11972 # or fails outright, so override atomically:
11973 install_override_mode=555
11974 ;;
11975
11976 interix[3-9]*)
11977 version_type=linux # correct to gnu/linux during the next big refactor
11978 need_lib_prefix=no
11979 need_version=no
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 soname_spec='$libname$release$shared_ext$major'
11982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11983 shlibpath_var=LD_LIBRARY_PATH
11984 shlibpath_overrides_runpath=no
11985 hardcode_into_libs=yes
11986 ;;
11987
11988 irix5* | irix6* | nonstopux*)
11989 case $host_os in
11990 nonstopux*) version_type=nonstopux ;;
11991 *)
11992 if test yes = "$lt_cv_prog_gnu_ld"; then
11993 version_type=linux # correct to gnu/linux during the next big refactor
11994 else
11995 version_type=irix
11996 fi ;;
11997 esac
11998 need_lib_prefix=no
11999 need_version=no
12000 soname_spec='$libname$release$shared_ext$major'
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12002 case $host_os in
12003 irix5* | nonstopux*)
12004 libsuff= shlibsuff=
12005 ;;
12006 *)
12007 case $LD in # libtool.m4 will add one of these switches to LD
12008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12009 libsuff= shlibsuff= libmagic=32-bit;;
12010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12011 libsuff=32 shlibsuff=N32 libmagic=N32;;
12012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12014 *) libsuff= shlibsuff= libmagic=never-match;;
12015 esac
12016 ;;
12017 esac
12018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12019 shlibpath_overrides_runpath=no
12020 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12021 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12022 hardcode_into_libs=yes
12023 ;;
12024
12025 # No shared lib support for Linux oldld, aout, or coff.
12026 linux*oldld* | linux*aout* | linux*coff*)
12027 dynamic_linker=no
12028 ;;
12029
12030 linux*android*)
12031 version_type=none # Android doesn't support versioned libraries.
12032 need_lib_prefix=no
12033 need_version=no
12034 library_names_spec='$libname$release$shared_ext'
12035 soname_spec='$libname$release$shared_ext'
12036 finish_cmds=
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes
12039
12040 # This implies no fast_install, which is unacceptable.
12041 # Some rework will be needed to allow for fast_install
12042 # before this can be enabled.
12043 hardcode_into_libs=yes
12044
12045 dynamic_linker='Android linker'
12046 # Don't embed -rpath directories since the linker doesn't support them.
12047 hardcode_libdir_flag_spec='-L$libdir'
12048 ;;
12049
12050 # This must be glibc/ELF.
12051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12052 version_type=linux # correct to gnu/linux during the next big refactor
12053 need_lib_prefix=no
12054 need_version=no
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056 soname_spec='$libname$release$shared_ext$major'
12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12058 shlibpath_var=LD_LIBRARY_PATH
12059 shlibpath_overrides_runpath=no
12060
12061 # Some binutils ld are patched to set DT_RUNPATH
12062 if test ${lt_cv_shlibpath_overrides_runpath+y}
12063 then :
12064 printf %s "(cached) " >&6
12065 else $as_nop
12066 lt_cv_shlibpath_overrides_runpath=no
12067 save_LDFLAGS=$LDFLAGS
12068 save_libdir=$libdir
12069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073
12074 int
12075 main (void)
12076 {
12077
12078 ;
12079 return 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_link "$LINENO"
12083 then :
12084 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12085 then :
12086 lt_cv_shlibpath_overrides_runpath=yes
12087 fi
12088 fi
12089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LDFLAGS=$save_LDFLAGS
12092 libdir=$save_libdir
12093
12094 fi
12095
12096 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12097
12098 # This implies no fast_install, which is unacceptable.
12099 # Some rework will be needed to allow for fast_install
12100 # before this can be enabled.
12101 hardcode_into_libs=yes
12102
12103 # Ideally, we could use ldconfig to report *all* directores which are
12104 # searched for libraries, however this is still not possible. Aside from not
12105 # being certain /sbin/ldconfig is available, command
12106 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12107 # even though it is searched at run-time. Try to do the best guess by
12108 # appending ld.so.conf contents (and includes) to the search path.
12109 if test -f /etc/ld.so.conf; then
12110 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' ' '`
12111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12112 fi
12113
12114 # We used to test for /lib/ld.so.1 and disable shared libraries on
12115 # powerpc, because MkLinux only supported shared libraries with the
12116 # GNU dynamic linker. Since this was broken with cross compilers,
12117 # most powerpc-linux boxes support dynamic linking these days and
12118 # people can always --disable-shared, the test was removed, and we
12119 # assume the GNU/Linux dynamic linker is in use.
12120 dynamic_linker='GNU/Linux ld.so'
12121 ;;
12122
12123 netbsd*)
12124 version_type=sunos
12125 need_lib_prefix=no
12126 need_version=no
12127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12130 dynamic_linker='NetBSD (a.out) ld.so'
12131 else
12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12133 soname_spec='$libname$release$shared_ext$major'
12134 dynamic_linker='NetBSD ld.elf_so'
12135 fi
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=yes
12138 hardcode_into_libs=yes
12139 ;;
12140
12141 newsos6)
12142 version_type=linux # correct to gnu/linux during the next big refactor
12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=yes
12146 ;;
12147
12148 *nto* | *qnx*)
12149 version_type=qnx
12150 need_lib_prefix=no
12151 need_version=no
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156 hardcode_into_libs=yes
12157 dynamic_linker='ldqnx.so'
12158 ;;
12159
12160 openbsd* | bitrig*)
12161 version_type=sunos
12162 sys_lib_dlsearch_path_spec=/usr/lib
12163 need_lib_prefix=no
12164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12165 need_version=no
12166 else
12167 need_version=yes
12168 fi
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 ;;
12174
12175 os2*)
12176 libname_spec='$name'
12177 version_type=windows
12178 shrext_cmds=.dll
12179 need_version=no
12180 need_lib_prefix=no
12181 # OS/2 can only load a DLL with a base name of 8 characters or less.
12182 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12183 v=$($ECHO $release$versuffix | tr -d .-);
12184 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12185 $ECHO $n$v`$shared_ext'
12186 library_names_spec='${libname}_dll.$libext'
12187 dynamic_linker='OS/2 ld.exe'
12188 shlibpath_var=BEGINLIBPATH
12189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12191 postinstall_cmds='base_file=`basename \$file`~
12192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12193 dldir=$destdir/`dirname \$dlpath`~
12194 test -d \$dldir || mkdir -p \$dldir~
12195 $install_prog $dir/$dlname \$dldir/$dlname~
12196 chmod a+x \$dldir/$dlname~
12197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12199 fi'
12200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12201 dlpath=$dir/\$dldll~
12202 $RM \$dlpath'
12203 ;;
12204
12205 osf3* | osf4* | osf5*)
12206 version_type=osf
12207 need_lib_prefix=no
12208 need_version=no
12209 soname_spec='$libname$release$shared_ext$major'
12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12211 shlibpath_var=LD_LIBRARY_PATH
12212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12214 ;;
12215
12216 rdos*)
12217 dynamic_linker=no
12218 ;;
12219
12220 solaris*)
12221 version_type=linux # correct to gnu/linux during the next big refactor
12222 need_lib_prefix=no
12223 need_version=no
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12225 soname_spec='$libname$release$shared_ext$major'
12226 shlibpath_var=LD_LIBRARY_PATH
12227 shlibpath_overrides_runpath=yes
12228 hardcode_into_libs=yes
12229 # ldd complains unless libraries are executable
12230 postinstall_cmds='chmod +x $lib'
12231 ;;
12232
12233 sunos4*)
12234 version_type=sunos
12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 shlibpath_overrides_runpath=yes
12239 if test yes = "$with_gnu_ld"; then
12240 need_lib_prefix=no
12241 fi
12242 need_version=yes
12243 ;;
12244
12245 sysv4 | sysv4.3*)
12246 version_type=linux # correct to gnu/linux during the next big refactor
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 soname_spec='$libname$release$shared_ext$major'
12249 shlibpath_var=LD_LIBRARY_PATH
12250 case $host_vendor in
12251 sni)
12252 shlibpath_overrides_runpath=no
12253 need_lib_prefix=no
12254 runpath_var=LD_RUN_PATH
12255 ;;
12256 siemens)
12257 need_lib_prefix=no
12258 ;;
12259 motorola)
12260 need_lib_prefix=no
12261 need_version=no
12262 shlibpath_overrides_runpath=no
12263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12264 ;;
12265 esac
12266 ;;
12267
12268 sysv4*MP*)
12269 if test -d /usr/nec; then
12270 version_type=linux # correct to gnu/linux during the next big refactor
12271 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12272 soname_spec='$libname$shared_ext.$major'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 fi
12275 ;;
12276
12277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12278 version_type=sco
12279 need_lib_prefix=no
12280 need_version=no
12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12282 soname_spec='$libname$release$shared_ext$major'
12283 shlibpath_var=LD_LIBRARY_PATH
12284 shlibpath_overrides_runpath=yes
12285 hardcode_into_libs=yes
12286 if test yes = "$with_gnu_ld"; then
12287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12288 else
12289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12290 case $host_os in
12291 sco3.2v5*)
12292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12293 ;;
12294 esac
12295 fi
12296 sys_lib_dlsearch_path_spec='/usr/lib'
12297 ;;
12298
12299 tpf*)
12300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12301 version_type=linux # correct to gnu/linux during the next big refactor
12302 need_lib_prefix=no
12303 need_version=no
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12305 shlibpath_var=LD_LIBRARY_PATH
12306 shlibpath_overrides_runpath=no
12307 hardcode_into_libs=yes
12308 ;;
12309
12310 uts4*)
12311 version_type=linux # correct to gnu/linux during the next big refactor
12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12313 soname_spec='$libname$release$shared_ext$major'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 ;;
12316
12317 *)
12318 dynamic_linker=no
12319 ;;
12320 esac
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12322 printf "%s\n" "$dynamic_linker" >&6; }
12323 test no = "$dynamic_linker" && can_build_shared=no
12324
12325 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12326 if test yes = "$GCC"; then
12327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12328 fi
12329
12330 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12331 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12332 fi
12333
12334 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12335 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12336 fi
12337
12338 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12339 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12340
12341 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12342 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12343
12344 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12345 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12444 printf %s "checking how to hardcode library paths into programs... " >&6; }
12445 hardcode_action=
12446 if test -n "$hardcode_libdir_flag_spec" ||
12447 test -n "$runpath_var" ||
12448 test yes = "$hardcode_automatic"; then
12449
12450 # We can hardcode non-existent directories.
12451 if test no != "$hardcode_direct" &&
12452 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12453 # have to relink, otherwise we might link with an installed library
12454 # when we should be linking with a yet-to-be-installed one
12455 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12456 test no != "$hardcode_minus_L"; then
12457 # Linking always hardcodes the temporary library directory.
12458 hardcode_action=relink
12459 else
12460 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12461 hardcode_action=immediate
12462 fi
12463 else
12464 # We cannot hardcode anything, or else we can only hardcode existing
12465 # directories.
12466 hardcode_action=unsupported
12467 fi
12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12469 printf "%s\n" "$hardcode_action" >&6; }
12470
12471 if test relink = "$hardcode_action" ||
12472 test yes = "$inherit_rpath"; then
12473 # Fast installation is not supported
12474 enable_fast_install=no
12475 elif test yes = "$shlibpath_overrides_runpath" ||
12476 test no = "$enable_shared"; then
12477 # Fast installation is not necessary
12478 enable_fast_install=needless
12479 fi
12480
12481
12482
12483
12484
12485
12486 if test yes != "$enable_dlopen"; then
12487 enable_dlopen=unknown
12488 enable_dlopen_self=unknown
12489 enable_dlopen_self_static=unknown
12490 else
12491 lt_cv_dlopen=no
12492 lt_cv_dlopen_libs=
12493
12494 case $host_os in
12495 beos*)
12496 lt_cv_dlopen=load_add_on
12497 lt_cv_dlopen_libs=
12498 lt_cv_dlopen_self=yes
12499 ;;
12500
12501 mingw* | pw32* | cegcc*)
12502 lt_cv_dlopen=LoadLibrary
12503 lt_cv_dlopen_libs=
12504 ;;
12505
12506 cygwin*)
12507 lt_cv_dlopen=dlopen
12508 lt_cv_dlopen_libs=
12509 ;;
12510
12511 darwin*)
12512 # if libdl is installed we need to link against it
12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12514 printf %s "checking for dlopen in -ldl... " >&6; }
12515 if test ${ac_cv_lib_dl_dlopen+y}
12516 then :
12517 printf %s "(cached) " >&6
12518 else $as_nop
12519 ac_check_lib_save_LIBS=$LIBS
12520 LIBS="-ldl $LIBS"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 /* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply.
12527 The 'extern "C"' is for builds by C++ compilers;
12528 although this is not generally supported in C code supporting it here
12529 has little cost and some practical benefit (sr 110532). */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char dlopen (void);
12534 int
12535 main (void)
12536 {
12537 return dlopen ();
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"
12543 then :
12544 ac_cv_lib_dl_dlopen=yes
12545 else $as_nop
12546 ac_cv_lib_dl_dlopen=no
12547 fi
12548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12551 fi
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12553 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12554 if test "x$ac_cv_lib_dl_dlopen" = xyes
12555 then :
12556 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12557 else $as_nop
12558
12559 lt_cv_dlopen=dyld
12560 lt_cv_dlopen_libs=
12561 lt_cv_dlopen_self=yes
12562
12563 fi
12564
12565 ;;
12566
12567 tpf*)
12568 # Don't try to run any link tests for TPF. We know it's impossible
12569 # because TPF is a cross-compiler, and we know how we open DSOs.
12570 lt_cv_dlopen=dlopen
12571 lt_cv_dlopen_libs=
12572 lt_cv_dlopen_self=no
12573 ;;
12574
12575 *)
12576 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12577 if test "x$ac_cv_func_shl_load" = xyes
12578 then :
12579 lt_cv_dlopen=shl_load
12580 else $as_nop
12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12582 printf %s "checking for shl_load in -ldld... " >&6; }
12583 if test ${ac_cv_lib_dld_shl_load+y}
12584 then :
12585 printf %s "(cached) " >&6
12586 else $as_nop
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-ldld $LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply.
12595 The 'extern "C"' is for builds by C++ compilers;
12596 although this is not generally supported in C code supporting it here
12597 has little cost and some practical benefit (sr 110532). */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char shl_load (void);
12602 int
12603 main (void)
12604 {
12605 return shl_load ();
12606 ;
12607 return 0;
12608 }
12609 _ACEOF
12610 if ac_fn_c_try_link "$LINENO"
12611 then :
12612 ac_cv_lib_dld_shl_load=yes
12613 else $as_nop
12614 ac_cv_lib_dld_shl_load=no
12615 fi
12616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12621 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12622 if test "x$ac_cv_lib_dld_shl_load" = xyes
12623 then :
12624 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12625 else $as_nop
12626 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12627 if test "x$ac_cv_func_dlopen" = xyes
12628 then :
12629 lt_cv_dlopen=dlopen
12630 else $as_nop
12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12632 printf %s "checking for dlopen in -ldl... " >&6; }
12633 if test ${ac_cv_lib_dl_dlopen+y}
12634 then :
12635 printf %s "(cached) " >&6
12636 else $as_nop
12637 ac_check_lib_save_LIBS=$LIBS
12638 LIBS="-ldl $LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply.
12645 The 'extern "C"' is for builds by C++ compilers;
12646 although this is not generally supported in C code supporting it here
12647 has little cost and some practical benefit (sr 110532). */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char dlopen (void);
12652 int
12653 main (void)
12654 {
12655 return dlopen ();
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"
12661 then :
12662 ac_cv_lib_dl_dlopen=yes
12663 else $as_nop
12664 ac_cv_lib_dl_dlopen=no
12665 fi
12666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12669 fi
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12671 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12672 if test "x$ac_cv_lib_dl_dlopen" = xyes
12673 then :
12674 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12675 else $as_nop
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12677 printf %s "checking for dlopen in -lsvld... " >&6; }
12678 if test ${ac_cv_lib_svld_dlopen+y}
12679 then :
12680 printf %s "(cached) " >&6
12681 else $as_nop
12682 ac_check_lib_save_LIBS=$LIBS
12683 LIBS="-lsvld $LIBS"
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686
12687 /* Override any GCC internal prototype to avoid an error.
12688 Use char because int might match the return type of a GCC
12689 builtin and then its argument prototype would still apply.
12690 The 'extern "C"' is for builds by C++ compilers;
12691 although this is not generally supported in C code supporting it here
12692 has little cost and some practical benefit (sr 110532). */
12693 #ifdef __cplusplus
12694 extern "C"
12695 #endif
12696 char dlopen (void);
12697 int
12698 main (void)
12699 {
12700 return dlopen ();
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"
12706 then :
12707 ac_cv_lib_svld_dlopen=yes
12708 else $as_nop
12709 ac_cv_lib_svld_dlopen=no
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12716 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12717 if test "x$ac_cv_lib_svld_dlopen" = xyes
12718 then :
12719 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12720 else $as_nop
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12722 printf %s "checking for dld_link in -ldld... " >&6; }
12723 if test ${ac_cv_lib_dld_dld_link+y}
12724 then :
12725 printf %s "(cached) " >&6
12726 else $as_nop
12727 ac_check_lib_save_LIBS=$LIBS
12728 LIBS="-ldld $LIBS"
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply.
12735 The 'extern "C"' is for builds by C++ compilers;
12736 although this is not generally supported in C code supporting it here
12737 has little cost and some practical benefit (sr 110532). */
12738 #ifdef __cplusplus
12739 extern "C"
12740 #endif
12741 char dld_link (void);
12742 int
12743 main (void)
12744 {
12745 return dld_link ();
12746 ;
12747 return 0;
12748 }
12749 _ACEOF
12750 if ac_fn_c_try_link "$LINENO"
12751 then :
12752 ac_cv_lib_dld_dld_link=yes
12753 else $as_nop
12754 ac_cv_lib_dld_dld_link=no
12755 fi
12756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12757 conftest$ac_exeext conftest.$ac_ext
12758 LIBS=$ac_check_lib_save_LIBS
12759 fi
12760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12761 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12762 if test "x$ac_cv_lib_dld_dld_link" = xyes
12763 then :
12764 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12765 fi
12766
12767
12768 fi
12769
12770
12771 fi
12772
12773
12774 fi
12775
12776
12777 fi
12778
12779
12780 fi
12781
12782 ;;
12783 esac
12784
12785 if test no = "$lt_cv_dlopen"; then
12786 enable_dlopen=no
12787 else
12788 enable_dlopen=yes
12789 fi
12790
12791 case $lt_cv_dlopen in
12792 dlopen)
12793 save_CPPFLAGS=$CPPFLAGS
12794 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12795
12796 save_LDFLAGS=$LDFLAGS
12797 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12798
12799 save_LIBS=$LIBS
12800 LIBS="$lt_cv_dlopen_libs $LIBS"
12801
12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12803 printf %s "checking whether a program can dlopen itself... " >&6; }
12804 if test ${lt_cv_dlopen_self+y}
12805 then :
12806 printf %s "(cached) " >&6
12807 else $as_nop
12808 if test yes = "$cross_compiling"; then :
12809 lt_cv_dlopen_self=cross
12810 else
12811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12812 lt_status=$lt_dlunknown
12813 cat > conftest.$ac_ext <<_LT_EOF
12814 #line $LINENO "configure"
12815 #include "confdefs.h"
12816
12817 #if HAVE_DLFCN_H
12818 #include <dlfcn.h>
12819 #endif
12820
12821 #include <stdio.h>
12822
12823 #ifdef RTLD_GLOBAL
12824 # define LT_DLGLOBAL RTLD_GLOBAL
12825 #else
12826 # ifdef DL_GLOBAL
12827 # define LT_DLGLOBAL DL_GLOBAL
12828 # else
12829 # define LT_DLGLOBAL 0
12830 # endif
12831 #endif
12832
12833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12834 find out it does not work in some platform. */
12835 #ifndef LT_DLLAZY_OR_NOW
12836 # ifdef RTLD_LAZY
12837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12838 # else
12839 # ifdef DL_LAZY
12840 # define LT_DLLAZY_OR_NOW DL_LAZY
12841 # else
12842 # ifdef RTLD_NOW
12843 # define LT_DLLAZY_OR_NOW RTLD_NOW
12844 # else
12845 # ifdef DL_NOW
12846 # define LT_DLLAZY_OR_NOW DL_NOW
12847 # else
12848 # define LT_DLLAZY_OR_NOW 0
12849 # endif
12850 # endif
12851 # endif
12852 # endif
12853 #endif
12854
12855 /* When -fvisibility=hidden is used, assume the code has been annotated
12856 correspondingly for the symbols needed. */
12857 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12858 int fnord () __attribute__((visibility("default")));
12859 #endif
12860
12861 int fnord () { return 42; }
12862 int main ()
12863 {
12864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12865 int status = $lt_dlunknown;
12866
12867 if (self)
12868 {
12869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12870 else
12871 {
12872 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12873 else puts (dlerror ());
12874 }
12875 /* dlclose (self); */
12876 }
12877 else
12878 puts (dlerror ());
12879
12880 return status;
12881 }
12882 _LT_EOF
12883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12884 (eval $ac_link) 2>&5
12885 ac_status=$?
12886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12887 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12888 (./conftest; exit; ) >&5 2>/dev/null
12889 lt_status=$?
12890 case x$lt_status in
12891 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12892 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12893 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12894 esac
12895 else :
12896 # compilation failed
12897 lt_cv_dlopen_self=no
12898 fi
12899 fi
12900 rm -fr conftest*
12901
12902
12903 fi
12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12905 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12906
12907 if test yes = "$lt_cv_dlopen_self"; then
12908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12910 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12911 if test ${lt_cv_dlopen_self_static+y}
12912 then :
12913 printf %s "(cached) " >&6
12914 else $as_nop
12915 if test yes = "$cross_compiling"; then :
12916 lt_cv_dlopen_self_static=cross
12917 else
12918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12919 lt_status=$lt_dlunknown
12920 cat > conftest.$ac_ext <<_LT_EOF
12921 #line $LINENO "configure"
12922 #include "confdefs.h"
12923
12924 #if HAVE_DLFCN_H
12925 #include <dlfcn.h>
12926 #endif
12927
12928 #include <stdio.h>
12929
12930 #ifdef RTLD_GLOBAL
12931 # define LT_DLGLOBAL RTLD_GLOBAL
12932 #else
12933 # ifdef DL_GLOBAL
12934 # define LT_DLGLOBAL DL_GLOBAL
12935 # else
12936 # define LT_DLGLOBAL 0
12937 # endif
12938 #endif
12939
12940 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12941 find out it does not work in some platform. */
12942 #ifndef LT_DLLAZY_OR_NOW
12943 # ifdef RTLD_LAZY
12944 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12945 # else
12946 # ifdef DL_LAZY
12947 # define LT_DLLAZY_OR_NOW DL_LAZY
12948 # else
12949 # ifdef RTLD_NOW
12950 # define LT_DLLAZY_OR_NOW RTLD_NOW
12951 # else
12952 # ifdef DL_NOW
12953 # define LT_DLLAZY_OR_NOW DL_NOW
12954 # else
12955 # define LT_DLLAZY_OR_NOW 0
12956 # endif
12957 # endif
12958 # endif
12959 # endif
12960 #endif
12961
12962 /* When -fvisibility=hidden is used, assume the code has been annotated
12963 correspondingly for the symbols needed. */
12964 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12965 int fnord () __attribute__((visibility("default")));
12966 #endif
12967
12968 int fnord () { return 42; }
12969 int main ()
12970 {
12971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12972 int status = $lt_dlunknown;
12973
12974 if (self)
12975 {
12976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12977 else
12978 {
12979 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12980 else puts (dlerror ());
12981 }
12982 /* dlclose (self); */
12983 }
12984 else
12985 puts (dlerror ());
12986
12987 return status;
12988 }
12989 _LT_EOF
12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12991 (eval $ac_link) 2>&5
12992 ac_status=$?
12993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12995 (./conftest; exit; ) >&5 2>/dev/null
12996 lt_status=$?
12997 case x$lt_status in
12998 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12999 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13000 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13001 esac
13002 else :
13003 # compilation failed
13004 lt_cv_dlopen_self_static=no
13005 fi
13006 fi
13007 rm -fr conftest*
13008
13009
13010 fi
13011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13012 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13013 fi
13014
13015 CPPFLAGS=$save_CPPFLAGS
13016 LDFLAGS=$save_LDFLAGS
13017 LIBS=$save_LIBS
13018 ;;
13019 esac
13020
13021 case $lt_cv_dlopen_self in
13022 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13023 *) enable_dlopen_self=unknown ;;
13024 esac
13025
13026 case $lt_cv_dlopen_self_static in
13027 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13028 *) enable_dlopen_self_static=unknown ;;
13029 esac
13030 fi
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048 striplib=
13049 old_striplib=
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13051 printf %s "checking whether stripping libraries is possible... " >&6; }
13052 if test -z "$STRIP"; then
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 printf "%s\n" "no" >&6; }
13055 else
13056 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13057 old_striplib="$STRIP --strip-debug"
13058 striplib="$STRIP --strip-unneeded"
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13060 printf "%s\n" "yes" >&6; }
13061 else
13062 case $host_os in
13063 darwin*)
13064 # FIXME - insert some real tests, host_os isn't really good enough
13065 striplib="$STRIP -x"
13066 old_striplib="$STRIP -S"
13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13068 printf "%s\n" "yes" >&6; }
13069 ;;
13070 freebsd*)
13071 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13072 old_striplib="$STRIP --strip-debug"
13073 striplib="$STRIP --strip-unneeded"
13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13075 printf "%s\n" "yes" >&6; }
13076 else
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 printf "%s\n" "no" >&6; }
13079 fi
13080 ;;
13081 *)
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083 printf "%s\n" "no" >&6; }
13084 ;;
13085 esac
13086 fi
13087 fi
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 # Report what library types will actually be built
13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13102 printf %s "checking if libtool supports shared libraries... " >&6; }
13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13104 printf "%s\n" "$can_build_shared" >&6; }
13105
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13107 printf %s "checking whether to build shared libraries... " >&6; }
13108 test no = "$can_build_shared" && enable_shared=no
13109
13110 # On AIX, shared libraries and static libraries use the same namespace, and
13111 # are all built from PIC.
13112 case $host_os in
13113 aix3*)
13114 test yes = "$enable_shared" && enable_static=no
13115 if test -n "$RANLIB"; then
13116 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13117 postinstall_cmds='$RANLIB $lib'
13118 fi
13119 ;;
13120
13121 aix[4-9]*)
13122 if test ia64 != "$host_cpu"; then
13123 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13124 yes,aix,yes) ;; # shared object as lib.so file only
13125 yes,svr4,*) ;; # shared object as lib.so archive member only
13126 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13127 esac
13128 fi
13129 ;;
13130 esac
13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13132 printf "%s\n" "$enable_shared" >&6; }
13133
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13135 printf %s "checking whether to build static libraries... " >&6; }
13136 # Make sure either enable_shared or enable_static is yes.
13137 test yes = "$enable_shared" || enable_static=yes
13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13139 printf "%s\n" "$enable_static" >&6; }
13140
13141
13142
13143
13144 fi
13145 ac_ext=c
13146 ac_cpp='$CPP $CPPFLAGS'
13147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13150
13151 CC=$lt_save_CC
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167 ac_config_commands="$ac_config_commands libtool"
13168
13169
13170
13171
13172 # Only expand once:
13173
13174
13175
13176 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13190 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13191 if test ${ac_cv_c_undeclared_builtin_options+y}
13192 then :
13193 printf %s "(cached) " >&6
13194 else $as_nop
13195 ac_save_CFLAGS=$CFLAGS
13196 ac_cv_c_undeclared_builtin_options='cannot detect'
13197 for ac_arg in '' -fno-builtin; do
13198 CFLAGS="$ac_save_CFLAGS $ac_arg"
13199 # This test program should *not* compile successfully.
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202
13203 int
13204 main (void)
13205 {
13206 (void) strchr;
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_compile "$LINENO"
13212 then :
13213
13214 else $as_nop
13215 # This test program should compile successfully.
13216 # No library function is consistently available on
13217 # freestanding implementations, so test against a dummy
13218 # declaration. Include always-available headers on the
13219 # off chance that they somehow elicit warnings.
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222 #include <float.h>
13223 #include <limits.h>
13224 #include <stdarg.h>
13225 #include <stddef.h>
13226 extern void ac_decl (int, char *);
13227
13228 int
13229 main (void)
13230 {
13231 (void) ac_decl (0, (char *) 0);
13232 (void) ac_decl;
13233
13234 ;
13235 return 0;
13236 }
13237 _ACEOF
13238 if ac_fn_c_try_compile "$LINENO"
13239 then :
13240 if test x"$ac_arg" = x
13241 then :
13242 ac_cv_c_undeclared_builtin_options='none needed'
13243 else $as_nop
13244 ac_cv_c_undeclared_builtin_options=$ac_arg
13245 fi
13246 break
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13251 done
13252 CFLAGS=$ac_save_CFLAGS
13253
13254 fi
13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13256 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13257 case $ac_cv_c_undeclared_builtin_options in #(
13258 'cannot detect') :
13259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13260 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13261 as_fn_error $? "cannot make $CC report undeclared builtins
13262 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13263 'none needed') :
13264 ac_c_undeclared_builtin_options='' ;; #(
13265 *) :
13266 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13267 esac
13268
13269
13270
13271
13272
13273 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13274 if test "x$ac_cv_have_decl___clang__" = xyes
13275 then :
13276 CLANGCC="yes"
13277 else $as_nop
13278 CLANGCC="no"
13279 fi
13280 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13281 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13282 then :
13283 INTELCC="yes"
13284 else $as_nop
13285 INTELCC="no"
13286 fi
13287 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13288 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13289 then :
13290 SUNCC="yes"
13291 else $as_nop
13292 SUNCC="no"
13293 fi
13294
13295
13296
13297
13298
13299
13300
13301
13302 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13303 if test -n "$ac_tool_prefix"; then
13304 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13305 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307 printf %s "checking for $ac_word... " >&6; }
13308 if test ${ac_cv_path_PKG_CONFIG+y}
13309 then :
13310 printf %s "(cached) " >&6
13311 else $as_nop
13312 case $PKG_CONFIG in
13313 [\\/]* | ?:[\\/]*)
13314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13315 ;;
13316 *)
13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13319 do
13320 IFS=$as_save_IFS
13321 case $as_dir in #(((
13322 '') as_dir=./ ;;
13323 */) ;;
13324 *) as_dir=$as_dir/ ;;
13325 esac
13326 for ac_exec_ext in '' $ac_executable_extensions; do
13327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13328 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13330 break 2
13331 fi
13332 done
13333 done
13334 IFS=$as_save_IFS
13335
13336 ;;
13337 esac
13338 fi
13339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13340 if test -n "$PKG_CONFIG"; then
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13342 printf "%s\n" "$PKG_CONFIG" >&6; }
13343 else
13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345 printf "%s\n" "no" >&6; }
13346 fi
13347
13348
13349 fi
13350 if test -z "$ac_cv_path_PKG_CONFIG"; then
13351 ac_pt_PKG_CONFIG=$PKG_CONFIG
13352 # Extract the first word of "pkg-config", so it can be a program name with args.
13353 set dummy pkg-config; ac_word=$2
13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13355 printf %s "checking for $ac_word... " >&6; }
13356 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13357 then :
13358 printf %s "(cached) " >&6
13359 else $as_nop
13360 case $ac_pt_PKG_CONFIG in
13361 [\\/]* | ?:[\\/]*)
13362 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13363 ;;
13364 *)
13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13366 for as_dir in $PATH
13367 do
13368 IFS=$as_save_IFS
13369 case $as_dir in #(((
13370 '') as_dir=./ ;;
13371 */) ;;
13372 *) as_dir=$as_dir/ ;;
13373 esac
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13376 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13378 break 2
13379 fi
13380 done
13381 done
13382 IFS=$as_save_IFS
13383
13384 ;;
13385 esac
13386 fi
13387 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13388 if test -n "$ac_pt_PKG_CONFIG"; then
13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13390 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13391 else
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 printf "%s\n" "no" >&6; }
13394 fi
13395
13396 if test "x$ac_pt_PKG_CONFIG" = x; then
13397 PKG_CONFIG=""
13398 else
13399 case $cross_compiling:$ac_tool_warned in
13400 yes:)
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13402 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13403 ac_tool_warned=yes ;;
13404 esac
13405 PKG_CONFIG=$ac_pt_PKG_CONFIG
13406 fi
13407 else
13408 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13409 fi
13410
13411 fi
13412 if test -n "$PKG_CONFIG"; then
13413 _pkg_min_version=0.9.0
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13415 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13416 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13418 printf "%s\n" "yes" >&6; }
13419 else
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421 printf "%s\n" "no" >&6; }
13422 PKG_CONFIG=""
13423 fi
13424 fi
13425
13426
13427
13428
13429
13430 # Check whether --enable-selective-werror was given.
13431 if test ${enable_selective_werror+y}
13432 then :
13433 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13434 else $as_nop
13435 SELECTIVE_WERROR=yes
13436 fi
13437
13438
13439
13440
13441
13442 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13443 if test "x$SUNCC" = "xyes"; then
13444 BASE_CFLAGS="-v"
13445 else
13446 BASE_CFLAGS=""
13447 fi
13448
13449 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463 xorg_testset_save_CFLAGS="$CFLAGS"
13464
13465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13468 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13469 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13470 then :
13471 printf %s "(cached) " >&6
13472 else $as_nop
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 int i;
13476 _ACEOF
13477 if ac_fn_c_try_compile "$LINENO"
13478 then :
13479 xorg_cv_cc_flag_unknown_warning_option=yes
13480 else $as_nop
13481 xorg_cv_cc_flag_unknown_warning_option=no
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13484 fi
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13488 CFLAGS="$xorg_testset_save_CFLAGS"
13489 fi
13490
13491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13494 fi
13495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13499 then :
13500 printf %s "(cached) " >&6
13501 else $as_nop
13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503 /* end confdefs.h. */
13504 int i;
13505 _ACEOF
13506 if ac_fn_c_try_compile "$LINENO"
13507 then :
13508 xorg_cv_cc_flag_unused_command_line_argument=yes
13509 else $as_nop
13510 xorg_cv_cc_flag_unused_command_line_argument=no
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13513 fi
13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13517 CFLAGS="$xorg_testset_save_CFLAGS"
13518 fi
13519
13520 found="no"
13521
13522 if test $found = "no" ; then
13523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13525 fi
13526
13527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13529 fi
13530
13531 CFLAGS="$CFLAGS -Wall"
13532
13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13534 printf %s "checking if $CC supports -Wall... " >&6; }
13535 cacheid=xorg_cv_cc_flag__Wall
13536 if eval test \${$cacheid+y}
13537 then :
13538 printf %s "(cached) " >&6
13539 else $as_nop
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 int i;
13543 int
13544 main (void)
13545 {
13546
13547 ;
13548 return 0;
13549 }
13550 _ACEOF
13551 if ac_fn_c_try_link "$LINENO"
13552 then :
13553 eval $cacheid=yes
13554 else $as_nop
13555 eval $cacheid=no
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13558 conftest$ac_exeext conftest.$ac_ext
13559 fi
13560
13561
13562 CFLAGS="$xorg_testset_save_CFLAGS"
13563
13564 eval supported=\$$cacheid
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13566 printf "%s\n" "$supported" >&6; }
13567 if test "$supported" = "yes" ; then
13568 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13569 found="yes"
13570 fi
13571 fi
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587 xorg_testset_save_CFLAGS="$CFLAGS"
13588
13589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13594 then :
13595 printf %s "(cached) " >&6
13596 else $as_nop
13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13598 /* end confdefs.h. */
13599 int i;
13600 _ACEOF
13601 if ac_fn_c_try_compile "$LINENO"
13602 then :
13603 xorg_cv_cc_flag_unknown_warning_option=yes
13604 else $as_nop
13605 xorg_cv_cc_flag_unknown_warning_option=no
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13608 fi
13609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13612 CFLAGS="$xorg_testset_save_CFLAGS"
13613 fi
13614
13615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13618 fi
13619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13623 then :
13624 printf %s "(cached) " >&6
13625 else $as_nop
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 int i;
13629 _ACEOF
13630 if ac_fn_c_try_compile "$LINENO"
13631 then :
13632 xorg_cv_cc_flag_unused_command_line_argument=yes
13633 else $as_nop
13634 xorg_cv_cc_flag_unused_command_line_argument=no
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13637 fi
13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13641 CFLAGS="$xorg_testset_save_CFLAGS"
13642 fi
13643
13644 found="no"
13645
13646 if test $found = "no" ; then
13647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 fi
13650
13651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13653 fi
13654
13655 CFLAGS="$CFLAGS -Wpointer-arith"
13656
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13658 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13659 cacheid=xorg_cv_cc_flag__Wpointer_arith
13660 if eval test \${$cacheid+y}
13661 then :
13662 printf %s "(cached) " >&6
13663 else $as_nop
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 int i;
13667 int
13668 main (void)
13669 {
13670
13671 ;
13672 return 0;
13673 }
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"
13676 then :
13677 eval $cacheid=yes
13678 else $as_nop
13679 eval $cacheid=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13682 conftest$ac_exeext conftest.$ac_ext
13683 fi
13684
13685
13686 CFLAGS="$xorg_testset_save_CFLAGS"
13687
13688 eval supported=\$$cacheid
13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13690 printf "%s\n" "$supported" >&6; }
13691 if test "$supported" = "yes" ; then
13692 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13693 found="yes"
13694 fi
13695 fi
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711 xorg_testset_save_CFLAGS="$CFLAGS"
13712
13713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13717 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13718 then :
13719 printf %s "(cached) " >&6
13720 else $as_nop
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h. */
13723 int i;
13724 _ACEOF
13725 if ac_fn_c_try_compile "$LINENO"
13726 then :
13727 xorg_cv_cc_flag_unknown_warning_option=yes
13728 else $as_nop
13729 xorg_cv_cc_flag_unknown_warning_option=no
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13732 fi
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13736 CFLAGS="$xorg_testset_save_CFLAGS"
13737 fi
13738
13739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13742 fi
13743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13747 then :
13748 printf %s "(cached) " >&6
13749 else $as_nop
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 int i;
13753 _ACEOF
13754 if ac_fn_c_try_compile "$LINENO"
13755 then :
13756 xorg_cv_cc_flag_unused_command_line_argument=yes
13757 else $as_nop
13758 xorg_cv_cc_flag_unused_command_line_argument=no
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13761 fi
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13765 CFLAGS="$xorg_testset_save_CFLAGS"
13766 fi
13767
13768 found="no"
13769
13770 if test $found = "no" ; then
13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773 fi
13774
13775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13777 fi
13778
13779 CFLAGS="$CFLAGS -Wmissing-declarations"
13780
13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13782 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13783 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13784 if eval test \${$cacheid+y}
13785 then :
13786 printf %s "(cached) " >&6
13787 else $as_nop
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 int i;
13791 int
13792 main (void)
13793 {
13794
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"
13800 then :
13801 eval $cacheid=yes
13802 else $as_nop
13803 eval $cacheid=no
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13806 conftest$ac_exeext conftest.$ac_ext
13807 fi
13808
13809
13810 CFLAGS="$xorg_testset_save_CFLAGS"
13811
13812 eval supported=\$$cacheid
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13814 printf "%s\n" "$supported" >&6; }
13815 if test "$supported" = "yes" ; then
13816 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13817 found="yes"
13818 fi
13819 fi
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835 xorg_testset_save_CFLAGS="$CFLAGS"
13836
13837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13841 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13842 then :
13843 printf %s "(cached) " >&6
13844 else $as_nop
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847 int i;
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"
13850 then :
13851 xorg_cv_cc_flag_unknown_warning_option=yes
13852 else $as_nop
13853 xorg_cv_cc_flag_unknown_warning_option=no
13854 fi
13855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13856 fi
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13860 CFLAGS="$xorg_testset_save_CFLAGS"
13861 fi
13862
13863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13866 fi
13867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13871 then :
13872 printf %s "(cached) " >&6
13873 else $as_nop
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 int i;
13877 _ACEOF
13878 if ac_fn_c_try_compile "$LINENO"
13879 then :
13880 xorg_cv_cc_flag_unused_command_line_argument=yes
13881 else $as_nop
13882 xorg_cv_cc_flag_unused_command_line_argument=no
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13889 CFLAGS="$xorg_testset_save_CFLAGS"
13890 fi
13891
13892 found="no"
13893
13894 if test $found = "no" ; then
13895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13897 fi
13898
13899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13901 fi
13902
13903 CFLAGS="$CFLAGS -Wformat=2"
13904
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13906 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13907 cacheid=xorg_cv_cc_flag__Wformat_2
13908 if eval test \${$cacheid+y}
13909 then :
13910 printf %s "(cached) " >&6
13911 else $as_nop
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 int i;
13915 int
13916 main (void)
13917 {
13918
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"
13924 then :
13925 eval $cacheid=yes
13926 else $as_nop
13927 eval $cacheid=no
13928 fi
13929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13930 conftest$ac_exeext conftest.$ac_ext
13931 fi
13932
13933
13934 CFLAGS="$xorg_testset_save_CFLAGS"
13935
13936 eval supported=\$$cacheid
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13938 printf "%s\n" "$supported" >&6; }
13939 if test "$supported" = "yes" ; then
13940 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13941 found="yes"
13942 fi
13943 fi
13944
13945 if test $found = "no" ; then
13946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13948 fi
13949
13950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13952 fi
13953
13954 CFLAGS="$CFLAGS -Wformat"
13955
13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13957 printf %s "checking if $CC supports -Wformat... " >&6; }
13958 cacheid=xorg_cv_cc_flag__Wformat
13959 if eval test \${$cacheid+y}
13960 then :
13961 printf %s "(cached) " >&6
13962 else $as_nop
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13965 int i;
13966 int
13967 main (void)
13968 {
13969
13970 ;
13971 return 0;
13972 }
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"
13975 then :
13976 eval $cacheid=yes
13977 else $as_nop
13978 eval $cacheid=no
13979 fi
13980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13981 conftest$ac_exeext conftest.$ac_ext
13982 fi
13983
13984
13985 CFLAGS="$xorg_testset_save_CFLAGS"
13986
13987 eval supported=\$$cacheid
13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13989 printf "%s\n" "$supported" >&6; }
13990 if test "$supported" = "yes" ; then
13991 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13992 found="yes"
13993 fi
13994 fi
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012 xorg_testset_save_CFLAGS="$CFLAGS"
14013
14014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14019 then :
14020 printf %s "(cached) " >&6
14021 else $as_nop
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 int i;
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"
14027 then :
14028 xorg_cv_cc_flag_unknown_warning_option=yes
14029 else $as_nop
14030 xorg_cv_cc_flag_unknown_warning_option=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14033 fi
14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14035 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14037 CFLAGS="$xorg_testset_save_CFLAGS"
14038 fi
14039
14040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14043 fi
14044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14048 then :
14049 printf %s "(cached) " >&6
14050 else $as_nop
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 int i;
14054 _ACEOF
14055 if ac_fn_c_try_compile "$LINENO"
14056 then :
14057 xorg_cv_cc_flag_unused_command_line_argument=yes
14058 else $as_nop
14059 xorg_cv_cc_flag_unused_command_line_argument=no
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14062 fi
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14066 CFLAGS="$xorg_testset_save_CFLAGS"
14067 fi
14068
14069 found="no"
14070
14071 if test $found = "no" ; then
14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074 fi
14075
14076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14078 fi
14079
14080 CFLAGS="$CFLAGS -Wstrict-prototypes"
14081
14082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14083 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14084 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14085 if eval test \${$cacheid+y}
14086 then :
14087 printf %s "(cached) " >&6
14088 else $as_nop
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 int i;
14092 int
14093 main (void)
14094 {
14095
14096 ;
14097 return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"
14101 then :
14102 eval $cacheid=yes
14103 else $as_nop
14104 eval $cacheid=no
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14107 conftest$ac_exeext conftest.$ac_ext
14108 fi
14109
14110
14111 CFLAGS="$xorg_testset_save_CFLAGS"
14112
14113 eval supported=\$$cacheid
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14115 printf "%s\n" "$supported" >&6; }
14116 if test "$supported" = "yes" ; then
14117 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14118 found="yes"
14119 fi
14120 fi
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136 xorg_testset_save_CFLAGS="$CFLAGS"
14137
14138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14142 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14143 then :
14144 printf %s "(cached) " >&6
14145 else $as_nop
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 int i;
14149 _ACEOF
14150 if ac_fn_c_try_compile "$LINENO"
14151 then :
14152 xorg_cv_cc_flag_unknown_warning_option=yes
14153 else $as_nop
14154 xorg_cv_cc_flag_unknown_warning_option=no
14155 fi
14156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14157 fi
14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14159 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14161 CFLAGS="$xorg_testset_save_CFLAGS"
14162 fi
14163
14164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14167 fi
14168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14170 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14171 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14172 then :
14173 printf %s "(cached) " >&6
14174 else $as_nop
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177 int i;
14178 _ACEOF
14179 if ac_fn_c_try_compile "$LINENO"
14180 then :
14181 xorg_cv_cc_flag_unused_command_line_argument=yes
14182 else $as_nop
14183 xorg_cv_cc_flag_unused_command_line_argument=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14186 fi
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14190 CFLAGS="$xorg_testset_save_CFLAGS"
14191 fi
14192
14193 found="no"
14194
14195 if test $found = "no" ; then
14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198 fi
14199
14200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14202 fi
14203
14204 CFLAGS="$CFLAGS -Wmissing-prototypes"
14205
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14207 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14208 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14209 if eval test \${$cacheid+y}
14210 then :
14211 printf %s "(cached) " >&6
14212 else $as_nop
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 int i;
14216 int
14217 main (void)
14218 {
14219
14220 ;
14221 return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_c_try_link "$LINENO"
14225 then :
14226 eval $cacheid=yes
14227 else $as_nop
14228 eval $cacheid=no
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14231 conftest$ac_exeext conftest.$ac_ext
14232 fi
14233
14234
14235 CFLAGS="$xorg_testset_save_CFLAGS"
14236
14237 eval supported=\$$cacheid
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14239 printf "%s\n" "$supported" >&6; }
14240 if test "$supported" = "yes" ; then
14241 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14242 found="yes"
14243 fi
14244 fi
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260 xorg_testset_save_CFLAGS="$CFLAGS"
14261
14262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14265 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14266 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14267 then :
14268 printf %s "(cached) " >&6
14269 else $as_nop
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 int i;
14273 _ACEOF
14274 if ac_fn_c_try_compile "$LINENO"
14275 then :
14276 xorg_cv_cc_flag_unknown_warning_option=yes
14277 else $as_nop
14278 xorg_cv_cc_flag_unknown_warning_option=no
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14281 fi
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14283 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14285 CFLAGS="$xorg_testset_save_CFLAGS"
14286 fi
14287
14288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14291 fi
14292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14294 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14295 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14296 then :
14297 printf %s "(cached) " >&6
14298 else $as_nop
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301 int i;
14302 _ACEOF
14303 if ac_fn_c_try_compile "$LINENO"
14304 then :
14305 xorg_cv_cc_flag_unused_command_line_argument=yes
14306 else $as_nop
14307 xorg_cv_cc_flag_unused_command_line_argument=no
14308 fi
14309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14310 fi
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14312 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14314 CFLAGS="$xorg_testset_save_CFLAGS"
14315 fi
14316
14317 found="no"
14318
14319 if test $found = "no" ; then
14320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14322 fi
14323
14324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14326 fi
14327
14328 CFLAGS="$CFLAGS -Wnested-externs"
14329
14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14331 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14332 cacheid=xorg_cv_cc_flag__Wnested_externs
14333 if eval test \${$cacheid+y}
14334 then :
14335 printf %s "(cached) " >&6
14336 else $as_nop
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 int i;
14340 int
14341 main (void)
14342 {
14343
14344 ;
14345 return 0;
14346 }
14347 _ACEOF
14348 if ac_fn_c_try_link "$LINENO"
14349 then :
14350 eval $cacheid=yes
14351 else $as_nop
14352 eval $cacheid=no
14353 fi
14354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14355 conftest$ac_exeext conftest.$ac_ext
14356 fi
14357
14358
14359 CFLAGS="$xorg_testset_save_CFLAGS"
14360
14361 eval supported=\$$cacheid
14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14363 printf "%s\n" "$supported" >&6; }
14364 if test "$supported" = "yes" ; then
14365 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14366 found="yes"
14367 fi
14368 fi
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384 xorg_testset_save_CFLAGS="$CFLAGS"
14385
14386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14390 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14391 then :
14392 printf %s "(cached) " >&6
14393 else $as_nop
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 int i;
14397 _ACEOF
14398 if ac_fn_c_try_compile "$LINENO"
14399 then :
14400 xorg_cv_cc_flag_unknown_warning_option=yes
14401 else $as_nop
14402 xorg_cv_cc_flag_unknown_warning_option=no
14403 fi
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14405 fi
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14407 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14409 CFLAGS="$xorg_testset_save_CFLAGS"
14410 fi
14411
14412 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14415 fi
14416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14418 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14419 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14420 then :
14421 printf %s "(cached) " >&6
14422 else $as_nop
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14425 int i;
14426 _ACEOF
14427 if ac_fn_c_try_compile "$LINENO"
14428 then :
14429 xorg_cv_cc_flag_unused_command_line_argument=yes
14430 else $as_nop
14431 xorg_cv_cc_flag_unused_command_line_argument=no
14432 fi
14433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14434 fi
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14436 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14438 CFLAGS="$xorg_testset_save_CFLAGS"
14439 fi
14440
14441 found="no"
14442
14443 if test $found = "no" ; then
14444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446 fi
14447
14448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14450 fi
14451
14452 CFLAGS="$CFLAGS -Wbad-function-cast"
14453
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14455 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14456 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14457 if eval test \${$cacheid+y}
14458 then :
14459 printf %s "(cached) " >&6
14460 else $as_nop
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 int i;
14464 int
14465 main (void)
14466 {
14467
14468 ;
14469 return 0;
14470 }
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"
14473 then :
14474 eval $cacheid=yes
14475 else $as_nop
14476 eval $cacheid=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14479 conftest$ac_exeext conftest.$ac_ext
14480 fi
14481
14482
14483 CFLAGS="$xorg_testset_save_CFLAGS"
14484
14485 eval supported=\$$cacheid
14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14487 printf "%s\n" "$supported" >&6; }
14488 if test "$supported" = "yes" ; then
14489 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14490 found="yes"
14491 fi
14492 fi
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508 xorg_testset_save_CFLAGS="$CFLAGS"
14509
14510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14514 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14515 then :
14516 printf %s "(cached) " >&6
14517 else $as_nop
14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 int i;
14521 _ACEOF
14522 if ac_fn_c_try_compile "$LINENO"
14523 then :
14524 xorg_cv_cc_flag_unknown_warning_option=yes
14525 else $as_nop
14526 xorg_cv_cc_flag_unknown_warning_option=no
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14529 fi
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14533 CFLAGS="$xorg_testset_save_CFLAGS"
14534 fi
14535
14536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14539 fi
14540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14544 then :
14545 printf %s "(cached) " >&6
14546 else $as_nop
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14549 int i;
14550 _ACEOF
14551 if ac_fn_c_try_compile "$LINENO"
14552 then :
14553 xorg_cv_cc_flag_unused_command_line_argument=yes
14554 else $as_nop
14555 xorg_cv_cc_flag_unused_command_line_argument=no
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14558 fi
14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14560 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14562 CFLAGS="$xorg_testset_save_CFLAGS"
14563 fi
14564
14565 found="no"
14566
14567 if test $found = "no" ; then
14568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14570 fi
14571
14572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14574 fi
14575
14576 CFLAGS="$CFLAGS -Wold-style-definition"
14577
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14579 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14580 cacheid=xorg_cv_cc_flag__Wold_style_definition
14581 if eval test \${$cacheid+y}
14582 then :
14583 printf %s "(cached) " >&6
14584 else $as_nop
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 int i;
14588 int
14589 main (void)
14590 {
14591
14592 ;
14593 return 0;
14594 }
14595 _ACEOF
14596 if ac_fn_c_try_link "$LINENO"
14597 then :
14598 eval $cacheid=yes
14599 else $as_nop
14600 eval $cacheid=no
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14603 conftest$ac_exeext conftest.$ac_ext
14604 fi
14605
14606
14607 CFLAGS="$xorg_testset_save_CFLAGS"
14608
14609 eval supported=\$$cacheid
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14611 printf "%s\n" "$supported" >&6; }
14612 if test "$supported" = "yes" ; then
14613 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14614 found="yes"
14615 fi
14616 fi
14617
14618 if test $found = "no" ; then
14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621 fi
14622
14623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14625 fi
14626
14627 CFLAGS="$CFLAGS -fd"
14628
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14630 printf %s "checking if $CC supports -fd... " >&6; }
14631 cacheid=xorg_cv_cc_flag__fd
14632 if eval test \${$cacheid+y}
14633 then :
14634 printf %s "(cached) " >&6
14635 else $as_nop
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 int i;
14639 int
14640 main (void)
14641 {
14642
14643 ;
14644 return 0;
14645 }
14646 _ACEOF
14647 if ac_fn_c_try_link "$LINENO"
14648 then :
14649 eval $cacheid=yes
14650 else $as_nop
14651 eval $cacheid=no
14652 fi
14653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14654 conftest$ac_exeext conftest.$ac_ext
14655 fi
14656
14657
14658 CFLAGS="$xorg_testset_save_CFLAGS"
14659
14660 eval supported=\$$cacheid
14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14662 printf "%s\n" "$supported" >&6; }
14663 if test "$supported" = "yes" ; then
14664 BASE_CFLAGS="$BASE_CFLAGS -fd"
14665 found="yes"
14666 fi
14667 fi
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683 xorg_testset_save_CFLAGS="$CFLAGS"
14684
14685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14689 if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
14700 else $as_nop
14701 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
14706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14708 CFLAGS="$xorg_testset_save_CFLAGS"
14709 fi
14710
14711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14714 fi
14715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14719 then :
14720 printf %s "(cached) " >&6
14721 else $as_nop
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14724 int i;
14725 _ACEOF
14726 if ac_fn_c_try_compile "$LINENO"
14727 then :
14728 xorg_cv_cc_flag_unused_command_line_argument=yes
14729 else $as_nop
14730 xorg_cv_cc_flag_unused_command_line_argument=no
14731 fi
14732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14733 fi
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14737 CFLAGS="$xorg_testset_save_CFLAGS"
14738 fi
14739
14740 found="no"
14741
14742 if test $found = "no" ; then
14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14745 fi
14746
14747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14749 fi
14750
14751 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14752
14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14754 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14755 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14756 if eval test \${$cacheid+y}
14757 then :
14758 printf %s "(cached) " >&6
14759 else $as_nop
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14762 int i;
14763 int
14764 main (void)
14765 {
14766
14767 ;
14768 return 0;
14769 }
14770 _ACEOF
14771 if ac_fn_c_try_link "$LINENO"
14772 then :
14773 eval $cacheid=yes
14774 else $as_nop
14775 eval $cacheid=no
14776 fi
14777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14778 conftest$ac_exeext conftest.$ac_ext
14779 fi
14780
14781
14782 CFLAGS="$xorg_testset_save_CFLAGS"
14783
14784 eval supported=\$$cacheid
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14786 printf "%s\n" "$supported" >&6; }
14787 if test "$supported" = "yes" ; then
14788 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14789 found="yes"
14790 fi
14791 fi
14792
14793
14794
14795
14796
14797 # This chunk adds additional warnings that could catch undesired effects.
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811 xorg_testset_save_CFLAGS="$CFLAGS"
14812
14813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14817 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14818 then :
14819 printf %s "(cached) " >&6
14820 else $as_nop
14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h. */
14823 int i;
14824 _ACEOF
14825 if ac_fn_c_try_compile "$LINENO"
14826 then :
14827 xorg_cv_cc_flag_unknown_warning_option=yes
14828 else $as_nop
14829 xorg_cv_cc_flag_unknown_warning_option=no
14830 fi
14831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14832 fi
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14836 CFLAGS="$xorg_testset_save_CFLAGS"
14837 fi
14838
14839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14842 fi
14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14847 then :
14848 printf %s "(cached) " >&6
14849 else $as_nop
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852 int i;
14853 _ACEOF
14854 if ac_fn_c_try_compile "$LINENO"
14855 then :
14856 xorg_cv_cc_flag_unused_command_line_argument=yes
14857 else $as_nop
14858 xorg_cv_cc_flag_unused_command_line_argument=no
14859 fi
14860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14861 fi
14862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14863 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14865 CFLAGS="$xorg_testset_save_CFLAGS"
14866 fi
14867
14868 found="no"
14869
14870 if test $found = "no" ; then
14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873 fi
14874
14875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14877 fi
14878
14879 CFLAGS="$CFLAGS -Wunused"
14880
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14882 printf %s "checking if $CC supports -Wunused... " >&6; }
14883 cacheid=xorg_cv_cc_flag__Wunused
14884 if eval test \${$cacheid+y}
14885 then :
14886 printf %s "(cached) " >&6
14887 else $as_nop
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890 int i;
14891 int
14892 main (void)
14893 {
14894
14895 ;
14896 return 0;
14897 }
14898 _ACEOF
14899 if ac_fn_c_try_link "$LINENO"
14900 then :
14901 eval $cacheid=yes
14902 else $as_nop
14903 eval $cacheid=no
14904 fi
14905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14906 conftest$ac_exeext conftest.$ac_ext
14907 fi
14908
14909
14910 CFLAGS="$xorg_testset_save_CFLAGS"
14911
14912 eval supported=\$$cacheid
14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14914 printf "%s\n" "$supported" >&6; }
14915 if test "$supported" = "yes" ; then
14916 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14917 found="yes"
14918 fi
14919 fi
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935 xorg_testset_save_CFLAGS="$CFLAGS"
14936
14937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14940 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14941 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14942 then :
14943 printf %s "(cached) " >&6
14944 else $as_nop
14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h. */
14947 int i;
14948 _ACEOF
14949 if ac_fn_c_try_compile "$LINENO"
14950 then :
14951 xorg_cv_cc_flag_unknown_warning_option=yes
14952 else $as_nop
14953 xorg_cv_cc_flag_unknown_warning_option=no
14954 fi
14955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14956 fi
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14958 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14960 CFLAGS="$xorg_testset_save_CFLAGS"
14961 fi
14962
14963 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14966 fi
14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14969 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14970 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14971 then :
14972 printf %s "(cached) " >&6
14973 else $as_nop
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976 int i;
14977 _ACEOF
14978 if ac_fn_c_try_compile "$LINENO"
14979 then :
14980 xorg_cv_cc_flag_unused_command_line_argument=yes
14981 else $as_nop
14982 xorg_cv_cc_flag_unused_command_line_argument=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14985 fi
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14987 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14989 CFLAGS="$xorg_testset_save_CFLAGS"
14990 fi
14991
14992 found="no"
14993
14994 if test $found = "no" ; then
14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997 fi
14998
14999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15001 fi
15002
15003 CFLAGS="$CFLAGS -Wuninitialized"
15004
15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15006 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15007 cacheid=xorg_cv_cc_flag__Wuninitialized
15008 if eval test \${$cacheid+y}
15009 then :
15010 printf %s "(cached) " >&6
15011 else $as_nop
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014 int i;
15015 int
15016 main (void)
15017 {
15018
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"
15024 then :
15025 eval $cacheid=yes
15026 else $as_nop
15027 eval $cacheid=no
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15030 conftest$ac_exeext conftest.$ac_ext
15031 fi
15032
15033
15034 CFLAGS="$xorg_testset_save_CFLAGS"
15035
15036 eval supported=\$$cacheid
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15038 printf "%s\n" "$supported" >&6; }
15039 if test "$supported" = "yes" ; then
15040 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15041 found="yes"
15042 fi
15043 fi
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059 xorg_testset_save_CFLAGS="$CFLAGS"
15060
15061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15065 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15066 then :
15067 printf %s "(cached) " >&6
15068 else $as_nop
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 int i;
15072 _ACEOF
15073 if ac_fn_c_try_compile "$LINENO"
15074 then :
15075 xorg_cv_cc_flag_unknown_warning_option=yes
15076 else $as_nop
15077 xorg_cv_cc_flag_unknown_warning_option=no
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15080 fi
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15082 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15084 CFLAGS="$xorg_testset_save_CFLAGS"
15085 fi
15086
15087 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15090 fi
15091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15093 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15094 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15095 then :
15096 printf %s "(cached) " >&6
15097 else $as_nop
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15100 int i;
15101 _ACEOF
15102 if ac_fn_c_try_compile "$LINENO"
15103 then :
15104 xorg_cv_cc_flag_unused_command_line_argument=yes
15105 else $as_nop
15106 xorg_cv_cc_flag_unused_command_line_argument=no
15107 fi
15108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15109 fi
15110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15111 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15113 CFLAGS="$xorg_testset_save_CFLAGS"
15114 fi
15115
15116 found="no"
15117
15118 if test $found = "no" ; then
15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15121 fi
15122
15123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15125 fi
15126
15127 CFLAGS="$CFLAGS -Wshadow"
15128
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15130 printf %s "checking if $CC supports -Wshadow... " >&6; }
15131 cacheid=xorg_cv_cc_flag__Wshadow
15132 if eval test \${$cacheid+y}
15133 then :
15134 printf %s "(cached) " >&6
15135 else $as_nop
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 int i;
15139 int
15140 main (void)
15141 {
15142
15143 ;
15144 return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_c_try_link "$LINENO"
15148 then :
15149 eval $cacheid=yes
15150 else $as_nop
15151 eval $cacheid=no
15152 fi
15153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15154 conftest$ac_exeext conftest.$ac_ext
15155 fi
15156
15157
15158 CFLAGS="$xorg_testset_save_CFLAGS"
15159
15160 eval supported=\$$cacheid
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15162 printf "%s\n" "$supported" >&6; }
15163 if test "$supported" = "yes" ; then
15164 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15165 found="yes"
15166 fi
15167 fi
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183 xorg_testset_save_CFLAGS="$CFLAGS"
15184
15185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15189 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15190 then :
15191 printf %s "(cached) " >&6
15192 else $as_nop
15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15194 /* end confdefs.h. */
15195 int i;
15196 _ACEOF
15197 if ac_fn_c_try_compile "$LINENO"
15198 then :
15199 xorg_cv_cc_flag_unknown_warning_option=yes
15200 else $as_nop
15201 xorg_cv_cc_flag_unknown_warning_option=no
15202 fi
15203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15204 fi
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15208 CFLAGS="$xorg_testset_save_CFLAGS"
15209 fi
15210
15211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15214 fi
15215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15219 then :
15220 printf %s "(cached) " >&6
15221 else $as_nop
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224 int i;
15225 _ACEOF
15226 if ac_fn_c_try_compile "$LINENO"
15227 then :
15228 xorg_cv_cc_flag_unused_command_line_argument=yes
15229 else $as_nop
15230 xorg_cv_cc_flag_unused_command_line_argument=no
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15233 fi
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15237 CFLAGS="$xorg_testset_save_CFLAGS"
15238 fi
15239
15240 found="no"
15241
15242 if test $found = "no" ; then
15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15245 fi
15246
15247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15249 fi
15250
15251 CFLAGS="$CFLAGS -Wmissing-noreturn"
15252
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15254 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15255 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15256 if eval test \${$cacheid+y}
15257 then :
15258 printf %s "(cached) " >&6
15259 else $as_nop
15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262 int i;
15263 int
15264 main (void)
15265 {
15266
15267 ;
15268 return 0;
15269 }
15270 _ACEOF
15271 if ac_fn_c_try_link "$LINENO"
15272 then :
15273 eval $cacheid=yes
15274 else $as_nop
15275 eval $cacheid=no
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15278 conftest$ac_exeext conftest.$ac_ext
15279 fi
15280
15281
15282 CFLAGS="$xorg_testset_save_CFLAGS"
15283
15284 eval supported=\$$cacheid
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15286 printf "%s\n" "$supported" >&6; }
15287 if test "$supported" = "yes" ; then
15288 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15289 found="yes"
15290 fi
15291 fi
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307 xorg_testset_save_CFLAGS="$CFLAGS"
15308
15309 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15312 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15313 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15314 then :
15315 printf %s "(cached) " >&6
15316 else $as_nop
15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15319 int i;
15320 _ACEOF
15321 if ac_fn_c_try_compile "$LINENO"
15322 then :
15323 xorg_cv_cc_flag_unknown_warning_option=yes
15324 else $as_nop
15325 xorg_cv_cc_flag_unknown_warning_option=no
15326 fi
15327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15328 fi
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15332 CFLAGS="$xorg_testset_save_CFLAGS"
15333 fi
15334
15335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15338 fi
15339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15343 then :
15344 printf %s "(cached) " >&6
15345 else $as_nop
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 int i;
15349 _ACEOF
15350 if ac_fn_c_try_compile "$LINENO"
15351 then :
15352 xorg_cv_cc_flag_unused_command_line_argument=yes
15353 else $as_nop
15354 xorg_cv_cc_flag_unused_command_line_argument=no
15355 fi
15356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15357 fi
15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15361 CFLAGS="$xorg_testset_save_CFLAGS"
15362 fi
15363
15364 found="no"
15365
15366 if test $found = "no" ; then
15367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369 fi
15370
15371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15373 fi
15374
15375 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15376
15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15378 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15379 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15380 if eval test \${$cacheid+y}
15381 then :
15382 printf %s "(cached) " >&6
15383 else $as_nop
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386 int i;
15387 int
15388 main (void)
15389 {
15390
15391 ;
15392 return 0;
15393 }
15394 _ACEOF
15395 if ac_fn_c_try_link "$LINENO"
15396 then :
15397 eval $cacheid=yes
15398 else $as_nop
15399 eval $cacheid=no
15400 fi
15401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15402 conftest$ac_exeext conftest.$ac_ext
15403 fi
15404
15405
15406 CFLAGS="$xorg_testset_save_CFLAGS"
15407
15408 eval supported=\$$cacheid
15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15410 printf "%s\n" "$supported" >&6; }
15411 if test "$supported" = "yes" ; then
15412 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15413 found="yes"
15414 fi
15415 fi
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431 xorg_testset_save_CFLAGS="$CFLAGS"
15432
15433 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15436 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15437 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15438 then :
15439 printf %s "(cached) " >&6
15440 else $as_nop
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443 int i;
15444 _ACEOF
15445 if ac_fn_c_try_compile "$LINENO"
15446 then :
15447 xorg_cv_cc_flag_unknown_warning_option=yes
15448 else $as_nop
15449 xorg_cv_cc_flag_unknown_warning_option=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15452 fi
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15454 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15456 CFLAGS="$xorg_testset_save_CFLAGS"
15457 fi
15458
15459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15462 fi
15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15465 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15466 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15467 then :
15468 printf %s "(cached) " >&6
15469 else $as_nop
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472 int i;
15473 _ACEOF
15474 if ac_fn_c_try_compile "$LINENO"
15475 then :
15476 xorg_cv_cc_flag_unused_command_line_argument=yes
15477 else $as_nop
15478 xorg_cv_cc_flag_unused_command_line_argument=no
15479 fi
15480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15481 fi
15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15483 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15485 CFLAGS="$xorg_testset_save_CFLAGS"
15486 fi
15487
15488 found="no"
15489
15490 if test $found = "no" ; then
15491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493 fi
15494
15495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15497 fi
15498
15499 CFLAGS="$CFLAGS -Wredundant-decls"
15500
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15502 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15503 cacheid=xorg_cv_cc_flag__Wredundant_decls
15504 if eval test \${$cacheid+y}
15505 then :
15506 printf %s "(cached) " >&6
15507 else $as_nop
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15510 int i;
15511 int
15512 main (void)
15513 {
15514
15515 ;
15516 return 0;
15517 }
15518 _ACEOF
15519 if ac_fn_c_try_link "$LINENO"
15520 then :
15521 eval $cacheid=yes
15522 else $as_nop
15523 eval $cacheid=no
15524 fi
15525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15526 conftest$ac_exeext conftest.$ac_ext
15527 fi
15528
15529
15530 CFLAGS="$xorg_testset_save_CFLAGS"
15531
15532 eval supported=\$$cacheid
15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15534 printf "%s\n" "$supported" >&6; }
15535 if test "$supported" = "yes" ; then
15536 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15537 found="yes"
15538 fi
15539 fi
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555 xorg_testset_save_CFLAGS="$CFLAGS"
15556
15557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15560 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15561 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15562 then :
15563 printf %s "(cached) " >&6
15564 else $as_nop
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15567 int i;
15568 _ACEOF
15569 if ac_fn_c_try_compile "$LINENO"
15570 then :
15571 xorg_cv_cc_flag_unknown_warning_option=yes
15572 else $as_nop
15573 xorg_cv_cc_flag_unknown_warning_option=no
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15576 fi
15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15580 CFLAGS="$xorg_testset_save_CFLAGS"
15581 fi
15582
15583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15586 fi
15587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15591 then :
15592 printf %s "(cached) " >&6
15593 else $as_nop
15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595 /* end confdefs.h. */
15596 int i;
15597 _ACEOF
15598 if ac_fn_c_try_compile "$LINENO"
15599 then :
15600 xorg_cv_cc_flag_unused_command_line_argument=yes
15601 else $as_nop
15602 xorg_cv_cc_flag_unused_command_line_argument=no
15603 fi
15604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15605 fi
15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15607 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15609 CFLAGS="$xorg_testset_save_CFLAGS"
15610 fi
15611
15612 found="no"
15613
15614 if test $found = "no" ; then
15615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15617 fi
15618
15619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15621 fi
15622
15623 CFLAGS="$CFLAGS -Wlogical-op"
15624
15625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15626 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15627 cacheid=xorg_cv_cc_flag__Wlogical_op
15628 if eval test \${$cacheid+y}
15629 then :
15630 printf %s "(cached) " >&6
15631 else $as_nop
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 int i;
15635 int
15636 main (void)
15637 {
15638
15639 ;
15640 return 0;
15641 }
15642 _ACEOF
15643 if ac_fn_c_try_link "$LINENO"
15644 then :
15645 eval $cacheid=yes
15646 else $as_nop
15647 eval $cacheid=no
15648 fi
15649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15650 conftest$ac_exeext conftest.$ac_ext
15651 fi
15652
15653
15654 CFLAGS="$xorg_testset_save_CFLAGS"
15655
15656 eval supported=\$$cacheid
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15658 printf "%s\n" "$supported" >&6; }
15659 if test "$supported" = "yes" ; then
15660 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15661 found="yes"
15662 fi
15663 fi
15664
15665
15666
15667 # These are currently disabled because they are noisy. They will be enabled
15668 # in the future once the codebase is sufficiently modernized to silence
15669 # them. For now, I don't want them to drown out the other warnings.
15670 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15671 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15672 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15673
15674 # Turn some warnings into errors, so we don't accidently get successful builds
15675 # when there are problems that should be fixed.
15676
15677 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691 xorg_testset_save_CFLAGS="$CFLAGS"
15692
15693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15697 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15698 then :
15699 printf %s "(cached) " >&6
15700 else $as_nop
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 int i;
15704 _ACEOF
15705 if ac_fn_c_try_compile "$LINENO"
15706 then :
15707 xorg_cv_cc_flag_unknown_warning_option=yes
15708 else $as_nop
15709 xorg_cv_cc_flag_unknown_warning_option=no
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15712 fi
15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15716 CFLAGS="$xorg_testset_save_CFLAGS"
15717 fi
15718
15719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15722 fi
15723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15727 then :
15728 printf %s "(cached) " >&6
15729 else $as_nop
15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15731 /* end confdefs.h. */
15732 int i;
15733 _ACEOF
15734 if ac_fn_c_try_compile "$LINENO"
15735 then :
15736 xorg_cv_cc_flag_unused_command_line_argument=yes
15737 else $as_nop
15738 xorg_cv_cc_flag_unused_command_line_argument=no
15739 fi
15740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15741 fi
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15745 CFLAGS="$xorg_testset_save_CFLAGS"
15746 fi
15747
15748 found="no"
15749
15750 if test $found = "no" ; then
15751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15753 fi
15754
15755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15757 fi
15758
15759 CFLAGS="$CFLAGS -Werror=implicit"
15760
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15762 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15763 cacheid=xorg_cv_cc_flag__Werror_implicit
15764 if eval test \${$cacheid+y}
15765 then :
15766 printf %s "(cached) " >&6
15767 else $as_nop
15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15769 /* end confdefs.h. */
15770 int i;
15771 int
15772 main (void)
15773 {
15774
15775 ;
15776 return 0;
15777 }
15778 _ACEOF
15779 if ac_fn_c_try_link "$LINENO"
15780 then :
15781 eval $cacheid=yes
15782 else $as_nop
15783 eval $cacheid=no
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15786 conftest$ac_exeext conftest.$ac_ext
15787 fi
15788
15789
15790 CFLAGS="$xorg_testset_save_CFLAGS"
15791
15792 eval supported=\$$cacheid
15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15794 printf "%s\n" "$supported" >&6; }
15795 if test "$supported" = "yes" ; then
15796 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15797 found="yes"
15798 fi
15799 fi
15800
15801 if test $found = "no" ; then
15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804 fi
15805
15806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15808 fi
15809
15810 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15811
15812 { 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
15813 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15814 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15815 if eval test \${$cacheid+y}
15816 then :
15817 printf %s "(cached) " >&6
15818 else $as_nop
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 int i;
15822 int
15823 main (void)
15824 {
15825
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_link "$LINENO"
15831 then :
15832 eval $cacheid=yes
15833 else $as_nop
15834 eval $cacheid=no
15835 fi
15836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15837 conftest$ac_exeext conftest.$ac_ext
15838 fi
15839
15840
15841 CFLAGS="$xorg_testset_save_CFLAGS"
15842
15843 eval supported=\$$cacheid
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15845 printf "%s\n" "$supported" >&6; }
15846 if test "$supported" = "yes" ; then
15847 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15848 found="yes"
15849 fi
15850 fi
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866 xorg_testset_save_CFLAGS="$CFLAGS"
15867
15868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15873 then :
15874 printf %s "(cached) " >&6
15875 else $as_nop
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878 int i;
15879 _ACEOF
15880 if ac_fn_c_try_compile "$LINENO"
15881 then :
15882 xorg_cv_cc_flag_unknown_warning_option=yes
15883 else $as_nop
15884 xorg_cv_cc_flag_unknown_warning_option=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15887 fi
15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15889 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892 fi
15893
15894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15897 fi
15898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15900 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15901 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15902 then :
15903 printf %s "(cached) " >&6
15904 else $as_nop
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907 int i;
15908 _ACEOF
15909 if ac_fn_c_try_compile "$LINENO"
15910 then :
15911 xorg_cv_cc_flag_unused_command_line_argument=yes
15912 else $as_nop
15913 xorg_cv_cc_flag_unused_command_line_argument=no
15914 fi
15915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15916 fi
15917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15918 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15920 CFLAGS="$xorg_testset_save_CFLAGS"
15921 fi
15922
15923 found="no"
15924
15925 if test $found = "no" ; then
15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15928 fi
15929
15930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15932 fi
15933
15934 CFLAGS="$CFLAGS -Werror=nonnull"
15935
15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15937 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15938 cacheid=xorg_cv_cc_flag__Werror_nonnull
15939 if eval test \${$cacheid+y}
15940 then :
15941 printf %s "(cached) " >&6
15942 else $as_nop
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 int i;
15946 int
15947 main (void)
15948 {
15949
15950 ;
15951 return 0;
15952 }
15953 _ACEOF
15954 if ac_fn_c_try_link "$LINENO"
15955 then :
15956 eval $cacheid=yes
15957 else $as_nop
15958 eval $cacheid=no
15959 fi
15960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15961 conftest$ac_exeext conftest.$ac_ext
15962 fi
15963
15964
15965 CFLAGS="$xorg_testset_save_CFLAGS"
15966
15967 eval supported=\$$cacheid
15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15969 printf "%s\n" "$supported" >&6; }
15970 if test "$supported" = "yes" ; then
15971 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15972 found="yes"
15973 fi
15974 fi
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990 xorg_testset_save_CFLAGS="$CFLAGS"
15991
15992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15996 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15997 then :
15998 printf %s "(cached) " >&6
15999 else $as_nop
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 int i;
16003 _ACEOF
16004 if ac_fn_c_try_compile "$LINENO"
16005 then :
16006 xorg_cv_cc_flag_unknown_warning_option=yes
16007 else $as_nop
16008 xorg_cv_cc_flag_unknown_warning_option=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16011 fi
16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16013 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16015 CFLAGS="$xorg_testset_save_CFLAGS"
16016 fi
16017
16018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16021 fi
16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16026 then :
16027 printf %s "(cached) " >&6
16028 else $as_nop
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16031 int i;
16032 _ACEOF
16033 if ac_fn_c_try_compile "$LINENO"
16034 then :
16035 xorg_cv_cc_flag_unused_command_line_argument=yes
16036 else $as_nop
16037 xorg_cv_cc_flag_unused_command_line_argument=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16040 fi
16041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16044 CFLAGS="$xorg_testset_save_CFLAGS"
16045 fi
16046
16047 found="no"
16048
16049 if test $found = "no" ; then
16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052 fi
16053
16054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16056 fi
16057
16058 CFLAGS="$CFLAGS -Werror=init-self"
16059
16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16061 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16062 cacheid=xorg_cv_cc_flag__Werror_init_self
16063 if eval test \${$cacheid+y}
16064 then :
16065 printf %s "(cached) " >&6
16066 else $as_nop
16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16069 int i;
16070 int
16071 main (void)
16072 {
16073
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_link "$LINENO"
16079 then :
16080 eval $cacheid=yes
16081 else $as_nop
16082 eval $cacheid=no
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16085 conftest$ac_exeext conftest.$ac_ext
16086 fi
16087
16088
16089 CFLAGS="$xorg_testset_save_CFLAGS"
16090
16091 eval supported=\$$cacheid
16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16093 printf "%s\n" "$supported" >&6; }
16094 if test "$supported" = "yes" ; then
16095 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16096 found="yes"
16097 fi
16098 fi
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114 xorg_testset_save_CFLAGS="$CFLAGS"
16115
16116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16120 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16121 then :
16122 printf %s "(cached) " >&6
16123 else $as_nop
16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16125 /* end confdefs.h. */
16126 int i;
16127 _ACEOF
16128 if ac_fn_c_try_compile "$LINENO"
16129 then :
16130 xorg_cv_cc_flag_unknown_warning_option=yes
16131 else $as_nop
16132 xorg_cv_cc_flag_unknown_warning_option=no
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16135 fi
16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16137 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16139 CFLAGS="$xorg_testset_save_CFLAGS"
16140 fi
16141
16142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16145 fi
16146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16148 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16149 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16150 then :
16151 printf %s "(cached) " >&6
16152 else $as_nop
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 int i;
16156 _ACEOF
16157 if ac_fn_c_try_compile "$LINENO"
16158 then :
16159 xorg_cv_cc_flag_unused_command_line_argument=yes
16160 else $as_nop
16161 xorg_cv_cc_flag_unused_command_line_argument=no
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16164 fi
16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16168 CFLAGS="$xorg_testset_save_CFLAGS"
16169 fi
16170
16171 found="no"
16172
16173 if test $found = "no" ; then
16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16176 fi
16177
16178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16180 fi
16181
16182 CFLAGS="$CFLAGS -Werror=main"
16183
16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16185 printf %s "checking if $CC supports -Werror=main... " >&6; }
16186 cacheid=xorg_cv_cc_flag__Werror_main
16187 if eval test \${$cacheid+y}
16188 then :
16189 printf %s "(cached) " >&6
16190 else $as_nop
16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16192 /* end confdefs.h. */
16193 int i;
16194 int
16195 main (void)
16196 {
16197
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_c_try_link "$LINENO"
16203 then :
16204 eval $cacheid=yes
16205 else $as_nop
16206 eval $cacheid=no
16207 fi
16208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16209 conftest$ac_exeext conftest.$ac_ext
16210 fi
16211
16212
16213 CFLAGS="$xorg_testset_save_CFLAGS"
16214
16215 eval supported=\$$cacheid
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16217 printf "%s\n" "$supported" >&6; }
16218 if test "$supported" = "yes" ; then
16219 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16220 found="yes"
16221 fi
16222 fi
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238 xorg_testset_save_CFLAGS="$CFLAGS"
16239
16240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16245 then :
16246 printf %s "(cached) " >&6
16247 else $as_nop
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 int i;
16251 _ACEOF
16252 if ac_fn_c_try_compile "$LINENO"
16253 then :
16254 xorg_cv_cc_flag_unknown_warning_option=yes
16255 else $as_nop
16256 xorg_cv_cc_flag_unknown_warning_option=no
16257 fi
16258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16259 fi
16260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16261 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16263 CFLAGS="$xorg_testset_save_CFLAGS"
16264 fi
16265
16266 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16269 fi
16270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16272 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16273 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16274 then :
16275 printf %s "(cached) " >&6
16276 else $as_nop
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 int i;
16280 _ACEOF
16281 if ac_fn_c_try_compile "$LINENO"
16282 then :
16283 xorg_cv_cc_flag_unused_command_line_argument=yes
16284 else $as_nop
16285 xorg_cv_cc_flag_unused_command_line_argument=no
16286 fi
16287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16288 fi
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16290 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16292 CFLAGS="$xorg_testset_save_CFLAGS"
16293 fi
16294
16295 found="no"
16296
16297 if test $found = "no" ; then
16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300 fi
16301
16302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16304 fi
16305
16306 CFLAGS="$CFLAGS -Werror=missing-braces"
16307
16308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16309 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16310 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16311 if eval test \${$cacheid+y}
16312 then :
16313 printf %s "(cached) " >&6
16314 else $as_nop
16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16316 /* end confdefs.h. */
16317 int i;
16318 int
16319 main (void)
16320 {
16321
16322 ;
16323 return 0;
16324 }
16325 _ACEOF
16326 if ac_fn_c_try_link "$LINENO"
16327 then :
16328 eval $cacheid=yes
16329 else $as_nop
16330 eval $cacheid=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16333 conftest$ac_exeext conftest.$ac_ext
16334 fi
16335
16336
16337 CFLAGS="$xorg_testset_save_CFLAGS"
16338
16339 eval supported=\$$cacheid
16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16341 printf "%s\n" "$supported" >&6; }
16342 if test "$supported" = "yes" ; then
16343 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16344 found="yes"
16345 fi
16346 fi
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362 xorg_testset_save_CFLAGS="$CFLAGS"
16363
16364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16369 then :
16370 printf %s "(cached) " >&6
16371 else $as_nop
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 int i;
16375 _ACEOF
16376 if ac_fn_c_try_compile "$LINENO"
16377 then :
16378 xorg_cv_cc_flag_unknown_warning_option=yes
16379 else $as_nop
16380 xorg_cv_cc_flag_unknown_warning_option=no
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16383 fi
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16387 CFLAGS="$xorg_testset_save_CFLAGS"
16388 fi
16389
16390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16393 fi
16394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16398 then :
16399 printf %s "(cached) " >&6
16400 else $as_nop
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 int i;
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"
16406 then :
16407 xorg_cv_cc_flag_unused_command_line_argument=yes
16408 else $as_nop
16409 xorg_cv_cc_flag_unused_command_line_argument=no
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16412 fi
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16416 CFLAGS="$xorg_testset_save_CFLAGS"
16417 fi
16418
16419 found="no"
16420
16421 if test $found = "no" ; then
16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424 fi
16425
16426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16428 fi
16429
16430 CFLAGS="$CFLAGS -Werror=sequence-point"
16431
16432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16433 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16434 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16435 if eval test \${$cacheid+y}
16436 then :
16437 printf %s "(cached) " >&6
16438 else $as_nop
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16441 int i;
16442 int
16443 main (void)
16444 {
16445
16446 ;
16447 return 0;
16448 }
16449 _ACEOF
16450 if ac_fn_c_try_link "$LINENO"
16451 then :
16452 eval $cacheid=yes
16453 else $as_nop
16454 eval $cacheid=no
16455 fi
16456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16457 conftest$ac_exeext conftest.$ac_ext
16458 fi
16459
16460
16461 CFLAGS="$xorg_testset_save_CFLAGS"
16462
16463 eval supported=\$$cacheid
16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16465 printf "%s\n" "$supported" >&6; }
16466 if test "$supported" = "yes" ; then
16467 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16468 found="yes"
16469 fi
16470 fi
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486 xorg_testset_save_CFLAGS="$CFLAGS"
16487
16488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16493 then :
16494 printf %s "(cached) " >&6
16495 else $as_nop
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16498 int i;
16499 _ACEOF
16500 if ac_fn_c_try_compile "$LINENO"
16501 then :
16502 xorg_cv_cc_flag_unknown_warning_option=yes
16503 else $as_nop
16504 xorg_cv_cc_flag_unknown_warning_option=no
16505 fi
16506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16507 fi
16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16511 CFLAGS="$xorg_testset_save_CFLAGS"
16512 fi
16513
16514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16517 fi
16518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16522 then :
16523 printf %s "(cached) " >&6
16524 else $as_nop
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16527 int i;
16528 _ACEOF
16529 if ac_fn_c_try_compile "$LINENO"
16530 then :
16531 xorg_cv_cc_flag_unused_command_line_argument=yes
16532 else $as_nop
16533 xorg_cv_cc_flag_unused_command_line_argument=no
16534 fi
16535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16536 fi
16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16540 CFLAGS="$xorg_testset_save_CFLAGS"
16541 fi
16542
16543 found="no"
16544
16545 if test $found = "no" ; then
16546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16548 fi
16549
16550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16552 fi
16553
16554 CFLAGS="$CFLAGS -Werror=return-type"
16555
16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16557 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16558 cacheid=xorg_cv_cc_flag__Werror_return_type
16559 if eval test \${$cacheid+y}
16560 then :
16561 printf %s "(cached) " >&6
16562 else $as_nop
16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16564 /* end confdefs.h. */
16565 int i;
16566 int
16567 main (void)
16568 {
16569
16570 ;
16571 return 0;
16572 }
16573 _ACEOF
16574 if ac_fn_c_try_link "$LINENO"
16575 then :
16576 eval $cacheid=yes
16577 else $as_nop
16578 eval $cacheid=no
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16581 conftest$ac_exeext conftest.$ac_ext
16582 fi
16583
16584
16585 CFLAGS="$xorg_testset_save_CFLAGS"
16586
16587 eval supported=\$$cacheid
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16589 printf "%s\n" "$supported" >&6; }
16590 if test "$supported" = "yes" ; then
16591 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16592 found="yes"
16593 fi
16594 fi
16595
16596 if test $found = "no" ; then
16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16599 fi
16600
16601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16603 fi
16604
16605 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16606
16607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16608 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16609 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16610 if eval test \${$cacheid+y}
16611 then :
16612 printf %s "(cached) " >&6
16613 else $as_nop
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 int i;
16617 int
16618 main (void)
16619 {
16620
16621 ;
16622 return 0;
16623 }
16624 _ACEOF
16625 if ac_fn_c_try_link "$LINENO"
16626 then :
16627 eval $cacheid=yes
16628 else $as_nop
16629 eval $cacheid=no
16630 fi
16631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16632 conftest$ac_exeext conftest.$ac_ext
16633 fi
16634
16635
16636 CFLAGS="$xorg_testset_save_CFLAGS"
16637
16638 eval supported=\$$cacheid
16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16640 printf "%s\n" "$supported" >&6; }
16641 if test "$supported" = "yes" ; then
16642 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16643 found="yes"
16644 fi
16645 fi
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661 xorg_testset_save_CFLAGS="$CFLAGS"
16662
16663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16667 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16668 then :
16669 printf %s "(cached) " >&6
16670 else $as_nop
16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672 /* end confdefs.h. */
16673 int i;
16674 _ACEOF
16675 if ac_fn_c_try_compile "$LINENO"
16676 then :
16677 xorg_cv_cc_flag_unknown_warning_option=yes
16678 else $as_nop
16679 xorg_cv_cc_flag_unknown_warning_option=no
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16682 fi
16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16686 CFLAGS="$xorg_testset_save_CFLAGS"
16687 fi
16688
16689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16692 fi
16693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16697 then :
16698 printf %s "(cached) " >&6
16699 else $as_nop
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702 int i;
16703 _ACEOF
16704 if ac_fn_c_try_compile "$LINENO"
16705 then :
16706 xorg_cv_cc_flag_unused_command_line_argument=yes
16707 else $as_nop
16708 xorg_cv_cc_flag_unused_command_line_argument=no
16709 fi
16710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16711 fi
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16713 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16715 CFLAGS="$xorg_testset_save_CFLAGS"
16716 fi
16717
16718 found="no"
16719
16720 if test $found = "no" ; then
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 fi
16724
16725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16727 fi
16728
16729 CFLAGS="$CFLAGS -Werror=trigraphs"
16730
16731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16732 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16733 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16734 if eval test \${$cacheid+y}
16735 then :
16736 printf %s "(cached) " >&6
16737 else $as_nop
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 int i;
16741 int
16742 main (void)
16743 {
16744
16745 ;
16746 return 0;
16747 }
16748 _ACEOF
16749 if ac_fn_c_try_link "$LINENO"
16750 then :
16751 eval $cacheid=yes
16752 else $as_nop
16753 eval $cacheid=no
16754 fi
16755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16756 conftest$ac_exeext conftest.$ac_ext
16757 fi
16758
16759
16760 CFLAGS="$xorg_testset_save_CFLAGS"
16761
16762 eval supported=\$$cacheid
16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16764 printf "%s\n" "$supported" >&6; }
16765 if test "$supported" = "yes" ; then
16766 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16767 found="yes"
16768 fi
16769 fi
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785 xorg_testset_save_CFLAGS="$CFLAGS"
16786
16787 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16790 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16791 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16792 then :
16793 printf %s "(cached) " >&6
16794 else $as_nop
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16797 int i;
16798 _ACEOF
16799 if ac_fn_c_try_compile "$LINENO"
16800 then :
16801 xorg_cv_cc_flag_unknown_warning_option=yes
16802 else $as_nop
16803 xorg_cv_cc_flag_unknown_warning_option=no
16804 fi
16805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16806 fi
16807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16808 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16810 CFLAGS="$xorg_testset_save_CFLAGS"
16811 fi
16812
16813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16816 fi
16817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16819 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16820 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16821 then :
16822 printf %s "(cached) " >&6
16823 else $as_nop
16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16825 /* end confdefs.h. */
16826 int i;
16827 _ACEOF
16828 if ac_fn_c_try_compile "$LINENO"
16829 then :
16830 xorg_cv_cc_flag_unused_command_line_argument=yes
16831 else $as_nop
16832 xorg_cv_cc_flag_unused_command_line_argument=no
16833 fi
16834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16835 fi
16836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16837 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16839 CFLAGS="$xorg_testset_save_CFLAGS"
16840 fi
16841
16842 found="no"
16843
16844 if test $found = "no" ; then
16845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 fi
16848
16849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16851 fi
16852
16853 CFLAGS="$CFLAGS -Werror=array-bounds"
16854
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16856 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16857 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16858 if eval test \${$cacheid+y}
16859 then :
16860 printf %s "(cached) " >&6
16861 else $as_nop
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 int i;
16865 int
16866 main (void)
16867 {
16868
16869 ;
16870 return 0;
16871 }
16872 _ACEOF
16873 if ac_fn_c_try_link "$LINENO"
16874 then :
16875 eval $cacheid=yes
16876 else $as_nop
16877 eval $cacheid=no
16878 fi
16879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16880 conftest$ac_exeext conftest.$ac_ext
16881 fi
16882
16883
16884 CFLAGS="$xorg_testset_save_CFLAGS"
16885
16886 eval supported=\$$cacheid
16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16888 printf "%s\n" "$supported" >&6; }
16889 if test "$supported" = "yes" ; then
16890 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16891 found="yes"
16892 fi
16893 fi
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909 xorg_testset_save_CFLAGS="$CFLAGS"
16910
16911 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16914 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16915 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16916 then :
16917 printf %s "(cached) " >&6
16918 else $as_nop
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16921 int i;
16922 _ACEOF
16923 if ac_fn_c_try_compile "$LINENO"
16924 then :
16925 xorg_cv_cc_flag_unknown_warning_option=yes
16926 else $as_nop
16927 xorg_cv_cc_flag_unknown_warning_option=no
16928 fi
16929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16930 fi
16931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16932 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16934 CFLAGS="$xorg_testset_save_CFLAGS"
16935 fi
16936
16937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16940 fi
16941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16943 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16944 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16945 then :
16946 printf %s "(cached) " >&6
16947 else $as_nop
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16950 int i;
16951 _ACEOF
16952 if ac_fn_c_try_compile "$LINENO"
16953 then :
16954 xorg_cv_cc_flag_unused_command_line_argument=yes
16955 else $as_nop
16956 xorg_cv_cc_flag_unused_command_line_argument=no
16957 fi
16958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16959 fi
16960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16961 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16963 CFLAGS="$xorg_testset_save_CFLAGS"
16964 fi
16965
16966 found="no"
16967
16968 if test $found = "no" ; then
16969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16971 fi
16972
16973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16975 fi
16976
16977 CFLAGS="$CFLAGS -Werror=write-strings"
16978
16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16980 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16981 cacheid=xorg_cv_cc_flag__Werror_write_strings
16982 if eval test \${$cacheid+y}
16983 then :
16984 printf %s "(cached) " >&6
16985 else $as_nop
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h. */
16988 int i;
16989 int
16990 main (void)
16991 {
16992
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 if ac_fn_c_try_link "$LINENO"
16998 then :
16999 eval $cacheid=yes
17000 else $as_nop
17001 eval $cacheid=no
17002 fi
17003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17004 conftest$ac_exeext conftest.$ac_ext
17005 fi
17006
17007
17008 CFLAGS="$xorg_testset_save_CFLAGS"
17009
17010 eval supported=\$$cacheid
17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17012 printf "%s\n" "$supported" >&6; }
17013 if test "$supported" = "yes" ; then
17014 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17015 found="yes"
17016 fi
17017 fi
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033 xorg_testset_save_CFLAGS="$CFLAGS"
17034
17035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17040 then :
17041 printf %s "(cached) " >&6
17042 else $as_nop
17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044 /* end confdefs.h. */
17045 int i;
17046 _ACEOF
17047 if ac_fn_c_try_compile "$LINENO"
17048 then :
17049 xorg_cv_cc_flag_unknown_warning_option=yes
17050 else $as_nop
17051 xorg_cv_cc_flag_unknown_warning_option=no
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17054 fi
17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17058 CFLAGS="$xorg_testset_save_CFLAGS"
17059 fi
17060
17061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17064 fi
17065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17069 then :
17070 printf %s "(cached) " >&6
17071 else $as_nop
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 int i;
17075 _ACEOF
17076 if ac_fn_c_try_compile "$LINENO"
17077 then :
17078 xorg_cv_cc_flag_unused_command_line_argument=yes
17079 else $as_nop
17080 xorg_cv_cc_flag_unused_command_line_argument=no
17081 fi
17082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17083 fi
17084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17085 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17087 CFLAGS="$xorg_testset_save_CFLAGS"
17088 fi
17089
17090 found="no"
17091
17092 if test $found = "no" ; then
17093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095 fi
17096
17097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17099 fi
17100
17101 CFLAGS="$CFLAGS -Werror=address"
17102
17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17104 printf %s "checking if $CC supports -Werror=address... " >&6; }
17105 cacheid=xorg_cv_cc_flag__Werror_address
17106 if eval test \${$cacheid+y}
17107 then :
17108 printf %s "(cached) " >&6
17109 else $as_nop
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111 /* end confdefs.h. */
17112 int i;
17113 int
17114 main (void)
17115 {
17116
17117 ;
17118 return 0;
17119 }
17120 _ACEOF
17121 if ac_fn_c_try_link "$LINENO"
17122 then :
17123 eval $cacheid=yes
17124 else $as_nop
17125 eval $cacheid=no
17126 fi
17127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17128 conftest$ac_exeext conftest.$ac_ext
17129 fi
17130
17131
17132 CFLAGS="$xorg_testset_save_CFLAGS"
17133
17134 eval supported=\$$cacheid
17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17136 printf "%s\n" "$supported" >&6; }
17137 if test "$supported" = "yes" ; then
17138 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17139 found="yes"
17140 fi
17141 fi
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157 xorg_testset_save_CFLAGS="$CFLAGS"
17158
17159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17164 then :
17165 printf %s "(cached) " >&6
17166 else $as_nop
17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17168 /* end confdefs.h. */
17169 int i;
17170 _ACEOF
17171 if ac_fn_c_try_compile "$LINENO"
17172 then :
17173 xorg_cv_cc_flag_unknown_warning_option=yes
17174 else $as_nop
17175 xorg_cv_cc_flag_unknown_warning_option=no
17176 fi
17177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17178 fi
17179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17182 CFLAGS="$xorg_testset_save_CFLAGS"
17183 fi
17184
17185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17188 fi
17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17193 then :
17194 printf %s "(cached) " >&6
17195 else $as_nop
17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h. */
17198 int i;
17199 _ACEOF
17200 if ac_fn_c_try_compile "$LINENO"
17201 then :
17202 xorg_cv_cc_flag_unused_command_line_argument=yes
17203 else $as_nop
17204 xorg_cv_cc_flag_unused_command_line_argument=no
17205 fi
17206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17207 fi
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17211 CFLAGS="$xorg_testset_save_CFLAGS"
17212 fi
17213
17214 found="no"
17215
17216 if test $found = "no" ; then
17217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17219 fi
17220
17221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17223 fi
17224
17225 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17226
17227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17228 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17229 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17230 if eval test \${$cacheid+y}
17231 then :
17232 printf %s "(cached) " >&6
17233 else $as_nop
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17236 int i;
17237 int
17238 main (void)
17239 {
17240
17241 ;
17242 return 0;
17243 }
17244 _ACEOF
17245 if ac_fn_c_try_link "$LINENO"
17246 then :
17247 eval $cacheid=yes
17248 else $as_nop
17249 eval $cacheid=no
17250 fi
17251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17252 conftest$ac_exeext conftest.$ac_ext
17253 fi
17254
17255
17256 CFLAGS="$xorg_testset_save_CFLAGS"
17257
17258 eval supported=\$$cacheid
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17260 printf "%s\n" "$supported" >&6; }
17261 if test "$supported" = "yes" ; then
17262 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17263 found="yes"
17264 fi
17265 fi
17266
17267 if test $found = "no" ; then
17268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17270 fi
17271
17272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17274 fi
17275
17276 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17277
17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17279 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17280 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17281 if eval test \${$cacheid+y}
17282 then :
17283 printf %s "(cached) " >&6
17284 else $as_nop
17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17286 /* end confdefs.h. */
17287 int i;
17288 int
17289 main (void)
17290 {
17291
17292 ;
17293 return 0;
17294 }
17295 _ACEOF
17296 if ac_fn_c_try_link "$LINENO"
17297 then :
17298 eval $cacheid=yes
17299 else $as_nop
17300 eval $cacheid=no
17301 fi
17302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17303 conftest$ac_exeext conftest.$ac_ext
17304 fi
17305
17306
17307 CFLAGS="$xorg_testset_save_CFLAGS"
17308
17309 eval supported=\$$cacheid
17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17311 printf "%s\n" "$supported" >&6; }
17312 if test "$supported" = "yes" ; then
17313 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17314 found="yes"
17315 fi
17316 fi
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332 xorg_testset_save_CFLAGS="$CFLAGS"
17333
17334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17338 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17339 then :
17340 printf %s "(cached) " >&6
17341 else $as_nop
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17344 int i;
17345 _ACEOF
17346 if ac_fn_c_try_compile "$LINENO"
17347 then :
17348 xorg_cv_cc_flag_unknown_warning_option=yes
17349 else $as_nop
17350 xorg_cv_cc_flag_unknown_warning_option=no
17351 fi
17352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17353 fi
17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17357 CFLAGS="$xorg_testset_save_CFLAGS"
17358 fi
17359
17360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17363 fi
17364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17368 then :
17369 printf %s "(cached) " >&6
17370 else $as_nop
17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17373 int i;
17374 _ACEOF
17375 if ac_fn_c_try_compile "$LINENO"
17376 then :
17377 xorg_cv_cc_flag_unused_command_line_argument=yes
17378 else $as_nop
17379 xorg_cv_cc_flag_unused_command_line_argument=no
17380 fi
17381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17382 fi
17383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17386 CFLAGS="$xorg_testset_save_CFLAGS"
17387 fi
17388
17389 found="no"
17390
17391 if test $found = "no" ; then
17392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17394 fi
17395
17396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17398 fi
17399
17400 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17401
17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17403 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17404 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17405 if eval test \${$cacheid+y}
17406 then :
17407 printf %s "(cached) " >&6
17408 else $as_nop
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410 /* end confdefs.h. */
17411 int i;
17412 int
17413 main (void)
17414 {
17415
17416 ;
17417 return 0;
17418 }
17419 _ACEOF
17420 if ac_fn_c_try_link "$LINENO"
17421 then :
17422 eval $cacheid=yes
17423 else $as_nop
17424 eval $cacheid=no
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17427 conftest$ac_exeext conftest.$ac_ext
17428 fi
17429
17430
17431 CFLAGS="$xorg_testset_save_CFLAGS"
17432
17433 eval supported=\$$cacheid
17434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17435 printf "%s\n" "$supported" >&6; }
17436 if test "$supported" = "yes" ; then
17437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17438 found="yes"
17439 fi
17440 fi
17441
17442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17443 else
17444 { 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
17445 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;}
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459 xorg_testset_save_CFLAGS="$CFLAGS"
17460
17461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17466 then :
17467 printf %s "(cached) " >&6
17468 else $as_nop
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 int i;
17472 _ACEOF
17473 if ac_fn_c_try_compile "$LINENO"
17474 then :
17475 xorg_cv_cc_flag_unknown_warning_option=yes
17476 else $as_nop
17477 xorg_cv_cc_flag_unknown_warning_option=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17480 fi
17481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17484 CFLAGS="$xorg_testset_save_CFLAGS"
17485 fi
17486
17487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17490 fi
17491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17495 then :
17496 printf %s "(cached) " >&6
17497 else $as_nop
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17500 int i;
17501 _ACEOF
17502 if ac_fn_c_try_compile "$LINENO"
17503 then :
17504 xorg_cv_cc_flag_unused_command_line_argument=yes
17505 else $as_nop
17506 xorg_cv_cc_flag_unused_command_line_argument=no
17507 fi
17508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17509 fi
17510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17513 CFLAGS="$xorg_testset_save_CFLAGS"
17514 fi
17515
17516 found="no"
17517
17518 if test $found = "no" ; then
17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521 fi
17522
17523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17525 fi
17526
17527 CFLAGS="$CFLAGS -Wimplicit"
17528
17529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17530 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17531 cacheid=xorg_cv_cc_flag__Wimplicit
17532 if eval test \${$cacheid+y}
17533 then :
17534 printf %s "(cached) " >&6
17535 else $as_nop
17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17537 /* end confdefs.h. */
17538 int i;
17539 int
17540 main (void)
17541 {
17542
17543 ;
17544 return 0;
17545 }
17546 _ACEOF
17547 if ac_fn_c_try_link "$LINENO"
17548 then :
17549 eval $cacheid=yes
17550 else $as_nop
17551 eval $cacheid=no
17552 fi
17553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17554 conftest$ac_exeext conftest.$ac_ext
17555 fi
17556
17557
17558 CFLAGS="$xorg_testset_save_CFLAGS"
17559
17560 eval supported=\$$cacheid
17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17562 printf "%s\n" "$supported" >&6; }
17563 if test "$supported" = "yes" ; then
17564 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17565 found="yes"
17566 fi
17567 fi
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583 xorg_testset_save_CFLAGS="$CFLAGS"
17584
17585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17589 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17590 then :
17591 printf %s "(cached) " >&6
17592 else $as_nop
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17595 int i;
17596 _ACEOF
17597 if ac_fn_c_try_compile "$LINENO"
17598 then :
17599 xorg_cv_cc_flag_unknown_warning_option=yes
17600 else $as_nop
17601 xorg_cv_cc_flag_unknown_warning_option=no
17602 fi
17603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17604 fi
17605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17606 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17608 CFLAGS="$xorg_testset_save_CFLAGS"
17609 fi
17610
17611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17614 fi
17615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17619 then :
17620 printf %s "(cached) " >&6
17621 else $as_nop
17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17623 /* end confdefs.h. */
17624 int i;
17625 _ACEOF
17626 if ac_fn_c_try_compile "$LINENO"
17627 then :
17628 xorg_cv_cc_flag_unused_command_line_argument=yes
17629 else $as_nop
17630 xorg_cv_cc_flag_unused_command_line_argument=no
17631 fi
17632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17633 fi
17634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17637 CFLAGS="$xorg_testset_save_CFLAGS"
17638 fi
17639
17640 found="no"
17641
17642 if test $found = "no" ; then
17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17645 fi
17646
17647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17649 fi
17650
17651 CFLAGS="$CFLAGS -Wnonnull"
17652
17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17654 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17655 cacheid=xorg_cv_cc_flag__Wnonnull
17656 if eval test \${$cacheid+y}
17657 then :
17658 printf %s "(cached) " >&6
17659 else $as_nop
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17662 int i;
17663 int
17664 main (void)
17665 {
17666
17667 ;
17668 return 0;
17669 }
17670 _ACEOF
17671 if ac_fn_c_try_link "$LINENO"
17672 then :
17673 eval $cacheid=yes
17674 else $as_nop
17675 eval $cacheid=no
17676 fi
17677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17678 conftest$ac_exeext conftest.$ac_ext
17679 fi
17680
17681
17682 CFLAGS="$xorg_testset_save_CFLAGS"
17683
17684 eval supported=\$$cacheid
17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17686 printf "%s\n" "$supported" >&6; }
17687 if test "$supported" = "yes" ; then
17688 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17689 found="yes"
17690 fi
17691 fi
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707 xorg_testset_save_CFLAGS="$CFLAGS"
17708
17709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17713 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17714 then :
17715 printf %s "(cached) " >&6
17716 else $as_nop
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17719 int i;
17720 _ACEOF
17721 if ac_fn_c_try_compile "$LINENO"
17722 then :
17723 xorg_cv_cc_flag_unknown_warning_option=yes
17724 else $as_nop
17725 xorg_cv_cc_flag_unknown_warning_option=no
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17728 fi
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17730 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17732 CFLAGS="$xorg_testset_save_CFLAGS"
17733 fi
17734
17735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17738 fi
17739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17741 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17742 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17743 then :
17744 printf %s "(cached) " >&6
17745 else $as_nop
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17748 int i;
17749 _ACEOF
17750 if ac_fn_c_try_compile "$LINENO"
17751 then :
17752 xorg_cv_cc_flag_unused_command_line_argument=yes
17753 else $as_nop
17754 xorg_cv_cc_flag_unused_command_line_argument=no
17755 fi
17756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17757 fi
17758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17761 CFLAGS="$xorg_testset_save_CFLAGS"
17762 fi
17763
17764 found="no"
17765
17766 if test $found = "no" ; then
17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17769 fi
17770
17771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17773 fi
17774
17775 CFLAGS="$CFLAGS -Winit-self"
17776
17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17778 printf %s "checking if $CC supports -Winit-self... " >&6; }
17779 cacheid=xorg_cv_cc_flag__Winit_self
17780 if eval test \${$cacheid+y}
17781 then :
17782 printf %s "(cached) " >&6
17783 else $as_nop
17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17786 int i;
17787 int
17788 main (void)
17789 {
17790
17791 ;
17792 return 0;
17793 }
17794 _ACEOF
17795 if ac_fn_c_try_link "$LINENO"
17796 then :
17797 eval $cacheid=yes
17798 else $as_nop
17799 eval $cacheid=no
17800 fi
17801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17802 conftest$ac_exeext conftest.$ac_ext
17803 fi
17804
17805
17806 CFLAGS="$xorg_testset_save_CFLAGS"
17807
17808 eval supported=\$$cacheid
17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17810 printf "%s\n" "$supported" >&6; }
17811 if test "$supported" = "yes" ; then
17812 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17813 found="yes"
17814 fi
17815 fi
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831 xorg_testset_save_CFLAGS="$CFLAGS"
17832
17833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17838 then :
17839 printf %s "(cached) " >&6
17840 else $as_nop
17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842 /* end confdefs.h. */
17843 int i;
17844 _ACEOF
17845 if ac_fn_c_try_compile "$LINENO"
17846 then :
17847 xorg_cv_cc_flag_unknown_warning_option=yes
17848 else $as_nop
17849 xorg_cv_cc_flag_unknown_warning_option=no
17850 fi
17851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17852 fi
17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17856 CFLAGS="$xorg_testset_save_CFLAGS"
17857 fi
17858
17859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862 fi
17863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17867 then :
17868 printf %s "(cached) " >&6
17869 else $as_nop
17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h. */
17872 int i;
17873 _ACEOF
17874 if ac_fn_c_try_compile "$LINENO"
17875 then :
17876 xorg_cv_cc_flag_unused_command_line_argument=yes
17877 else $as_nop
17878 xorg_cv_cc_flag_unused_command_line_argument=no
17879 fi
17880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17881 fi
17882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17885 CFLAGS="$xorg_testset_save_CFLAGS"
17886 fi
17887
17888 found="no"
17889
17890 if test $found = "no" ; then
17891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17893 fi
17894
17895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17897 fi
17898
17899 CFLAGS="$CFLAGS -Wmain"
17900
17901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17902 printf %s "checking if $CC supports -Wmain... " >&6; }
17903 cacheid=xorg_cv_cc_flag__Wmain
17904 if eval test \${$cacheid+y}
17905 then :
17906 printf %s "(cached) " >&6
17907 else $as_nop
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910 int i;
17911 int
17912 main (void)
17913 {
17914
17915 ;
17916 return 0;
17917 }
17918 _ACEOF
17919 if ac_fn_c_try_link "$LINENO"
17920 then :
17921 eval $cacheid=yes
17922 else $as_nop
17923 eval $cacheid=no
17924 fi
17925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17926 conftest$ac_exeext conftest.$ac_ext
17927 fi
17928
17929
17930 CFLAGS="$xorg_testset_save_CFLAGS"
17931
17932 eval supported=\$$cacheid
17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17934 printf "%s\n" "$supported" >&6; }
17935 if test "$supported" = "yes" ; then
17936 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17937 found="yes"
17938 fi
17939 fi
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955 xorg_testset_save_CFLAGS="$CFLAGS"
17956
17957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17962 then :
17963 printf %s "(cached) " >&6
17964 else $as_nop
17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h. */
17967 int i;
17968 _ACEOF
17969 if ac_fn_c_try_compile "$LINENO"
17970 then :
17971 xorg_cv_cc_flag_unknown_warning_option=yes
17972 else $as_nop
17973 xorg_cv_cc_flag_unknown_warning_option=no
17974 fi
17975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17976 fi
17977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17980 CFLAGS="$xorg_testset_save_CFLAGS"
17981 fi
17982
17983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17986 fi
17987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17991 then :
17992 printf %s "(cached) " >&6
17993 else $as_nop
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17996 int i;
17997 _ACEOF
17998 if ac_fn_c_try_compile "$LINENO"
17999 then :
18000 xorg_cv_cc_flag_unused_command_line_argument=yes
18001 else $as_nop
18002 xorg_cv_cc_flag_unused_command_line_argument=no
18003 fi
18004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18005 fi
18006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18009 CFLAGS="$xorg_testset_save_CFLAGS"
18010 fi
18011
18012 found="no"
18013
18014 if test $found = "no" ; then
18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18017 fi
18018
18019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18021 fi
18022
18023 CFLAGS="$CFLAGS -Wmissing-braces"
18024
18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18026 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18027 cacheid=xorg_cv_cc_flag__Wmissing_braces
18028 if eval test \${$cacheid+y}
18029 then :
18030 printf %s "(cached) " >&6
18031 else $as_nop
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18034 int i;
18035 int
18036 main (void)
18037 {
18038
18039 ;
18040 return 0;
18041 }
18042 _ACEOF
18043 if ac_fn_c_try_link "$LINENO"
18044 then :
18045 eval $cacheid=yes
18046 else $as_nop
18047 eval $cacheid=no
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18050 conftest$ac_exeext conftest.$ac_ext
18051 fi
18052
18053
18054 CFLAGS="$xorg_testset_save_CFLAGS"
18055
18056 eval supported=\$$cacheid
18057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18058 printf "%s\n" "$supported" >&6; }
18059 if test "$supported" = "yes" ; then
18060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18061 found="yes"
18062 fi
18063 fi
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079 xorg_testset_save_CFLAGS="$CFLAGS"
18080
18081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18086 then :
18087 printf %s "(cached) " >&6
18088 else $as_nop
18089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18090 /* end confdefs.h. */
18091 int i;
18092 _ACEOF
18093 if ac_fn_c_try_compile "$LINENO"
18094 then :
18095 xorg_cv_cc_flag_unknown_warning_option=yes
18096 else $as_nop
18097 xorg_cv_cc_flag_unknown_warning_option=no
18098 fi
18099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18100 fi
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18104 CFLAGS="$xorg_testset_save_CFLAGS"
18105 fi
18106
18107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18110 fi
18111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18115 then :
18116 printf %s "(cached) " >&6
18117 else $as_nop
18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18119 /* end confdefs.h. */
18120 int i;
18121 _ACEOF
18122 if ac_fn_c_try_compile "$LINENO"
18123 then :
18124 xorg_cv_cc_flag_unused_command_line_argument=yes
18125 else $as_nop
18126 xorg_cv_cc_flag_unused_command_line_argument=no
18127 fi
18128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18129 fi
18130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18131 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18133 CFLAGS="$xorg_testset_save_CFLAGS"
18134 fi
18135
18136 found="no"
18137
18138 if test $found = "no" ; then
18139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18141 fi
18142
18143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18145 fi
18146
18147 CFLAGS="$CFLAGS -Wsequence-point"
18148
18149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18150 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18151 cacheid=xorg_cv_cc_flag__Wsequence_point
18152 if eval test \${$cacheid+y}
18153 then :
18154 printf %s "(cached) " >&6
18155 else $as_nop
18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157 /* end confdefs.h. */
18158 int i;
18159 int
18160 main (void)
18161 {
18162
18163 ;
18164 return 0;
18165 }
18166 _ACEOF
18167 if ac_fn_c_try_link "$LINENO"
18168 then :
18169 eval $cacheid=yes
18170 else $as_nop
18171 eval $cacheid=no
18172 fi
18173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18174 conftest$ac_exeext conftest.$ac_ext
18175 fi
18176
18177
18178 CFLAGS="$xorg_testset_save_CFLAGS"
18179
18180 eval supported=\$$cacheid
18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18182 printf "%s\n" "$supported" >&6; }
18183 if test "$supported" = "yes" ; then
18184 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18185 found="yes"
18186 fi
18187 fi
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203 xorg_testset_save_CFLAGS="$CFLAGS"
18204
18205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18208 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18209 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18210 then :
18211 printf %s "(cached) " >&6
18212 else $as_nop
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18215 int i;
18216 _ACEOF
18217 if ac_fn_c_try_compile "$LINENO"
18218 then :
18219 xorg_cv_cc_flag_unknown_warning_option=yes
18220 else $as_nop
18221 xorg_cv_cc_flag_unknown_warning_option=no
18222 fi
18223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18224 fi
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18226 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18228 CFLAGS="$xorg_testset_save_CFLAGS"
18229 fi
18230
18231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18234 fi
18235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18237 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18238 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18239 then :
18240 printf %s "(cached) " >&6
18241 else $as_nop
18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18243 /* end confdefs.h. */
18244 int i;
18245 _ACEOF
18246 if ac_fn_c_try_compile "$LINENO"
18247 then :
18248 xorg_cv_cc_flag_unused_command_line_argument=yes
18249 else $as_nop
18250 xorg_cv_cc_flag_unused_command_line_argument=no
18251 fi
18252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18253 fi
18254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18257 CFLAGS="$xorg_testset_save_CFLAGS"
18258 fi
18259
18260 found="no"
18261
18262 if test $found = "no" ; then
18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18265 fi
18266
18267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18269 fi
18270
18271 CFLAGS="$CFLAGS -Wreturn-type"
18272
18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18274 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18275 cacheid=xorg_cv_cc_flag__Wreturn_type
18276 if eval test \${$cacheid+y}
18277 then :
18278 printf %s "(cached) " >&6
18279 else $as_nop
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18282 int i;
18283 int
18284 main (void)
18285 {
18286
18287 ;
18288 return 0;
18289 }
18290 _ACEOF
18291 if ac_fn_c_try_link "$LINENO"
18292 then :
18293 eval $cacheid=yes
18294 else $as_nop
18295 eval $cacheid=no
18296 fi
18297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18298 conftest$ac_exeext conftest.$ac_ext
18299 fi
18300
18301
18302 CFLAGS="$xorg_testset_save_CFLAGS"
18303
18304 eval supported=\$$cacheid
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18306 printf "%s\n" "$supported" >&6; }
18307 if test "$supported" = "yes" ; then
18308 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18309 found="yes"
18310 fi
18311 fi
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327 xorg_testset_save_CFLAGS="$CFLAGS"
18328
18329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18333 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18334 then :
18335 printf %s "(cached) " >&6
18336 else $as_nop
18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h. */
18339 int i;
18340 _ACEOF
18341 if ac_fn_c_try_compile "$LINENO"
18342 then :
18343 xorg_cv_cc_flag_unknown_warning_option=yes
18344 else $as_nop
18345 xorg_cv_cc_flag_unknown_warning_option=no
18346 fi
18347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18348 fi
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18350 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18352 CFLAGS="$xorg_testset_save_CFLAGS"
18353 fi
18354
18355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18358 fi
18359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18361 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18362 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18363 then :
18364 printf %s "(cached) " >&6
18365 else $as_nop
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18368 int i;
18369 _ACEOF
18370 if ac_fn_c_try_compile "$LINENO"
18371 then :
18372 xorg_cv_cc_flag_unused_command_line_argument=yes
18373 else $as_nop
18374 xorg_cv_cc_flag_unused_command_line_argument=no
18375 fi
18376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18377 fi
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18381 CFLAGS="$xorg_testset_save_CFLAGS"
18382 fi
18383
18384 found="no"
18385
18386 if test $found = "no" ; then
18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389 fi
18390
18391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18393 fi
18394
18395 CFLAGS="$CFLAGS -Wtrigraphs"
18396
18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18398 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18399 cacheid=xorg_cv_cc_flag__Wtrigraphs
18400 if eval test \${$cacheid+y}
18401 then :
18402 printf %s "(cached) " >&6
18403 else $as_nop
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 int i;
18407 int
18408 main (void)
18409 {
18410
18411 ;
18412 return 0;
18413 }
18414 _ACEOF
18415 if ac_fn_c_try_link "$LINENO"
18416 then :
18417 eval $cacheid=yes
18418 else $as_nop
18419 eval $cacheid=no
18420 fi
18421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18422 conftest$ac_exeext conftest.$ac_ext
18423 fi
18424
18425
18426 CFLAGS="$xorg_testset_save_CFLAGS"
18427
18428 eval supported=\$$cacheid
18429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18430 printf "%s\n" "$supported" >&6; }
18431 if test "$supported" = "yes" ; then
18432 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18433 found="yes"
18434 fi
18435 fi
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451 xorg_testset_save_CFLAGS="$CFLAGS"
18452
18453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18458 then :
18459 printf %s "(cached) " >&6
18460 else $as_nop
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18463 int i;
18464 _ACEOF
18465 if ac_fn_c_try_compile "$LINENO"
18466 then :
18467 xorg_cv_cc_flag_unknown_warning_option=yes
18468 else $as_nop
18469 xorg_cv_cc_flag_unknown_warning_option=no
18470 fi
18471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18472 fi
18473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18476 CFLAGS="$xorg_testset_save_CFLAGS"
18477 fi
18478
18479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18482 fi
18483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18487 then :
18488 printf %s "(cached) " >&6
18489 else $as_nop
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18492 int i;
18493 _ACEOF
18494 if ac_fn_c_try_compile "$LINENO"
18495 then :
18496 xorg_cv_cc_flag_unused_command_line_argument=yes
18497 else $as_nop
18498 xorg_cv_cc_flag_unused_command_line_argument=no
18499 fi
18500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18501 fi
18502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18505 CFLAGS="$xorg_testset_save_CFLAGS"
18506 fi
18507
18508 found="no"
18509
18510 if test $found = "no" ; then
18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18513 fi
18514
18515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18517 fi
18518
18519 CFLAGS="$CFLAGS -Warray-bounds"
18520
18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18522 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18523 cacheid=xorg_cv_cc_flag__Warray_bounds
18524 if eval test \${$cacheid+y}
18525 then :
18526 printf %s "(cached) " >&6
18527 else $as_nop
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18530 int i;
18531 int
18532 main (void)
18533 {
18534
18535 ;
18536 return 0;
18537 }
18538 _ACEOF
18539 if ac_fn_c_try_link "$LINENO"
18540 then :
18541 eval $cacheid=yes
18542 else $as_nop
18543 eval $cacheid=no
18544 fi
18545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18546 conftest$ac_exeext conftest.$ac_ext
18547 fi
18548
18549
18550 CFLAGS="$xorg_testset_save_CFLAGS"
18551
18552 eval supported=\$$cacheid
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18554 printf "%s\n" "$supported" >&6; }
18555 if test "$supported" = "yes" ; then
18556 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18557 found="yes"
18558 fi
18559 fi
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575 xorg_testset_save_CFLAGS="$CFLAGS"
18576
18577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18580 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18581 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18582 then :
18583 printf %s "(cached) " >&6
18584 else $as_nop
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18587 int i;
18588 _ACEOF
18589 if ac_fn_c_try_compile "$LINENO"
18590 then :
18591 xorg_cv_cc_flag_unknown_warning_option=yes
18592 else $as_nop
18593 xorg_cv_cc_flag_unknown_warning_option=no
18594 fi
18595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18596 fi
18597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18598 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18600 CFLAGS="$xorg_testset_save_CFLAGS"
18601 fi
18602
18603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18606 fi
18607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18611 then :
18612 printf %s "(cached) " >&6
18613 else $as_nop
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18616 int i;
18617 _ACEOF
18618 if ac_fn_c_try_compile "$LINENO"
18619 then :
18620 xorg_cv_cc_flag_unused_command_line_argument=yes
18621 else $as_nop
18622 xorg_cv_cc_flag_unused_command_line_argument=no
18623 fi
18624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18625 fi
18626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18627 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18629 CFLAGS="$xorg_testset_save_CFLAGS"
18630 fi
18631
18632 found="no"
18633
18634 if test $found = "no" ; then
18635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18637 fi
18638
18639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18641 fi
18642
18643 CFLAGS="$CFLAGS -Wwrite-strings"
18644
18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18646 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18647 cacheid=xorg_cv_cc_flag__Wwrite_strings
18648 if eval test \${$cacheid+y}
18649 then :
18650 printf %s "(cached) " >&6
18651 else $as_nop
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18654 int i;
18655 int
18656 main (void)
18657 {
18658
18659 ;
18660 return 0;
18661 }
18662 _ACEOF
18663 if ac_fn_c_try_link "$LINENO"
18664 then :
18665 eval $cacheid=yes
18666 else $as_nop
18667 eval $cacheid=no
18668 fi
18669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18670 conftest$ac_exeext conftest.$ac_ext
18671 fi
18672
18673
18674 CFLAGS="$xorg_testset_save_CFLAGS"
18675
18676 eval supported=\$$cacheid
18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18678 printf "%s\n" "$supported" >&6; }
18679 if test "$supported" = "yes" ; then
18680 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18681 found="yes"
18682 fi
18683 fi
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699 xorg_testset_save_CFLAGS="$CFLAGS"
18700
18701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18704 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18705 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18706 then :
18707 printf %s "(cached) " >&6
18708 else $as_nop
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 int i;
18712 _ACEOF
18713 if ac_fn_c_try_compile "$LINENO"
18714 then :
18715 xorg_cv_cc_flag_unknown_warning_option=yes
18716 else $as_nop
18717 xorg_cv_cc_flag_unknown_warning_option=no
18718 fi
18719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18720 fi
18721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18724 CFLAGS="$xorg_testset_save_CFLAGS"
18725 fi
18726
18727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18730 fi
18731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18735 then :
18736 printf %s "(cached) " >&6
18737 else $as_nop
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18740 int i;
18741 _ACEOF
18742 if ac_fn_c_try_compile "$LINENO"
18743 then :
18744 xorg_cv_cc_flag_unused_command_line_argument=yes
18745 else $as_nop
18746 xorg_cv_cc_flag_unused_command_line_argument=no
18747 fi
18748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18749 fi
18750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18753 CFLAGS="$xorg_testset_save_CFLAGS"
18754 fi
18755
18756 found="no"
18757
18758 if test $found = "no" ; then
18759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18761 fi
18762
18763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18765 fi
18766
18767 CFLAGS="$CFLAGS -Waddress"
18768
18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18770 printf %s "checking if $CC supports -Waddress... " >&6; }
18771 cacheid=xorg_cv_cc_flag__Waddress
18772 if eval test \${$cacheid+y}
18773 then :
18774 printf %s "(cached) " >&6
18775 else $as_nop
18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h. */
18778 int i;
18779 int
18780 main (void)
18781 {
18782
18783 ;
18784 return 0;
18785 }
18786 _ACEOF
18787 if ac_fn_c_try_link "$LINENO"
18788 then :
18789 eval $cacheid=yes
18790 else $as_nop
18791 eval $cacheid=no
18792 fi
18793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18794 conftest$ac_exeext conftest.$ac_ext
18795 fi
18796
18797
18798 CFLAGS="$xorg_testset_save_CFLAGS"
18799
18800 eval supported=\$$cacheid
18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18802 printf "%s\n" "$supported" >&6; }
18803 if test "$supported" = "yes" ; then
18804 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18805 found="yes"
18806 fi
18807 fi
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823 xorg_testset_save_CFLAGS="$CFLAGS"
18824
18825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18830 then :
18831 printf %s "(cached) " >&6
18832 else $as_nop
18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18835 int i;
18836 _ACEOF
18837 if ac_fn_c_try_compile "$LINENO"
18838 then :
18839 xorg_cv_cc_flag_unknown_warning_option=yes
18840 else $as_nop
18841 xorg_cv_cc_flag_unknown_warning_option=no
18842 fi
18843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18844 fi
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18848 CFLAGS="$xorg_testset_save_CFLAGS"
18849 fi
18850
18851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18854 fi
18855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18859 then :
18860 printf %s "(cached) " >&6
18861 else $as_nop
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18864 int i;
18865 _ACEOF
18866 if ac_fn_c_try_compile "$LINENO"
18867 then :
18868 xorg_cv_cc_flag_unused_command_line_argument=yes
18869 else $as_nop
18870 xorg_cv_cc_flag_unused_command_line_argument=no
18871 fi
18872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18873 fi
18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18877 CFLAGS="$xorg_testset_save_CFLAGS"
18878 fi
18879
18880 found="no"
18881
18882 if test $found = "no" ; then
18883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18885 fi
18886
18887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18889 fi
18890
18891 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18892
18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18894 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18895 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18896 if eval test \${$cacheid+y}
18897 then :
18898 printf %s "(cached) " >&6
18899 else $as_nop
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902 int i;
18903 int
18904 main (void)
18905 {
18906
18907 ;
18908 return 0;
18909 }
18910 _ACEOF
18911 if ac_fn_c_try_link "$LINENO"
18912 then :
18913 eval $cacheid=yes
18914 else $as_nop
18915 eval $cacheid=no
18916 fi
18917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18918 conftest$ac_exeext conftest.$ac_ext
18919 fi
18920
18921
18922 CFLAGS="$xorg_testset_save_CFLAGS"
18923
18924 eval supported=\$$cacheid
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18926 printf "%s\n" "$supported" >&6; }
18927 if test "$supported" = "yes" ; then
18928 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18929 found="yes"
18930 fi
18931 fi
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947 xorg_testset_save_CFLAGS="$CFLAGS"
18948
18949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18954 then :
18955 printf %s "(cached) " >&6
18956 else $as_nop
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h. */
18959 int i;
18960 _ACEOF
18961 if ac_fn_c_try_compile "$LINENO"
18962 then :
18963 xorg_cv_cc_flag_unknown_warning_option=yes
18964 else $as_nop
18965 xorg_cv_cc_flag_unknown_warning_option=no
18966 fi
18967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18968 fi
18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18972 CFLAGS="$xorg_testset_save_CFLAGS"
18973 fi
18974
18975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18978 fi
18979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18983 then :
18984 printf %s "(cached) " >&6
18985 else $as_nop
18986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18988 int i;
18989 _ACEOF
18990 if ac_fn_c_try_compile "$LINENO"
18991 then :
18992 xorg_cv_cc_flag_unused_command_line_argument=yes
18993 else $as_nop
18994 xorg_cv_cc_flag_unused_command_line_argument=no
18995 fi
18996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 fi
18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19001 CFLAGS="$xorg_testset_save_CFLAGS"
19002 fi
19003
19004 found="no"
19005
19006 if test $found = "no" ; then
19007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19009 fi
19010
19011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19013 fi
19014
19015 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19016
19017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19018 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19019 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19020 if eval test \${$cacheid+y}
19021 then :
19022 printf %s "(cached) " >&6
19023 else $as_nop
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 int i;
19027 int
19028 main (void)
19029 {
19030
19031 ;
19032 return 0;
19033 }
19034 _ACEOF
19035 if ac_fn_c_try_link "$LINENO"
19036 then :
19037 eval $cacheid=yes
19038 else $as_nop
19039 eval $cacheid=no
19040 fi
19041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19042 conftest$ac_exeext conftest.$ac_ext
19043 fi
19044
19045
19046 CFLAGS="$xorg_testset_save_CFLAGS"
19047
19048 eval supported=\$$cacheid
19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19050 printf "%s\n" "$supported" >&6; }
19051 if test "$supported" = "yes" ; then
19052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19053 found="yes"
19054 fi
19055 fi
19056
19057
19058 fi
19059
19060
19061
19062
19063
19064
19065
19066 CWARNFLAGS="$BASE_CFLAGS"
19067 if test "x$GCC" = xyes ; then
19068 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19069 fi
19070
19071
19072
19073
19074
19075
19076
19077
19078 # Check whether --enable-strict-compilation was given.
19079 if test ${enable_strict_compilation+y}
19080 then :
19081 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19082 else $as_nop
19083 STRICT_COMPILE=no
19084 fi
19085
19086
19087
19088
19089
19090
19091 STRICT_CFLAGS=""
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105 xorg_testset_save_CFLAGS="$CFLAGS"
19106
19107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19112 then :
19113 printf %s "(cached) " >&6
19114 else $as_nop
19115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19116 /* end confdefs.h. */
19117 int i;
19118 _ACEOF
19119 if ac_fn_c_try_compile "$LINENO"
19120 then :
19121 xorg_cv_cc_flag_unknown_warning_option=yes
19122 else $as_nop
19123 xorg_cv_cc_flag_unknown_warning_option=no
19124 fi
19125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19126 fi
19127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19130 CFLAGS="$xorg_testset_save_CFLAGS"
19131 fi
19132
19133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19136 fi
19137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19141 then :
19142 printf %s "(cached) " >&6
19143 else $as_nop
19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145 /* end confdefs.h. */
19146 int i;
19147 _ACEOF
19148 if ac_fn_c_try_compile "$LINENO"
19149 then :
19150 xorg_cv_cc_flag_unused_command_line_argument=yes
19151 else $as_nop
19152 xorg_cv_cc_flag_unused_command_line_argument=no
19153 fi
19154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19155 fi
19156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19159 CFLAGS="$xorg_testset_save_CFLAGS"
19160 fi
19161
19162 found="no"
19163
19164 if test $found = "no" ; then
19165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19167 fi
19168
19169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19171 fi
19172
19173 CFLAGS="$CFLAGS -pedantic"
19174
19175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19176 printf %s "checking if $CC supports -pedantic... " >&6; }
19177 cacheid=xorg_cv_cc_flag__pedantic
19178 if eval test \${$cacheid+y}
19179 then :
19180 printf %s "(cached) " >&6
19181 else $as_nop
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19184 int i;
19185 int
19186 main (void)
19187 {
19188
19189 ;
19190 return 0;
19191 }
19192 _ACEOF
19193 if ac_fn_c_try_link "$LINENO"
19194 then :
19195 eval $cacheid=yes
19196 else $as_nop
19197 eval $cacheid=no
19198 fi
19199 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19200 conftest$ac_exeext conftest.$ac_ext
19201 fi
19202
19203
19204 CFLAGS="$xorg_testset_save_CFLAGS"
19205
19206 eval supported=\$$cacheid
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19208 printf "%s\n" "$supported" >&6; }
19209 if test "$supported" = "yes" ; then
19210 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19211 found="yes"
19212 fi
19213 fi
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229 xorg_testset_save_CFLAGS="$CFLAGS"
19230
19231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19234 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19235 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19236 then :
19237 printf %s "(cached) " >&6
19238 else $as_nop
19239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19240 /* end confdefs.h. */
19241 int i;
19242 _ACEOF
19243 if ac_fn_c_try_compile "$LINENO"
19244 then :
19245 xorg_cv_cc_flag_unknown_warning_option=yes
19246 else $as_nop
19247 xorg_cv_cc_flag_unknown_warning_option=no
19248 fi
19249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19250 fi
19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19252 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19254 CFLAGS="$xorg_testset_save_CFLAGS"
19255 fi
19256
19257 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19260 fi
19261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19263 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19264 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19265 then :
19266 printf %s "(cached) " >&6
19267 else $as_nop
19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19269 /* end confdefs.h. */
19270 int i;
19271 _ACEOF
19272 if ac_fn_c_try_compile "$LINENO"
19273 then :
19274 xorg_cv_cc_flag_unused_command_line_argument=yes
19275 else $as_nop
19276 xorg_cv_cc_flag_unused_command_line_argument=no
19277 fi
19278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19279 fi
19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19281 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19283 CFLAGS="$xorg_testset_save_CFLAGS"
19284 fi
19285
19286 found="no"
19287
19288 if test $found = "no" ; then
19289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19291 fi
19292
19293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19295 fi
19296
19297 CFLAGS="$CFLAGS -Werror"
19298
19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19300 printf %s "checking if $CC supports -Werror... " >&6; }
19301 cacheid=xorg_cv_cc_flag__Werror
19302 if eval test \${$cacheid+y}
19303 then :
19304 printf %s "(cached) " >&6
19305 else $as_nop
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19308 int i;
19309 int
19310 main (void)
19311 {
19312
19313 ;
19314 return 0;
19315 }
19316 _ACEOF
19317 if ac_fn_c_try_link "$LINENO"
19318 then :
19319 eval $cacheid=yes
19320 else $as_nop
19321 eval $cacheid=no
19322 fi
19323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19324 conftest$ac_exeext conftest.$ac_ext
19325 fi
19326
19327
19328 CFLAGS="$xorg_testset_save_CFLAGS"
19329
19330 eval supported=\$$cacheid
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19332 printf "%s\n" "$supported" >&6; }
19333 if test "$supported" = "yes" ; then
19334 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19335 found="yes"
19336 fi
19337 fi
19338
19339 if test $found = "no" ; then
19340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19342 fi
19343
19344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19346 fi
19347
19348 CFLAGS="$CFLAGS -errwarn"
19349
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19351 printf %s "checking if $CC supports -errwarn... " >&6; }
19352 cacheid=xorg_cv_cc_flag__errwarn
19353 if eval test \${$cacheid+y}
19354 then :
19355 printf %s "(cached) " >&6
19356 else $as_nop
19357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19358 /* end confdefs.h. */
19359 int i;
19360 int
19361 main (void)
19362 {
19363
19364 ;
19365 return 0;
19366 }
19367 _ACEOF
19368 if ac_fn_c_try_link "$LINENO"
19369 then :
19370 eval $cacheid=yes
19371 else $as_nop
19372 eval $cacheid=no
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19375 conftest$ac_exeext conftest.$ac_ext
19376 fi
19377
19378
19379 CFLAGS="$xorg_testset_save_CFLAGS"
19380
19381 eval supported=\$$cacheid
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19383 printf "%s\n" "$supported" >&6; }
19384 if test "$supported" = "yes" ; then
19385 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19386 found="yes"
19387 fi
19388 fi
19389
19390
19391
19392 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19393 # activate it with -Werror, so we add it here explicitly.
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407 xorg_testset_save_CFLAGS="$CFLAGS"
19408
19409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19412 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19413 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19414 then :
19415 printf %s "(cached) " >&6
19416 else $as_nop
19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19419 int i;
19420 _ACEOF
19421 if ac_fn_c_try_compile "$LINENO"
19422 then :
19423 xorg_cv_cc_flag_unknown_warning_option=yes
19424 else $as_nop
19425 xorg_cv_cc_flag_unknown_warning_option=no
19426 fi
19427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19428 fi
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19430 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19432 CFLAGS="$xorg_testset_save_CFLAGS"
19433 fi
19434
19435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19438 fi
19439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19441 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19442 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19443 then :
19444 printf %s "(cached) " >&6
19445 else $as_nop
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h. */
19448 int i;
19449 _ACEOF
19450 if ac_fn_c_try_compile "$LINENO"
19451 then :
19452 xorg_cv_cc_flag_unused_command_line_argument=yes
19453 else $as_nop
19454 xorg_cv_cc_flag_unused_command_line_argument=no
19455 fi
19456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19457 fi
19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19461 CFLAGS="$xorg_testset_save_CFLAGS"
19462 fi
19463
19464 found="no"
19465
19466 if test $found = "no" ; then
19467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19469 fi
19470
19471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19473 fi
19474
19475 CFLAGS="$CFLAGS -Werror=attributes"
19476
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19478 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19479 cacheid=xorg_cv_cc_flag__Werror_attributes
19480 if eval test \${$cacheid+y}
19481 then :
19482 printf %s "(cached) " >&6
19483 else $as_nop
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19486 int i;
19487 int
19488 main (void)
19489 {
19490
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_link "$LINENO"
19496 then :
19497 eval $cacheid=yes
19498 else $as_nop
19499 eval $cacheid=no
19500 fi
19501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19502 conftest$ac_exeext conftest.$ac_ext
19503 fi
19504
19505
19506 CFLAGS="$xorg_testset_save_CFLAGS"
19507
19508 eval supported=\$$cacheid
19509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19510 printf "%s\n" "$supported" >&6; }
19511 if test "$supported" = "yes" ; then
19512 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19513 found="yes"
19514 fi
19515 fi
19516
19517
19518
19519 if test "x$STRICT_COMPILE" = "xyes"; then
19520 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19521 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19522 fi
19523
19524
19525
19526
19527
19528
19529 cat >>confdefs.h <<_ACEOF
19530 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19531 _ACEOF
19532
19533 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19534 if test "x$PVM" = "x"; then
19535 PVM="0"
19536 fi
19537
19538 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19539
19540 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19541 if test "x$PVP" = "x"; then
19542 PVP="0"
19543 fi
19544
19545 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19546
19547
19548
19549 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19550 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19551 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19552 touch \$(top_srcdir)/ChangeLog; \
19553 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19554
19555
19556
19557
19558 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19559 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19560 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19561 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19562 touch \$(top_srcdir)/INSTALL; \
19563 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19564
19565
19566
19567
19568
19569
19570 case $host_os in
19571 solaris*)
19572 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19573 # check for a man page file found in later versions that use
19574 # traditional section numbers instead
19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19576 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19577 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19578 then :
19579 printf %s "(cached) " >&6
19580 else $as_nop
19581 test "$cross_compiling" = yes &&
19582 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19583 if test -r "/usr/share/man/man7/attributes.7"; then
19584 ac_cv_file__usr_share_man_man7_attributes_7=yes
19585 else
19586 ac_cv_file__usr_share_man_man7_attributes_7=no
19587 fi
19588 fi
19589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19590 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19591 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19592 then :
19593 SYSV_MAN_SECTIONS=false
19594 else $as_nop
19595 SYSV_MAN_SECTIONS=true
19596 fi
19597
19598 ;;
19599 *) SYSV_MAN_SECTIONS=false ;;
19600 esac
19601
19602 if test x$APP_MAN_SUFFIX = x ; then
19603 APP_MAN_SUFFIX=1
19604 fi
19605 if test x$APP_MAN_DIR = x ; then
19606 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19607 fi
19608
19609 if test x$LIB_MAN_SUFFIX = x ; then
19610 LIB_MAN_SUFFIX=3
19611 fi
19612 if test x$LIB_MAN_DIR = x ; then
19613 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19614 fi
19615
19616 if test x$FILE_MAN_SUFFIX = x ; then
19617 case $SYSV_MAN_SECTIONS in
19618 true) FILE_MAN_SUFFIX=4 ;;
19619 *) FILE_MAN_SUFFIX=5 ;;
19620 esac
19621 fi
19622 if test x$FILE_MAN_DIR = x ; then
19623 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19624 fi
19625
19626 if test x$MISC_MAN_SUFFIX = x ; then
19627 case $SYSV_MAN_SECTIONS in
19628 true) MISC_MAN_SUFFIX=5 ;;
19629 *) MISC_MAN_SUFFIX=7 ;;
19630 esac
19631 fi
19632 if test x$MISC_MAN_DIR = x ; then
19633 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19634 fi
19635
19636 if test x$DRIVER_MAN_SUFFIX = x ; then
19637 case $SYSV_MAN_SECTIONS in
19638 true) DRIVER_MAN_SUFFIX=7 ;;
19639 *) DRIVER_MAN_SUFFIX=4 ;;
19640 esac
19641 fi
19642 if test x$DRIVER_MAN_DIR = x ; then
19643 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19644 fi
19645
19646 if test x$ADMIN_MAN_SUFFIX = x ; then
19647 case $SYSV_MAN_SECTIONS in
19648 true) ADMIN_MAN_SUFFIX=1m ;;
19649 *) ADMIN_MAN_SUFFIX=8 ;;
19650 esac
19651 fi
19652 if test x$ADMIN_MAN_DIR = x ; then
19653 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19654 fi
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670 XORG_MAN_PAGE="X Version 11"
19671
19672 MAN_SUBSTS="\
19673 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19674 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19675 -e 's|__xservername__|Xorg|g' \
19676 -e 's|__xconfigfile__|xorg.conf|g' \
19677 -e 's|__projectroot__|\$(prefix)|g' \
19678 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19679 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19680 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19681 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19682 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19683 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19684 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19685
19686
19687
19688 # Check whether --enable-silent-rules was given.
19689 if test ${enable_silent_rules+y}
19690 then :
19691 enableval=$enable_silent_rules;
19692 fi
19693
19694 case $enable_silent_rules in # (((
19695 yes) AM_DEFAULT_VERBOSITY=0;;
19696 no) AM_DEFAULT_VERBOSITY=1;;
19697 *) AM_DEFAULT_VERBOSITY=0;;
19698 esac
19699 am_make=${MAKE-make}
19700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19701 printf %s "checking whether $am_make supports nested variables... " >&6; }
19702 if test ${am_cv_make_support_nested_variables+y}
19703 then :
19704 printf %s "(cached) " >&6
19705 else $as_nop
19706 if printf "%s\n" 'TRUE=$(BAR$(V))
19707 BAR0=false
19708 BAR1=true
19709 V=1
19710 am__doit:
19711 @$(TRUE)
19712 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19713 am_cv_make_support_nested_variables=yes
19714 else
19715 am_cv_make_support_nested_variables=no
19716 fi
19717 fi
19718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19719 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19720 if test $am_cv_make_support_nested_variables = yes; then
19721 AM_V='$(V)'
19722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19723 else
19724 AM_V=$AM_DEFAULT_VERBOSITY
19725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19726 fi
19727 AM_BACKSLASH='\'
19728
19729
19730
19731 # Checks for programs.
19732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19733 printf %s "checking whether ln -s works... " >&6; }
19734 LN_S=$as_ln_s
19735 if test "$LN_S" = "ln -s"; then
19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19737 printf "%s\n" "yes" >&6; }
19738 else
19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19740 printf "%s\n" "no, using $LN_S" >&6; }
19741 fi
19742
19743
19744 # Checks for library functions.
19745 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
19746 if test "x$ac_cv_func_explicit_bzero" = xyes
19747 then :
19748 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
19749
19750 fi
19751 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
19752 if test "x$ac_cv_func_pathconf" = xyes
19753 then :
19754 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
19755
19756 fi
19757
19758
19759 # Obtain compiler/linker options for dependencies
19760
19761 pkg_failed=no
19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5
19763 printf %s "checking for XAU... " >&6; }
19764
19765 if test -n "$XAU_CFLAGS"; then
19766 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS"
19767 elif test -n "$PKG_CONFIG"; then
19768 if test -n "$PKG_CONFIG" && \
19769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19770 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19771 ac_status=$?
19772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19773 test $ac_status = 0; }; then
19774 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
19775 test "x$?" != "x0" && pkg_failed=yes
19776 else
19777 pkg_failed=yes
19778 fi
19779 else
19780 pkg_failed=untried
19781 fi
19782 if test -n "$XAU_LIBS"; then
19783 pkg_cv_XAU_LIBS="$XAU_LIBS"
19784 elif test -n "$PKG_CONFIG"; then
19785 if test -n "$PKG_CONFIG" && \
19786 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19787 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19788 ac_status=$?
19789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19790 test $ac_status = 0; }; then
19791 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
19792 test "x$?" != "x0" && pkg_failed=yes
19793 else
19794 pkg_failed=yes
19795 fi
19796 else
19797 pkg_failed=untried
19798 fi
19799
19800
19801
19802 if test $pkg_failed = yes; then
19803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19804 printf "%s\n" "no" >&6; }
19805
19806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19807 _pkg_short_errors_supported=yes
19808 else
19809 _pkg_short_errors_supported=no
19810 fi
19811 if test $_pkg_short_errors_supported = yes; then
19812 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
19813 else
19814 XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
19815 fi
19816 # Put the nasty error message in config.log where it belongs
19817 echo "$XAU_PKG_ERRORS" >&5
19818
19819 as_fn_error $? "Package requirements (xproto) were not met:
19820
19821 $XAU_PKG_ERRORS
19822
19823 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19824 installed software in a non-standard prefix.
19825
19826 Alternatively, you may set the environment variables XAU_CFLAGS
19827 and XAU_LIBS to avoid the need to call pkg-config.
19828 See the pkg-config man page for more details." "$LINENO" 5
19829 elif test $pkg_failed = untried; then
19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19831 printf "%s\n" "no" >&6; }
19832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19833 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19834 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19835 is in your PATH or set the PKG_CONFIG environment variable to the full
19836 path to pkg-config.
19837
19838 Alternatively, you may set the environment variables XAU_CFLAGS
19839 and XAU_LIBS to avoid the need to call pkg-config.
19840 See the pkg-config man page for more details.
19841
19842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19843 See \`config.log' for more details" "$LINENO" 5; }
19844 else
19845 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS
19846 XAU_LIBS=$pkg_cv_XAU_LIBS
19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19848 printf "%s\n" "yes" >&6; }
19849
19850 fi
19851
19852 # Checks for typedefs, structures, and compiler characteristics.
19853 # Check whether --enable-largefile was given.
19854 if test ${enable_largefile+y}
19855 then :
19856 enableval=$enable_largefile;
19857 fi
19858
19859 if test "$enable_largefile" != no; then
19860
19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19862 printf %s "checking for special C compiler options needed for large files... " >&6; }
19863 if test ${ac_cv_sys_largefile_CC+y}
19864 then :
19865 printf %s "(cached) " >&6
19866 else $as_nop
19867 ac_cv_sys_largefile_CC=no
19868 if test "$GCC" != yes; then
19869 ac_save_CC=$CC
19870 while :; do
19871 # IRIX 6.2 and later do not support large files by default,
19872 # so use the C compiler's -n32 option if that helps.
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19875 #include <sys/types.h>
19876 /* Check that off_t can represent 2**63 - 1 correctly.
19877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19878 since some C++ compilers masquerading as C compilers
19879 incorrectly reject 9223372036854775807. */
19880 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19882 && LARGE_OFF_T % 2147483647 == 1)
19883 ? 1 : -1];
19884 int
19885 main (void)
19886 {
19887
19888 ;
19889 return 0;
19890 }
19891 _ACEOF
19892 if ac_fn_c_try_compile "$LINENO"
19893 then :
19894 break
19895 fi
19896 rm -f core conftest.err conftest.$ac_objext conftest.beam
19897 CC="$CC -n32"
19898 if ac_fn_c_try_compile "$LINENO"
19899 then :
19900 ac_cv_sys_largefile_CC=' -n32'; break
19901 fi
19902 rm -f core conftest.err conftest.$ac_objext conftest.beam
19903 break
19904 done
19905 CC=$ac_save_CC
19906 rm -f conftest.$ac_ext
19907 fi
19908 fi
19909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19910 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
19911 if test "$ac_cv_sys_largefile_CC" != no; then
19912 CC=$CC$ac_cv_sys_largefile_CC
19913 fi
19914
19915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19916 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19917 if test ${ac_cv_sys_file_offset_bits+y}
19918 then :
19919 printf %s "(cached) " >&6
19920 else $as_nop
19921 while :; do
19922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19923 /* end confdefs.h. */
19924 #include <sys/types.h>
19925 /* Check that off_t can represent 2**63 - 1 correctly.
19926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19927 since some C++ compilers masquerading as C compilers
19928 incorrectly reject 9223372036854775807. */
19929 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19931 && LARGE_OFF_T % 2147483647 == 1)
19932 ? 1 : -1];
19933 int
19934 main (void)
19935 {
19936
19937 ;
19938 return 0;
19939 }
19940 _ACEOF
19941 if ac_fn_c_try_compile "$LINENO"
19942 then :
19943 ac_cv_sys_file_offset_bits=no; break
19944 fi
19945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19947 /* end confdefs.h. */
19948 #define _FILE_OFFSET_BITS 64
19949 #include <sys/types.h>
19950 /* Check that off_t can represent 2**63 - 1 correctly.
19951 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19952 since some C++ compilers masquerading as C compilers
19953 incorrectly reject 9223372036854775807. */
19954 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19956 && LARGE_OFF_T % 2147483647 == 1)
19957 ? 1 : -1];
19958 int
19959 main (void)
19960 {
19961
19962 ;
19963 return 0;
19964 }
19965 _ACEOF
19966 if ac_fn_c_try_compile "$LINENO"
19967 then :
19968 ac_cv_sys_file_offset_bits=64; break
19969 fi
19970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19971 ac_cv_sys_file_offset_bits=unknown
19972 break
19973 done
19974 fi
19975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19976 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
19977 case $ac_cv_sys_file_offset_bits in #(
19978 no | unknown) ;;
19979 *)
19980 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
19981 ;;
19982 esac
19983 rm -rf conftest*
19984 if test $ac_cv_sys_file_offset_bits = unknown; then
19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19986 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
19987 if test ${ac_cv_sys_large_files+y}
19988 then :
19989 printf %s "(cached) " >&6
19990 else $as_nop
19991 while :; do
19992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993 /* end confdefs.h. */
19994 #include <sys/types.h>
19995 /* Check that off_t can represent 2**63 - 1 correctly.
19996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19997 since some C++ compilers masquerading as C compilers
19998 incorrectly reject 9223372036854775807. */
19999 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20001 && LARGE_OFF_T % 2147483647 == 1)
20002 ? 1 : -1];
20003 int
20004 main (void)
20005 {
20006
20007 ;
20008 return 0;
20009 }
20010 _ACEOF
20011 if ac_fn_c_try_compile "$LINENO"
20012 then :
20013 ac_cv_sys_large_files=no; break
20014 fi
20015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20018 #define _LARGE_FILES 1
20019 #include <sys/types.h>
20020 /* Check that off_t can represent 2**63 - 1 correctly.
20021 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20022 since some C++ compilers masquerading as C compilers
20023 incorrectly reject 9223372036854775807. */
20024 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20026 && LARGE_OFF_T % 2147483647 == 1)
20027 ? 1 : -1];
20028 int
20029 main (void)
20030 {
20031
20032 ;
20033 return 0;
20034 }
20035 _ACEOF
20036 if ac_fn_c_try_compile "$LINENO"
20037 then :
20038 ac_cv_sys_large_files=1; break
20039 fi
20040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20041 ac_cv_sys_large_files=unknown
20042 break
20043 done
20044 fi
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20046 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
20047 case $ac_cv_sys_large_files in #(
20048 no | unknown) ;;
20049 *)
20050 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
20051 ;;
20052 esac
20053 rm -rf conftest*
20054 fi
20055 fi
20056
20057
20058 # Check whether --enable-xthreads was given.
20059 if test ${enable_xthreads+y}
20060 then :
20061 enableval=$enable_xthreads; xthreads=$enableval
20062 else $as_nop
20063 xthreads=yes
20064 fi
20065
20066
20067 if test "x$xthreads" = "xyes" ; then
20068
20069 printf "%s\n" "#define XTHREADS 1" >>confdefs.h
20070
20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5
20072 printf %s "checking for gethostbyname_r in -lc... " >&6; }
20073 if test ${ac_cv_lib_c_gethostbyname_r+y}
20074 then :
20075 printf %s "(cached) " >&6
20076 else $as_nop
20077 ac_check_lib_save_LIBS=$LIBS
20078 LIBS="-lc $LIBS"
20079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h. */
20081
20082 /* Override any GCC internal prototype to avoid an error.
20083 Use char because int might match the return type of a GCC
20084 builtin and then its argument prototype would still apply.
20085 The 'extern "C"' is for builds by C++ compilers;
20086 although this is not generally supported in C code supporting it here
20087 has little cost and some practical benefit (sr 110532). */
20088 #ifdef __cplusplus
20089 extern "C"
20090 #endif
20091 char gethostbyname_r (void);
20092 int
20093 main (void)
20094 {
20095 return gethostbyname_r ();
20096 ;
20097 return 0;
20098 }
20099 _ACEOF
20100 if ac_fn_c_try_link "$LINENO"
20101 then :
20102 ac_cv_lib_c_gethostbyname_r=yes
20103 else $as_nop
20104 ac_cv_lib_c_gethostbyname_r=no
20105 fi
20106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20107 conftest$ac_exeext conftest.$ac_ext
20108 LIBS=$ac_check_lib_save_LIBS
20109 fi
20110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5
20111 printf "%s\n" "$ac_cv_lib_c_gethostbyname_r" >&6; }
20112 if test "x$ac_cv_lib_c_gethostbyname_r" = xyes
20113 then :
20114 mtsafe=yes
20115 fi
20116
20117 if test "x$mtsafe" = "x" ; then
20118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
20119 printf %s "checking for gethostbyname_r in -lnsl... " >&6; }
20120 if test ${ac_cv_lib_nsl_gethostbyname_r+y}
20121 then :
20122 printf %s "(cached) " >&6
20123 else $as_nop
20124 ac_check_lib_save_LIBS=$LIBS
20125 LIBS="-lnsl $LIBS"
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20128
20129 /* Override any GCC internal prototype to avoid an error.
20130 Use char because int might match the return type of a GCC
20131 builtin and then its argument prototype would still apply.
20132 The 'extern "C"' is for builds by C++ compilers;
20133 although this is not generally supported in C code supporting it here
20134 has little cost and some practical benefit (sr 110532). */
20135 #ifdef __cplusplus
20136 extern "C"
20137 #endif
20138 char gethostbyname_r (void);
20139 int
20140 main (void)
20141 {
20142 return gethostbyname_r ();
20143 ;
20144 return 0;
20145 }
20146 _ACEOF
20147 if ac_fn_c_try_link "$LINENO"
20148 then :
20149 ac_cv_lib_nsl_gethostbyname_r=yes
20150 else $as_nop
20151 ac_cv_lib_nsl_gethostbyname_r=no
20152 fi
20153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20154 conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20156 fi
20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20158 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
20159 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes
20160 then :
20161 mtsafe=yes
20162 fi
20163
20164 fi
20165 if test "x$mtsafe" = "xyes" ; then
20166
20167 printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
20168
20169 fi
20170
20171 # XXX incomplete, please fill this in
20172 case $host_os in
20173 solaris*)
20174 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
20175 esac
20176 XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS"
20177 fi
20178
20179 # Allow checking code with lint, sparse, etc.
20180
20181
20182
20183
20184
20185 # Check whether --with-lint was given.
20186 if test ${with_lint+y}
20187 then :
20188 withval=$with_lint; use_lint=$withval
20189 else $as_nop
20190 use_lint=no
20191 fi
20192
20193
20194 # Obtain platform specific info like program name and options
20195 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
20196 case $host_os in
20197 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20198 lint_name=splint
20199 lint_options="-badflag"
20200 ;;
20201 *freebsd* | *netbsd*)
20202 lint_name=lint
20203 lint_options="-u -b"
20204 ;;
20205 *solaris*)
20206 lint_name=lint
20207 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20208 ;;
20209 esac
20210
20211 # Test for the presence of the program (either guessed by the code or spelled out by the user)
20212 if test "x$use_lint" = x"yes" ; then
20213 # Extract the first word of "$lint_name", so it can be a program name with args.
20214 set dummy $lint_name; ac_word=$2
20215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20216 printf %s "checking for $ac_word... " >&6; }
20217 if test ${ac_cv_path_LINT+y}
20218 then :
20219 printf %s "(cached) " >&6
20220 else $as_nop
20221 case $LINT in
20222 [\\/]* | ?:[\\/]*)
20223 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20224 ;;
20225 *)
20226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20227 for as_dir in $PATH
20228 do
20229 IFS=$as_save_IFS
20230 case $as_dir in #(((
20231 '') as_dir=./ ;;
20232 */) ;;
20233 *) as_dir=$as_dir/ ;;
20234 esac
20235 for ac_exec_ext in '' $ac_executable_extensions; do
20236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20237 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20239 break 2
20240 fi
20241 done
20242 done
20243 IFS=$as_save_IFS
20244
20245 ;;
20246 esac
20247 fi
20248 LINT=$ac_cv_path_LINT
20249 if test -n "$LINT"; then
20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20251 printf "%s\n" "$LINT" >&6; }
20252 else
20253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20254 printf "%s\n" "no" >&6; }
20255 fi
20256
20257
20258 if test "x$LINT" = "x"; then
20259 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20260 fi
20261 elif test "x$use_lint" = x"no" ; then
20262 if test "x$LINT" != "x"; then
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20264 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20265 fi
20266 else
20267 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20268 fi
20269
20270 # User supplied flags override default flags
20271 if test "x$LINT_FLAGS" != "x"; then
20272 lint_options=$LINT_FLAGS
20273 fi
20274
20275 LINT_FLAGS=$lint_options
20276
20277 if test "x$LINT" != x; then
20278 LINT_TRUE=
20279 LINT_FALSE='#'
20280 else
20281 LINT_TRUE='#'
20282 LINT_FALSE=
20283 fi
20284
20285
20286
20287
20288
20289 # Check whether --enable-lint-library was given.
20290 if test ${enable_lint_library+y}
20291 then :
20292 enableval=$enable_lint_library; make_lint_lib=$enableval
20293 else $as_nop
20294 make_lint_lib=no
20295 fi
20296
20297
20298 if test "x$make_lint_lib" = x"yes" ; then
20299 LINTLIB=llib-lXau.ln
20300 if test "x$LINT" = "x"; then
20301 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
20302 fi
20303 elif test "x$make_lint_lib" != x"no" ; then
20304 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
20305 fi
20306
20307
20308 if test x$make_lint_lib != xno; then
20309 MAKE_LINT_LIB_TRUE=
20310 MAKE_LINT_LIB_FALSE='#'
20311 else
20312 MAKE_LINT_LIB_TRUE='#'
20313 MAKE_LINT_LIB_FALSE=
20314 fi
20315
20316
20317
20318 LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}"
20319
20320 ac_config_files="$ac_config_files Makefile man/Makefile xau.pc"
20321
20322 cat >confcache <<\_ACEOF
20323 # This file is a shell script that caches the results of configure
20324 # tests run on this system so they can be shared between configure
20325 # scripts and configure runs, see configure's option --config-cache.
20326 # It is not useful on other systems. If it contains results you don't
20327 # want to keep, you may remove or edit it.
20328 #
20329 # config.status only pays attention to the cache file if you give it
20330 # the --recheck option to rerun configure.
20331 #
20332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20334 # following values.
20335
20336 _ACEOF
20337
20338 # The following way of writing the cache mishandles newlines in values,
20339 # but we know of no workaround that is simple, portable, and efficient.
20340 # So, we kill variables containing newlines.
20341 # Ultrix sh set writes to stderr and can't be redirected directly,
20342 # and sets the high bit in the cache file unless we assign to the vars.
20343 (
20344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20345 eval ac_val=\$$ac_var
20346 case $ac_val in #(
20347 *${as_nl}*)
20348 case $ac_var in #(
20349 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20350 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20351 esac
20352 case $ac_var in #(
20353 _ | IFS | as_nl) ;; #(
20354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20355 *) { eval $ac_var=; unset $ac_var;} ;;
20356 esac ;;
20357 esac
20358 done
20359
20360 (set) 2>&1 |
20361 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20362 *${as_nl}ac_space=\ *)
20363 # `set' does not quote correctly, so add quotes: double-quote
20364 # substitution turns \\\\ into \\, and sed turns \\ into \.
20365 sed -n \
20366 "s/'/'\\\\''/g;
20367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20368 ;; #(
20369 *)
20370 # `set' quotes correctly as required by POSIX, so do not add quotes.
20371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20372 ;;
20373 esac |
20374 sort
20375 ) |
20376 sed '
20377 /^ac_cv_env_/b end
20378 t clear
20379 :clear
20380 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20381 t end
20382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20383 :end' >>confcache
20384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20385 if test -w "$cache_file"; then
20386 if test "x$cache_file" != "x/dev/null"; then
20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20388 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20389 if test ! -f "$cache_file" || test -h "$cache_file"; then
20390 cat confcache >"$cache_file"
20391 else
20392 case $cache_file in #(
20393 */* | ?:*)
20394 mv -f confcache "$cache_file"$$ &&
20395 mv -f "$cache_file"$$ "$cache_file" ;; #(
20396 *)
20397 mv -f confcache "$cache_file" ;;
20398 esac
20399 fi
20400 fi
20401 else
20402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20403 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20404 fi
20405 fi
20406 rm -f confcache
20407
20408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20409 # Let make expand exec_prefix.
20410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20411
20412 DEFS=-DHAVE_CONFIG_H
20413
20414 ac_libobjs=
20415 ac_ltlibobjs=
20416 U=
20417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20418 # 1. Remove the extension, and $U if already installed.
20419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20420 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20422 # will be set to the directory where LIBOBJS objects are built.
20423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20425 done
20426 LIBOBJS=$ac_libobjs
20427
20428 LTLIBOBJS=$ac_ltlibobjs
20429
20430
20431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20432 printf %s "checking that generated files are newer than configure... " >&6; }
20433 if test -n "$am_sleep_pid"; then
20434 # Hide warnings about reused PIDs.
20435 wait $am_sleep_pid 2>/dev/null
20436 fi
20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20438 printf "%s\n" "done" >&6; }
20439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20440 as_fn_error $? "conditional \"AMDEP\" was never defined.
20441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20442 fi
20443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20444 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20446 fi
20447 if test -n "$EXEEXT"; then
20448 am__EXEEXT_TRUE=
20449 am__EXEEXT_FALSE='#'
20450 else
20451 am__EXEEXT_TRUE='#'
20452 am__EXEEXT_FALSE=
20453 fi
20454
20455 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20456 as_fn_error $? "conditional \"LINT\" was never defined.
20457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20458 fi
20459 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
20460 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
20461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20462 fi
20463
20464 : "${CONFIG_STATUS=./config.status}"
20465 ac_write_fail=0
20466 ac_clean_files_save=$ac_clean_files
20467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20469 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20470 as_write_fail=0
20471 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20472 #! $SHELL
20473 # Generated by $as_me.
20474 # Run this file to recreate the current configuration.
20475 # Compiler output produced by configure, useful for debugging
20476 # configure, is in config.log if it exists.
20477
20478 debug=false
20479 ac_cs_recheck=false
20480 ac_cs_silent=false
20481
20482 SHELL=\${CONFIG_SHELL-$SHELL}
20483 export SHELL
20484 _ASEOF
20485 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20486 ## -------------------- ##
20487 ## M4sh Initialization. ##
20488 ## -------------------- ##
20489
20490 # Be more Bourne compatible
20491 DUALCASE=1; export DUALCASE # for MKS sh
20492 as_nop=:
20493 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20494 then :
20495 emulate sh
20496 NULLCMD=:
20497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20498 # is contrary to our usage. Disable this feature.
20499 alias -g '${1+"$@"}'='"$@"'
20500 setopt NO_GLOB_SUBST
20501 else $as_nop
20502 case `(set -o) 2>/dev/null` in #(
20503 *posix*) :
20504 set -o posix ;; #(
20505 *) :
20506 ;;
20507 esac
20508 fi
20509
20510
20511
20512 # Reset variables that may have inherited troublesome values from
20513 # the environment.
20514
20515 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20516 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20517 # side effect of setting IFS to empty, thus disabling word splitting.)
20518 # Quoting is to prevent editors from complaining about space-tab.
20519 as_nl='
20520 '
20521 export as_nl
20522 IFS=" "" $as_nl"
20523
20524 PS1='$ '
20525 PS2='> '
20526 PS4='+ '
20527
20528 # Ensure predictable behavior from utilities with locale-dependent output.
20529 LC_ALL=C
20530 export LC_ALL
20531 LANGUAGE=C
20532 export LANGUAGE
20533
20534 # We cannot yet rely on "unset" to work, but we need these variables
20535 # to be unset--not just set to an empty or harmless value--now, to
20536 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20537 # also avoids known problems related to "unset" and subshell syntax
20538 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20539 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20540 do eval test \${$as_var+y} \
20541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20542 done
20543
20544 # Ensure that fds 0, 1, and 2 are open.
20545 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20546 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20547 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20548
20549 # The user is always right.
20550 if ${PATH_SEPARATOR+false} :; then
20551 PATH_SEPARATOR=:
20552 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20553 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20554 PATH_SEPARATOR=';'
20555 }
20556 fi
20557
20558
20559 # Find who we are. Look in the path if we contain no directory separator.
20560 as_myself=
20561 case $0 in #((
20562 *[\\/]* ) as_myself=$0 ;;
20563 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20564 for as_dir in $PATH
20565 do
20566 IFS=$as_save_IFS
20567 case $as_dir in #(((
20568 '') as_dir=./ ;;
20569 */) ;;
20570 *) as_dir=$as_dir/ ;;
20571 esac
20572 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20573 done
20574 IFS=$as_save_IFS
20575
20576 ;;
20577 esac
20578 # We did not find ourselves, most probably we were run as `sh COMMAND'
20579 # in which case we are not to be found in the path.
20580 if test "x$as_myself" = x; then
20581 as_myself=$0
20582 fi
20583 if test ! -f "$as_myself"; then
20584 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20585 exit 1
20586 fi
20587
20588
20589
20590 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20591 # ----------------------------------------
20592 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20593 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20594 # script with STATUS, using 1 if that was 0.
20595 as_fn_error ()
20596 {
20597 as_status=$1; test $as_status -eq 0 && as_status=1
20598 if test "$4"; then
20599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20601 fi
20602 printf "%s\n" "$as_me: error: $2" >&2
20603 as_fn_exit $as_status
20604 } # as_fn_error
20605
20606
20607
20608 # as_fn_set_status STATUS
20609 # -----------------------
20610 # Set $? to STATUS, without forking.
20611 as_fn_set_status ()
20612 {
20613 return $1
20614 } # as_fn_set_status
20615
20616 # as_fn_exit STATUS
20617 # -----------------
20618 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20619 as_fn_exit ()
20620 {
20621 set +e
20622 as_fn_set_status $1
20623 exit $1
20624 } # as_fn_exit
20625
20626 # as_fn_unset VAR
20627 # ---------------
20628 # Portably unset VAR.
20629 as_fn_unset ()
20630 {
20631 { eval $1=; unset $1;}
20632 }
20633 as_unset=as_fn_unset
20634
20635 # as_fn_append VAR VALUE
20636 # ----------------------
20637 # Append the text in VALUE to the end of the definition contained in VAR. Take
20638 # advantage of any shell optimizations that allow amortized linear growth over
20639 # repeated appends, instead of the typical quadratic growth present in naive
20640 # implementations.
20641 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20642 then :
20643 eval 'as_fn_append ()
20644 {
20645 eval $1+=\$2
20646 }'
20647 else $as_nop
20648 as_fn_append ()
20649 {
20650 eval $1=\$$1\$2
20651 }
20652 fi # as_fn_append
20653
20654 # as_fn_arith ARG...
20655 # ------------------
20656 # Perform arithmetic evaluation on the ARGs, and store the result in the
20657 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20658 # must be portable across $(()) and expr.
20659 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20660 then :
20661 eval 'as_fn_arith ()
20662 {
20663 as_val=$(( $* ))
20664 }'
20665 else $as_nop
20666 as_fn_arith ()
20667 {
20668 as_val=`expr "$@" || test $? -eq 1`
20669 }
20670 fi # as_fn_arith
20671
20672
20673 if expr a : '\(a\)' >/dev/null 2>&1 &&
20674 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20675 as_expr=expr
20676 else
20677 as_expr=false
20678 fi
20679
20680 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20681 as_basename=basename
20682 else
20683 as_basename=false
20684 fi
20685
20686 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20687 as_dirname=dirname
20688 else
20689 as_dirname=false
20690 fi
20691
20692 as_me=`$as_basename -- "$0" ||
20693 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20694 X"$0" : 'X\(//\)$' \| \
20695 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20696 printf "%s\n" X/"$0" |
20697 sed '/^.*\/\([^/][^/]*\)\/*$/{
20698 s//\1/
20699 q
20700 }
20701 /^X\/\(\/\/\)$/{
20702 s//\1/
20703 q
20704 }
20705 /^X\/\(\/\).*/{
20706 s//\1/
20707 q
20708 }
20709 s/.*/./; q'`
20710
20711 # Avoid depending upon Character Ranges.
20712 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20713 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20714 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20715 as_cr_digits='0123456789'
20716 as_cr_alnum=$as_cr_Letters$as_cr_digits
20717
20718
20719 # Determine whether it's possible to make 'echo' print without a newline.
20720 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20721 # for compatibility with existing Makefiles.
20722 ECHO_C= ECHO_N= ECHO_T=
20723 case `echo -n x` in #(((((
20724 -n*)
20725 case `echo 'xy\c'` in
20726 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20727 xy) ECHO_C='\c';;
20728 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20729 ECHO_T=' ';;
20730 esac;;
20731 *)
20732 ECHO_N='-n';;
20733 esac
20734
20735 # For backward compatibility with old third-party macros, we provide
20736 # the shell variables $as_echo and $as_echo_n. New code should use
20737 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20738 as_echo='printf %s\n'
20739 as_echo_n='printf %s'
20740
20741 rm -f conf$$ conf$$.exe conf$$.file
20742 if test -d conf$$.dir; then
20743 rm -f conf$$.dir/conf$$.file
20744 else
20745 rm -f conf$$.dir
20746 mkdir conf$$.dir 2>/dev/null
20747 fi
20748 if (echo >conf$$.file) 2>/dev/null; then
20749 if ln -s conf$$.file conf$$ 2>/dev/null; then
20750 as_ln_s='ln -s'
20751 # ... but there are two gotchas:
20752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20754 # In both cases, we have to default to `cp -pR'.
20755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20756 as_ln_s='cp -pR'
20757 elif ln conf$$.file conf$$ 2>/dev/null; then
20758 as_ln_s=ln
20759 else
20760 as_ln_s='cp -pR'
20761 fi
20762 else
20763 as_ln_s='cp -pR'
20764 fi
20765 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20766 rmdir conf$$.dir 2>/dev/null
20767
20768
20769 # as_fn_mkdir_p
20770 # -------------
20771 # Create "$as_dir" as a directory, including parents if necessary.
20772 as_fn_mkdir_p ()
20773 {
20774
20775 case $as_dir in #(
20776 -*) as_dir=./$as_dir;;
20777 esac
20778 test -d "$as_dir" || eval $as_mkdir_p || {
20779 as_dirs=
20780 while :; do
20781 case $as_dir in #(
20782 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20783 *) as_qdir=$as_dir;;
20784 esac
20785 as_dirs="'$as_qdir' $as_dirs"
20786 as_dir=`$as_dirname -- "$as_dir" ||
20787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20788 X"$as_dir" : 'X\(//\)[^/]' \| \
20789 X"$as_dir" : 'X\(//\)$' \| \
20790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20791 printf "%s\n" X"$as_dir" |
20792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20793 s//\1/
20794 q
20795 }
20796 /^X\(\/\/\)[^/].*/{
20797 s//\1/
20798 q
20799 }
20800 /^X\(\/\/\)$/{
20801 s//\1/
20802 q
20803 }
20804 /^X\(\/\).*/{
20805 s//\1/
20806 q
20807 }
20808 s/.*/./; q'`
20809 test -d "$as_dir" && break
20810 done
20811 test -z "$as_dirs" || eval "mkdir $as_dirs"
20812 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20813
20814
20815 } # as_fn_mkdir_p
20816 if mkdir -p . 2>/dev/null; then
20817 as_mkdir_p='mkdir -p "$as_dir"'
20818 else
20819 test -d ./-p && rmdir ./-p
20820 as_mkdir_p=false
20821 fi
20822
20823
20824 # as_fn_executable_p FILE
20825 # -----------------------
20826 # Test if FILE is an executable regular file.
20827 as_fn_executable_p ()
20828 {
20829 test -f "$1" && test -x "$1"
20830 } # as_fn_executable_p
20831 as_test_x='test -x'
20832 as_executable_p=as_fn_executable_p
20833
20834 # Sed expression to map a string onto a valid CPP name.
20835 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20836
20837 # Sed expression to map a string onto a valid variable name.
20838 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20839
20840
20841 exec 6>&1
20842 ## ----------------------------------- ##
20843 ## Main body of $CONFIG_STATUS script. ##
20844 ## ----------------------------------- ##
20845 _ASEOF
20846 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20847
20848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20849 # Save the log message, to keep $0 and so on meaningful, and to
20850 # report actual input values of CONFIG_FILES etc. instead of their
20851 # values after options handling.
20852 ac_log="
20853 This file was extended by libXau $as_me 1.0.11, which was
20854 generated by GNU Autoconf 2.71. Invocation command line was
20855
20856 CONFIG_FILES = $CONFIG_FILES
20857 CONFIG_HEADERS = $CONFIG_HEADERS
20858 CONFIG_LINKS = $CONFIG_LINKS
20859 CONFIG_COMMANDS = $CONFIG_COMMANDS
20860 $ $0 $@
20861
20862 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20863 "
20864
20865 _ACEOF
20866
20867 case $ac_config_files in *"
20868 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20869 esac
20870
20871 case $ac_config_headers in *"
20872 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20873 esac
20874
20875
20876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20877 # Files that config.status was made for.
20878 config_files="$ac_config_files"
20879 config_headers="$ac_config_headers"
20880 config_commands="$ac_config_commands"
20881
20882 _ACEOF
20883
20884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20885 ac_cs_usage="\
20886 \`$as_me' instantiates files and other configuration actions
20887 from templates according to the current configuration. Unless the files
20888 and actions are specified as TAGs, all are instantiated by default.
20889
20890 Usage: $0 [OPTION]... [TAG]...
20891
20892 -h, --help print this help, then exit
20893 -V, --version print version number and configuration settings, then exit
20894 --config print configuration, then exit
20895 -q, --quiet, --silent
20896 do not print progress messages
20897 -d, --debug don't remove temporary files
20898 --recheck update $as_me by reconfiguring in the same conditions
20899 --file=FILE[:TEMPLATE]
20900 instantiate the configuration file FILE
20901 --header=FILE[:TEMPLATE]
20902 instantiate the configuration header FILE
20903
20904 Configuration files:
20905 $config_files
20906
20907 Configuration headers:
20908 $config_headers
20909
20910 Configuration commands:
20911 $config_commands
20912
20913 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>."
20914
20915 _ACEOF
20916 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20917 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20919 ac_cs_config='$ac_cs_config_escaped'
20920 ac_cs_version="\\
20921 libXau config.status 1.0.11
20922 configured by $0, generated by GNU Autoconf 2.71,
20923 with options \\"\$ac_cs_config\\"
20924
20925 Copyright (C) 2021 Free Software Foundation, Inc.
20926 This config.status script is free software; the Free Software Foundation
20927 gives unlimited permission to copy, distribute and modify it."
20928
20929 ac_pwd='$ac_pwd'
20930 srcdir='$srcdir'
20931 INSTALL='$INSTALL'
20932 MKDIR_P='$MKDIR_P'
20933 AWK='$AWK'
20934 test -n "\$AWK" || AWK=awk
20935 _ACEOF
20936
20937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20938 # The default lists apply if the user does not specify any file.
20939 ac_need_defaults=:
20940 while test $# != 0
20941 do
20942 case $1 in
20943 --*=?*)
20944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20945 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20946 ac_shift=:
20947 ;;
20948 --*=)
20949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20950 ac_optarg=
20951 ac_shift=:
20952 ;;
20953 *)
20954 ac_option=$1
20955 ac_optarg=$2
20956 ac_shift=shift
20957 ;;
20958 esac
20959
20960 case $ac_option in
20961 # Handling of the options.
20962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20963 ac_cs_recheck=: ;;
20964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20965 printf "%s\n" "$ac_cs_version"; exit ;;
20966 --config | --confi | --conf | --con | --co | --c )
20967 printf "%s\n" "$ac_cs_config"; exit ;;
20968 --debug | --debu | --deb | --de | --d | -d )
20969 debug=: ;;
20970 --file | --fil | --fi | --f )
20971 $ac_shift
20972 case $ac_optarg in
20973 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20974 '') as_fn_error $? "missing file argument" ;;
20975 esac
20976 as_fn_append CONFIG_FILES " '$ac_optarg'"
20977 ac_need_defaults=false;;
20978 --header | --heade | --head | --hea )
20979 $ac_shift
20980 case $ac_optarg in
20981 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20982 esac
20983 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20984 ac_need_defaults=false;;
20985 --he | --h)
20986 # Conflict between --help and --header
20987 as_fn_error $? "ambiguous option: \`$1'
20988 Try \`$0 --help' for more information.";;
20989 --help | --hel | -h )
20990 printf "%s\n" "$ac_cs_usage"; exit ;;
20991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20992 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20993 ac_cs_silent=: ;;
20994
20995 # This is an error.
20996 -*) as_fn_error $? "unrecognized option: \`$1'
20997 Try \`$0 --help' for more information." ;;
20998
20999 *) as_fn_append ac_config_targets " $1"
21000 ac_need_defaults=false ;;
21001
21002 esac
21003 shift
21004 done
21005
21006 ac_configure_extra_args=
21007
21008 if $ac_cs_silent; then
21009 exec 6>/dev/null
21010 ac_configure_extra_args="$ac_configure_extra_args --silent"
21011 fi
21012
21013 _ACEOF
21014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21015 if \$ac_cs_recheck; then
21016 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21017 shift
21018 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21019 CONFIG_SHELL='$SHELL'
21020 export CONFIG_SHELL
21021 exec "\$@"
21022 fi
21023
21024 _ACEOF
21025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21026 exec 5>>config.log
21027 {
21028 echo
21029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21030 ## Running $as_me. ##
21031 _ASBOX
21032 printf "%s\n" "$ac_log"
21033 } >&5
21034
21035 _ACEOF
21036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21037 #
21038 # INIT-COMMANDS
21039 #
21040 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21041
21042
21043 # The HP-UX ksh and POSIX shell print the target directory to stdout
21044 # if CDPATH is set.
21045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21046
21047 sed_quote_subst='$sed_quote_subst'
21048 double_quote_subst='$double_quote_subst'
21049 delay_variable_subst='$delay_variable_subst'
21050 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21051 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21052 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21053 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21054 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21055 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21056 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21057 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21058 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21059 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21060 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21061 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21062 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21063 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21064 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21065 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21066 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21067 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21068 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21069 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21070 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21071 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21072 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21073 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21074 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21075 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21076 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21077 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21078 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21079 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21080 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21081 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21082 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21083 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21084 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21085 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21086 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21087 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21088 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21089 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21090 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21091 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21092 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21093 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21094 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21095 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21096 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21097 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21098 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21099 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21100 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21101 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21102 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21103 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21104 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21105 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21106 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21107 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21108 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21109 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21110 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21111 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"`'
21112 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21113 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21114 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21115 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21116 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21117 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21118 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21119 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21120 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21121 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21122 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21123 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21124 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21125 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21126 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21127 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21128 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21129 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21130 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21131 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21132 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21133 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21134 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21135 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21136 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21137 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21138 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21139 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21140 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21141 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21142 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21143 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21144 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21145 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21146 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21147 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21148 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21149 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21150 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21151 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21152 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21153 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21154 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21155 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21156 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21157 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21158 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21159 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21160 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21161 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21162 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21163 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21164 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21165 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21166 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21167 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21168 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21169 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21170 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21171 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21172 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21173 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21174 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21175 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21176 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21177 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21178 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21179 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21180 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21181 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21182 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21183 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21184 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21185 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21186 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21187 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21188
21189 LTCC='$LTCC'
21190 LTCFLAGS='$LTCFLAGS'
21191 compiler='$compiler_DEFAULT'
21192
21193 # A function that is used when there is no print builtin or printf.
21194 func_fallback_echo ()
21195 {
21196 eval 'cat <<_LTECHO_EOF
21197 \$1
21198 _LTECHO_EOF'
21199 }
21200
21201 # Quote evaled strings.
21202 for var in AS \
21203 DLLTOOL \
21204 OBJDUMP \
21205 SHELL \
21206 ECHO \
21207 PATH_SEPARATOR \
21208 SED \
21209 GREP \
21210 EGREP \
21211 FGREP \
21212 LD \
21213 NM \
21214 LN_S \
21215 lt_SP2NL \
21216 lt_NL2SP \
21217 reload_flag \
21218 FILECMD \
21219 deplibs_check_method \
21220 file_magic_cmd \
21221 file_magic_glob \
21222 want_nocaseglob \
21223 sharedlib_from_linklib_cmd \
21224 AR \
21225 archiver_list_spec \
21226 STRIP \
21227 RANLIB \
21228 CC \
21229 CFLAGS \
21230 compiler \
21231 lt_cv_sys_global_symbol_pipe \
21232 lt_cv_sys_global_symbol_to_cdecl \
21233 lt_cv_sys_global_symbol_to_import \
21234 lt_cv_sys_global_symbol_to_c_name_address \
21235 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21236 lt_cv_nm_interface \
21237 nm_file_list_spec \
21238 lt_cv_truncate_bin \
21239 lt_prog_compiler_no_builtin_flag \
21240 lt_prog_compiler_pic \
21241 lt_prog_compiler_wl \
21242 lt_prog_compiler_static \
21243 lt_cv_prog_compiler_c_o \
21244 need_locks \
21245 MANIFEST_TOOL \
21246 DSYMUTIL \
21247 NMEDIT \
21248 LIPO \
21249 OTOOL \
21250 OTOOL64 \
21251 shrext_cmds \
21252 export_dynamic_flag_spec \
21253 whole_archive_flag_spec \
21254 compiler_needs_object \
21255 with_gnu_ld \
21256 allow_undefined_flag \
21257 no_undefined_flag \
21258 hardcode_libdir_flag_spec \
21259 hardcode_libdir_separator \
21260 exclude_expsyms \
21261 include_expsyms \
21262 file_list_spec \
21263 variables_saved_for_relink \
21264 libname_spec \
21265 library_names_spec \
21266 soname_spec \
21267 install_override_mode \
21268 finish_eval \
21269 old_striplib \
21270 striplib; do
21271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21272 *[\\\\\\\`\\"\\\$]*)
21273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21274 ;;
21275 *)
21276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21277 ;;
21278 esac
21279 done
21280
21281 # Double-quote double-evaled strings.
21282 for var in reload_cmds \
21283 old_postinstall_cmds \
21284 old_postuninstall_cmds \
21285 old_archive_cmds \
21286 extract_expsyms_cmds \
21287 old_archive_from_new_cmds \
21288 old_archive_from_expsyms_cmds \
21289 archive_cmds \
21290 archive_expsym_cmds \
21291 module_cmds \
21292 module_expsym_cmds \
21293 export_symbols_cmds \
21294 prelink_cmds \
21295 postlink_cmds \
21296 postinstall_cmds \
21297 postuninstall_cmds \
21298 finish_cmds \
21299 sys_lib_search_path_spec \
21300 configure_time_dlsearch_path \
21301 configure_time_lt_sys_library_path; do
21302 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21303 *[\\\\\\\`\\"\\\$]*)
21304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21305 ;;
21306 *)
21307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21308 ;;
21309 esac
21310 done
21311
21312 ac_aux_dir='$ac_aux_dir'
21313
21314 # See if we are running on zsh, and set the options that allow our
21315 # commands through without removal of \ escapes INIT.
21316 if test -n "\${ZSH_VERSION+set}"; then
21317 setopt NO_GLOB_SUBST
21318 fi
21319
21320
21321 PACKAGE='$PACKAGE'
21322 VERSION='$VERSION'
21323 RM='$RM'
21324 ofile='$ofile'
21325
21326
21327
21328
21329 _ACEOF
21330
21331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21332
21333 # Handling of arguments.
21334 for ac_config_target in $ac_config_targets
21335 do
21336 case $ac_config_target in
21337 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21338 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21339 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21340 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21341 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21342 "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;;
21343
21344 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21345 esac
21346 done
21347
21348
21349 # If the user did not use the arguments to specify the items to instantiate,
21350 # then the envvar interface is used. Set only those that are not.
21351 # We use the long form for the default assignment because of an extremely
21352 # bizarre bug on SunOS 4.1.3.
21353 if $ac_need_defaults; then
21354 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21355 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21356 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21357 fi
21358
21359 # Have a temporary directory for convenience. Make it in the build tree
21360 # simply because there is no reason against having it here, and in addition,
21361 # creating and moving files from /tmp can sometimes cause problems.
21362 # Hook for its removal unless debugging.
21363 # Note that there is a small window in which the directory will not be cleaned:
21364 # after its creation but before its name has been assigned to `$tmp'.
21365 $debug ||
21366 {
21367 tmp= ac_tmp=
21368 trap 'exit_status=$?
21369 : "${ac_tmp:=$tmp}"
21370 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21371 ' 0
21372 trap 'as_fn_exit 1' 1 2 13 15
21373 }
21374 # Create a (secure) tmp directory for tmp files.
21375
21376 {
21377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21378 test -d "$tmp"
21379 } ||
21380 {
21381 tmp=./conf$$-$RANDOM
21382 (umask 077 && mkdir "$tmp")
21383 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21384 ac_tmp=$tmp
21385
21386 # Set up the scripts for CONFIG_FILES section.
21387 # No need to generate them if there are no CONFIG_FILES.
21388 # This happens for instance with `./config.status config.h'.
21389 if test -n "$CONFIG_FILES"; then
21390
21391
21392 ac_cr=`echo X | tr X '\015'`
21393 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21394 # But we know of no other shell where ac_cr would be empty at this
21395 # point, so we can use a bashism as a fallback.
21396 if test "x$ac_cr" = x; then
21397 eval ac_cr=\$\'\\r\'
21398 fi
21399 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21400 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21401 ac_cs_awk_cr='\\r'
21402 else
21403 ac_cs_awk_cr=$ac_cr
21404 fi
21405
21406 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21407 _ACEOF
21408
21409
21410 {
21411 echo "cat >conf$$subs.awk <<_ACEOF" &&
21412 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21413 echo "_ACEOF"
21414 } >conf$$subs.sh ||
21415 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21416 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21417 ac_delim='%!_!# '
21418 for ac_last_try in false false false false false :; do
21419 . ./conf$$subs.sh ||
21420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21421
21422 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21423 if test $ac_delim_n = $ac_delim_num; then
21424 break
21425 elif $ac_last_try; then
21426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21427 else
21428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21429 fi
21430 done
21431 rm -f conf$$subs.sh
21432
21433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21434 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21435 _ACEOF
21436 sed -n '
21437 h
21438 s/^/S["/; s/!.*/"]=/
21439 p
21440 g
21441 s/^[^!]*!//
21442 :repl
21443 t repl
21444 s/'"$ac_delim"'$//
21445 t delim
21446 :nl
21447 h
21448 s/\(.\{148\}\)..*/\1/
21449 t more1
21450 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21451 p
21452 n
21453 b repl
21454 :more1
21455 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21456 p
21457 g
21458 s/.\{148\}//
21459 t nl
21460 :delim
21461 h
21462 s/\(.\{148\}\)..*/\1/
21463 t more2
21464 s/["\\]/\\&/g; s/^/"/; s/$/"/
21465 p
21466 b
21467 :more2
21468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21469 p
21470 g
21471 s/.\{148\}//
21472 t delim
21473 ' <conf$$subs.awk | sed '
21474 /^[^""]/{
21475 N
21476 s/\n//
21477 }
21478 ' >>$CONFIG_STATUS || ac_write_fail=1
21479 rm -f conf$$subs.awk
21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21481 _ACAWK
21482 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21483 for (key in S) S_is_set[key] = 1
21484 FS = ""
21485
21486 }
21487 {
21488 line = $ 0
21489 nfields = split(line, field, "@")
21490 substed = 0
21491 len = length(field[1])
21492 for (i = 2; i < nfields; i++) {
21493 key = field[i]
21494 keylen = length(key)
21495 if (S_is_set[key]) {
21496 value = S[key]
21497 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21498 len += length(value) + length(field[++i])
21499 substed = 1
21500 } else
21501 len += 1 + keylen
21502 }
21503
21504 print line
21505 }
21506
21507 _ACAWK
21508 _ACEOF
21509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21510 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21511 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21512 else
21513 cat
21514 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21515 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21516 _ACEOF
21517
21518 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21519 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21520 # trailing colons and then remove the whole line if VPATH becomes empty
21521 # (actually we leave an empty line to preserve line numbers).
21522 if test "x$srcdir" = x.; then
21523 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21524 h
21525 s///
21526 s/^/:/
21527 s/[ ]*$/:/
21528 s/:\$(srcdir):/:/g
21529 s/:\${srcdir}:/:/g
21530 s/:@srcdir@:/:/g
21531 s/^:*//
21532 s/:*$//
21533 x
21534 s/\(=[ ]*\).*/\1/
21535 G
21536 s/\n//
21537 s/^[^=]*=[ ]*$//
21538 }'
21539 fi
21540
21541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21542 fi # test -n "$CONFIG_FILES"
21543
21544 # Set up the scripts for CONFIG_HEADERS section.
21545 # No need to generate them if there are no CONFIG_HEADERS.
21546 # This happens for instance with `./config.status Makefile'.
21547 if test -n "$CONFIG_HEADERS"; then
21548 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21549 BEGIN {
21550 _ACEOF
21551
21552 # Transform confdefs.h into an awk script `defines.awk', embedded as
21553 # here-document in config.status, that substitutes the proper values into
21554 # config.h.in to produce config.h.
21555
21556 # Create a delimiter string that does not exist in confdefs.h, to ease
21557 # handling of long lines.
21558 ac_delim='%!_!# '
21559 for ac_last_try in false false :; do
21560 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21561 if test -z "$ac_tt"; then
21562 break
21563 elif $ac_last_try; then
21564 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21565 else
21566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21567 fi
21568 done
21569
21570 # For the awk script, D is an array of macro values keyed by name,
21571 # likewise P contains macro parameters if any. Preserve backslash
21572 # newline sequences.
21573
21574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21575 sed -n '
21576 s/.\{148\}/&'"$ac_delim"'/g
21577 t rset
21578 :rset
21579 s/^[ ]*#[ ]*define[ ][ ]*/ /
21580 t def
21581 d
21582 :def
21583 s/\\$//
21584 t bsnl
21585 s/["\\]/\\&/g
21586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21587 D["\1"]=" \3"/p
21588 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21589 d
21590 :bsnl
21591 s/["\\]/\\&/g
21592 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21593 D["\1"]=" \3\\\\\\n"\\/p
21594 t cont
21595 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21596 t cont
21597 d
21598 :cont
21599 n
21600 s/.\{148\}/&'"$ac_delim"'/g
21601 t clear
21602 :clear
21603 s/\\$//
21604 t bsnlc
21605 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21606 d
21607 :bsnlc
21608 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21609 b cont
21610 ' <confdefs.h | sed '
21611 s/'"$ac_delim"'/"\\\
21612 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21613
21614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21615 for (key in D) D_is_set[key] = 1
21616 FS = ""
21617 }
21618 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21619 line = \$ 0
21620 split(line, arg, " ")
21621 if (arg[1] == "#") {
21622 defundef = arg[2]
21623 mac1 = arg[3]
21624 } else {
21625 defundef = substr(arg[1], 2)
21626 mac1 = arg[2]
21627 }
21628 split(mac1, mac2, "(") #)
21629 macro = mac2[1]
21630 prefix = substr(line, 1, index(line, defundef) - 1)
21631 if (D_is_set[macro]) {
21632 # Preserve the white space surrounding the "#".
21633 print prefix "define", macro P[macro] D[macro]
21634 next
21635 } else {
21636 # Replace #undef with comments. This is necessary, for example,
21637 # in the case of _POSIX_SOURCE, which is predefined and required
21638 # on some systems where configure will not decide to define it.
21639 if (defundef == "undef") {
21640 print "/*", prefix defundef, macro, "*/"
21641 next
21642 }
21643 }
21644 }
21645 { print }
21646 _ACAWK
21647 _ACEOF
21648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21649 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21650 fi # test -n "$CONFIG_HEADERS"
21651
21652
21653 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21654 shift
21655 for ac_tag
21656 do
21657 case $ac_tag in
21658 :[FHLC]) ac_mode=$ac_tag; continue;;
21659 esac
21660 case $ac_mode$ac_tag in
21661 :[FHL]*:*);;
21662 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21663 :[FH]-) ac_tag=-:-;;
21664 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21665 esac
21666 ac_save_IFS=$IFS
21667 IFS=:
21668 set x $ac_tag
21669 IFS=$ac_save_IFS
21670 shift
21671 ac_file=$1
21672 shift
21673
21674 case $ac_mode in
21675 :L) ac_source=$1;;
21676 :[FH])
21677 ac_file_inputs=
21678 for ac_f
21679 do
21680 case $ac_f in
21681 -) ac_f="$ac_tmp/stdin";;
21682 *) # Look for the file first in the build tree, then in the source tree
21683 # (if the path is not absolute). The absolute path cannot be DOS-style,
21684 # because $ac_f cannot contain `:'.
21685 test -f "$ac_f" ||
21686 case $ac_f in
21687 [\\/$]*) false;;
21688 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21689 esac ||
21690 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21691 esac
21692 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21693 as_fn_append ac_file_inputs " '$ac_f'"
21694 done
21695
21696 # Let's still pretend it is `configure' which instantiates (i.e., don't
21697 # use $as_me), people would be surprised to read:
21698 # /* config.h. Generated by config.status. */
21699 configure_input='Generated from '`
21700 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21701 `' by configure.'
21702 if test x"$ac_file" != x-; then
21703 configure_input="$ac_file. $configure_input"
21704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21705 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21706 fi
21707 # Neutralize special characters interpreted by sed in replacement strings.
21708 case $configure_input in #(
21709 *\&* | *\|* | *\\* )
21710 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21711 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21712 *) ac_sed_conf_input=$configure_input;;
21713 esac
21714
21715 case $ac_tag in
21716 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21718 esac
21719 ;;
21720 esac
21721
21722 ac_dir=`$as_dirname -- "$ac_file" ||
21723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21724 X"$ac_file" : 'X\(//\)[^/]' \| \
21725 X"$ac_file" : 'X\(//\)$' \| \
21726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21727 printf "%s\n" X"$ac_file" |
21728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21729 s//\1/
21730 q
21731 }
21732 /^X\(\/\/\)[^/].*/{
21733 s//\1/
21734 q
21735 }
21736 /^X\(\/\/\)$/{
21737 s//\1/
21738 q
21739 }
21740 /^X\(\/\).*/{
21741 s//\1/
21742 q
21743 }
21744 s/.*/./; q'`
21745 as_dir="$ac_dir"; as_fn_mkdir_p
21746 ac_builddir=.
21747
21748 case "$ac_dir" in
21749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21750 *)
21751 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21752 # A ".." for each directory in $ac_dir_suffix.
21753 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21754 case $ac_top_builddir_sub in
21755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21757 esac ;;
21758 esac
21759 ac_abs_top_builddir=$ac_pwd
21760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21761 # for backward compatibility:
21762 ac_top_builddir=$ac_top_build_prefix
21763
21764 case $srcdir in
21765 .) # We are building in place.
21766 ac_srcdir=.
21767 ac_top_srcdir=$ac_top_builddir_sub
21768 ac_abs_top_srcdir=$ac_pwd ;;
21769 [\\/]* | ?:[\\/]* ) # Absolute name.
21770 ac_srcdir=$srcdir$ac_dir_suffix;
21771 ac_top_srcdir=$srcdir
21772 ac_abs_top_srcdir=$srcdir ;;
21773 *) # Relative name.
21774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21775 ac_top_srcdir=$ac_top_build_prefix$srcdir
21776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21777 esac
21778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21779
21780
21781 case $ac_mode in
21782 :F)
21783 #
21784 # CONFIG_FILE
21785 #
21786
21787 case $INSTALL in
21788 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21789 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21790 esac
21791 ac_MKDIR_P=$MKDIR_P
21792 case $MKDIR_P in
21793 [\\/$]* | ?:[\\/]* ) ;;
21794 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21795 esac
21796 _ACEOF
21797
21798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21799 # If the template does not know about datarootdir, expand it.
21800 # FIXME: This hack should be removed a few years after 2.60.
21801 ac_datarootdir_hack=; ac_datarootdir_seen=
21802 ac_sed_dataroot='
21803 /datarootdir/ {
21804 p
21805 q
21806 }
21807 /@datadir@/p
21808 /@docdir@/p
21809 /@infodir@/p
21810 /@localedir@/p
21811 /@mandir@/p'
21812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21813 *datarootdir*) ac_datarootdir_seen=yes;;
21814 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21816 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21817 _ACEOF
21818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21819 ac_datarootdir_hack='
21820 s&@datadir@&$datadir&g
21821 s&@docdir@&$docdir&g
21822 s&@infodir@&$infodir&g
21823 s&@localedir@&$localedir&g
21824 s&@mandir@&$mandir&g
21825 s&\\\${datarootdir}&$datarootdir&g' ;;
21826 esac
21827 _ACEOF
21828
21829 # Neutralize VPATH when `$srcdir' = `.'.
21830 # Shell code in configure.ac might set extrasub.
21831 # FIXME: do we really want to maintain this feature?
21832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21833 ac_sed_extra="$ac_vpsub
21834 $extrasub
21835 _ACEOF
21836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21837 :t
21838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21839 s|@configure_input@|$ac_sed_conf_input|;t t
21840 s&@top_builddir@&$ac_top_builddir_sub&;t t
21841 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21842 s&@srcdir@&$ac_srcdir&;t t
21843 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21844 s&@top_srcdir@&$ac_top_srcdir&;t t
21845 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21846 s&@builddir@&$ac_builddir&;t t
21847 s&@abs_builddir@&$ac_abs_builddir&;t t
21848 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21849 s&@INSTALL@&$ac_INSTALL&;t t
21850 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21851 $ac_datarootdir_hack
21852 "
21853 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21854 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21855
21856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21857 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21859 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21861 which seems to be undefined. Please make sure it is defined" >&5
21862 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21863 which seems to be undefined. Please make sure it is defined" >&2;}
21864
21865 rm -f "$ac_tmp/stdin"
21866 case $ac_file in
21867 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21868 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21869 esac \
21870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21871 ;;
21872 :H)
21873 #
21874 # CONFIG_HEADER
21875 #
21876 if test x"$ac_file" != x-; then
21877 {
21878 printf "%s\n" "/* $configure_input */" >&1 \
21879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21880 } >"$ac_tmp/config.h" \
21881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21882 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21884 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21885 else
21886 rm -f "$ac_file"
21887 mv "$ac_tmp/config.h" "$ac_file" \
21888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21889 fi
21890 else
21891 printf "%s\n" "/* $configure_input */" >&1 \
21892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21893 || as_fn_error $? "could not create -" "$LINENO" 5
21894 fi
21895 # Compute "$ac_file"'s index in $config_headers.
21896 _am_arg="$ac_file"
21897 _am_stamp_count=1
21898 for _am_header in $config_headers :; do
21899 case $_am_header in
21900 $_am_arg | $_am_arg:* )
21901 break ;;
21902 * )
21903 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21904 esac
21905 done
21906 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21907 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21908 X"$_am_arg" : 'X\(//\)[^/]' \| \
21909 X"$_am_arg" : 'X\(//\)$' \| \
21910 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21911 printf "%s\n" X"$_am_arg" |
21912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21913 s//\1/
21914 q
21915 }
21916 /^X\(\/\/\)[^/].*/{
21917 s//\1/
21918 q
21919 }
21920 /^X\(\/\/\)$/{
21921 s//\1/
21922 q
21923 }
21924 /^X\(\/\).*/{
21925 s//\1/
21926 q
21927 }
21928 s/.*/./; q'`/stamp-h$_am_stamp_count
21929 ;;
21930
21931 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21932 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21933 ;;
21934 esac
21935
21936
21937 case $ac_file$ac_mode in
21938 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21939 # Older Autoconf quotes --file arguments for eval, but not when files
21940 # are listed without --file. Let's play safe and only enable the eval
21941 # if we detect the quoting.
21942 # TODO: see whether this extra hack can be removed once we start
21943 # requiring Autoconf 2.70 or later.
21944 case $CONFIG_FILES in #(
21945 *\'*) :
21946 eval set x "$CONFIG_FILES" ;; #(
21947 *) :
21948 set x $CONFIG_FILES ;; #(
21949 *) :
21950 ;;
21951 esac
21952 shift
21953 # Used to flag and report bootstrapping failures.
21954 am_rc=0
21955 for am_mf
21956 do
21957 # Strip MF so we end up with the name of the file.
21958 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21959 # Check whether this is an Automake generated Makefile which includes
21960 # dependency-tracking related rules and includes.
21961 # Grep'ing the whole file directly is not great: AIX grep has a line
21962 # limit of 2048, but all sed's we know have understand at least 4000.
21963 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21964 || continue
21965 am_dirpart=`$as_dirname -- "$am_mf" ||
21966 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21967 X"$am_mf" : 'X\(//\)[^/]' \| \
21968 X"$am_mf" : 'X\(//\)$' \| \
21969 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21970 printf "%s\n" X"$am_mf" |
21971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21972 s//\1/
21973 q
21974 }
21975 /^X\(\/\/\)[^/].*/{
21976 s//\1/
21977 q
21978 }
21979 /^X\(\/\/\)$/{
21980 s//\1/
21981 q
21982 }
21983 /^X\(\/\).*/{
21984 s//\1/
21985 q
21986 }
21987 s/.*/./; q'`
21988 am_filepart=`$as_basename -- "$am_mf" ||
21989 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21990 X"$am_mf" : 'X\(//\)$' \| \
21991 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21992 printf "%s\n" X/"$am_mf" |
21993 sed '/^.*\/\([^/][^/]*\)\/*$/{
21994 s//\1/
21995 q
21996 }
21997 /^X\/\(\/\/\)$/{
21998 s//\1/
21999 q
22000 }
22001 /^X\/\(\/\).*/{
22002 s//\1/
22003 q
22004 }
22005 s/.*/./; q'`
22006 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22007 && sed -e '/# am--include-marker/d' "$am_filepart" \
22008 | $MAKE -f - am--depfiles" >&5
22009 (cd "$am_dirpart" \
22010 && sed -e '/# am--include-marker/d' "$am_filepart" \
22011 | $MAKE -f - am--depfiles) >&5 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } || am_rc=$?
22015 done
22016 if test $am_rc -ne 0; then
22017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22018 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22019 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22020 for automatic dependency tracking. If GNU make was not used, consider
22021 re-running the configure script with MAKE=\"gmake\" (or whatever is
22022 necessary). You can also try re-running configure with the
22023 '--disable-dependency-tracking' option to at least be able to build
22024 the package (albeit without support for automatic dependency tracking).
22025 See \`config.log' for more details" "$LINENO" 5; }
22026 fi
22027 { am_dirpart=; unset am_dirpart;}
22028 { am_filepart=; unset am_filepart;}
22029 { am_mf=; unset am_mf;}
22030 { am_rc=; unset am_rc;}
22031 rm -f conftest-deps.mk
22032 }
22033 ;;
22034 "libtool":C)
22035
22036 # See if we are running on zsh, and set the options that allow our
22037 # commands through without removal of \ escapes.
22038 if test -n "${ZSH_VERSION+set}"; then
22039 setopt NO_GLOB_SUBST
22040 fi
22041
22042 cfgfile=${ofile}T
22043 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22044 $RM "$cfgfile"
22045
22046 cat <<_LT_EOF >> "$cfgfile"
22047 #! $SHELL
22048 # Generated automatically by $as_me ($PACKAGE) $VERSION
22049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22050 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22051
22052 # Provide generalized library-building support services.
22053 # Written by Gordon Matzigkeit, 1996
22054
22055 # Copyright (C) 2014 Free Software Foundation, Inc.
22056 # This is free software; see the source for copying conditions. There is NO
22057 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22058
22059 # GNU Libtool is free software; you can redistribute it and/or modify
22060 # it under the terms of the GNU General Public License as published by
22061 # the Free Software Foundation; either version 2 of of the License, or
22062 # (at your option) any later version.
22063 #
22064 # As a special exception to the GNU General Public License, if you
22065 # distribute this file as part of a program or library that is built
22066 # using GNU Libtool, you may include this file under the same
22067 # distribution terms that you use for the rest of that program.
22068 #
22069 # GNU Libtool is distributed in the hope that it will be useful, but
22070 # WITHOUT ANY WARRANTY; without even the implied warranty of
22071 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22072 # GNU General Public License for more details.
22073 #
22074 # You should have received a copy of the GNU General Public License
22075 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22076
22077
22078 # The names of the tagged configurations supported by this script.
22079 available_tags=''
22080
22081 # Configured defaults for sys_lib_dlsearch_path munging.
22082 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22083
22084 # ### BEGIN LIBTOOL CONFIG
22085
22086 # Assembler program.
22087 AS=$lt_AS
22088
22089 # DLL creation program.
22090 DLLTOOL=$lt_DLLTOOL
22091
22092 # Object dumper program.
22093 OBJDUMP=$lt_OBJDUMP
22094
22095 # Which release of libtool.m4 was used?
22096 macro_version=$macro_version
22097 macro_revision=$macro_revision
22098
22099 # Whether or not to build shared libraries.
22100 build_libtool_libs=$enable_shared
22101
22102 # Whether or not to build static libraries.
22103 build_old_libs=$enable_static
22104
22105 # What type of objects to build.
22106 pic_mode=$pic_mode
22107
22108 # Whether or not to optimize for fast installation.
22109 fast_install=$enable_fast_install
22110
22111 # Shared archive member basename,for filename based shared library versioning on AIX.
22112 shared_archive_member_spec=$shared_archive_member_spec
22113
22114 # Shell to use when invoking shell scripts.
22115 SHELL=$lt_SHELL
22116
22117 # An echo program that protects backslashes.
22118 ECHO=$lt_ECHO
22119
22120 # The PATH separator for the build system.
22121 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22122
22123 # The host system.
22124 host_alias=$host_alias
22125 host=$host
22126 host_os=$host_os
22127
22128 # The build system.
22129 build_alias=$build_alias
22130 build=$build
22131 build_os=$build_os
22132
22133 # A sed program that does not truncate output.
22134 SED=$lt_SED
22135
22136 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22137 Xsed="\$SED -e 1s/^X//"
22138
22139 # A grep program that handles long lines.
22140 GREP=$lt_GREP
22141
22142 # An ERE matcher.
22143 EGREP=$lt_EGREP
22144
22145 # A literal string matcher.
22146 FGREP=$lt_FGREP
22147
22148 # A BSD- or MS-compatible name lister.
22149 NM=$lt_NM
22150
22151 # Whether we need soft or hard links.
22152 LN_S=$lt_LN_S
22153
22154 # What is the maximum length of a command?
22155 max_cmd_len=$max_cmd_len
22156
22157 # Object file suffix (normally "o").
22158 objext=$ac_objext
22159
22160 # Executable file suffix (normally "").
22161 exeext=$exeext
22162
22163 # whether the shell understands "unset".
22164 lt_unset=$lt_unset
22165
22166 # turn spaces into newlines.
22167 SP2NL=$lt_lt_SP2NL
22168
22169 # turn newlines into spaces.
22170 NL2SP=$lt_lt_NL2SP
22171
22172 # convert \$build file names to \$host format.
22173 to_host_file_cmd=$lt_cv_to_host_file_cmd
22174
22175 # convert \$build files to toolchain format.
22176 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22177
22178 # A file(cmd) program that detects file types.
22179 FILECMD=$lt_FILECMD
22180
22181 # Method to check whether dependent libraries are shared objects.
22182 deplibs_check_method=$lt_deplibs_check_method
22183
22184 # Command to use when deplibs_check_method = "file_magic".
22185 file_magic_cmd=$lt_file_magic_cmd
22186
22187 # How to find potential files when deplibs_check_method = "file_magic".
22188 file_magic_glob=$lt_file_magic_glob
22189
22190 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22191 want_nocaseglob=$lt_want_nocaseglob
22192
22193 # Command to associate shared and link libraries.
22194 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22195
22196 # The archiver.
22197 AR=$lt_AR
22198
22199 # Flags to create an archive (by configure).
22200 lt_ar_flags=$lt_ar_flags
22201
22202 # Flags to create an archive.
22203 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22204
22205 # How to feed a file listing to the archiver.
22206 archiver_list_spec=$lt_archiver_list_spec
22207
22208 # A symbol stripping program.
22209 STRIP=$lt_STRIP
22210
22211 # Commands used to install an old-style archive.
22212 RANLIB=$lt_RANLIB
22213 old_postinstall_cmds=$lt_old_postinstall_cmds
22214 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22215
22216 # Whether to use a lock for old archive extraction.
22217 lock_old_archive_extraction=$lock_old_archive_extraction
22218
22219 # A C compiler.
22220 LTCC=$lt_CC
22221
22222 # LTCC compiler flags.
22223 LTCFLAGS=$lt_CFLAGS
22224
22225 # Take the output of nm and produce a listing of raw symbols and C names.
22226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22227
22228 # Transform the output of nm in a proper C declaration.
22229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22230
22231 # Transform the output of nm into a list of symbols to manually relocate.
22232 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22233
22234 # Transform the output of nm in a C name address pair.
22235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22236
22237 # Transform the output of nm in a C name address pair when lib prefix is needed.
22238 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22239
22240 # The name lister interface.
22241 nm_interface=$lt_lt_cv_nm_interface
22242
22243 # Specify filename containing input files for \$NM.
22244 nm_file_list_spec=$lt_nm_file_list_spec
22245
22246 # The root where to search for dependent libraries,and where our libraries should be installed.
22247 lt_sysroot=$lt_sysroot
22248
22249 # Command to truncate a binary pipe.
22250 lt_truncate_bin=$lt_lt_cv_truncate_bin
22251
22252 # The name of the directory that contains temporary libtool files.
22253 objdir=$objdir
22254
22255 # Used to examine libraries when file_magic_cmd begins with "file".
22256 MAGIC_CMD=$MAGIC_CMD
22257
22258 # Must we lock files when doing compilation?
22259 need_locks=$lt_need_locks
22260
22261 # Manifest tool.
22262 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22263
22264 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22265 DSYMUTIL=$lt_DSYMUTIL
22266
22267 # Tool to change global to local symbols on Mac OS X.
22268 NMEDIT=$lt_NMEDIT
22269
22270 # Tool to manipulate fat objects and archives on Mac OS X.
22271 LIPO=$lt_LIPO
22272
22273 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22274 OTOOL=$lt_OTOOL
22275
22276 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22277 OTOOL64=$lt_OTOOL64
22278
22279 # Old archive suffix (normally "a").
22280 libext=$libext
22281
22282 # Shared library suffix (normally ".so").
22283 shrext_cmds=$lt_shrext_cmds
22284
22285 # The commands to extract the exported symbol list from a shared archive.
22286 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22287
22288 # Variables whose values should be saved in libtool wrapper scripts and
22289 # restored at link time.
22290 variables_saved_for_relink=$lt_variables_saved_for_relink
22291
22292 # Do we need the "lib" prefix for modules?
22293 need_lib_prefix=$need_lib_prefix
22294
22295 # Do we need a version for libraries?
22296 need_version=$need_version
22297
22298 # Library versioning type.
22299 version_type=$version_type
22300
22301 # Shared library runtime path variable.
22302 runpath_var=$runpath_var
22303
22304 # Shared library path variable.
22305 shlibpath_var=$shlibpath_var
22306
22307 # Is shlibpath searched before the hard-coded library search path?
22308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22309
22310 # Format of library name prefix.
22311 libname_spec=$lt_libname_spec
22312
22313 # List of archive names. First name is the real one, the rest are links.
22314 # The last name is the one that the linker finds with -lNAME
22315 library_names_spec=$lt_library_names_spec
22316
22317 # The coded name of the library, if different from the real name.
22318 soname_spec=$lt_soname_spec
22319
22320 # Permission mode override for installation of shared libraries.
22321 install_override_mode=$lt_install_override_mode
22322
22323 # Command to use after installation of a shared archive.
22324 postinstall_cmds=$lt_postinstall_cmds
22325
22326 # Command to use after uninstallation of a shared archive.
22327 postuninstall_cmds=$lt_postuninstall_cmds
22328
22329 # Commands used to finish a libtool library installation in a directory.
22330 finish_cmds=$lt_finish_cmds
22331
22332 # As "finish_cmds", except a single script fragment to be evaled but
22333 # not shown.
22334 finish_eval=$lt_finish_eval
22335
22336 # Whether we should hardcode library paths into libraries.
22337 hardcode_into_libs=$hardcode_into_libs
22338
22339 # Compile-time system search path for libraries.
22340 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22341
22342 # Detected run-time system search path for libraries.
22343 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22344
22345 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22346 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22347
22348 # Whether dlopen is supported.
22349 dlopen_support=$enable_dlopen
22350
22351 # Whether dlopen of programs is supported.
22352 dlopen_self=$enable_dlopen_self
22353
22354 # Whether dlopen of statically linked programs is supported.
22355 dlopen_self_static=$enable_dlopen_self_static
22356
22357 # Commands to strip libraries.
22358 old_striplib=$lt_old_striplib
22359 striplib=$lt_striplib
22360
22361
22362 # The linker used to build libraries.
22363 LD=$lt_LD
22364
22365 # How to create reloadable object files.
22366 reload_flag=$lt_reload_flag
22367 reload_cmds=$lt_reload_cmds
22368
22369 # Commands used to build an old-style archive.
22370 old_archive_cmds=$lt_old_archive_cmds
22371
22372 # A language specific compiler.
22373 CC=$lt_compiler
22374
22375 # Is the compiler the GNU compiler?
22376 with_gcc=$GCC
22377
22378 # Compiler flag to turn off builtin functions.
22379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22380
22381 # Additional compiler flags for building library objects.
22382 pic_flag=$lt_lt_prog_compiler_pic
22383
22384 # How to pass a linker flag through the compiler.
22385 wl=$lt_lt_prog_compiler_wl
22386
22387 # Compiler flag to prevent dynamic linking.
22388 link_static_flag=$lt_lt_prog_compiler_static
22389
22390 # Does compiler simultaneously support -c and -o options?
22391 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22392
22393 # Whether or not to add -lc for building shared libraries.
22394 build_libtool_need_lc=$archive_cmds_need_lc
22395
22396 # Whether or not to disallow shared libs when runtime libs are static.
22397 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22398
22399 # Compiler flag to allow reflexive dlopens.
22400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22401
22402 # Compiler flag to generate shared objects directly from archives.
22403 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22404
22405 # Whether the compiler copes with passing no objects directly.
22406 compiler_needs_object=$lt_compiler_needs_object
22407
22408 # Create an old-style archive from a shared archive.
22409 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22410
22411 # Create a temporary old-style archive to link instead of a shared archive.
22412 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22413
22414 # Commands used to build a shared archive.
22415 archive_cmds=$lt_archive_cmds
22416 archive_expsym_cmds=$lt_archive_expsym_cmds
22417
22418 # Commands used to build a loadable module if different from building
22419 # a shared archive.
22420 module_cmds=$lt_module_cmds
22421 module_expsym_cmds=$lt_module_expsym_cmds
22422
22423 # Whether we are building with GNU ld or not.
22424 with_gnu_ld=$lt_with_gnu_ld
22425
22426 # Flag that allows shared libraries with undefined symbols to be built.
22427 allow_undefined_flag=$lt_allow_undefined_flag
22428
22429 # Flag that enforces no undefined symbols.
22430 no_undefined_flag=$lt_no_undefined_flag
22431
22432 # Flag to hardcode \$libdir into a binary during linking.
22433 # This must work even if \$libdir does not exist
22434 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22435
22436 # Whether we need a single "-rpath" flag with a separated argument.
22437 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22438
22439 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22440 # DIR into the resulting binary.
22441 hardcode_direct=$hardcode_direct
22442
22443 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22444 # DIR into the resulting binary and the resulting library dependency is
22445 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22446 # library is relocated.
22447 hardcode_direct_absolute=$hardcode_direct_absolute
22448
22449 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22450 # into the resulting binary.
22451 hardcode_minus_L=$hardcode_minus_L
22452
22453 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22454 # into the resulting binary.
22455 hardcode_shlibpath_var=$hardcode_shlibpath_var
22456
22457 # Set to "yes" if building a shared library automatically hardcodes DIR
22458 # into the library and all subsequent libraries and executables linked
22459 # against it.
22460 hardcode_automatic=$hardcode_automatic
22461
22462 # Set to yes if linker adds runtime paths of dependent libraries
22463 # to runtime path list.
22464 inherit_rpath=$inherit_rpath
22465
22466 # Whether libtool must link a program against all its dependency libraries.
22467 link_all_deplibs=$link_all_deplibs
22468
22469 # Set to "yes" if exported symbols are required.
22470 always_export_symbols=$always_export_symbols
22471
22472 # The commands to list exported symbols.
22473 export_symbols_cmds=$lt_export_symbols_cmds
22474
22475 # Symbols that should not be listed in the preloaded symbols.
22476 exclude_expsyms=$lt_exclude_expsyms
22477
22478 # Symbols that must always be exported.
22479 include_expsyms=$lt_include_expsyms
22480
22481 # Commands necessary for linking programs (against libraries) with templates.
22482 prelink_cmds=$lt_prelink_cmds
22483
22484 # Commands necessary for finishing linking programs.
22485 postlink_cmds=$lt_postlink_cmds
22486
22487 # Specify filename containing input files.
22488 file_list_spec=$lt_file_list_spec
22489
22490 # How to hardcode a shared library path into an executable.
22491 hardcode_action=$hardcode_action
22492
22493 # ### END LIBTOOL CONFIG
22494
22495 _LT_EOF
22496
22497 cat <<'_LT_EOF' >> "$cfgfile"
22498
22499 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22500
22501 # func_munge_path_list VARIABLE PATH
22502 # -----------------------------------
22503 # VARIABLE is name of variable containing _space_ separated list of
22504 # directories to be munged by the contents of PATH, which is string
22505 # having a format:
22506 # "DIR[:DIR]:"
22507 # string "DIR[ DIR]" will be prepended to VARIABLE
22508 # ":DIR[:DIR]"
22509 # string "DIR[ DIR]" will be appended to VARIABLE
22510 # "DIRP[:DIRP]::[DIRA:]DIRA"
22511 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22512 # "DIRA[ DIRA]" will be appended to VARIABLE
22513 # "DIR[:DIR]"
22514 # VARIABLE will be replaced by "DIR[ DIR]"
22515 func_munge_path_list ()
22516 {
22517 case x$2 in
22518 x)
22519 ;;
22520 *:)
22521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22522 ;;
22523 x:*)
22524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22525 ;;
22526 *::*)
22527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22529 ;;
22530 *)
22531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22532 ;;
22533 esac
22534 }
22535
22536
22537 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22538 func_cc_basename ()
22539 {
22540 for cc_temp in $*""; do
22541 case $cc_temp in
22542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22544 \-*) ;;
22545 *) break;;
22546 esac
22547 done
22548 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22549 }
22550
22551
22552 # ### END FUNCTIONS SHARED WITH CONFIGURE
22553
22554 _LT_EOF
22555
22556 case $host_os in
22557 aix3*)
22558 cat <<\_LT_EOF >> "$cfgfile"
22559 # AIX sometimes has problems with the GCC collect2 program. For some
22560 # reason, if we set the COLLECT_NAMES environment variable, the problems
22561 # vanish in a puff of smoke.
22562 if test set != "${COLLECT_NAMES+set}"; then
22563 COLLECT_NAMES=
22564 export COLLECT_NAMES
22565 fi
22566 _LT_EOF
22567 ;;
22568 esac
22569
22570
22571
22572 ltmain=$ac_aux_dir/ltmain.sh
22573
22574
22575 # We use sed instead of cat because bash on DJGPP gets confused if
22576 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22577 # text mode, it properly converts lines to CR/LF. This bash problem
22578 # is reportedly fixed, but why not run on old versions too?
22579 $SED '$q' "$ltmain" >> "$cfgfile" \
22580 || (rm -f "$cfgfile"; exit 1)
22581
22582 mv -f "$cfgfile" "$ofile" ||
22583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22584 chmod +x "$ofile"
22585
22586 ;;
22587
22588 esac
22589 done # for ac_tag
22590
22591
22592 as_fn_exit 0
22593 _ACEOF
22594 ac_clean_files=$ac_clean_files_save
22595
22596 test $ac_write_fail = 0 ||
22597 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22598
22599
22600 # configure is writing to config.log, and then calls config.status.
22601 # config.status does its own redirection, appending to config.log.
22602 # Unfortunately, on DOS this fails, as config.log is still kept open
22603 # by configure, so config.status won't be able to write to it; its
22604 # output is simply discarded. So we exec the FD to /dev/null,
22605 # effectively closing config.log, so it can be properly (re)opened and
22606 # appended to by config.status. When coming back to configure, we
22607 # need to make the FD available again.
22608 if test "$no_create" != yes; then
22609 ac_cs_success=:
22610 ac_config_status_args=
22611 test "$silent" = yes &&
22612 ac_config_status_args="$ac_config_status_args --quiet"
22613 exec 5>/dev/null
22614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22615 exec 5>>config.log
22616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22617 # would make configure fail if this is the last instruction.
22618 $ac_cs_success || as_fn_exit 1
22619 fi
22620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22622 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22623 fi
22624
22625
22626