configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libICE 1.1.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/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/libice/-/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 as_awk_strverscmp='
602 # Use only awk features that work with 7th edition Unix awk (1978).
603 # My, what an old awk you have, Mr. Solaris!
604 END {
605 while (length(v1) && length(v2)) {
606 # Set d1 to be the next thing to compare from v1, and likewise for d2.
607 # Normally this is a single character, but if v1 and v2 contain digits,
608 # compare them as integers and fractions as strverscmp does.
609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610 # Split v1 and v2 into their leading digit string components d1 and d2,
611 # and advance v1 and v2 past the leading digit strings.
612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616 if (d1 ~ /^0/) {
617 if (d2 ~ /^0/) {
618 # Compare two fractions.
619 while (d1 ~ /^0/ && d2 ~ /^0/) {
620 d1 = substr(d1, 2); len1--
621 d2 = substr(d2, 2); len2--
622 }
623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624 # The two components differ in length, and the common prefix
625 # contains only leading zeros. Consider the longer to be less.
626 d1 = -len1
627 d2 = -len2
628 } else {
629 # Otherwise, compare as strings.
630 d1 = "x" d1
631 d2 = "x" d2
632 }
633 } else {
634 # A fraction is less than an integer.
635 exit 1
636 }
637 } else {
638 if (d2 ~ /^0/) {
639 # An integer is greater than a fraction.
640 exit 2
641 } else {
642 # Compare two integers.
643 d1 += 0
644 d2 += 0
645 }
646 }
647 } else {
648 # The normal case, without worrying about digits.
649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651 }
652 if (d1 < d2) exit 1
653 if (d1 > d2) exit 2
654 }
655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656 # which mishandles some comparisons of empty strings to integers.
657 if (length(v2)) exit 1
658 if (length(v1)) exit 2
659 }
660 '
661
662 test -n "$DJDIR" || exec 7<&0 </dev/null
663 exec 6>&1
664
665 # Name of the host.
666 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667 # so uname gets run too.
668 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670 #
671 # Initializations.
672 #
673 ac_default_prefix=/usr/local
674 ac_clean_files=
675 ac_config_libobj_dir=.
676 LIBOBJS=
677 cross_compiling=no
678 subdirs=
679 MFLAGS=
680 MAKEFLAGS=
681
682 # Identity of this package.
683 PACKAGE_NAME='libICE'
684 PACKAGE_TARNAME='libICE'
685 PACKAGE_VERSION='1.1.1'
686 PACKAGE_STRING='libICE 1.1.1'
687 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libice/-/issues'
688 PACKAGE_URL=''
689
690 ac_unique_file="Makefile.am"
691 # Factoring default headers for most tests.
692 ac_includes_default="\
693 #include <stddef.h>
694 #ifdef HAVE_STDIO_H
695 # include <stdio.h>
696 #endif
697 #ifdef HAVE_STDLIB_H
698 # include <stdlib.h>
699 #endif
700 #ifdef HAVE_STRING_H
701 # include <string.h>
702 #endif
703 #ifdef HAVE_INTTYPES_H
704 # include <inttypes.h>
705 #endif
706 #ifdef HAVE_STDINT_H
707 # include <stdint.h>
708 #endif
709 #ifdef HAVE_STRINGS_H
710 # include <strings.h>
711 #endif
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef HAVE_UNISTD_H
719 # include <unistd.h>
720 #endif"
721
722 ac_header_c_list=
723 ac_subst_vars='am__EXEEXT_FALSE
724 am__EXEEXT_TRUE
725 LTLIBOBJS
726 LIBOBJS
727 MAKE_LINT_LIB_FALSE
728 MAKE_LINT_LIB_TRUE
729 LINTLIB
730 LINT_FALSE
731 LINT_TRUE
732 LINT_FLAGS
733 LINT
734 LIBBSD_LIBS
735 LIBBSD_CFLAGS
736 ICE_LIBS
737 ICE_CFLAGS
738 HAVE_STYLESHEETS_FALSE
739 HAVE_STYLESHEETS_TRUE
740 XSL_STYLESHEET
741 STYLESHEET_SRCDIR
742 XORG_SGML_PATH
743 HAVE_XSLTPROC_FALSE
744 HAVE_XSLTPROC_TRUE
745 XSLTPROC
746 HAVE_FOP_FALSE
747 HAVE_FOP_TRUE
748 FOP
749 HAVE_XMLTO_FALSE
750 HAVE_XMLTO_TRUE
751 HAVE_XMLTO_TEXT_FALSE
752 HAVE_XMLTO_TEXT_TRUE
753 XMLTO
754 ENABLE_SPECS_FALSE
755 ENABLE_SPECS_TRUE
756 ENABLE_DOCS_FALSE
757 ENABLE_DOCS_TRUE
758 MAN_SUBSTS
759 XORG_MAN_PAGE
760 ADMIN_MAN_DIR
761 DRIVER_MAN_DIR
762 MISC_MAN_DIR
763 FILE_MAN_DIR
764 LIB_MAN_DIR
765 APP_MAN_DIR
766 ADMIN_MAN_SUFFIX
767 DRIVER_MAN_SUFFIX
768 MISC_MAN_SUFFIX
769 FILE_MAN_SUFFIX
770 LIB_MAN_SUFFIX
771 APP_MAN_SUFFIX
772 INSTALL_CMD
773 PKG_CONFIG_LIBDIR
774 PKG_CONFIG_PATH
775 PKG_CONFIG
776 CHANGELOG_CMD
777 STRICT_CFLAGS
778 CWARNFLAGS
779 BASE_CFLAGS
780 LT_SYS_LIBRARY_PATH
781 OTOOL64
782 OTOOL
783 LIPO
784 NMEDIT
785 DSYMUTIL
786 MANIFEST_TOOL
787 RANLIB
788 ac_ct_AR
789 AR
790 DLLTOOL
791 OBJDUMP
792 FILECMD
793 LN_S
794 NM
795 ac_ct_DUMPBIN
796 DUMPBIN
797 LD
798 FGREP
799 EGREP
800 GREP
801 SED
802 host_os
803 host_vendor
804 host_cpu
805 host
806 build_os
807 build_vendor
808 build_cpu
809 build
810 LIBTOOL
811 AM_BACKSLASH
812 AM_DEFAULT_VERBOSITY
813 AM_DEFAULT_V
814 AM_V
815 CSCOPE
816 ETAGS
817 CTAGS
818 am__fastdepCC_FALSE
819 am__fastdepCC_TRUE
820 CCDEPMODE
821 am__nodep
822 AMDEPBACKSLASH
823 AMDEP_FALSE
824 AMDEP_TRUE
825 am__include
826 DEPDIR
827 am__untar
828 am__tar
829 AMTAR
830 am__leading_dot
831 SET_MAKE
832 AWK
833 mkdir_p
834 MKDIR_P
835 INSTALL_STRIP_PROGRAM
836 STRIP
837 install_sh
838 MAKEINFO
839 AUTOHEADER
840 AUTOMAKE
841 AUTOCONF
842 ACLOCAL
843 VERSION
844 PACKAGE
845 CYGPATH_W
846 am__isrc
847 INSTALL_DATA
848 INSTALL_SCRIPT
849 INSTALL_PROGRAM
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 runstatedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL
896 am__quote'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_dependency_tracking
901 enable_silent_rules
902 enable_shared
903 enable_static
904 with_pic
905 enable_fast_install
906 with_aix_soname
907 with_gnu_ld
908 with_sysroot
909 enable_libtool_lock
910 enable_selective_werror
911 enable_strict_compilation
912 enable_docs
913 enable_specs
914 with_xmlto
915 with_fop
916 with_xsltproc
917 enable_largefile
918 enable_unix_transport
919 enable_tcp_transport
920 enable_ipv6
921 enable_local_transport
922 with_lint
923 enable_lint_library
924 '
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
928 CC
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
933 LT_SYS_LIBRARY_PATH
934 PKG_CONFIG
935 PKG_CONFIG_PATH
936 PKG_CONFIG_LIBDIR
937 XMLTO
938 FOP
939 XSLTPROC
940 ICE_CFLAGS
941 ICE_LIBS
942 LIBBSD_CFLAGS
943 LIBBSD_LIBS
944 LINT
945 LINT_FLAGS'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
969
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 runstatedir='${localstatedir}/run'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
996
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1000 do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1006 fi
1007
1008 case $ac_option in
1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *=) ac_optarg= ;;
1011 *) ac_optarg=yes ;;
1012 esac
1013
1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
1017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1042
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1065
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1070
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1075
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -runstatedir | --runstatedir | --runstatedi | --runstated \
1236 | --runstate | --runstat | --runsta | --runst | --runs \
1237 | --run | --ru | --r)
1238 ac_prev=runstatedir ;;
1239 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1240 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1241 | --run=* | --ru=* | --r=*)
1242 runstatedir=$ac_optarg ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: \`$ac_useropt'"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1297 *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=\$ac_optarg ;;
1304
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: \`$ac_useropt'"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=no ;;
1320
1321 --x)
1322 # Obsolete; use --with-x.
1323 with_x=yes ;;
1324
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1331
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1338
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1341 ;;
1342
1343 *=*)
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1349 esac
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1352
1353 *)
1354 # FIXME: should be removed in autoconf 3.0.
1355 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 ;;
1360
1361 esac
1362 done
1363
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1367 fi
1368
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1371 no) ;;
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1374 esac
1375 fi
1376
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir runstatedir
1382 do
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1385 case $ac_val in
1386 */ )
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1389 esac
1390 # Be sure to have absolute directory names.
1391 case $ac_val in
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1394 esac
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1396 done
1397
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1401 build=$build_alias
1402 host=$host_alias
1403 target=$target_alias
1404
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1411 fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 printf "%s\n" X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)$/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\).*/{
1451 s//\1/
1452 q
1453 }
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1458 fi
1459 else
1460 ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures libICE 1.1.1 to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/libICE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548 _ACEOF
1549
1550 cat <<\_ACEOF
1551
1552 Program names:
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556
1557 System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 _ACEOF
1561 fi
1562
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of libICE 1.1.1:";;
1566 esac
1567 cat <<\_ACEOF
1568
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-dependency-tracking
1574 do not reject slow dependency extractors
1575 --disable-dependency-tracking
1576 speeds up one-time build
1577 --enable-silent-rules less verbose build output (undo: "make V=1")
1578 --disable-silent-rules verbose build output (undo: "make V=0")
1579 --enable-shared[=PKGS] build shared libraries [default=yes]
1580 --enable-static[=PKGS] build static libraries [default=yes]
1581 --enable-fast-install[=PKGS]
1582 optimize for fast installation [default=yes]
1583 --disable-libtool-lock avoid locking (might break parallel builds)
1584 --disable-selective-werror
1585 Turn off selective compiler errors. (default:
1586 enabled)
1587 --enable-strict-compilation
1588 Enable all warnings from compiler and make them
1589 errors (default: disabled)
1590 --enable-docs Enable building the documentation (default: yes)
1591 --enable-specs Enable building the specs (default: yes)
1592 --disable-largefile omit support for large files
1593 --enable-unix-transport Enable UNIX domain socket transport
1594 --enable-tcp-transport Enable TCP socket transport
1595 --enable-ipv6 Enable IPv6 support
1596 --enable-local-transport
1597 Enable os-specific local transport
1598 --enable-lint-library Create lint library (default: disabled)
1599
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-aix-soname=aix|svr4|both
1606 shared library versioning (aka "SONAME") variant to
1607 provide on AIX, [default=aix].
1608 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1609 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1610 compiler's sysroot if not specified).
1611 --with-xmlto Use xmlto to regenerate documentation (default:
1612 auto)
1613 --with-fop Use fop to regenerate documentation (default: auto)
1614 --with-xsltproc Use xsltproc for the transformation of XML documents
1615 (default: auto)
1616 --with-lint Use a lint-style source code checker (default:
1617 disabled)
1618
1619 Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1627 LT_SYS_LIBRARY_PATH
1628 User-defined run-time library search path.
1629 PKG_CONFIG path to pkg-config utility
1630 PKG_CONFIG_PATH
1631 directories to add to pkg-config's search path
1632 PKG_CONFIG_LIBDIR
1633 path overriding pkg-config's built-in search path
1634 XMLTO Path to xmlto command
1635 FOP Path to fop command
1636 XSLTPROC Path to xsltproc command
1637 ICE_CFLAGS C compiler flags for ICE, overriding pkg-config
1638 ICE_LIBS linker flags for ICE, overriding pkg-config
1639 LIBBSD_CFLAGS
1640 C compiler flags for LIBBSD, overriding pkg-config
1641 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
1642 LINT Path to a lint-style command
1643 LINT_FLAGS Flags for the lint-style command
1644
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1647
1648 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>.
1649 _ACEOF
1650 ac_status=$?
1651 fi
1652
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for configure.gnu first; this name is used for a wrapper for
1695 # Metaconfig's "Configure" on case-insensitive file systems.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1702 else
1703 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 fi || ac_status=$?
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1706 done
1707 fi
1708
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1711 cat <<\_ACEOF
1712 libICE configure 1.1.1
1713 generated by GNU Autoconf 2.71
1714
1715 Copyright (C) 2021 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718 _ACEOF
1719 exit
1720 fi
1721
1722 ## ------------------------ ##
1723 ## Autoconf initialization. ##
1724 ## ------------------------ ##
1725
1726 # ac_fn_c_try_compile LINENO
1727 # --------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest.beam
1733 if { { ac_try="$ac_compile"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 printf "%s\n" "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext
1752 then :
1753 ac_retval=0
1754 else $as_nop
1755 printf "%s\n" "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_compile
1764
1765 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists and can be compiled using the include files in
1768 # INCLUDES, setting the cache variable VAR accordingly.
1769 ac_fn_c_check_header_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 printf %s "checking for $2... " >&6; }
1774 if eval test \${$3+y}
1775 then :
1776 printf %s "(cached) " >&6
1777 else $as_nop
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"
1784 then :
1785 eval "$3=yes"
1786 else $as_nop
1787 eval "$3=no"
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_header_compile
1797
1798 # ac_fn_c_try_link LINENO
1799 # -----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_link ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 printf "%s\n" "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1818 fi
1819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest$ac_exeext && {
1824 test "$cross_compiling" = yes ||
1825 test -x conftest$ac_exeext
1826 }
1827 then :
1828 ac_retval=0
1829 else $as_nop
1830 printf "%s\n" "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 ac_retval=1
1834 fi
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_link
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 printf %s "checking for $2... " >&6; }
1853 if eval test \${$3+y}
1854 then :
1855 printf %s "(cached) " >&6
1856 else $as_nop
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1861 #define $2 innocuous_$2
1862
1863 /* System header to define __stub macros and hopefully few prototypes,
1864 which can conflict with char $2 (void); below. */
1865
1866 #include <limits.h>
1867 #undef $2
1868
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 (void);
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1882
1883 int
1884 main (void)
1885 {
1886 return $2 ();
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"
1892 then :
1893 eval "$3=yes"
1894 else $as_nop
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1898 conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 printf "%s\n" "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_func
1906
1907 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1908 # ------------------------------------------------------------------
1909 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1910 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1911 ac_fn_check_decl ()
1912 {
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 as_decl_name=`echo $2|sed 's/ *(.*//'`
1915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1916 printf %s "checking whether $as_decl_name is declared... " >&6; }
1917 if eval test \${$3+y}
1918 then :
1919 printf %s "(cached) " >&6
1920 else $as_nop
1921 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1922 eval ac_save_FLAGS=\$$6
1923 as_fn_append $6 " $5"
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 int
1928 main (void)
1929 {
1930 #ifndef $as_decl_name
1931 #ifdef __cplusplus
1932 (void) $as_decl_use;
1933 #else
1934 (void) $as_decl_name;
1935 #endif
1936 #endif
1937
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"
1943 then :
1944 eval "$3=yes"
1945 else $as_nop
1946 eval "$3=no"
1947 fi
1948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1949 eval $6=\$ac_save_FLAGS
1950
1951 fi
1952 eval ac_res=\$$3
1953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 printf "%s\n" "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_check_decl
1958
1959 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1960 # ----------------------------------------------------
1961 # Tries to find if the field MEMBER exists in type AGGR, after including
1962 # INCLUDES, setting cache variable VAR accordingly.
1963 ac_fn_c_check_member ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1967 printf %s "checking for $2.$3... " >&6; }
1968 if eval test \${$4+y}
1969 then :
1970 printf %s "(cached) " >&6
1971 else $as_nop
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $5
1975 int
1976 main (void)
1977 {
1978 static $2 ac_aggr;
1979 if (ac_aggr.$3)
1980 return 0;
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"
1986 then :
1987 eval "$4=yes"
1988 else $as_nop
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $5
1992 int
1993 main (void)
1994 {
1995 static $2 ac_aggr;
1996 if (sizeof ac_aggr.$3)
1997 return 0;
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"
2003 then :
2004 eval "$4=yes"
2005 else $as_nop
2006 eval "$4=no"
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2011 fi
2012 eval ac_res=\$$4
2013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 printf "%s\n" "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_c_check_member
2018
2019 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2020 # -------------------------------------------
2021 # Tests whether TYPE exists after having included INCLUDES, setting cache
2022 # variable VAR accordingly.
2023 ac_fn_c_check_type ()
2024 {
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 printf %s "checking for $2... " >&6; }
2028 if eval test \${$3+y}
2029 then :
2030 printf %s "(cached) " >&6
2031 else $as_nop
2032 eval "$3=no"
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main (void)
2038 {
2039 if (sizeof ($2))
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"
2046 then :
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $4
2050 int
2051 main (void)
2052 {
2053 if (sizeof (($2)))
2054 return 0;
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"
2060 then :
2061
2062 else $as_nop
2063 eval "$3=yes"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 printf "%s\n" "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_type
2075 ac_configure_args_raw=
2076 for ac_arg
2077 do
2078 case $ac_arg in
2079 *\'*)
2080 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 esac
2082 as_fn_append ac_configure_args_raw " '$ac_arg'"
2083 done
2084
2085 case $ac_configure_args_raw in
2086 *$as_nl*)
2087 ac_safe_unquote= ;;
2088 *)
2089 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2090 ac_unsafe_a="$ac_unsafe_z#~"
2091 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2092 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2093 esac
2094
2095 cat >config.log <<_ACEOF
2096 This file contains any messages produced by compilers while
2097 running configure, to aid debugging if configure makes a mistake.
2098
2099 It was created by libICE $as_me 1.1.1, which was
2100 generated by GNU Autoconf 2.71. Invocation command line was
2101
2102 $ $0$ac_configure_args_raw
2103
2104 _ACEOF
2105 exec 5>>config.log
2106 {
2107 cat <<_ASUNAME
2108 ## --------- ##
2109 ## Platform. ##
2110 ## --------- ##
2111
2112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120
2121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128
2129 _ASUNAME
2130
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 case $as_dir in #(((
2136 '') as_dir=./ ;;
2137 */) ;;
2138 *) as_dir=$as_dir/ ;;
2139 esac
2140 printf "%s\n" "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167 for ac_arg
2168 do
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 2)
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2192 ;;
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2195 fi
2196 as_fn_append ac_configure_args " '$ac_arg'"
2197 ;;
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Sanitize IFS.
2211 IFS=" "" $as_nl"
2212 # Save into config.log some information that might help in debugging.
2213 {
2214 echo
2215
2216 printf "%s\n" "## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##"
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2221 (
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2244 *)
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246 ;;
2247 esac |
2248 sort
2249 )
2250 echo
2251
2252 printf "%s\n" "## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##"
2255 echo
2256 for ac_var in $ac_subst_vars
2257 do
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 printf "%s\n" "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2265
2266 if test -n "$ac_subst_files"; then
2267 printf "%s\n" "## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##"
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 printf "%s\n" "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2280 fi
2281
2282 if test -s confdefs.h; then
2283 printf "%s\n" "## ----------- ##
2284 ## confdefs.h. ##
2285 ## ----------- ##"
2286 echo
2287 cat confdefs.h
2288 echo
2289 fi
2290 test "$ac_signal" != 0 &&
2291 printf "%s\n" "$as_me: caught signal $ac_signal"
2292 printf "%s\n" "$as_me: exit $exit_status"
2293 } >&5
2294 rm -f core *.core core.conftest.* &&
2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296 exit $exit_status
2297 ' 0
2298 for ac_signal in 1 2 13 15; do
2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2302
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2305
2306 printf "%s\n" "/* confdefs.h */" > confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2311
2312 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2313
2314 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2315
2316 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2321
2322
2323 # Let the site file select an alternate cache file if it wants to.
2324 # Prefer an explicitly selected file to automatically selected ones.
2325 if test -n "$CONFIG_SITE"; then
2326 ac_site_files="$CONFIG_SITE"
2327 elif test "x$prefix" != xNONE; then
2328 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2329 else
2330 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2331 fi
2332
2333 for ac_site_file in $ac_site_files
2334 do
2335 case $ac_site_file in #(
2336 */*) :
2337 ;; #(
2338 *) :
2339 ac_site_file=./$ac_site_file ;;
2340 esac
2341 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2344 sed 's/^/| /' "$ac_site_file" >&5
2345 . "$ac_site_file" \
2346 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $? "failed to load site script $ac_site_file
2349 See \`config.log' for more details" "$LINENO" 5; }
2350 fi
2351 done
2352
2353 if test -r "$cache_file"; then
2354 # Some versions of bash will fail to source /dev/null (special files
2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2359 case $cache_file in
2360 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2361 *) . "./$cache_file";;
2362 esac
2363 fi
2364 else
2365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2367 >$cache_file
2368 fi
2369
2370 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2371 # Test code for whether the C compiler supports C89 (global declarations)
2372 ac_c_conftest_c89_globals='
2373 /* Does the compiler advertise C89 conformance?
2374 Do not test the value of __STDC__, because some compilers set it to 0
2375 while being otherwise adequately conformant. */
2376 #if !defined __STDC__
2377 # error "Compiler does not advertise C89 conformance"
2378 #endif
2379
2380 #include <stddef.h>
2381 #include <stdarg.h>
2382 struct stat;
2383 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2384 struct buf { int x; };
2385 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2386 static char *e (char **p, int i)
2387 {
2388 return p[i];
2389 }
2390 static char *f (char * (*g) (char **, int), char **p, ...)
2391 {
2392 char *s;
2393 va_list v;
2394 va_start (v,p);
2395 s = g (p, va_arg (v,int));
2396 va_end (v);
2397 return s;
2398 }
2399
2400 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2401 function prototypes and stuff, but not \xHH hex character constants.
2402 These do not provoke an error unfortunately, instead are silently treated
2403 as an "x". The following induces an error, until -std is added to get
2404 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2405 array size at least. It is necessary to write \x00 == 0 to get something
2406 that is true only with -std. */
2407 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2408
2409 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2410 inside strings and character constants. */
2411 #define FOO(x) '\''x'\''
2412 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2413
2414 int test (int i, double x);
2415 struct s1 {int (*f) (int a);};
2416 struct s2 {int (*f) (double a);};
2417 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2418 int, int);'
2419
2420 # Test code for whether the C compiler supports C89 (body of main).
2421 ac_c_conftest_c89_main='
2422 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2423 '
2424
2425 # Test code for whether the C compiler supports C99 (global declarations)
2426 ac_c_conftest_c99_globals='
2427 // Does the compiler advertise C99 conformance?
2428 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2429 # error "Compiler does not advertise C99 conformance"
2430 #endif
2431
2432 #include <stdbool.h>
2433 extern int puts (const char *);
2434 extern int printf (const char *, ...);
2435 extern int dprintf (int, const char *, ...);
2436 extern void *malloc (size_t);
2437 extern void free (void *);
2438
2439 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2440 // dprintf is used instead of fprintf to avoid needing to declare
2441 // FILE and stderr.
2442 #define debug(...) dprintf (2, __VA_ARGS__)
2443 #define showlist(...) puts (#__VA_ARGS__)
2444 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2445 static void
2446 test_varargs_macros (void)
2447 {
2448 int x = 1234;
2449 int y = 5678;
2450 debug ("Flag");
2451 debug ("X = %d\n", x);
2452 showlist (The first, second, and third items.);
2453 report (x>y, "x is %d but y is %d", x, y);
2454 }
2455
2456 // Check long long types.
2457 #define BIG64 18446744073709551615ull
2458 #define BIG32 4294967295ul
2459 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2460 #if !BIG_OK
2461 #error "your preprocessor is broken"
2462 #endif
2463 #if BIG_OK
2464 #else
2465 #error "your preprocessor is broken"
2466 #endif
2467 static long long int bignum = -9223372036854775807LL;
2468 static unsigned long long int ubignum = BIG64;
2469
2470 struct incomplete_array
2471 {
2472 int datasize;
2473 double data[];
2474 };
2475
2476 struct named_init {
2477 int number;
2478 const wchar_t *name;
2479 double average;
2480 };
2481
2482 typedef const char *ccp;
2483
2484 static inline int
2485 test_restrict (ccp restrict text)
2486 {
2487 // See if C++-style comments work.
2488 // Iterate through items via the restricted pointer.
2489 // Also check for declarations in for loops.
2490 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2491 continue;
2492 return 0;
2493 }
2494
2495 // Check varargs and va_copy.
2496 static bool
2497 test_varargs (const char *format, ...)
2498 {
2499 va_list args;
2500 va_start (args, format);
2501 va_list args_copy;
2502 va_copy (args_copy, args);
2503
2504 const char *str = "";
2505 int number = 0;
2506 float fnumber = 0;
2507
2508 while (*format)
2509 {
2510 switch (*format++)
2511 {
2512 case '\''s'\'': // string
2513 str = va_arg (args_copy, const char *);
2514 break;
2515 case '\''d'\'': // int
2516 number = va_arg (args_copy, int);
2517 break;
2518 case '\''f'\'': // float
2519 fnumber = va_arg (args_copy, double);
2520 break;
2521 default:
2522 break;
2523 }
2524 }
2525 va_end (args_copy);
2526 va_end (args);
2527
2528 return *str && number && fnumber;
2529 }
2530 '
2531
2532 # Test code for whether the C compiler supports C99 (body of main).
2533 ac_c_conftest_c99_main='
2534 // Check bool.
2535 _Bool success = false;
2536 success |= (argc != 0);
2537
2538 // Check restrict.
2539 if (test_restrict ("String literal") == 0)
2540 success = true;
2541 char *restrict newvar = "Another string";
2542
2543 // Check varargs.
2544 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2545 test_varargs_macros ();
2546
2547 // Check flexible array members.
2548 struct incomplete_array *ia =
2549 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2550 ia->datasize = 10;
2551 for (int i = 0; i < ia->datasize; ++i)
2552 ia->data[i] = i * 1.234;
2553
2554 // Check named initializers.
2555 struct named_init ni = {
2556 .number = 34,
2557 .name = L"Test wide string",
2558 .average = 543.34343,
2559 };
2560
2561 ni.number = 58;
2562
2563 int dynamic_array[ni.number];
2564 dynamic_array[0] = argv[0][0];
2565 dynamic_array[ni.number - 1] = 543;
2566
2567 // work around unused variable warnings
2568 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2569 || dynamic_array[ni.number - 1] != 543);
2570 '
2571
2572 # Test code for whether the C compiler supports C11 (global declarations)
2573 ac_c_conftest_c11_globals='
2574 // Does the compiler advertise C11 conformance?
2575 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2576 # error "Compiler does not advertise C11 conformance"
2577 #endif
2578
2579 // Check _Alignas.
2580 char _Alignas (double) aligned_as_double;
2581 char _Alignas (0) no_special_alignment;
2582 extern char aligned_as_int;
2583 char _Alignas (0) _Alignas (int) aligned_as_int;
2584
2585 // Check _Alignof.
2586 enum
2587 {
2588 int_alignment = _Alignof (int),
2589 int_array_alignment = _Alignof (int[100]),
2590 char_alignment = _Alignof (char)
2591 };
2592 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2593
2594 // Check _Noreturn.
2595 int _Noreturn does_not_return (void) { for (;;) continue; }
2596
2597 // Check _Static_assert.
2598 struct test_static_assert
2599 {
2600 int x;
2601 _Static_assert (sizeof (int) <= sizeof (long int),
2602 "_Static_assert does not work in struct");
2603 long int y;
2604 };
2605
2606 // Check UTF-8 literals.
2607 #define u8 syntax error!
2608 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2609
2610 // Check duplicate typedefs.
2611 typedef long *long_ptr;
2612 typedef long int *long_ptr;
2613 typedef long_ptr long_ptr;
2614
2615 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2616 struct anonymous
2617 {
2618 union {
2619 struct { int i; int j; };
2620 struct { int k; long int l; } w;
2621 };
2622 int m;
2623 } v1;
2624 '
2625
2626 # Test code for whether the C compiler supports C11 (body of main).
2627 ac_c_conftest_c11_main='
2628 _Static_assert ((offsetof (struct anonymous, i)
2629 == offsetof (struct anonymous, w.k)),
2630 "Anonymous union alignment botch");
2631 v1.i = 2;
2632 v1.w.k = 5;
2633 ok |= v1.i != 5;
2634 '
2635
2636 # Test code for whether the C compiler supports C11 (complete).
2637 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2638 ${ac_c_conftest_c99_globals}
2639 ${ac_c_conftest_c11_globals}
2640
2641 int
2642 main (int argc, char **argv)
2643 {
2644 int ok = 0;
2645 ${ac_c_conftest_c89_main}
2646 ${ac_c_conftest_c99_main}
2647 ${ac_c_conftest_c11_main}
2648 return ok;
2649 }
2650 "
2651
2652 # Test code for whether the C compiler supports C99 (complete).
2653 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2654 ${ac_c_conftest_c99_globals}
2655
2656 int
2657 main (int argc, char **argv)
2658 {
2659 int ok = 0;
2660 ${ac_c_conftest_c89_main}
2661 ${ac_c_conftest_c99_main}
2662 return ok;
2663 }
2664 "
2665
2666 # Test code for whether the C compiler supports C89 (complete).
2667 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2668
2669 int
2670 main (int argc, char **argv)
2671 {
2672 int ok = 0;
2673 ${ac_c_conftest_c89_main}
2674 return ok;
2675 }
2676 "
2677
2678 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2679 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2680 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2681 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2682 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2683 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2684 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2685 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2686 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2687 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2688
2689 # Auxiliary files required by this configure script.
2690 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2691
2692 # Locations in which to look for auxiliary files.
2693 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2694
2695 # Search for a directory containing all of the required auxiliary files,
2696 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2697 # If we don't find one directory that contains all the files we need,
2698 # we report the set of missing files from the *first* directory in
2699 # $ac_aux_dir_candidates and give up.
2700 ac_missing_aux_files=""
2701 ac_first_candidate=:
2702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 as_found=false
2705 for as_dir in $ac_aux_dir_candidates
2706 do
2707 IFS=$as_save_IFS
2708 case $as_dir in #(((
2709 '') as_dir=./ ;;
2710 */) ;;
2711 *) as_dir=$as_dir/ ;;
2712 esac
2713 as_found=:
2714
2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2716 ac_aux_dir_found=yes
2717 ac_install_sh=
2718 for ac_aux in $ac_aux_files
2719 do
2720 # As a special case, if "install-sh" is required, that requirement
2721 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2722 # and $ac_install_sh is set appropriately for whichever one is found.
2723 if test x"$ac_aux" = x"install-sh"
2724 then
2725 if test -f "${as_dir}install-sh"; then
2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2727 ac_install_sh="${as_dir}install-sh -c"
2728 elif test -f "${as_dir}install.sh"; then
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2730 ac_install_sh="${as_dir}install.sh -c"
2731 elif test -f "${as_dir}shtool"; then
2732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2733 ac_install_sh="${as_dir}shtool install -c"
2734 else
2735 ac_aux_dir_found=no
2736 if $ac_first_candidate; then
2737 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2738 else
2739 break
2740 fi
2741 fi
2742 else
2743 if test -f "${as_dir}${ac_aux}"; then
2744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2745 else
2746 ac_aux_dir_found=no
2747 if $ac_first_candidate; then
2748 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2749 else
2750 break
2751 fi
2752 fi
2753 fi
2754 done
2755 if test "$ac_aux_dir_found" = yes; then
2756 ac_aux_dir="$as_dir"
2757 break
2758 fi
2759 ac_first_candidate=false
2760
2761 as_found=false
2762 done
2763 IFS=$as_save_IFS
2764 if $as_found
2765 then :
2766
2767 else $as_nop
2768 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2769 fi
2770
2771
2772 # These three variables are undocumented and unsupported,
2773 # and are intended to be withdrawn in a future Autoconf release.
2774 # They can cause serious problems if a builder's source tree is in a directory
2775 # whose full name contains unusual characters.
2776 if test -f "${ac_aux_dir}config.guess"; then
2777 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2778 fi
2779 if test -f "${ac_aux_dir}config.sub"; then
2780 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2781 fi
2782 if test -f "$ac_aux_dir/configure"; then
2783 ac_configure="$SHELL ${ac_aux_dir}configure"
2784 fi
2785
2786 # Check that the precious variables saved in the cache have kept the same
2787 # value.
2788 ac_cache_corrupted=false
2789 for ac_var in $ac_precious_vars; do
2790 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2791 eval ac_new_set=\$ac_env_${ac_var}_set
2792 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2793 eval ac_new_val=\$ac_env_${ac_var}_value
2794 case $ac_old_set,$ac_new_set in
2795 set,)
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2797 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2798 ac_cache_corrupted=: ;;
2799 ,set)
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2801 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2802 ac_cache_corrupted=: ;;
2803 ,);;
2804 *)
2805 if test "x$ac_old_val" != "x$ac_new_val"; then
2806 # differences in whitespace do not lead to failure.
2807 ac_old_val_w=`echo x $ac_old_val`
2808 ac_new_val_w=`echo x $ac_new_val`
2809 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2811 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2812 ac_cache_corrupted=:
2813 else
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2815 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2816 eval $ac_var=\$ac_old_val
2817 fi
2818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2819 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2821 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2822 fi;;
2823 esac
2824 # Pass precious variables to config.status.
2825 if test "$ac_new_set" = set; then
2826 case $ac_new_val in
2827 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2828 *) ac_arg=$ac_var=$ac_new_val ;;
2829 esac
2830 case " $ac_configure_args " in
2831 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2832 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2833 esac
2834 fi
2835 done
2836 if $ac_cache_corrupted; then
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2840 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2841 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2842 and start over" "$LINENO" 5
2843 fi
2844 ## -------------------- ##
2845 ## Main body of script. ##
2846 ## -------------------- ##
2847
2848 ac_ext=c
2849 ac_cpp='$CPP $CPPFLAGS'
2850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853
2854
2855
2856 ac_config_headers="$ac_config_headers config.h"
2857
2858
2859 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2860 # Must be called before any macros that run the compiler (like
2861 # AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors.
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873 # Expand $ac_aux_dir to an absolute path.
2874 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 printf %s "checking for $ac_word... " >&6; }
2886 if test ${ac_cv_prog_CC+y}
2887 then :
2888 printf %s "(cached) " >&6
2889 else $as_nop
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 case $as_dir in #(((
2898 '') as_dir=./ ;;
2899 */) ;;
2900 *) as_dir=$as_dir/ ;;
2901 esac
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 printf "%s\n" "$CC" >&6; }
2918 else
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 printf "%s\n" "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$ac_cv_prog_CC"; then
2926 ac_ct_CC=$CC
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928 set dummy gcc; ac_word=$2
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 printf %s "checking for $ac_word... " >&6; }
2931 if test ${ac_cv_prog_ac_ct_CC+y}
2932 then :
2933 printf %s "(cached) " >&6
2934 else $as_nop
2935 if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 case $as_dir in #(((
2943 '') as_dir=./ ;;
2944 */) ;;
2945 *) as_dir=$as_dir/ ;;
2946 esac
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 printf "%s\n" "$ac_ct_CC" >&6; }
2963 else
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 printf "%s\n" "no" >&6; }
2966 fi
2967
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CC=$ac_ct_CC
2978 fi
2979 else
2980 CC="$ac_cv_prog_CC"
2981 fi
2982
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}cc; ac_word=$2
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 printf %s "checking for $ac_word... " >&6; }
2989 if test ${ac_cv_prog_CC+y}
2990 then :
2991 printf %s "(cached) " >&6
2992 else $as_nop
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999 IFS=$as_save_IFS
3000 case $as_dir in #(((
3001 '') as_dir=./ ;;
3002 */) ;;
3003 *) as_dir=$as_dir/ ;;
3004 esac
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}cc"
3008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 printf "%s\n" "$CC" >&6; }
3021 else
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 printf "%s\n" "no" >&6; }
3024 fi
3025
3026
3027 fi
3028 fi
3029 if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 printf %s "checking for $ac_word... " >&6; }
3034 if test ${ac_cv_prog_CC+y}
3035 then :
3036 printf %s "(cached) " >&6
3037 else $as_nop
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 ac_prog_rejected=no
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 case $as_dir in #(((
3047 '') as_dir=./ ;;
3048 */) ;;
3049 *) as_dir=$as_dir/ ;;
3050 esac
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3053 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054 ac_prog_rejected=yes
3055 continue
3056 fi
3057 ac_cv_prog_CC="cc"
3058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3068 shift
3069 if test $# != 0; then
3070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3073 shift
3074 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3075 fi
3076 fi
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 printf "%s\n" "$CC" >&6; }
3083 else
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 printf "%s\n" "no" >&6; }
3086 fi
3087
3088
3089 fi
3090 if test -z "$CC"; then
3091 if test -n "$ac_tool_prefix"; then
3092 for ac_prog in cl.exe
3093 do
3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 printf %s "checking for $ac_word... " >&6; }
3098 if test ${ac_cv_prog_CC+y}
3099 then :
3100 printf %s "(cached) " >&6
3101 else $as_nop
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 case $as_dir in #(((
3110 '') as_dir=./ ;;
3111 */) ;;
3112 *) as_dir=$as_dir/ ;;
3113 esac
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3116 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3118 break 2
3119 fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 printf "%s\n" "$CC" >&6; }
3130 else
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 printf "%s\n" "no" >&6; }
3133 fi
3134
3135
3136 test -n "$CC" && break
3137 done
3138 fi
3139 if test -z "$CC"; then
3140 ac_ct_CC=$CC
3141 for ac_prog in cl.exe
3142 do
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 printf %s "checking for $ac_word... " >&6; }
3147 if test ${ac_cv_prog_ac_ct_CC+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else $as_nop
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_CC="$ac_prog"
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176 if test -n "$ac_ct_CC"; then
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178 printf "%s\n" "$ac_ct_CC" >&6; }
3179 else
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 printf "%s\n" "no" >&6; }
3182 fi
3183
3184
3185 test -n "$ac_ct_CC" && break
3186 done
3187
3188 if test "x$ac_ct_CC" = x; then
3189 CC=""
3190 else
3191 case $cross_compiling:$ac_tool_warned in
3192 yes:)
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3196 esac
3197 CC=$ac_ct_CC
3198 fi
3199 fi
3200
3201 fi
3202 if test -z "$CC"; then
3203 if test -n "$ac_tool_prefix"; then
3204 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3205 set dummy ${ac_tool_prefix}clang; ac_word=$2
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 printf %s "checking for $ac_word... " >&6; }
3208 if test ${ac_cv_prog_CC+y}
3209 then :
3210 printf %s "(cached) " >&6
3211 else $as_nop
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 case $as_dir in #(((
3220 '') as_dir=./ ;;
3221 */) ;;
3222 *) as_dir=$as_dir/ ;;
3223 esac
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="${ac_tool_prefix}clang"
3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 printf "%s\n" "$CC" >&6; }
3240 else
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 printf "%s\n" "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_CC"; then
3248 ac_ct_CC=$CC
3249 # Extract the first word of "clang", so it can be a program name with args.
3250 set dummy clang; ac_word=$2
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 printf %s "checking for $ac_word... " >&6; }
3253 if test ${ac_cv_prog_ac_ct_CC+y}
3254 then :
3255 printf %s "(cached) " >&6
3256 else $as_nop
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 case $as_dir in #(((
3265 '') as_dir=./ ;;
3266 */) ;;
3267 *) as_dir=$as_dir/ ;;
3268 esac
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_ac_ct_CC="clang"
3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3282 if test -n "$ac_ct_CC"; then
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3284 printf "%s\n" "$ac_ct_CC" >&6; }
3285 else
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 printf "%s\n" "no" >&6; }
3288 fi
3289
3290 if test "x$ac_ct_CC" = x; then
3291 CC=""
3292 else
3293 case $cross_compiling:$ac_tool_warned in
3294 yes:)
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297 ac_tool_warned=yes ;;
3298 esac
3299 CC=$ac_ct_CC
3300 fi
3301 else
3302 CC="$ac_cv_prog_CC"
3303 fi
3304
3305 fi
3306
3307
3308 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error $? "no acceptable C compiler found in \$PATH
3311 See \`config.log' for more details" "$LINENO" 5; }
3312
3313 # Provide some information about the compiler.
3314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3315 set X $ac_compile
3316 ac_compiler=$2
3317 for ac_option in --version -v -V -qversion -version; do
3318 { { ac_try="$ac_compiler $ac_option >&5"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 printf "%s\n" "$ac_try_echo"; } >&5
3325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3326 ac_status=$?
3327 if test -s conftest.err; then
3328 sed '10a\
3329 ... rest of stderr output deleted ...
3330 10q' conftest.err >conftest.er1
3331 cat conftest.er1 >&5
3332 fi
3333 rm -f conftest.er1 conftest.err
3334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 done
3337
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3340
3341 int
3342 main (void)
3343 {
3344
3345 ;
3346 return 0;
3347 }
3348 _ACEOF
3349 ac_clean_files_save=$ac_clean_files
3350 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3351 # Try to create an executable without -o first, disregard a.out.
3352 # It will help us diagnose broken compilers, and finding out an intuition
3353 # of exeext.
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3355 printf %s "checking whether the C compiler works... " >&6; }
3356 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3357
3358 # The possible output files:
3359 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3360
3361 ac_rmfiles=
3362 for ac_file in $ac_files
3363 do
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3367 esac
3368 done
3369 rm -f $ac_rmfiles
3370
3371 if { { ac_try="$ac_link_default"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 printf "%s\n" "$ac_try_echo"; } >&5
3378 (eval "$ac_link_default") 2>&5
3379 ac_status=$?
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 then :
3383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3386 # so that the user can short-circuit this test for compilers unknown to
3387 # Autoconf.
3388 for ac_file in $ac_files ''
3389 do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3393 ;;
3394 [ab].out )
3395 # We found the default executable, but exeext='' is most
3396 # certainly right.
3397 break;;
3398 *.* )
3399 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3400 then :; else
3401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 fi
3403 # We set ac_cv_exeext here because the later test for it is not
3404 # safe: cross compilers may not add the suffix if given an `-o'
3405 # argument, so we may need to know it at that point already.
3406 # Even if this section looks crufty: it has the advantage of
3407 # actually working.
3408 break;;
3409 * )
3410 break;;
3411 esac
3412 done
3413 test "$ac_cv_exeext" = no && ac_cv_exeext=
3414
3415 else $as_nop
3416 ac_file=''
3417 fi
3418 if test -z "$ac_file"
3419 then :
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 printf "%s\n" "no" >&6; }
3422 printf "%s\n" "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error 77 "C compiler cannot create executables
3428 See \`config.log' for more details" "$LINENO" 5; }
3429 else $as_nop
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3431 printf "%s\n" "yes" >&6; }
3432 fi
3433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3434 printf %s "checking for C compiler default output file name... " >&6; }
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3436 printf "%s\n" "$ac_file" >&6; }
3437 ac_exeext=$ac_cv_exeext
3438
3439 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3440 ac_clean_files=$ac_clean_files_save
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442 printf %s "checking for suffix of executables... " >&6; }
3443 if { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 printf "%s\n" "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3454 then :
3455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3457 # work properly (i.e., refer to `conftest.exe'), while it won't with
3458 # `rm'.
3459 for ac_file in conftest.exe conftest conftest.*; do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464 break;;
3465 * ) break;;
3466 esac
3467 done
3468 else $as_nop
3469 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 rm -f conftest conftest$ac_cv_exeext
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3476 printf "%s\n" "$ac_cv_exeext" >&6; }
3477
3478 rm -f conftest.$ac_ext
3479 EXEEXT=$ac_cv_exeext
3480 ac_exeext=$EXEEXT
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdio.h>
3484 int
3485 main (void)
3486 {
3487 FILE *f = fopen ("conftest.out", "w");
3488 return ferror (f) || fclose (f) != 0;
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files="$ac_clean_files conftest.out"
3495 # Check that the compiler produces executables we can run. If not, either
3496 # the compiler is broken, or we cross compile.
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3498 printf %s "checking whether we are cross compiling... " >&6; }
3499 if test "$cross_compiling" != yes; then
3500 { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 printf "%s\n" "$ac_try_echo"; } >&5
3507 (eval "$ac_link") 2>&5
3508 ac_status=$?
3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }
3511 if { ac_try='./conftest$ac_cv_exeext'
3512 { { case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517 printf "%s\n" "$ac_try_echo"; } >&5
3518 (eval "$ac_try") 2>&5
3519 ac_status=$?
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; }; then
3522 cross_compiling=no
3523 else
3524 if test "$cross_compiling" = maybe; then
3525 cross_compiling=yes
3526 else
3527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error 77 "cannot run C compiled programs.
3530 If you meant to cross compile, use \`--host'.
3531 See \`config.log' for more details" "$LINENO" 5; }
3532 fi
3533 fi
3534 fi
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3536 printf "%s\n" "$cross_compiling" >&6; }
3537
3538 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3539 ac_clean_files=$ac_clean_files_save
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3541 printf %s "checking for suffix of object files... " >&6; }
3542 if test ${ac_cv_objext+y}
3543 then :
3544 printf %s "(cached) " >&6
3545 else $as_nop
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3548
3549 int
3550 main (void)
3551 {
3552
3553 ;
3554 return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.o conftest.obj
3558 if { { ac_try="$ac_compile"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 printf "%s\n" "$ac_try_echo"; } >&5
3565 (eval "$ac_compile") 2>&5
3566 ac_status=$?
3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }
3569 then :
3570 for ac_file in conftest.o conftest.obj conftest.*; do
3571 test -f "$ac_file" || continue;
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575 break;;
3576 esac
3577 done
3578 else $as_nop
3579 printf "%s\n" "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files: cannot compile
3585 See \`config.log' for more details" "$LINENO" 5; }
3586 fi
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 fi
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 printf "%s\n" "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3592 ac_objext=$OBJEXT
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3594 printf %s "checking whether the compiler supports GNU C... " >&6; }
3595 if test ${ac_cv_c_compiler_gnu+y}
3596 then :
3597 printf %s "(cached) " >&6
3598 else $as_nop
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601
3602 int
3603 main (void)
3604 {
3605 #ifndef __GNUC__
3606 choke me
3607 #endif
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"
3614 then :
3615 ac_compiler_gnu=yes
3616 else $as_nop
3617 ac_compiler_gnu=no
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3620 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621
3622 fi
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3624 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626
3627 if test $ac_compiler_gnu = yes; then
3628 GCC=yes
3629 else
3630 GCC=
3631 fi
3632 ac_test_CFLAGS=${CFLAGS+y}
3633 ac_save_CFLAGS=$CFLAGS
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3635 printf %s "checking whether $CC accepts -g... " >&6; }
3636 if test ${ac_cv_prog_cc_g+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else $as_nop
3640 ac_save_c_werror_flag=$ac_c_werror_flag
3641 ac_c_werror_flag=yes
3642 ac_cv_prog_cc_g=no
3643 CFLAGS="-g"
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main (void)
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"
3656 then :
3657 ac_cv_prog_cc_g=yes
3658 else $as_nop
3659 CFLAGS=""
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main (void)
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"
3672 then :
3673
3674 else $as_nop
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3676 CFLAGS="-g"
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679
3680 int
3681 main (void)
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 if ac_fn_c_try_compile "$LINENO"
3689 then :
3690 ac_cv_prog_cc_g=yes
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3693 fi
3694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3697 ac_c_werror_flag=$ac_save_c_werror_flag
3698 fi
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3700 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3701 if test $ac_test_CFLAGS; then
3702 CFLAGS=$ac_save_CFLAGS
3703 elif test $ac_cv_prog_cc_g = yes; then
3704 if test "$GCC" = yes; then
3705 CFLAGS="-g -O2"
3706 else
3707 CFLAGS="-g"
3708 fi
3709 else
3710 if test "$GCC" = yes; then
3711 CFLAGS="-O2"
3712 else
3713 CFLAGS=
3714 fi
3715 fi
3716 ac_prog_cc_stdc=no
3717 if test x$ac_prog_cc_stdc = xno
3718 then :
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3720 printf %s "checking for $CC option to enable C11 features... " >&6; }
3721 if test ${ac_cv_prog_cc_c11+y}
3722 then :
3723 printf %s "(cached) " >&6
3724 else $as_nop
3725 ac_cv_prog_cc_c11=no
3726 ac_save_CC=$CC
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 $ac_c_conftest_c11_program
3730 _ACEOF
3731 for ac_arg in '' -std=gnu11
3732 do
3733 CC="$ac_save_CC $ac_arg"
3734 if ac_fn_c_try_compile "$LINENO"
3735 then :
3736 ac_cv_prog_cc_c11=$ac_arg
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.beam
3739 test "x$ac_cv_prog_cc_c11" != "xno" && break
3740 done
3741 rm -f conftest.$ac_ext
3742 CC=$ac_save_CC
3743 fi
3744
3745 if test "x$ac_cv_prog_cc_c11" = xno
3746 then :
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3748 printf "%s\n" "unsupported" >&6; }
3749 else $as_nop
3750 if test "x$ac_cv_prog_cc_c11" = x
3751 then :
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 printf "%s\n" "none needed" >&6; }
3754 else $as_nop
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3756 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3757 CC="$CC $ac_cv_prog_cc_c11"
3758 fi
3759 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3760 ac_prog_cc_stdc=c11
3761 fi
3762 fi
3763 if test x$ac_prog_cc_stdc = xno
3764 then :
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3766 printf %s "checking for $CC option to enable C99 features... " >&6; }
3767 if test ${ac_cv_prog_cc_c99+y}
3768 then :
3769 printf %s "(cached) " >&6
3770 else $as_nop
3771 ac_cv_prog_cc_c99=no
3772 ac_save_CC=$CC
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 $ac_c_conftest_c99_program
3776 _ACEOF
3777 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3778 do
3779 CC="$ac_save_CC $ac_arg"
3780 if ac_fn_c_try_compile "$LINENO"
3781 then :
3782 ac_cv_prog_cc_c99=$ac_arg
3783 fi
3784 rm -f core conftest.err conftest.$ac_objext conftest.beam
3785 test "x$ac_cv_prog_cc_c99" != "xno" && break
3786 done
3787 rm -f conftest.$ac_ext
3788 CC=$ac_save_CC
3789 fi
3790
3791 if test "x$ac_cv_prog_cc_c99" = xno
3792 then :
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3794 printf "%s\n" "unsupported" >&6; }
3795 else $as_nop
3796 if test "x$ac_cv_prog_cc_c99" = x
3797 then :
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3799 printf "%s\n" "none needed" >&6; }
3800 else $as_nop
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3802 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3803 CC="$CC $ac_cv_prog_cc_c99"
3804 fi
3805 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3806 ac_prog_cc_stdc=c99
3807 fi
3808 fi
3809 if test x$ac_prog_cc_stdc = xno
3810 then :
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3812 printf %s "checking for $CC option to enable C89 features... " >&6; }
3813 if test ${ac_cv_prog_cc_c89+y}
3814 then :
3815 printf %s "(cached) " >&6
3816 else $as_nop
3817 ac_cv_prog_cc_c89=no
3818 ac_save_CC=$CC
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3821 $ac_c_conftest_c89_program
3822 _ACEOF
3823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 do
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"
3827 then :
3828 ac_cv_prog_cc_c89=$ac_arg
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.beam
3831 test "x$ac_cv_prog_cc_c89" != "xno" && break
3832 done
3833 rm -f conftest.$ac_ext
3834 CC=$ac_save_CC
3835 fi
3836
3837 if test "x$ac_cv_prog_cc_c89" = xno
3838 then :
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840 printf "%s\n" "unsupported" >&6; }
3841 else $as_nop
3842 if test "x$ac_cv_prog_cc_c89" = x
3843 then :
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 printf "%s\n" "none needed" >&6; }
3846 else $as_nop
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3849 CC="$CC $ac_cv_prog_cc_c89"
3850 fi
3851 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3852 ac_prog_cc_stdc=c89
3853 fi
3854 fi
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3869 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3870 if test ${am_cv_prog_cc_c_o+y}
3871 then :
3872 printf %s "(cached) " >&6
3873 else $as_nop
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main (void)
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 # Make sure it works both with $CC and with simple cc.
3886 # Following AC_PROG_CC_C_O, we do the test twice because some
3887 # compilers refuse to overwrite an existing .o file with -o,
3888 # though they will create one.
3889 am_cv_prog_cc_c_o=yes
3890 for am_i in 1 2; do
3891 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3892 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } \
3896 && test -f conftest2.$ac_objext; then
3897 : OK
3898 else
3899 am_cv_prog_cc_c_o=no
3900 break
3901 fi
3902 done
3903 rm -f core conftest*
3904 unset am_i
3905 fi
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3907 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3908 if test "$am_cv_prog_cc_c_o" != yes; then
3909 # Losing compiler, so override with the script.
3910 # FIXME: It is wrong to rewrite CC.
3911 # But if we don't then we get into trouble of one sort or another.
3912 # A longer-term fix would be to have automake use am__CC in this case,
3913 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3914 CC="$am_aux_dir/compile $CC"
3915 fi
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921
3922
3923
3924 ac_header= ac_cache=
3925 for ac_item in $ac_header_c_list
3926 do
3927 if test $ac_cache; then
3928 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3929 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3930 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3931 fi
3932 ac_header= ac_cache=
3933 elif test $ac_header; then
3934 ac_cache=$ac_item
3935 else
3936 ac_header=$ac_item
3937 fi
3938 done
3939
3940
3941
3942
3943
3944
3945
3946
3947 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3948 then :
3949
3950 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3951
3952 fi
3953
3954
3955
3956
3957
3958
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3960 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3961 if test ${ac_cv_safe_to_define___extensions__+y}
3962 then :
3963 printf %s "(cached) " >&6
3964 else $as_nop
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967
3968 # define __EXTENSIONS__ 1
3969 $ac_includes_default
3970 int
3971 main (void)
3972 {
3973
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"
3979 then :
3980 ac_cv_safe_to_define___extensions__=yes
3981 else $as_nop
3982 ac_cv_safe_to_define___extensions__=no
3983 fi
3984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3985 fi
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3987 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3988
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3990 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3991 if test ${ac_cv_should_define__xopen_source+y}
3992 then :
3993 printf %s "(cached) " >&6
3994 else $as_nop
3995 ac_cv_should_define__xopen_source=no
3996 if test $ac_cv_header_wchar_h = yes
3997 then :
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 #include <wchar.h>
4002 mbstate_t x;
4003 int
4004 main (void)
4005 {
4006
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"
4012 then :
4013
4014 else $as_nop
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017
4018 #define _XOPEN_SOURCE 500
4019 #include <wchar.h>
4020 mbstate_t x;
4021 int
4022 main (void)
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"
4030 then :
4031 ac_cv_should_define__xopen_source=yes
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4036 fi
4037 fi
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4039 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4040
4041 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4042
4043 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4044
4045 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4046
4047 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4048
4049 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4050
4051 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4052
4053 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4054
4055 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4056
4057 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4058
4059 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4060
4061 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4062
4063 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4064
4065 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4066
4067 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4068
4069 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4070
4071 if test $ac_cv_header_minix_config_h = yes
4072 then :
4073 MINIX=yes
4074 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4075
4076 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4077
4078 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4079
4080 else $as_nop
4081 MINIX=
4082 fi
4083 if test $ac_cv_safe_to_define___extensions__ = yes
4084 then :
4085 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4086
4087 fi
4088 if test $ac_cv_should_define__xopen_source = yes
4089 then :
4090 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4091
4092 fi
4093
4094
4095 # Initialize Automake
4096 am__api_version='1.16'
4097
4098
4099 # Find a good install program. We prefer a C program (faster),
4100 # so one script is as good as another. But avoid the broken or
4101 # incompatible versions:
4102 # SysV /etc/install, /usr/sbin/install
4103 # SunOS /usr/etc/install
4104 # IRIX /sbin/install
4105 # AIX /bin/install
4106 # AmigaOS /C/install, which installs bootblocks on floppy discs
4107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4110 # OS/2's system install, which has a completely different semantic
4111 # ./install, which can be erroneously created by make from ./install.sh.
4112 # Reject install programs that cannot install multiple files.
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4114 printf %s "checking for a BSD-compatible install... " >&6; }
4115 if test -z "$INSTALL"; then
4116 if test ${ac_cv_path_install+y}
4117 then :
4118 printf %s "(cached) " >&6
4119 else $as_nop
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 case $as_dir in #(((
4125 '') as_dir=./ ;;
4126 */) ;;
4127 *) as_dir=$as_dir/ ;;
4128 esac
4129 # Account for fact that we put trailing slashes in our PATH walk.
4130 case $as_dir in #((
4131 ./ | /[cC]/* | \
4132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4133 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4134 /usr/ucb/* ) ;;
4135 *)
4136 # OSF1 and SCO ODT 3.0 have their own names for install.
4137 # Don't use installbsd from OSF since it installs stuff as root
4138 # by default.
4139 for ac_prog in ginstall scoinst install; do
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4142 if test $ac_prog = install &&
4143 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4144 # AIX install. It has an incompatible calling convention.
4145 :
4146 elif test $ac_prog = install &&
4147 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4148 # program-specific install script used by HP pwplus--don't use.
4149 :
4150 else
4151 rm -rf conftest.one conftest.two conftest.dir
4152 echo one > conftest.one
4153 echo two > conftest.two
4154 mkdir conftest.dir
4155 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4156 test -s conftest.one && test -s conftest.two &&
4157 test -s conftest.dir/conftest.one &&
4158 test -s conftest.dir/conftest.two
4159 then
4160 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4161 break 3
4162 fi
4163 fi
4164 fi
4165 done
4166 done
4167 ;;
4168 esac
4169
4170 done
4171 IFS=$as_save_IFS
4172
4173 rm -rf conftest.one conftest.two conftest.dir
4174
4175 fi
4176 if test ${ac_cv_path_install+y}; then
4177 INSTALL=$ac_cv_path_install
4178 else
4179 # As a last resort, use the slow shell script. Don't cache a
4180 # value for INSTALL within a source directory, because that will
4181 # break other packages using the cache if that directory is
4182 # removed, or if the value is a relative name.
4183 INSTALL=$ac_install_sh
4184 fi
4185 fi
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4187 printf "%s\n" "$INSTALL" >&6; }
4188
4189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4190 # It thinks the first close brace ends the variable substitution.
4191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4192
4193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4194
4195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4196
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4198 printf %s "checking whether build environment is sane... " >&6; }
4199 # Reject unsafe characters in $srcdir or the absolute working directory
4200 # name. Accept space and tab only in the latter.
4201 am_lf='
4202 '
4203 case `pwd` in
4204 *[\\\"\#\$\&\'\`$am_lf]*)
4205 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4206 esac
4207 case $srcdir in
4208 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4209 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4210 esac
4211
4212 # Do 'set' in a subshell so we don't clobber the current shell's
4213 # arguments. Must try -L first in case configure is actually a
4214 # symlink; some systems play weird games with the mod time of symlinks
4215 # (eg FreeBSD returns the mod time of the symlink's containing
4216 # directory).
4217 if (
4218 am_has_slept=no
4219 for am_try in 1 2; do
4220 echo "timestamp, slept: $am_has_slept" > conftest.file
4221 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4222 if test "$*" = "X"; then
4223 # -L didn't work.
4224 set X `ls -t "$srcdir/configure" conftest.file`
4225 fi
4226 if test "$*" != "X $srcdir/configure conftest.file" \
4227 && test "$*" != "X conftest.file $srcdir/configure"; then
4228
4229 # If neither matched, then we have a broken ls. This can happen
4230 # if, for instance, CONFIG_SHELL is bash and it inherits a
4231 # broken ls alias from the environment. This has actually
4232 # happened. Such a system could not be considered "sane".
4233 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4234 alias in your environment" "$LINENO" 5
4235 fi
4236 if test "$2" = conftest.file || test $am_try -eq 2; then
4237 break
4238 fi
4239 # Just in case.
4240 sleep 1
4241 am_has_slept=yes
4242 done
4243 test "$2" = conftest.file
4244 )
4245 then
4246 # Ok.
4247 :
4248 else
4249 as_fn_error $? "newly created file is older than distributed files!
4250 Check your system clock" "$LINENO" 5
4251 fi
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4253 printf "%s\n" "yes" >&6; }
4254 # If we didn't sleep, we still need to ensure time stamps of config.status and
4255 # generated files are strictly newer.
4256 am_sleep_pid=
4257 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4258 ( sleep 1 ) &
4259 am_sleep_pid=$!
4260 fi
4261
4262 rm -f conftest.file
4263
4264 test "$program_prefix" != NONE &&
4265 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4266 # Use a double $ so make ignores it.
4267 test "$program_suffix" != NONE &&
4268 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4269 # Double any \ or $.
4270 # By default was `s,x,x', remove it if useless.
4271 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4272 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4273
4274
4275 if test x"${MISSING+set}" != xset; then
4276 MISSING="\${SHELL} '$am_aux_dir/missing'"
4277 fi
4278 # Use eval to expand $SHELL
4279 if eval "$MISSING --is-lightweight"; then
4280 am_missing_run="$MISSING "
4281 else
4282 am_missing_run=
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4284 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4285 fi
4286
4287 if test x"${install_sh+set}" != xset; then
4288 case $am_aux_dir in
4289 *\ * | *\ *)
4290 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4291 *)
4292 install_sh="\${SHELL} $am_aux_dir/install-sh"
4293 esac
4294 fi
4295
4296 # Installed binaries are usually stripped using 'strip' when the user
4297 # run "make install-strip". However 'strip' might not be the right
4298 # tool to use in cross-compilation environments, therefore Automake
4299 # will honor the 'STRIP' environment variable to overrule this program.
4300 if test "$cross_compiling" != no; then
4301 if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}strip; ac_word=$2
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 printf %s "checking for $ac_word... " >&6; }
4306 if test ${ac_cv_prog_STRIP+y}
4307 then :
4308 printf %s "(cached) " >&6
4309 else $as_nop
4310 if test -n "$STRIP"; then
4311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 case $as_dir in #(((
4318 '') as_dir=./ ;;
4319 */) ;;
4320 *) as_dir=$as_dir/ ;;
4321 esac
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 fi
4333 fi
4334 STRIP=$ac_cv_prog_STRIP
4335 if test -n "$STRIP"; then
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4337 printf "%s\n" "$STRIP" >&6; }
4338 else
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 printf "%s\n" "no" >&6; }
4341 fi
4342
4343
4344 fi
4345 if test -z "$ac_cv_prog_STRIP"; then
4346 ac_ct_STRIP=$STRIP
4347 # Extract the first word of "strip", so it can be a program name with args.
4348 set dummy strip; ac_word=$2
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 printf %s "checking for $ac_word... " >&6; }
4351 if test ${ac_cv_prog_ac_ct_STRIP+y}
4352 then :
4353 printf %s "(cached) " >&6
4354 else $as_nop
4355 if test -n "$ac_ct_STRIP"; then
4356 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 case $as_dir in #(((
4363 '') as_dir=./ ;;
4364 */) ;;
4365 *) as_dir=$as_dir/ ;;
4366 esac
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_ac_ct_STRIP="strip"
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4380 if test -n "$ac_ct_STRIP"; then
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4382 printf "%s\n" "$ac_ct_STRIP" >&6; }
4383 else
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 printf "%s\n" "no" >&6; }
4386 fi
4387
4388 if test "x$ac_ct_STRIP" = x; then
4389 STRIP=":"
4390 else
4391 case $cross_compiling:$ac_tool_warned in
4392 yes:)
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395 ac_tool_warned=yes ;;
4396 esac
4397 STRIP=$ac_ct_STRIP
4398 fi
4399 else
4400 STRIP="$ac_cv_prog_STRIP"
4401 fi
4402
4403 fi
4404 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4405
4406
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4408 printf %s "checking for a race-free mkdir -p... " >&6; }
4409 if test -z "$MKDIR_P"; then
4410 if test ${ac_cv_path_mkdir+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else $as_nop
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4416 do
4417 IFS=$as_save_IFS
4418 case $as_dir in #(((
4419 '') as_dir=./ ;;
4420 */) ;;
4421 *) as_dir=$as_dir/ ;;
4422 esac
4423 for ac_prog in mkdir gmkdir; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4426 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4427 'mkdir ('*'coreutils) '* | \
4428 'BusyBox '* | \
4429 'mkdir (fileutils) '4.1*)
4430 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4431 break 3;;
4432 esac
4433 done
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439
4440 test -d ./--version && rmdir ./--version
4441 if test ${ac_cv_path_mkdir+y}; then
4442 MKDIR_P="$ac_cv_path_mkdir -p"
4443 else
4444 # As a last resort, use the slow shell script. Don't cache a
4445 # value for MKDIR_P within a source directory, because that will
4446 # break other packages using the cache if that directory is
4447 # removed, or if the value is a relative name.
4448 MKDIR_P="$ac_install_sh -d"
4449 fi
4450 fi
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4452 printf "%s\n" "$MKDIR_P" >&6; }
4453
4454 for ac_prog in gawk mawk nawk awk
4455 do
4456 # Extract the first word of "$ac_prog", so it can be a program name with args.
4457 set dummy $ac_prog; ac_word=$2
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 printf %s "checking for $ac_word... " >&6; }
4460 if test ${ac_cv_prog_AWK+y}
4461 then :
4462 printf %s "(cached) " >&6
4463 else $as_nop
4464 if test -n "$AWK"; then
4465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470 IFS=$as_save_IFS
4471 case $as_dir in #(((
4472 '') as_dir=./ ;;
4473 */) ;;
4474 *) as_dir=$as_dir/ ;;
4475 esac
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_AWK="$ac_prog"
4479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 AWK=$ac_cv_prog_AWK
4489 if test -n "$AWK"; then
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4491 printf "%s\n" "$AWK" >&6; }
4492 else
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 printf "%s\n" "no" >&6; }
4495 fi
4496
4497
4498 test -n "$AWK" && break
4499 done
4500
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4502 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4503 set x ${MAKE-make}
4504 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4505 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4506 then :
4507 printf %s "(cached) " >&6
4508 else $as_nop
4509 cat >conftest.make <<\_ACEOF
4510 SHELL = /bin/sh
4511 all:
4512 @echo '@@@%%%=$(MAKE)=@@@%%%'
4513 _ACEOF
4514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4516 *@@@%%%=?*=@@@%%%*)
4517 eval ac_cv_prog_make_${ac_make}_set=yes;;
4518 *)
4519 eval ac_cv_prog_make_${ac_make}_set=no;;
4520 esac
4521 rm -f conftest.make
4522 fi
4523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525 printf "%s\n" "yes" >&6; }
4526 SET_MAKE=
4527 else
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 printf "%s\n" "no" >&6; }
4530 SET_MAKE="MAKE=${MAKE-make}"
4531 fi
4532
4533 rm -rf .tst 2>/dev/null
4534 mkdir .tst 2>/dev/null
4535 if test -d .tst; then
4536 am__leading_dot=.
4537 else
4538 am__leading_dot=_
4539 fi
4540 rmdir .tst 2>/dev/null
4541
4542 DEPDIR="${am__leading_dot}deps"
4543
4544 ac_config_commands="$ac_config_commands depfiles"
4545
4546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4547 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4548 cat > confinc.mk << 'END'
4549 am__doit:
4550 @echo this is the am__doit target >confinc.out
4551 .PHONY: am__doit
4552 END
4553 am__include="#"
4554 am__quote=
4555 # BSD make does it like this.
4556 echo '.include "confinc.mk" # ignored' > confmf.BSD
4557 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4558 echo 'include confinc.mk # ignored' > confmf.GNU
4559 _am_result=no
4560 for s in GNU BSD; do
4561 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4562 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }
4566 case $?:`cat confinc.out 2>/dev/null` in #(
4567 '0:this is the am__doit target') :
4568 case $s in #(
4569 BSD) :
4570 am__include='.include' am__quote='"' ;; #(
4571 *) :
4572 am__include='include' am__quote='' ;;
4573 esac ;; #(
4574 *) :
4575 ;;
4576 esac
4577 if test "$am__include" != "#"; then
4578 _am_result="yes ($s style)"
4579 break
4580 fi
4581 done
4582 rm -f confinc.* confmf.*
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4584 printf "%s\n" "${_am_result}" >&6; }
4585
4586 # Check whether --enable-dependency-tracking was given.
4587 if test ${enable_dependency_tracking+y}
4588 then :
4589 enableval=$enable_dependency_tracking;
4590 fi
4591
4592 if test "x$enable_dependency_tracking" != xno; then
4593 am_depcomp="$ac_aux_dir/depcomp"
4594 AMDEPBACKSLASH='\'
4595 am__nodep='_no'
4596 fi
4597 if test "x$enable_dependency_tracking" != xno; then
4598 AMDEP_TRUE=
4599 AMDEP_FALSE='#'
4600 else
4601 AMDEP_TRUE='#'
4602 AMDEP_FALSE=
4603 fi
4604
4605
4606 # Check whether --enable-silent-rules was given.
4607 if test ${enable_silent_rules+y}
4608 then :
4609 enableval=$enable_silent_rules;
4610 fi
4611
4612 case $enable_silent_rules in # (((
4613 yes) AM_DEFAULT_VERBOSITY=0;;
4614 no) AM_DEFAULT_VERBOSITY=1;;
4615 *) AM_DEFAULT_VERBOSITY=1;;
4616 esac
4617 am_make=${MAKE-make}
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4619 printf %s "checking whether $am_make supports nested variables... " >&6; }
4620 if test ${am_cv_make_support_nested_variables+y}
4621 then :
4622 printf %s "(cached) " >&6
4623 else $as_nop
4624 if printf "%s\n" 'TRUE=$(BAR$(V))
4625 BAR0=false
4626 BAR1=true
4627 V=1
4628 am__doit:
4629 @$(TRUE)
4630 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4631 am_cv_make_support_nested_variables=yes
4632 else
4633 am_cv_make_support_nested_variables=no
4634 fi
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4637 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4638 if test $am_cv_make_support_nested_variables = yes; then
4639 AM_V='$(V)'
4640 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4641 else
4642 AM_V=$AM_DEFAULT_VERBOSITY
4643 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4644 fi
4645 AM_BACKSLASH='\'
4646
4647 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4648 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4649 # is not polluted with repeated "-I."
4650 am__isrc=' -I$(srcdir)'
4651 # test to see if srcdir already configured
4652 if test -f $srcdir/config.status; then
4653 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4654 fi
4655 fi
4656
4657 # test whether we have cygpath
4658 if test -z "$CYGPATH_W"; then
4659 if (cygpath --version) >/dev/null 2>/dev/null; then
4660 CYGPATH_W='cygpath -w'
4661 else
4662 CYGPATH_W=echo
4663 fi
4664 fi
4665
4666
4667 # Define the identity of the package.
4668 PACKAGE='libICE'
4669 VERSION='1.1.1'
4670
4671
4672 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4673
4674
4675 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4676
4677 # Some tools Automake needs.
4678
4679 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4680
4681
4682 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4683
4684
4685 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4686
4687
4688 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4689
4690
4691 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4692
4693 # For better backward compatibility. To be removed once Automake 1.9.x
4694 # dies out for good. For more background, see:
4695 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4696 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4697 mkdir_p='$(MKDIR_P)'
4698
4699 # We need awk for the "check" target (and possibly the TAP driver). The
4700 # system "awk" is bad on some platforms.
4701 # Always define AMTAR for backward compatibility. Yes, it's still used
4702 # in the wild :-( We should find a proper way to deprecate it ...
4703 AMTAR='$${TAR-tar}'
4704
4705
4706 # We'll loop over all known methods to create a tar archive until one works.
4707 _am_tools='gnutar pax cpio none'
4708
4709 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4710
4711
4712
4713
4714
4715 depcc="$CC" am_compiler_list=
4716
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4718 printf %s "checking dependency style of $depcc... " >&6; }
4719 if test ${am_cv_CC_dependencies_compiler_type+y}
4720 then :
4721 printf %s "(cached) " >&6
4722 else $as_nop
4723 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4724 # We make a subdir and do the tests there. Otherwise we can end up
4725 # making bogus files that we don't know about and never remove. For
4726 # instance it was reported that on HP-UX the gcc test will end up
4727 # making a dummy file named 'D' -- because '-MD' means "put the output
4728 # in D".
4729 rm -rf conftest.dir
4730 mkdir conftest.dir
4731 # Copy depcomp to subdir because otherwise we won't find it if we're
4732 # using a relative directory.
4733 cp "$am_depcomp" conftest.dir
4734 cd conftest.dir
4735 # We will build objects and dependencies in a subdirectory because
4736 # it helps to detect inapplicable dependency modes. For instance
4737 # both Tru64's cc and ICC support -MD to output dependencies as a
4738 # side effect of compilation, but ICC will put the dependencies in
4739 # the current directory while Tru64 will put them in the object
4740 # directory.
4741 mkdir sub
4742
4743 am_cv_CC_dependencies_compiler_type=none
4744 if test "$am_compiler_list" = ""; then
4745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4746 fi
4747 am__universal=false
4748 case " $depcc " in #(
4749 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4750 esac
4751
4752 for depmode in $am_compiler_list; do
4753 # Setup a source with many dependencies, because some compilers
4754 # like to wrap large dependency lists on column 80 (with \), and
4755 # we should not choose a depcomp mode which is confused by this.
4756 #
4757 # We need to recreate these files for each test, as the compiler may
4758 # overwrite some of them when testing with obscure command lines.
4759 # This happens at least with the AIX C compiler.
4760 : > sub/conftest.c
4761 for i in 1 2 3 4 5 6; do
4762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4763 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4764 # Solaris 10 /bin/sh.
4765 echo '/* dummy */' > sub/conftst$i.h
4766 done
4767 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4768
4769 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4770 # mode. It turns out that the SunPro C++ compiler does not properly
4771 # handle '-M -o', and we need to detect this. Also, some Intel
4772 # versions had trouble with output in subdirs.
4773 am__obj=sub/conftest.${OBJEXT-o}
4774 am__minus_obj="-o $am__obj"
4775 case $depmode in
4776 gcc)
4777 # This depmode causes a compiler race in universal mode.
4778 test "$am__universal" = false || continue
4779 ;;
4780 nosideeffect)
4781 # After this tag, mechanisms are not by side-effect, so they'll
4782 # only be used when explicitly requested.
4783 if test "x$enable_dependency_tracking" = xyes; then
4784 continue
4785 else
4786 break
4787 fi
4788 ;;
4789 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4790 # This compiler won't grok '-c -o', but also, the minuso test has
4791 # not run yet. These depmodes are late enough in the game, and
4792 # so weak that their functioning should not be impacted.
4793 am__obj=conftest.${OBJEXT-o}
4794 am__minus_obj=
4795 ;;
4796 none) break ;;
4797 esac
4798 if depmode=$depmode \
4799 source=sub/conftest.c object=$am__obj \
4800 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4801 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4802 >/dev/null 2>conftest.err &&
4803 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4804 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4805 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4806 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4807 # icc doesn't choke on unknown options, it will just issue warnings
4808 # or remarks (even with -Werror). So we grep stderr for any message
4809 # that says an option was ignored or not supported.
4810 # When given -MP, icc 7.0 and 7.1 complain thusly:
4811 # icc: Command line warning: ignoring option '-M'; no argument required
4812 # The diagnosis changed in icc 8.0:
4813 # icc: Command line remark: option '-MP' not supported
4814 if (grep 'ignoring option' conftest.err ||
4815 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4816 am_cv_CC_dependencies_compiler_type=$depmode
4817 break
4818 fi
4819 fi
4820 done
4821
4822 cd ..
4823 rm -rf conftest.dir
4824 else
4825 am_cv_CC_dependencies_compiler_type=none
4826 fi
4827
4828 fi
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4830 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4831 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4832
4833 if
4834 test "x$enable_dependency_tracking" != xno \
4835 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4836 am__fastdepCC_TRUE=
4837 am__fastdepCC_FALSE='#'
4838 else
4839 am__fastdepCC_TRUE='#'
4840 am__fastdepCC_FALSE=
4841 fi
4842
4843
4844 # Variables for tags utilities; see am/tags.am
4845 if test -z "$CTAGS"; then
4846 CTAGS=ctags
4847 fi
4848
4849 if test -z "$ETAGS"; then
4850 ETAGS=etags
4851 fi
4852
4853 if test -z "$CSCOPE"; then
4854 CSCOPE=cscope
4855 fi
4856
4857
4858
4859 # POSIX will say in a future version that running "rm -f" with no argument
4860 # is OK; and we want to be able to make that assumption in our Makefile
4861 # recipes. So use an aggressive probe to check that the usage we want is
4862 # actually supported "in the wild" to an acceptable degree.
4863 # See automake bug#10828.
4864 # To make any issue more visible, cause the running configure to be aborted
4865 # by default if the 'rm' program in use doesn't match our expectations; the
4866 # user can still override this though.
4867 if rm -f && rm -fr && rm -rf; then : OK; else
4868 cat >&2 <<'END'
4869 Oops!
4870
4871 Your 'rm' program seems unable to run without file operands specified
4872 on the command line, even when the '-f' option is present. This is contrary
4873 to the behaviour of most rm programs out there, and not conforming with
4874 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4875
4876 Please tell bug-automake@gnu.org about your system, including the value
4877 of your $PATH and any error possibly output before this message. This
4878 can help us improve future automake versions.
4879
4880 END
4881 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4882 echo 'Configuration will proceed anyway, since you have set the' >&2
4883 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4884 echo >&2
4885 else
4886 cat >&2 <<'END'
4887 Aborting the configuration process, to ensure you take notice of the issue.
4888
4889 You can download and install GNU coreutils to get an 'rm' implementation
4890 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4891
4892 If you want to complete the configuration process using your problematic
4893 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4894 to "yes", and re-run configure.
4895
4896 END
4897 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4898 fi
4899 fi
4900
4901
4902 # Initialize libtool
4903 case `pwd` in
4904 *\ * | *\ *)
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4906 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4907 esac
4908
4909
4910
4911 macro_version='2.4.7'
4912 macro_revision='2.4.7'
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927 ltmain=$ac_aux_dir/ltmain.sh
4928
4929
4930
4931 # Make sure we can run config.sub.
4932 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4933 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4934
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4936 printf %s "checking build system type... " >&6; }
4937 if test ${ac_cv_build+y}
4938 then :
4939 printf %s "(cached) " >&6
4940 else $as_nop
4941 ac_build_alias=$build_alias
4942 test "x$ac_build_alias" = x &&
4943 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4944 test "x$ac_build_alias" = x &&
4945 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4946 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4947 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4948
4949 fi
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4951 printf "%s\n" "$ac_cv_build" >&6; }
4952 case $ac_cv_build in
4953 *-*-*) ;;
4954 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4955 esac
4956 build=$ac_cv_build
4957 ac_save_IFS=$IFS; IFS='-'
4958 set x $ac_cv_build
4959 shift
4960 build_cpu=$1
4961 build_vendor=$2
4962 shift; shift
4963 # Remember, the first character of IFS is used to create $*,
4964 # except with old shells:
4965 build_os=$*
4966 IFS=$ac_save_IFS
4967 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4968
4969
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4971 printf %s "checking host system type... " >&6; }
4972 if test ${ac_cv_host+y}
4973 then :
4974 printf %s "(cached) " >&6
4975 else $as_nop
4976 if test "x$host_alias" = x; then
4977 ac_cv_host=$ac_cv_build
4978 else
4979 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4980 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4981 fi
4982
4983 fi
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4985 printf "%s\n" "$ac_cv_host" >&6; }
4986 case $ac_cv_host in
4987 *-*-*) ;;
4988 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4989 esac
4990 host=$ac_cv_host
4991 ac_save_IFS=$IFS; IFS='-'
4992 set x $ac_cv_host
4993 shift
4994 host_cpu=$1
4995 host_vendor=$2
4996 shift; shift
4997 # Remember, the first character of IFS is used to create $*,
4998 # except with old shells:
4999 host_os=$*
5000 IFS=$ac_save_IFS
5001 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5002
5003
5004 # Backslashify metacharacters that are still active within
5005 # double-quoted strings.
5006 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5007
5008 # Same as above, but do not quote variable references.
5009 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5010
5011 # Sed substitution to delay expansion of an escaped shell variable in a
5012 # double_quote_subst'ed string.
5013 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5014
5015 # Sed substitution to delay expansion of an escaped single quote.
5016 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5017
5018 # Sed substitution to avoid accidental globbing in evaled expressions
5019 no_glob_subst='s/\*/\\\*/g'
5020
5021 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5022 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5023 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5024
5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5026 printf %s "checking how to print strings... " >&6; }
5027 # Test print first, because it will be a builtin if present.
5028 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5029 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5030 ECHO='print -r --'
5031 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5032 ECHO='printf %s\n'
5033 else
5034 # Use this function as a fallback that always works.
5035 func_fallback_echo ()
5036 {
5037 eval 'cat <<_LTECHO_EOF
5038 $1
5039 _LTECHO_EOF'
5040 }
5041 ECHO='func_fallback_echo'
5042 fi
5043
5044 # func_echo_all arg...
5045 # Invoke $ECHO with all args, space-separated.
5046 func_echo_all ()
5047 {
5048 $ECHO ""
5049 }
5050
5051 case $ECHO in
5052 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5053 printf "%s\n" "printf" >&6; } ;;
5054 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5055 printf "%s\n" "print -r" >&6; } ;;
5056 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5057 printf "%s\n" "cat" >&6; } ;;
5058 esac
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5074 printf %s "checking for a sed that does not truncate output... " >&6; }
5075 if test ${ac_cv_path_SED+y}
5076 then :
5077 printf %s "(cached) " >&6
5078 else $as_nop
5079 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5080 for ac_i in 1 2 3 4 5 6 7; do
5081 ac_script="$ac_script$as_nl$ac_script"
5082 done
5083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5084 { ac_script=; unset ac_script;}
5085 if test -z "$SED"; then
5086 ac_path_SED_found=false
5087 # Loop through the user's path and test for each of PROGNAME-LIST
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091 IFS=$as_save_IFS
5092 case $as_dir in #(((
5093 '') as_dir=./ ;;
5094 */) ;;
5095 *) as_dir=$as_dir/ ;;
5096 esac
5097 for ac_prog in sed gsed
5098 do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5101 as_fn_executable_p "$ac_path_SED" || continue
5102 # Check for GNU ac_path_SED and select it if it is found.
5103 # Check for GNU $ac_path_SED
5104 case `"$ac_path_SED" --version 2>&1` in
5105 *GNU*)
5106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5107 *)
5108 ac_count=0
5109 printf %s 0123456789 >"conftest.in"
5110 while :
5111 do
5112 cat "conftest.in" "conftest.in" >"conftest.tmp"
5113 mv "conftest.tmp" "conftest.in"
5114 cp "conftest.in" "conftest.nl"
5115 printf "%s\n" '' >> "conftest.nl"
5116 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5118 as_fn_arith $ac_count + 1 && ac_count=$as_val
5119 if test $ac_count -gt ${ac_path_SED_max-0}; then
5120 # Best one so far, save it but keep looking for a better one
5121 ac_cv_path_SED="$ac_path_SED"
5122 ac_path_SED_max=$ac_count
5123 fi
5124 # 10*(2^10) chars as input seems more than enough
5125 test $ac_count -gt 10 && break
5126 done
5127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5128 esac
5129
5130 $ac_path_SED_found && break 3
5131 done
5132 done
5133 done
5134 IFS=$as_save_IFS
5135 if test -z "$ac_cv_path_SED"; then
5136 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5137 fi
5138 else
5139 ac_cv_path_SED=$SED
5140 fi
5141
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5144 printf "%s\n" "$ac_cv_path_SED" >&6; }
5145 SED="$ac_cv_path_SED"
5146 rm -f conftest.sed
5147
5148 test -z "$SED" && SED=sed
5149 Xsed="$SED -e 1s/^X//"
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5162 printf %s "checking for grep that handles long lines and -e... " >&6; }
5163 if test ${ac_cv_path_GREP+y}
5164 then :
5165 printf %s "(cached) " >&6
5166 else $as_nop
5167 if test -z "$GREP"; then
5168 ac_path_GREP_found=false
5169 # Loop through the user's path and test for each of PROGNAME-LIST
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 do
5173 IFS=$as_save_IFS
5174 case $as_dir in #(((
5175 '') as_dir=./ ;;
5176 */) ;;
5177 *) as_dir=$as_dir/ ;;
5178 esac
5179 for ac_prog in grep ggrep
5180 do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5183 as_fn_executable_p "$ac_path_GREP" || continue
5184 # Check for GNU ac_path_GREP and select it if it is found.
5185 # Check for GNU $ac_path_GREP
5186 case `"$ac_path_GREP" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5189 *)
5190 ac_count=0
5191 printf %s 0123456789 >"conftest.in"
5192 while :
5193 do
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 printf "%s\n" 'GREP' >> "conftest.nl"
5198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_GREP="$ac_path_GREP"
5204 ac_path_GREP_max=$ac_count
5205 fi
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212 $ac_path_GREP_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_GREP"; then
5218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219 fi
5220 else
5221 ac_cv_path_GREP=$GREP
5222 fi
5223
5224 fi
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5226 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5228
5229
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5231 printf %s "checking for egrep... " >&6; }
5232 if test ${ac_cv_path_EGREP+y}
5233 then :
5234 printf %s "(cached) " >&6
5235 else $as_nop
5236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5237 then ac_cv_path_EGREP="$GREP -E"
5238 else
5239 if test -z "$EGREP"; then
5240 ac_path_EGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5244 do
5245 IFS=$as_save_IFS
5246 case $as_dir in #(((
5247 '') as_dir=./ ;;
5248 */) ;;
5249 *) as_dir=$as_dir/ ;;
5250 esac
5251 for ac_prog in egrep
5252 do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5255 as_fn_executable_p "$ac_path_EGREP" || continue
5256 # Check for GNU ac_path_EGREP and select it if it is found.
5257 # Check for GNU $ac_path_EGREP
5258 case `"$ac_path_EGREP" --version 2>&1` in
5259 *GNU*)
5260 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5261 *)
5262 ac_count=0
5263 printf %s 0123456789 >"conftest.in"
5264 while :
5265 do
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 printf "%s\n" 'EGREP' >> "conftest.nl"
5270 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272 as_fn_arith $ac_count + 1 && ac_count=$as_val
5273 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_EGREP="$ac_path_EGREP"
5276 ac_path_EGREP_max=$ac_count
5277 fi
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5280 done
5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 esac
5283
5284 $ac_path_EGREP_found && break 3
5285 done
5286 done
5287 done
5288 IFS=$as_save_IFS
5289 if test -z "$ac_cv_path_EGREP"; then
5290 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5291 fi
5292 else
5293 ac_cv_path_EGREP=$EGREP
5294 fi
5295
5296 fi
5297 fi
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5299 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5300 EGREP="$ac_cv_path_EGREP"
5301
5302
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5304 printf %s "checking for fgrep... " >&6; }
5305 if test ${ac_cv_path_FGREP+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else $as_nop
5309 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5310 then ac_cv_path_FGREP="$GREP -F"
5311 else
5312 if test -z "$FGREP"; then
5313 ac_path_FGREP_found=false
5314 # Loop through the user's path and test for each of PROGNAME-LIST
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5317 do
5318 IFS=$as_save_IFS
5319 case $as_dir in #(((
5320 '') as_dir=./ ;;
5321 */) ;;
5322 *) as_dir=$as_dir/ ;;
5323 esac
5324 for ac_prog in fgrep
5325 do
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5328 as_fn_executable_p "$ac_path_FGREP" || continue
5329 # Check for GNU ac_path_FGREP and select it if it is found.
5330 # Check for GNU $ac_path_FGREP
5331 case `"$ac_path_FGREP" --version 2>&1` in
5332 *GNU*)
5333 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5334 *)
5335 ac_count=0
5336 printf %s 0123456789 >"conftest.in"
5337 while :
5338 do
5339 cat "conftest.in" "conftest.in" >"conftest.tmp"
5340 mv "conftest.tmp" "conftest.in"
5341 cp "conftest.in" "conftest.nl"
5342 printf "%s\n" 'FGREP' >> "conftest.nl"
5343 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5345 as_fn_arith $ac_count + 1 && ac_count=$as_val
5346 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5347 # Best one so far, save it but keep looking for a better one
5348 ac_cv_path_FGREP="$ac_path_FGREP"
5349 ac_path_FGREP_max=$ac_count
5350 fi
5351 # 10*(2^10) chars as input seems more than enough
5352 test $ac_count -gt 10 && break
5353 done
5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355 esac
5356
5357 $ac_path_FGREP_found && break 3
5358 done
5359 done
5360 done
5361 IFS=$as_save_IFS
5362 if test -z "$ac_cv_path_FGREP"; then
5363 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364 fi
5365 else
5366 ac_cv_path_FGREP=$FGREP
5367 fi
5368
5369 fi
5370 fi
5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5372 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5373 FGREP="$ac_cv_path_FGREP"
5374
5375
5376 test -z "$GREP" && GREP=grep
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396 # Check whether --with-gnu-ld was given.
5397 if test ${with_gnu_ld+y}
5398 then :
5399 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5400 else $as_nop
5401 with_gnu_ld=no
5402 fi
5403
5404 ac_prog=ld
5405 if test yes = "$GCC"; then
5406 # Check if gcc -print-prog-name=ld gives a path.
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5408 printf %s "checking for ld used by $CC... " >&6; }
5409 case $host in
5410 *-*-mingw*)
5411 # gcc leaves a trailing carriage return, which upsets mingw
5412 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5413 *)
5414 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5415 esac
5416 case $ac_prog in
5417 # Accept absolute paths.
5418 [\\/]* | ?:[\\/]*)
5419 re_direlt='/[^/][^/]*/\.\./'
5420 # Canonicalize the pathname of ld
5421 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5422 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5423 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5424 done
5425 test -z "$LD" && LD=$ac_prog
5426 ;;
5427 "")
5428 # If it fails, then pretend we aren't using GCC.
5429 ac_prog=ld
5430 ;;
5431 *)
5432 # If it is relative, then search for the first ld in PATH.
5433 with_gnu_ld=unknown
5434 ;;
5435 esac
5436 elif test yes = "$with_gnu_ld"; then
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5438 printf %s "checking for GNU ld... " >&6; }
5439 else
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5441 printf %s "checking for non-GNU ld... " >&6; }
5442 fi
5443 if test ${lt_cv_path_LD+y}
5444 then :
5445 printf %s "(cached) " >&6
5446 else $as_nop
5447 if test -z "$LD"; then
5448 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH; do
5450 IFS=$lt_save_ifs
5451 test -z "$ac_dir" && ac_dir=.
5452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5453 lt_cv_path_LD=$ac_dir/$ac_prog
5454 # Check to see if the program is GNU ld. I'd rather use --version,
5455 # but apparently some variants of GNU ld only accept -v.
5456 # Break only if it was the GNU/non-GNU ld that we prefer.
5457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5458 *GNU* | *'with BFD'*)
5459 test no != "$with_gnu_ld" && break
5460 ;;
5461 *)
5462 test yes != "$with_gnu_ld" && break
5463 ;;
5464 esac
5465 fi
5466 done
5467 IFS=$lt_save_ifs
5468 else
5469 lt_cv_path_LD=$LD # Let the user override the test with a path.
5470 fi
5471 fi
5472
5473 LD=$lt_cv_path_LD
5474 if test -n "$LD"; then
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5476 printf "%s\n" "$LD" >&6; }
5477 else
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 printf "%s\n" "no" >&6; }
5480 fi
5481 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5483 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5484 if test ${lt_cv_prog_gnu_ld+y}
5485 then :
5486 printf %s "(cached) " >&6
5487 else $as_nop
5488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5489 case `$LD -v 2>&1 </dev/null` in
5490 *GNU* | *'with BFD'*)
5491 lt_cv_prog_gnu_ld=yes
5492 ;;
5493 *)
5494 lt_cv_prog_gnu_ld=no
5495 ;;
5496 esac
5497 fi
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5499 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5500 with_gnu_ld=$lt_cv_prog_gnu_ld
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5511 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5512 if test ${lt_cv_path_NM+y}
5513 then :
5514 printf %s "(cached) " >&6
5515 else $as_nop
5516 if test -n "$NM"; then
5517 # Let the user override the test.
5518 lt_cv_path_NM=$NM
5519 else
5520 lt_nm_to_check=${ac_tool_prefix}nm
5521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5522 lt_nm_to_check="$lt_nm_to_check nm"
5523 fi
5524 for lt_tmp_nm in $lt_nm_to_check; do
5525 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5527 IFS=$lt_save_ifs
5528 test -z "$ac_dir" && ac_dir=.
5529 tmp_nm=$ac_dir/$lt_tmp_nm
5530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5531 # Check to see if the nm accepts a BSD-compat flag.
5532 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5533 # nm: unknown option "B" ignored
5534 # Tru64's nm complains that /dev/null is an invalid object file
5535 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5536 case $build_os in
5537 mingw*) lt_bad_file=conftest.nm/nofile ;;
5538 *) lt_bad_file=/dev/null ;;
5539 esac
5540 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5541 *$lt_bad_file* | *'Invalid file or object type'*)
5542 lt_cv_path_NM="$tmp_nm -B"
5543 break 2
5544 ;;
5545 *)
5546 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5547 */dev/null*)
5548 lt_cv_path_NM="$tmp_nm -p"
5549 break 2
5550 ;;
5551 *)
5552 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5553 continue # so that we can try to find one that supports BSD flags
5554 ;;
5555 esac
5556 ;;
5557 esac
5558 fi
5559 done
5560 IFS=$lt_save_ifs
5561 done
5562 : ${lt_cv_path_NM=no}
5563 fi
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5566 printf "%s\n" "$lt_cv_path_NM" >&6; }
5567 if test no != "$lt_cv_path_NM"; then
5568 NM=$lt_cv_path_NM
5569 else
5570 # Didn't find any BSD compatible name lister, look for dumpbin.
5571 if test -n "$DUMPBIN"; then :
5572 # Let the user override the test.
5573 else
5574 if test -n "$ac_tool_prefix"; then
5575 for ac_prog in dumpbin "link -dump"
5576 do
5577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 printf %s "checking for $ac_word... " >&6; }
5581 if test ${ac_cv_prog_DUMPBIN+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else $as_nop
5585 if test -n "$DUMPBIN"; then
5586 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 case $as_dir in #(((
5593 '') as_dir=./ ;;
5594 */) ;;
5595 *) as_dir=$as_dir/ ;;
5596 esac
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 DUMPBIN=$ac_cv_prog_DUMPBIN
5610 if test -n "$DUMPBIN"; then
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5612 printf "%s\n" "$DUMPBIN" >&6; }
5613 else
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 printf "%s\n" "no" >&6; }
5616 fi
5617
5618
5619 test -n "$DUMPBIN" && break
5620 done
5621 fi
5622 if test -z "$DUMPBIN"; then
5623 ac_ct_DUMPBIN=$DUMPBIN
5624 for ac_prog in dumpbin "link -dump"
5625 do
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 printf %s "checking for $ac_word... " >&6; }
5630 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5631 then :
5632 printf %s "(cached) " >&6
5633 else $as_nop
5634 if test -n "$ac_ct_DUMPBIN"; then
5635 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640 IFS=$as_save_IFS
5641 case $as_dir in #(((
5642 '') as_dir=./ ;;
5643 */) ;;
5644 *) as_dir=$as_dir/ ;;
5645 esac
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5659 if test -n "$ac_ct_DUMPBIN"; then
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5661 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5662 else
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 printf "%s\n" "no" >&6; }
5665 fi
5666
5667
5668 test -n "$ac_ct_DUMPBIN" && break
5669 done
5670
5671 if test "x$ac_ct_DUMPBIN" = x; then
5672 DUMPBIN=":"
5673 else
5674 case $cross_compiling:$ac_tool_warned in
5675 yes:)
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5678 ac_tool_warned=yes ;;
5679 esac
5680 DUMPBIN=$ac_ct_DUMPBIN
5681 fi
5682 fi
5683
5684 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5685 *COFF*)
5686 DUMPBIN="$DUMPBIN -symbols -headers"
5687 ;;
5688 *)
5689 DUMPBIN=:
5690 ;;
5691 esac
5692 fi
5693
5694 if test : != "$DUMPBIN"; then
5695 NM=$DUMPBIN
5696 fi
5697 fi
5698 test -z "$NM" && NM=nm
5699
5700
5701
5702
5703
5704
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5706 printf %s "checking the name lister ($NM) interface... " >&6; }
5707 if test ${lt_cv_nm_interface+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else $as_nop
5711 lt_cv_nm_interface="BSD nm"
5712 echo "int some_variable = 0;" > conftest.$ac_ext
5713 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5714 (eval "$ac_compile" 2>conftest.err)
5715 cat conftest.err >&5
5716 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5717 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5718 cat conftest.err >&5
5719 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5720 cat conftest.out >&5
5721 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5722 lt_cv_nm_interface="MS dumpbin"
5723 fi
5724 rm -f conftest*
5725 fi
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5727 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5728
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5730 printf %s "checking whether ln -s works... " >&6; }
5731 LN_S=$as_ln_s
5732 if test "$LN_S" = "ln -s"; then
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5734 printf "%s\n" "yes" >&6; }
5735 else
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5737 printf "%s\n" "no, using $LN_S" >&6; }
5738 fi
5739
5740 # find the maximum length of command line arguments
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5742 printf %s "checking the maximum length of command line arguments... " >&6; }
5743 if test ${lt_cv_sys_max_cmd_len+y}
5744 then :
5745 printf %s "(cached) " >&6
5746 else $as_nop
5747 i=0
5748 teststring=ABCD
5749
5750 case $build_os in
5751 msdosdjgpp*)
5752 # On DJGPP, this test can blow up pretty badly due to problems in libc
5753 # (any single argument exceeding 2000 bytes causes a buffer overrun
5754 # during glob expansion). Even if it were fixed, the result of this
5755 # check would be larger than it should be.
5756 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5757 ;;
5758
5759 gnu*)
5760 # Under GNU Hurd, this test is not required because there is
5761 # no limit to the length of command line arguments.
5762 # Libtool will interpret -1 as no limit whatsoever
5763 lt_cv_sys_max_cmd_len=-1;
5764 ;;
5765
5766 cygwin* | mingw* | cegcc*)
5767 # On Win9x/ME, this test blows up -- it succeeds, but takes
5768 # about 5 minutes as the teststring grows exponentially.
5769 # Worse, since 9x/ME are not pre-emptively multitasking,
5770 # you end up with a "frozen" computer, even though with patience
5771 # the test eventually succeeds (with a max line length of 256k).
5772 # Instead, let's just punt: use the minimum linelength reported by
5773 # all of the supported platforms: 8192 (on NT/2K/XP).
5774 lt_cv_sys_max_cmd_len=8192;
5775 ;;
5776
5777 mint*)
5778 # On MiNT this can take a long time and run out of memory.
5779 lt_cv_sys_max_cmd_len=8192;
5780 ;;
5781
5782 mint*)
5783 # On MiNT this can take a long time and run out of memory.
5784 lt_cv_sys_max_cmd_len=8192;
5785 ;;
5786
5787 amigaos*)
5788 # On AmigaOS with pdksh, this test takes hours, literally.
5789 # So we just punt and use a minimum line length of 8192.
5790 lt_cv_sys_max_cmd_len=8192;
5791 ;;
5792
5793 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5794 # This has been around since 386BSD, at least. Likely further.
5795 if test -x /sbin/sysctl; then
5796 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5797 elif test -x /usr/sbin/sysctl; then
5798 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5799 else
5800 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5801 fi
5802 # And add a safety zone
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5805 ;;
5806
5807 interix*)
5808 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5809 lt_cv_sys_max_cmd_len=196608
5810 ;;
5811
5812 os2*)
5813 # The test takes a long time on OS/2.
5814 lt_cv_sys_max_cmd_len=8192
5815 ;;
5816
5817 osf*)
5818 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5819 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5820 # nice to cause kernel panics so lets avoid the loop below.
5821 # First set a reasonable default.
5822 lt_cv_sys_max_cmd_len=16384
5823 #
5824 if test -x /sbin/sysconfig; then
5825 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5826 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5827 esac
5828 fi
5829 ;;
5830 sco3.2v5*)
5831 lt_cv_sys_max_cmd_len=102400
5832 ;;
5833 sysv5* | sco5v6* | sysv4.2uw2*)
5834 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5835 if test -n "$kargmax"; then
5836 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5837 else
5838 lt_cv_sys_max_cmd_len=32768
5839 fi
5840 ;;
5841 *)
5842 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5843 if test -n "$lt_cv_sys_max_cmd_len" && \
5844 test undefined != "$lt_cv_sys_max_cmd_len"; then
5845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5847 else
5848 # Make teststring a little bigger before we do anything with it.
5849 # a 1K string should be a reasonable start.
5850 for i in 1 2 3 4 5 6 7 8; do
5851 teststring=$teststring$teststring
5852 done
5853 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5854 # If test is not a shell built-in, we'll probably end up computing a
5855 # maximum length that is only half of the actual maximum length, but
5856 # we can't tell.
5857 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5858 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5859 test 17 != "$i" # 1/2 MB should be enough
5860 do
5861 i=`expr $i + 1`
5862 teststring=$teststring$teststring
5863 done
5864 # Only check the string length outside the loop.
5865 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5866 teststring=
5867 # Add a significant safety factor because C++ compilers can tack on
5868 # massive amounts of additional arguments before passing them to the
5869 # linker. It appears as though 1/2 is a usable value.
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5871 fi
5872 ;;
5873 esac
5874
5875 fi
5876
5877 if test -n "$lt_cv_sys_max_cmd_len"; then
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5879 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5880 else
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5882 printf "%s\n" "none" >&6; }
5883 fi
5884 max_cmd_len=$lt_cv_sys_max_cmd_len
5885
5886
5887
5888
5889
5890
5891 : ${CP="cp -f"}
5892 : ${MV="mv -f"}
5893 : ${RM="rm -f"}
5894
5895 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5896 lt_unset=unset
5897 else
5898 lt_unset=false
5899 fi
5900
5901
5902
5903
5904
5905 # test EBCDIC or ASCII
5906 case `echo X|tr X '\101'` in
5907 A) # ASCII based system
5908 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5909 lt_SP2NL='tr \040 \012'
5910 lt_NL2SP='tr \015\012 \040\040'
5911 ;;
5912 *) # EBCDIC based system
5913 lt_SP2NL='tr \100 \n'
5914 lt_NL2SP='tr \r\n \100\100'
5915 ;;
5916 esac
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5927 printf %s "checking how to convert $build file names to $host format... " >&6; }
5928 if test ${lt_cv_to_host_file_cmd+y}
5929 then :
5930 printf %s "(cached) " >&6
5931 else $as_nop
5932 case $host in
5933 *-*-mingw* )
5934 case $build in
5935 *-*-mingw* ) # actually msys
5936 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5937 ;;
5938 *-*-cygwin* )
5939 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5940 ;;
5941 * ) # otherwise, assume *nix
5942 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5943 ;;
5944 esac
5945 ;;
5946 *-*-cygwin* )
5947 case $build in
5948 *-*-mingw* ) # actually msys
5949 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5950 ;;
5951 *-*-cygwin* )
5952 lt_cv_to_host_file_cmd=func_convert_file_noop
5953 ;;
5954 * ) # otherwise, assume *nix
5955 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5956 ;;
5957 esac
5958 ;;
5959 * ) # unhandled hosts (and "normal" native builds)
5960 lt_cv_to_host_file_cmd=func_convert_file_noop
5961 ;;
5962 esac
5963
5964 fi
5965
5966 to_host_file_cmd=$lt_cv_to_host_file_cmd
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5968 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5969
5970
5971
5972
5973
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5975 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5976 if test ${lt_cv_to_tool_file_cmd+y}
5977 then :
5978 printf %s "(cached) " >&6
5979 else $as_nop
5980 #assume ordinary cross tools, or native build.
5981 lt_cv_to_tool_file_cmd=func_convert_file_noop
5982 case $host in
5983 *-*-mingw* )
5984 case $build in
5985 *-*-mingw* ) # actually msys
5986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5987 ;;
5988 esac
5989 ;;
5990 esac
5991
5992 fi
5993
5994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5996 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5997
5998
5999
6000
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6003 printf %s "checking for $LD option to reload object files... " >&6; }
6004 if test ${lt_cv_ld_reload_flag+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 lt_cv_ld_reload_flag='-r'
6009 fi
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6011 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6012 reload_flag=$lt_cv_ld_reload_flag
6013 case $reload_flag in
6014 "" | " "*) ;;
6015 *) reload_flag=" $reload_flag" ;;
6016 esac
6017 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6018 case $host_os in
6019 cygwin* | mingw* | pw32* | cegcc*)
6020 if test yes != "$GCC"; then
6021 reload_cmds=false
6022 fi
6023 ;;
6024 darwin*)
6025 if test yes = "$GCC"; then
6026 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6027 else
6028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6029 fi
6030 ;;
6031 esac
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}file; ac_word=$2
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 printf %s "checking for $ac_word... " >&6; }
6046 if test ${ac_cv_prog_FILECMD+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else $as_nop
6050 if test -n "$FILECMD"; then
6051 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6052 else
6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054 for as_dir in $PATH
6055 do
6056 IFS=$as_save_IFS
6057 case $as_dir in #(((
6058 '') as_dir=./ ;;
6059 */) ;;
6060 *) as_dir=$as_dir/ ;;
6061 esac
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 FILECMD=$ac_cv_prog_FILECMD
6075 if test -n "$FILECMD"; then
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6077 printf "%s\n" "$FILECMD" >&6; }
6078 else
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 printf "%s\n" "no" >&6; }
6081 fi
6082
6083
6084 fi
6085 if test -z "$ac_cv_prog_FILECMD"; then
6086 ac_ct_FILECMD=$FILECMD
6087 # Extract the first word of "file", so it can be a program name with args.
6088 set dummy file; ac_word=$2
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 printf %s "checking for $ac_word... " >&6; }
6091 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6092 then :
6093 printf %s "(cached) " >&6
6094 else $as_nop
6095 if test -n "$ac_ct_FILECMD"; then
6096 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101 IFS=$as_save_IFS
6102 case $as_dir in #(((
6103 '') as_dir=./ ;;
6104 */) ;;
6105 *) as_dir=$as_dir/ ;;
6106 esac
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6109 ac_cv_prog_ac_ct_FILECMD="file"
6110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6120 if test -n "$ac_ct_FILECMD"; then
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6122 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6123 else
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 printf "%s\n" "no" >&6; }
6126 fi
6127
6128 if test "x$ac_ct_FILECMD" = x; then
6129 FILECMD=":"
6130 else
6131 case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137 FILECMD=$ac_ct_FILECMD
6138 fi
6139 else
6140 FILECMD="$ac_cv_prog_FILECMD"
6141 fi
6142
6143
6144
6145
6146
6147
6148
6149 if test -n "$ac_tool_prefix"; then
6150 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6151 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 printf %s "checking for $ac_word... " >&6; }
6154 if test ${ac_cv_prog_OBJDUMP+y}
6155 then :
6156 printf %s "(cached) " >&6
6157 else $as_nop
6158 if test -n "$OBJDUMP"; then
6159 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 case $as_dir in #(((
6166 '') as_dir=./ ;;
6167 */) ;;
6168 *) as_dir=$as_dir/ ;;
6169 esac
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 OBJDUMP=$ac_cv_prog_OBJDUMP
6183 if test -n "$OBJDUMP"; then
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6185 printf "%s\n" "$OBJDUMP" >&6; }
6186 else
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 printf "%s\n" "no" >&6; }
6189 fi
6190
6191
6192 fi
6193 if test -z "$ac_cv_prog_OBJDUMP"; then
6194 ac_ct_OBJDUMP=$OBJDUMP
6195 # Extract the first word of "objdump", so it can be a program name with args.
6196 set dummy objdump; ac_word=$2
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 printf %s "checking for $ac_word... " >&6; }
6199 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else $as_nop
6203 if test -n "$ac_ct_OBJDUMP"; then
6204 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209 IFS=$as_save_IFS
6210 case $as_dir in #(((
6211 '') as_dir=./ ;;
6212 */) ;;
6213 *) as_dir=$as_dir/ ;;
6214 esac
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6228 if test -n "$ac_ct_OBJDUMP"; then
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6230 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6231 else
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 printf "%s\n" "no" >&6; }
6234 fi
6235
6236 if test "x$ac_ct_OBJDUMP" = x; then
6237 OBJDUMP="false"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245 OBJDUMP=$ac_ct_OBJDUMP
6246 fi
6247 else
6248 OBJDUMP="$ac_cv_prog_OBJDUMP"
6249 fi
6250
6251 test -z "$OBJDUMP" && OBJDUMP=objdump
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6262 printf %s "checking how to recognize dependent libraries... " >&6; }
6263 if test ${lt_cv_deplibs_check_method+y}
6264 then :
6265 printf %s "(cached) " >&6
6266 else $as_nop
6267 lt_cv_file_magic_cmd='$MAGIC_CMD'
6268 lt_cv_file_magic_test_file=
6269 lt_cv_deplibs_check_method='unknown'
6270 # Need to set the preceding variable on all platforms that support
6271 # interlibrary dependencies.
6272 # 'none' -- dependencies not supported.
6273 # 'unknown' -- same as none, but documents that we really don't know.
6274 # 'pass_all' -- all dependencies passed with no checks.
6275 # 'test_compile' -- check by making test program.
6276 # 'file_magic [[regex]]' -- check by looking for files in library path
6277 # that responds to the $file_magic_cmd with a given extended regex.
6278 # If you have 'file' or equivalent on your system and you're not sure
6279 # whether 'pass_all' will *always* work, you probably want this one.
6280
6281 case $host_os in
6282 aix[4-9]*)
6283 lt_cv_deplibs_check_method=pass_all
6284 ;;
6285
6286 beos*)
6287 lt_cv_deplibs_check_method=pass_all
6288 ;;
6289
6290 bsdi[45]*)
6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6292 lt_cv_file_magic_cmd='$FILECMD -L'
6293 lt_cv_file_magic_test_file=/shlib/libc.so
6294 ;;
6295
6296 cygwin*)
6297 # func_win32_libid is a shell function defined in ltmain.sh
6298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6299 lt_cv_file_magic_cmd='func_win32_libid'
6300 ;;
6301
6302 mingw* | pw32*)
6303 # Base MSYS/MinGW do not provide the 'file' command needed by
6304 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6305 # unless we find 'file', for example because we are cross-compiling.
6306 if ( file / ) >/dev/null 2>&1; then
6307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6308 lt_cv_file_magic_cmd='func_win32_libid'
6309 else
6310 # Keep this pattern in sync with the one in func_win32_libid.
6311 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6312 lt_cv_file_magic_cmd='$OBJDUMP -f'
6313 fi
6314 ;;
6315
6316 cegcc*)
6317 # use the weaker test based on 'objdump'. See mingw*.
6318 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6319 lt_cv_file_magic_cmd='$OBJDUMP -f'
6320 ;;
6321
6322 darwin* | rhapsody*)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325
6326 freebsd* | dragonfly* | midnightbsd*)
6327 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6328 case $host_cpu in
6329 i*86 )
6330 # Not sure whether the presence of OpenBSD here was a mistake.
6331 # Let's accept both of them until this is cleared up.
6332 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6333 lt_cv_file_magic_cmd=$FILECMD
6334 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6335 ;;
6336 esac
6337 else
6338 lt_cv_deplibs_check_method=pass_all
6339 fi
6340 ;;
6341
6342 haiku*)
6343 lt_cv_deplibs_check_method=pass_all
6344 ;;
6345
6346 hpux10.20* | hpux11*)
6347 lt_cv_file_magic_cmd=$FILECMD
6348 case $host_cpu in
6349 ia64*)
6350 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6351 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6352 ;;
6353 hppa*64*)
6354 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]'
6355 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6356 ;;
6357 *)
6358 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6359 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6360 ;;
6361 esac
6362 ;;
6363
6364 interix[3-9]*)
6365 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6367 ;;
6368
6369 irix5* | irix6* | nonstopux*)
6370 case $LD in
6371 *-32|*"-32 ") libmagic=32-bit;;
6372 *-n32|*"-n32 ") libmagic=N32;;
6373 *-64|*"-64 ") libmagic=64-bit;;
6374 *) libmagic=never-match;;
6375 esac
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378
6379 # This must be glibc/ELF.
6380 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6381 lt_cv_deplibs_check_method=pass_all
6382 ;;
6383
6384 netbsd*)
6385 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6387 else
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6389 fi
6390 ;;
6391
6392 newos6*)
6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6394 lt_cv_file_magic_cmd=$FILECMD
6395 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6396 ;;
6397
6398 *nto* | *qnx*)
6399 lt_cv_deplibs_check_method=pass_all
6400 ;;
6401
6402 openbsd* | bitrig*)
6403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6405 else
6406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6407 fi
6408 ;;
6409
6410 osf3* | osf4* | osf5*)
6411 lt_cv_deplibs_check_method=pass_all
6412 ;;
6413
6414 rdos*)
6415 lt_cv_deplibs_check_method=pass_all
6416 ;;
6417
6418 solaris*)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421
6422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6423 lt_cv_deplibs_check_method=pass_all
6424 ;;
6425
6426 sysv4 | sysv4.3*)
6427 case $host_vendor in
6428 motorola)
6429 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]'
6430 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6431 ;;
6432 ncr)
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
6435 sequent)
6436 lt_cv_file_magic_cmd='/bin/file'
6437 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6438 ;;
6439 sni)
6440 lt_cv_file_magic_cmd='/bin/file'
6441 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6442 lt_cv_file_magic_test_file=/lib/libc.so
6443 ;;
6444 siemens)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447 pc)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450 esac
6451 ;;
6452
6453 tpf*)
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
6456 os2*)
6457 lt_cv_deplibs_check_method=pass_all
6458 ;;
6459 esac
6460
6461 fi
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6463 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6464
6465 file_magic_glob=
6466 want_nocaseglob=no
6467 if test "$build" = "$host"; then
6468 case $host_os in
6469 mingw* | pw32*)
6470 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6471 want_nocaseglob=yes
6472 else
6473 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6474 fi
6475 ;;
6476 esac
6477 fi
6478
6479 file_magic_cmd=$lt_cv_file_magic_cmd
6480 deplibs_check_method=$lt_cv_deplibs_check_method
6481 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 if test -n "$ac_tool_prefix"; then
6505 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 printf %s "checking for $ac_word... " >&6; }
6509 if test ${ac_cv_prog_DLLTOOL+y}
6510 then :
6511 printf %s "(cached) " >&6
6512 else $as_nop
6513 if test -n "$DLLTOOL"; then
6514 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519 IFS=$as_save_IFS
6520 case $as_dir in #(((
6521 '') as_dir=./ ;;
6522 */) ;;
6523 *) as_dir=$as_dir/ ;;
6524 esac
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6527 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 DLLTOOL=$ac_cv_prog_DLLTOOL
6538 if test -n "$DLLTOOL"; then
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6540 printf "%s\n" "$DLLTOOL" >&6; }
6541 else
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 printf "%s\n" "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_DLLTOOL"; then
6549 ac_ct_DLLTOOL=$DLLTOOL
6550 # Extract the first word of "dlltool", so it can be a program name with args.
6551 set dummy dlltool; ac_word=$2
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 printf %s "checking for $ac_word... " >&6; }
6554 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6555 then :
6556 printf %s "(cached) " >&6
6557 else $as_nop
6558 if test -n "$ac_ct_DLLTOOL"; then
6559 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 case $as_dir in #(((
6566 '') as_dir=./ ;;
6567 */) ;;
6568 *) as_dir=$as_dir/ ;;
6569 esac
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6583 if test -n "$ac_ct_DLLTOOL"; then
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6585 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6586 else
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 printf "%s\n" "no" >&6; }
6589 fi
6590
6591 if test "x$ac_ct_DLLTOOL" = x; then
6592 DLLTOOL="false"
6593 else
6594 case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600 DLLTOOL=$ac_ct_DLLTOOL
6601 fi
6602 else
6603 DLLTOOL="$ac_cv_prog_DLLTOOL"
6604 fi
6605
6606 test -z "$DLLTOOL" && DLLTOOL=dlltool
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6618 printf %s "checking how to associate runtime and link libraries... " >&6; }
6619 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else $as_nop
6623 lt_cv_sharedlib_from_linklib_cmd='unknown'
6624
6625 case $host_os in
6626 cygwin* | mingw* | pw32* | cegcc*)
6627 # two different shell functions defined in ltmain.sh;
6628 # decide which one to use based on capabilities of $DLLTOOL
6629 case `$DLLTOOL --help 2>&1` in
6630 *--identify-strict*)
6631 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6632 ;;
6633 *)
6634 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6635 ;;
6636 esac
6637 ;;
6638 *)
6639 # fallback: assume linklib IS sharedlib
6640 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6641 ;;
6642 esac
6643
6644 fi
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6646 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6647 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6648 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6649
6650
6651
6652
6653
6654
6655
6656 if test -n "$ac_tool_prefix"; then
6657 for ac_prog in ar
6658 do
6659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6662 printf %s "checking for $ac_word... " >&6; }
6663 if test ${ac_cv_prog_AR+y}
6664 then :
6665 printf %s "(cached) " >&6
6666 else $as_nop
6667 if test -n "$AR"; then
6668 ac_cv_prog_AR="$AR" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 case $as_dir in #(((
6675 '') as_dir=./ ;;
6676 */) ;;
6677 *) as_dir=$as_dir/ ;;
6678 esac
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 AR=$ac_cv_prog_AR
6692 if test -n "$AR"; then
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6694 printf "%s\n" "$AR" >&6; }
6695 else
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 printf "%s\n" "no" >&6; }
6698 fi
6699
6700
6701 test -n "$AR" && break
6702 done
6703 fi
6704 if test -z "$AR"; then
6705 ac_ct_AR=$AR
6706 for ac_prog in ar
6707 do
6708 # Extract the first word of "$ac_prog", so it can be a program name with args.
6709 set dummy $ac_prog; ac_word=$2
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 printf %s "checking for $ac_word... " >&6; }
6712 if test ${ac_cv_prog_ac_ct_AR+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else $as_nop
6716 if test -n "$ac_ct_AR"; then
6717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722 IFS=$as_save_IFS
6723 case $as_dir in #(((
6724 '') as_dir=./ ;;
6725 */) ;;
6726 *) as_dir=$as_dir/ ;;
6727 esac
6728 for ac_exec_ext in '' $ac_executable_extensions; do
6729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6730 ac_cv_prog_ac_ct_AR="$ac_prog"
6731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734 done
6735 done
6736 IFS=$as_save_IFS
6737
6738 fi
6739 fi
6740 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6741 if test -n "$ac_ct_AR"; then
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6743 printf "%s\n" "$ac_ct_AR" >&6; }
6744 else
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746 printf "%s\n" "no" >&6; }
6747 fi
6748
6749
6750 test -n "$ac_ct_AR" && break
6751 done
6752
6753 if test "x$ac_ct_AR" = x; then
6754 AR="false"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 AR=$ac_ct_AR
6763 fi
6764 fi
6765
6766 : ${AR=ar}
6767
6768
6769
6770
6771
6772
6773 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6774 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6775 # higher priority because thats what people were doing historically (setting
6776 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6777 # variable obsoleted/removed.
6778
6779 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6780 lt_ar_flags=$AR_FLAGS
6781
6782
6783
6784
6785
6786
6787 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6788 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6789
6790
6791
6792
6793
6794
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6796 printf %s "checking for archiver @FILE support... " >&6; }
6797 if test ${lt_cv_ar_at_file+y}
6798 then :
6799 printf %s "(cached) " >&6
6800 else $as_nop
6801 lt_cv_ar_at_file=no
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804
6805 int
6806 main (void)
6807 {
6808
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"
6814 then :
6815 echo conftest.$ac_objext > conftest.lst
6816 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6818 (eval $lt_ar_try) 2>&5
6819 ac_status=$?
6820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; }
6822 if test 0 -eq "$ac_status"; then
6823 # Ensure the archiver fails upon bogus file names.
6824 rm -f conftest.$ac_objext libconftest.a
6825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6826 (eval $lt_ar_try) 2>&5
6827 ac_status=$?
6828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }
6830 if test 0 -ne "$ac_status"; then
6831 lt_cv_ar_at_file=@
6832 fi
6833 fi
6834 rm -f conftest.* libconftest.a
6835
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6838
6839 fi
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6841 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6842
6843 if test no = "$lt_cv_ar_at_file"; then
6844 archiver_list_spec=
6845 else
6846 archiver_list_spec=$lt_cv_ar_at_file
6847 fi
6848
6849
6850
6851
6852
6853
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}strip; ac_word=$2
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 printf %s "checking for $ac_word... " >&6; }
6860 if test ${ac_cv_prog_STRIP+y}
6861 then :
6862 printf %s "(cached) " >&6
6863 else $as_nop
6864 if test -n "$STRIP"; then
6865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 case $as_dir in #(((
6872 '') as_dir=./ ;;
6873 */) ;;
6874 *) as_dir=$as_dir/ ;;
6875 esac
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 STRIP=$ac_cv_prog_STRIP
6889 if test -n "$STRIP"; then
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6891 printf "%s\n" "$STRIP" >&6; }
6892 else
6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 printf "%s\n" "no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if test -z "$ac_cv_prog_STRIP"; then
6900 ac_ct_STRIP=$STRIP
6901 # Extract the first word of "strip", so it can be a program name with args.
6902 set dummy strip; ac_word=$2
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 printf %s "checking for $ac_word... " >&6; }
6905 if test ${ac_cv_prog_ac_ct_STRIP+y}
6906 then :
6907 printf %s "(cached) " >&6
6908 else $as_nop
6909 if test -n "$ac_ct_STRIP"; then
6910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 case $as_dir in #(((
6917 '') as_dir=./ ;;
6918 */) ;;
6919 *) as_dir=$as_dir/ ;;
6920 esac
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_ac_ct_STRIP="strip"
6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6934 if test -n "$ac_ct_STRIP"; then
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6936 printf "%s\n" "$ac_ct_STRIP" >&6; }
6937 else
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 printf "%s\n" "no" >&6; }
6940 fi
6941
6942 if test "x$ac_ct_STRIP" = x; then
6943 STRIP=":"
6944 else
6945 case $cross_compiling:$ac_tool_warned in
6946 yes:)
6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949 ac_tool_warned=yes ;;
6950 esac
6951 STRIP=$ac_ct_STRIP
6952 fi
6953 else
6954 STRIP="$ac_cv_prog_STRIP"
6955 fi
6956
6957 test -z "$STRIP" && STRIP=:
6958
6959
6960
6961
6962
6963
6964 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 printf %s "checking for $ac_word... " >&6; }
6969 if test ${ac_cv_prog_RANLIB+y}
6970 then :
6971 printf %s "(cached) " >&6
6972 else $as_nop
6973 if test -n "$RANLIB"; then
6974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979 IFS=$as_save_IFS
6980 case $as_dir in #(((
6981 '') as_dir=./ ;;
6982 */) ;;
6983 *) as_dir=$as_dir/ ;;
6984 esac
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6987 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6989 break 2
6990 fi
6991 done
6992 done
6993 IFS=$as_save_IFS
6994
6995 fi
6996 fi
6997 RANLIB=$ac_cv_prog_RANLIB
6998 if test -n "$RANLIB"; then
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7000 printf "%s\n" "$RANLIB" >&6; }
7001 else
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7003 printf "%s\n" "no" >&6; }
7004 fi
7005
7006
7007 fi
7008 if test -z "$ac_cv_prog_RANLIB"; then
7009 ac_ct_RANLIB=$RANLIB
7010 # Extract the first word of "ranlib", so it can be a program name with args.
7011 set dummy ranlib; ac_word=$2
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 printf %s "checking for $ac_word... " >&6; }
7014 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7015 then :
7016 printf %s "(cached) " >&6
7017 else $as_nop
7018 if test -n "$ac_ct_RANLIB"; then
7019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7020 else
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7022 for as_dir in $PATH
7023 do
7024 IFS=$as_save_IFS
7025 case $as_dir in #(((
7026 '') as_dir=./ ;;
7027 */) ;;
7028 *) as_dir=$as_dir/ ;;
7029 esac
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7032 ac_cv_prog_ac_ct_RANLIB="ranlib"
7033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7043 if test -n "$ac_ct_RANLIB"; then
7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7045 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7046 else
7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 printf "%s\n" "no" >&6; }
7049 fi
7050
7051 if test "x$ac_ct_RANLIB" = x; then
7052 RANLIB=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055 yes:)
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058 ac_tool_warned=yes ;;
7059 esac
7060 RANLIB=$ac_ct_RANLIB
7061 fi
7062 else
7063 RANLIB="$ac_cv_prog_RANLIB"
7064 fi
7065
7066 test -z "$RANLIB" && RANLIB=:
7067
7068
7069
7070
7071
7072
7073 # Determine commands to create old-style static archives.
7074 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7075 old_postinstall_cmds='chmod 644 $oldlib'
7076 old_postuninstall_cmds=
7077
7078 if test -n "$RANLIB"; then
7079 case $host_os in
7080 bitrig* | openbsd*)
7081 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7082 ;;
7083 *)
7084 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7085 ;;
7086 esac
7087 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7088 fi
7089
7090 case $host_os in
7091 darwin*)
7092 lock_old_archive_extraction=yes ;;
7093 *)
7094 lock_old_archive_extraction=no ;;
7095 esac
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135 # If no C compiler was specified, use CC.
7136 LTCC=${LTCC-"$CC"}
7137
7138 # If no C compiler flags were specified, use CFLAGS.
7139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7140
7141 # Allow CC to be a program name with arguments.
7142 compiler=$CC
7143
7144
7145 # Check for command to grab the raw symbol name followed by C symbol from nm.
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7147 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7148 if test ${lt_cv_sys_global_symbol_pipe+y}
7149 then :
7150 printf %s "(cached) " >&6
7151 else $as_nop
7152
7153 # These are sane defaults that work on at least a few old systems.
7154 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7155
7156 # Character class describing NM global symbol codes.
7157 symcode='[BCDEGRST]'
7158
7159 # Regexp to match symbols that can be accessed directly from C.
7160 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7161
7162 # Define system-specific variables.
7163 case $host_os in
7164 aix*)
7165 symcode='[BCDT]'
7166 ;;
7167 cygwin* | mingw* | pw32* | cegcc*)
7168 symcode='[ABCDGISTW]'
7169 ;;
7170 hpux*)
7171 if test ia64 = "$host_cpu"; then
7172 symcode='[ABCDEGRST]'
7173 fi
7174 ;;
7175 irix* | nonstopux*)
7176 symcode='[BCDEGRST]'
7177 ;;
7178 osf*)
7179 symcode='[BCDEGQRST]'
7180 ;;
7181 solaris*)
7182 symcode='[BDRT]'
7183 ;;
7184 sco3.2v5*)
7185 symcode='[DT]'
7186 ;;
7187 sysv4.2uw2*)
7188 symcode='[DT]'
7189 ;;
7190 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7191 symcode='[ABDT]'
7192 ;;
7193 sysv4)
7194 symcode='[DFNSTU]'
7195 ;;
7196 esac
7197
7198 # If we're using GNU nm, then use its standard symbol codes.
7199 case `$NM -V 2>&1` in
7200 *GNU* | *'with BFD'*)
7201 symcode='[ABCDGIRSTW]' ;;
7202 esac
7203
7204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7205 # Gets list of data symbols to import.
7206 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7207 # Adjust the below global symbol transforms to fixup imported variables.
7208 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7209 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7210 lt_c_name_lib_hook="\
7211 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7212 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7213 else
7214 # Disable hooks by default.
7215 lt_cv_sys_global_symbol_to_import=
7216 lt_cdecl_hook=
7217 lt_c_name_hook=
7218 lt_c_name_lib_hook=
7219 fi
7220
7221 # Transform an extracted symbol line into a proper C declaration.
7222 # Some systems (esp. on ia64) link data and code symbols differently,
7223 # so use this general approach.
7224 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7225 $lt_cdecl_hook\
7226 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7227 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7228
7229 # Transform an extracted symbol line into symbol name and symbol address
7230 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7231 $lt_c_name_hook\
7232 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7233 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7234
7235 # Transform an extracted symbol line into symbol name with lib prefix and
7236 # symbol address.
7237 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7238 $lt_c_name_lib_hook\
7239 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7240 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7241 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7242
7243 # Handle CRLF in mingw tool chain
7244 opt_cr=
7245 case $build_os in
7246 mingw*)
7247 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7248 ;;
7249 esac
7250
7251 # Try without a prefix underscore, then with it.
7252 for ac_symprfx in "" "_"; do
7253
7254 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7255 symxfrm="\\1 $ac_symprfx\\2 \\2"
7256
7257 # Write the raw and C identifiers.
7258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7259 # Fake it for dumpbin and say T for any non-static function,
7260 # D for any global variable and I for any imported variable.
7261 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7262 # which start with @ or ?.
7263 lt_cv_sys_global_symbol_pipe="$AWK '"\
7264 " {last_section=section; section=\$ 3};"\
7265 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7266 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7267 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7268 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7269 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7270 " \$ 0!~/External *\|/{next};"\
7271 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7272 " {if(hide[section]) next};"\
7273 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7274 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7275 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7276 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7277 " ' prfx=^$ac_symprfx"
7278 else
7279 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7280 fi
7281 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7282
7283 # Check to see that the pipe works correctly.
7284 pipe_works=no
7285
7286 rm -f conftest*
7287 cat > conftest.$ac_ext <<_LT_EOF
7288 #ifdef __cplusplus
7289 extern "C" {
7290 #endif
7291 char nm_test_var;
7292 void nm_test_func(void);
7293 void nm_test_func(void){}
7294 #ifdef __cplusplus
7295 }
7296 #endif
7297 int main(){nm_test_var='a';nm_test_func();return(0);}
7298 _LT_EOF
7299
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7301 (eval $ac_compile) 2>&5
7302 ac_status=$?
7303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7305 # Now try to grab the symbols.
7306 nlist=conftest.nm
7307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7308 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7309 ac_status=$?
7310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7311 test $ac_status = 0; } && test -s "$nlist"; then
7312 # Try sorting and uniquifying the output.
7313 if sort "$nlist" | uniq > "$nlist"T; then
7314 mv -f "$nlist"T "$nlist"
7315 else
7316 rm -f "$nlist"T
7317 fi
7318
7319 # Make sure that we snagged all the symbols we need.
7320 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7321 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7322 cat <<_LT_EOF > conftest.$ac_ext
7323 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7324 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7325 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7326 relocations are performed -- see ld's documentation on pseudo-relocs. */
7327 # define LT_DLSYM_CONST
7328 #elif defined __osf__
7329 /* This system does not cope well with relocations in const data. */
7330 # define LT_DLSYM_CONST
7331 #else
7332 # define LT_DLSYM_CONST const
7333 #endif
7334
7335 #ifdef __cplusplus
7336 extern "C" {
7337 #endif
7338
7339 _LT_EOF
7340 # Now generate the symbol file.
7341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7342
7343 cat <<_LT_EOF >> conftest.$ac_ext
7344
7345 /* The mapping between symbol names and symbols. */
7346 LT_DLSYM_CONST struct {
7347 const char *name;
7348 void *address;
7349 }
7350 lt__PROGRAM__LTX_preloaded_symbols[] =
7351 {
7352 { "@PROGRAM@", (void *) 0 },
7353 _LT_EOF
7354 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7355 cat <<\_LT_EOF >> conftest.$ac_ext
7356 {0, (void *) 0}
7357 };
7358
7359 /* This works around a problem in FreeBSD linker */
7360 #ifdef FREEBSD_WORKAROUND
7361 static const void *lt_preloaded_setup() {
7362 return lt__PROGRAM__LTX_preloaded_symbols;
7363 }
7364 #endif
7365
7366 #ifdef __cplusplus
7367 }
7368 #endif
7369 _LT_EOF
7370 # Now try linking the two files.
7371 mv conftest.$ac_objext conftstm.$ac_objext
7372 lt_globsym_save_LIBS=$LIBS
7373 lt_globsym_save_CFLAGS=$CFLAGS
7374 LIBS=conftstm.$ac_objext
7375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7377 (eval $ac_link) 2>&5
7378 ac_status=$?
7379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7381 pipe_works=yes
7382 fi
7383 LIBS=$lt_globsym_save_LIBS
7384 CFLAGS=$lt_globsym_save_CFLAGS
7385 else
7386 echo "cannot find nm_test_func in $nlist" >&5
7387 fi
7388 else
7389 echo "cannot find nm_test_var in $nlist" >&5
7390 fi
7391 else
7392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7393 fi
7394 else
7395 echo "$progname: failed program was:" >&5
7396 cat conftest.$ac_ext >&5
7397 fi
7398 rm -rf conftest* conftst*
7399
7400 # Do not use the global_symbol_pipe unless it works.
7401 if test yes = "$pipe_works"; then
7402 break
7403 else
7404 lt_cv_sys_global_symbol_pipe=
7405 fi
7406 done
7407
7408 fi
7409
7410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7411 lt_cv_sys_global_symbol_to_cdecl=
7412 fi
7413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7415 printf "%s\n" "failed" >&6; }
7416 else
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7418 printf "%s\n" "ok" >&6; }
7419 fi
7420
7421 # Response file support.
7422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7423 nm_file_list_spec='@'
7424 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7425 nm_file_list_spec='@'
7426 fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7465 printf %s "checking for sysroot... " >&6; }
7466
7467 # Check whether --with-sysroot was given.
7468 if test ${with_sysroot+y}
7469 then :
7470 withval=$with_sysroot;
7471 else $as_nop
7472 with_sysroot=no
7473 fi
7474
7475
7476 lt_sysroot=
7477 case $with_sysroot in #(
7478 yes)
7479 if test yes = "$GCC"; then
7480 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7481 fi
7482 ;; #(
7483 /*)
7484 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7485 ;; #(
7486 no|'')
7487 ;; #(
7488 *)
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7490 printf "%s\n" "$with_sysroot" >&6; }
7491 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7492 ;;
7493 esac
7494
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7496 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7497
7498
7499
7500
7501
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7503 printf %s "checking for a working dd... " >&6; }
7504 if test ${ac_cv_path_lt_DD+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else $as_nop
7508 printf 0123456789abcdef0123456789abcdef >conftest.i
7509 cat conftest.i conftest.i >conftest2.i
7510 : ${lt_DD:=$DD}
7511 if test -z "$lt_DD"; then
7512 ac_path_lt_DD_found=false
7513 # Loop through the user's path and test for each of PROGNAME-LIST
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 case $as_dir in #(((
7519 '') as_dir=./ ;;
7520 */) ;;
7521 *) as_dir=$as_dir/ ;;
7522 esac
7523 for ac_prog in dd
7524 do
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7527 as_fn_executable_p "$ac_path_lt_DD" || continue
7528 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7529 cmp -s conftest.i conftest.out \
7530 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7531 fi
7532 $ac_path_lt_DD_found && break 3
7533 done
7534 done
7535 done
7536 IFS=$as_save_IFS
7537 if test -z "$ac_cv_path_lt_DD"; then
7538 :
7539 fi
7540 else
7541 ac_cv_path_lt_DD=$lt_DD
7542 fi
7543
7544 rm -f conftest.i conftest2.i conftest.out
7545 fi
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7547 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7548
7549
7550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7551 printf %s "checking how to truncate binary pipes... " >&6; }
7552 if test ${lt_cv_truncate_bin+y}
7553 then :
7554 printf %s "(cached) " >&6
7555 else $as_nop
7556 printf 0123456789abcdef0123456789abcdef >conftest.i
7557 cat conftest.i conftest.i >conftest2.i
7558 lt_cv_truncate_bin=
7559 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7560 cmp -s conftest.i conftest.out \
7561 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7562 fi
7563 rm -f conftest.i conftest2.i conftest.out
7564 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7565 fi
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7567 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7568
7569
7570
7571
7572
7573
7574
7575 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7576 func_cc_basename ()
7577 {
7578 for cc_temp in $*""; do
7579 case $cc_temp in
7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7582 \-*) ;;
7583 *) break;;
7584 esac
7585 done
7586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7587 }
7588
7589 # Check whether --enable-libtool-lock was given.
7590 if test ${enable_libtool_lock+y}
7591 then :
7592 enableval=$enable_libtool_lock;
7593 fi
7594
7595 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7596
7597 # Some flags need to be propagated to the compiler or linker for good
7598 # libtool support.
7599 case $host in
7600 ia64-*-hpux*)
7601 # Find out what ABI is being produced by ac_compile, and set mode
7602 # options accordingly.
7603 echo 'int i;' > conftest.$ac_ext
7604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7605 (eval $ac_compile) 2>&5
7606 ac_status=$?
7607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }; then
7609 case `$FILECMD conftest.$ac_objext` in
7610 *ELF-32*)
7611 HPUX_IA64_MODE=32
7612 ;;
7613 *ELF-64*)
7614 HPUX_IA64_MODE=64
7615 ;;
7616 esac
7617 fi
7618 rm -rf conftest*
7619 ;;
7620 *-*-irix6*)
7621 # Find out what ABI is being produced by ac_compile, and set linker
7622 # options accordingly.
7623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7625 (eval $ac_compile) 2>&5
7626 ac_status=$?
7627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }; then
7629 if test yes = "$lt_cv_prog_gnu_ld"; then
7630 case `$FILECMD conftest.$ac_objext` in
7631 *32-bit*)
7632 LD="${LD-ld} -melf32bsmip"
7633 ;;
7634 *N32*)
7635 LD="${LD-ld} -melf32bmipn32"
7636 ;;
7637 *64-bit*)
7638 LD="${LD-ld} -melf64bmip"
7639 ;;
7640 esac
7641 else
7642 case `$FILECMD conftest.$ac_objext` in
7643 *32-bit*)
7644 LD="${LD-ld} -32"
7645 ;;
7646 *N32*)
7647 LD="${LD-ld} -n32"
7648 ;;
7649 *64-bit*)
7650 LD="${LD-ld} -64"
7651 ;;
7652 esac
7653 fi
7654 fi
7655 rm -rf conftest*
7656 ;;
7657
7658 mips64*-*linux*)
7659 # Find out what ABI is being produced by ac_compile, and set linker
7660 # options accordingly.
7661 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7663 (eval $ac_compile) 2>&5
7664 ac_status=$?
7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7666 test $ac_status = 0; }; then
7667 emul=elf
7668 case `$FILECMD conftest.$ac_objext` in
7669 *32-bit*)
7670 emul="${emul}32"
7671 ;;
7672 *64-bit*)
7673 emul="${emul}64"
7674 ;;
7675 esac
7676 case `$FILECMD conftest.$ac_objext` in
7677 *MSB*)
7678 emul="${emul}btsmip"
7679 ;;
7680 *LSB*)
7681 emul="${emul}ltsmip"
7682 ;;
7683 esac
7684 case `$FILECMD conftest.$ac_objext` in
7685 *N32*)
7686 emul="${emul}n32"
7687 ;;
7688 esac
7689 LD="${LD-ld} -m $emul"
7690 fi
7691 rm -rf conftest*
7692 ;;
7693
7694 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7695 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7696 # Find out what ABI is being produced by ac_compile, and set linker
7697 # options accordingly. Note that the listed cases only cover the
7698 # situations where additional linker options are needed (such as when
7699 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7700 # vice versa); the common cases where no linker options are needed do
7701 # not appear in the list.
7702 echo 'int i;' > conftest.$ac_ext
7703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; }; then
7708 case `$FILECMD conftest.o` in
7709 *32-bit*)
7710 case $host in
7711 x86_64-*kfreebsd*-gnu)
7712 LD="${LD-ld} -m elf_i386_fbsd"
7713 ;;
7714 x86_64-*linux*)
7715 case `$FILECMD conftest.o` in
7716 *x86-64*)
7717 LD="${LD-ld} -m elf32_x86_64"
7718 ;;
7719 *)
7720 LD="${LD-ld} -m elf_i386"
7721 ;;
7722 esac
7723 ;;
7724 powerpc64le-*linux*)
7725 LD="${LD-ld} -m elf32lppclinux"
7726 ;;
7727 powerpc64-*linux*)
7728 LD="${LD-ld} -m elf32ppclinux"
7729 ;;
7730 s390x-*linux*)
7731 LD="${LD-ld} -m elf_s390"
7732 ;;
7733 sparc64-*linux*)
7734 LD="${LD-ld} -m elf32_sparc"
7735 ;;
7736 esac
7737 ;;
7738 *64-bit*)
7739 case $host in
7740 x86_64-*kfreebsd*-gnu)
7741 LD="${LD-ld} -m elf_x86_64_fbsd"
7742 ;;
7743 x86_64-*linux*)
7744 LD="${LD-ld} -m elf_x86_64"
7745 ;;
7746 powerpcle-*linux*|powerpc64le-*linux*)
7747 LD="${LD-ld} -m elf64lppc"
7748 ;;
7749 powerpc-*linux*|powerpc64-*linux*)
7750 LD="${LD-ld} -m elf64ppc"
7751 ;;
7752 s390*-*linux*|s390*-*tpf*)
7753 LD="${LD-ld} -m elf64_s390"
7754 ;;
7755 sparc*-*linux*)
7756 LD="${LD-ld} -m elf64_sparc"
7757 ;;
7758 esac
7759 ;;
7760 esac
7761 fi
7762 rm -rf conftest*
7763 ;;
7764
7765 *-*-sco3.2v5*)
7766 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7767 SAVE_CFLAGS=$CFLAGS
7768 CFLAGS="$CFLAGS -belf"
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7770 printf %s "checking whether the C compiler needs -belf... " >&6; }
7771 if test ${lt_cv_cc_needs_belf+y}
7772 then :
7773 printf %s "(cached) " >&6
7774 else $as_nop
7775 ac_ext=c
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 int
7785 main (void)
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"
7793 then :
7794 lt_cv_cc_needs_belf=yes
7795 else $as_nop
7796 lt_cv_cc_needs_belf=no
7797 fi
7798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7799 conftest$ac_exeext conftest.$ac_ext
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7808 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7809 if test yes != "$lt_cv_cc_needs_belf"; then
7810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7811 CFLAGS=$SAVE_CFLAGS
7812 fi
7813 ;;
7814 *-*solaris*)
7815 # Find out what ABI is being produced by ac_compile, and set linker
7816 # options accordingly.
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `$FILECMD conftest.o` in
7824 *64-bit*)
7825 case $lt_cv_prog_gnu_ld in
7826 yes*)
7827 case $host in
7828 i?86-*-solaris*|x86_64-*-solaris*)
7829 LD="${LD-ld} -m elf_x86_64"
7830 ;;
7831 sparc*-*-solaris*)
7832 LD="${LD-ld} -m elf64_sparc"
7833 ;;
7834 esac
7835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7837 LD=${LD-ld}_sol2
7838 fi
7839 ;;
7840 *)
7841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7842 LD="${LD-ld} -64"
7843 fi
7844 ;;
7845 esac
7846 ;;
7847 esac
7848 fi
7849 rm -rf conftest*
7850 ;;
7851 esac
7852
7853 need_locks=$enable_libtool_lock
7854
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}mt; ac_word=$2
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 printf %s "checking for $ac_word... " >&6; }
7860 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7861 then :
7862 printf %s "(cached) " >&6
7863 else $as_nop
7864 if test -n "$MANIFEST_TOOL"; then
7865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882 done
7883 done
7884 IFS=$as_save_IFS
7885
7886 fi
7887 fi
7888 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7889 if test -n "$MANIFEST_TOOL"; then
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7891 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7892 else
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 printf "%s\n" "no" >&6; }
7895 fi
7896
7897
7898 fi
7899 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7900 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7901 # Extract the first word of "mt", so it can be a program name with args.
7902 set dummy mt; ac_word=$2
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 printf %s "checking for $ac_word... " >&6; }
7905 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7906 then :
7907 printf %s "(cached) " >&6
7908 else $as_nop
7909 if test -n "$ac_ct_MANIFEST_TOOL"; then
7910 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915 IFS=$as_save_IFS
7916 case $as_dir in #(((
7917 '') as_dir=./ ;;
7918 */) ;;
7919 *) as_dir=$as_dir/ ;;
7920 esac
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927 done
7928 done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7934 if test -n "$ac_ct_MANIFEST_TOOL"; then
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7936 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7937 else
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 printf "%s\n" "no" >&6; }
7940 fi
7941
7942 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7943 MANIFEST_TOOL=":"
7944 else
7945 case $cross_compiling:$ac_tool_warned in
7946 yes:)
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949 ac_tool_warned=yes ;;
7950 esac
7951 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7952 fi
7953 else
7954 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7955 fi
7956
7957 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7959 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7960 if test ${lt_cv_path_mainfest_tool+y}
7961 then :
7962 printf %s "(cached) " >&6
7963 else $as_nop
7964 lt_cv_path_mainfest_tool=no
7965 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7966 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7967 cat conftest.err >&5
7968 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7969 lt_cv_path_mainfest_tool=yes
7970 fi
7971 rm -f conftest*
7972 fi
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7974 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7975 if test yes != "$lt_cv_path_mainfest_tool"; then
7976 MANIFEST_TOOL=:
7977 fi
7978
7979
7980
7981
7982
7983
7984 case $host_os in
7985 rhapsody* | darwin*)
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 printf %s "checking for $ac_word... " >&6; }
7991 if test ${ac_cv_prog_DSYMUTIL+y}
7992 then :
7993 printf %s "(cached) " >&6
7994 else $as_nop
7995 if test -n "$DSYMUTIL"; then
7996 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7997 else
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 for as_dir in $PATH
8000 do
8001 IFS=$as_save_IFS
8002 case $as_dir in #(((
8003 '') as_dir=./ ;;
8004 */) ;;
8005 *) as_dir=$as_dir/ ;;
8006 esac
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8011 break 2
8012 fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017 fi
8018 fi
8019 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8020 if test -n "$DSYMUTIL"; then
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8022 printf "%s\n" "$DSYMUTIL" >&6; }
8023 else
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 printf "%s\n" "no" >&6; }
8026 fi
8027
8028
8029 fi
8030 if test -z "$ac_cv_prog_DSYMUTIL"; then
8031 ac_ct_DSYMUTIL=$DSYMUTIL
8032 # Extract the first word of "dsymutil", so it can be a program name with args.
8033 set dummy dsymutil; ac_word=$2
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 printf %s "checking for $ac_word... " >&6; }
8036 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8037 then :
8038 printf %s "(cached) " >&6
8039 else $as_nop
8040 if test -n "$ac_ct_DSYMUTIL"; then
8041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046 IFS=$as_save_IFS
8047 case $as_dir in #(((
8048 '') as_dir=./ ;;
8049 */) ;;
8050 *) as_dir=$as_dir/ ;;
8051 esac
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8056 break 2
8057 fi
8058 done
8059 done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8065 if test -n "$ac_ct_DSYMUTIL"; then
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8067 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8068 else
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 printf "%s\n" "no" >&6; }
8071 fi
8072
8073 if test "x$ac_ct_DSYMUTIL" = x; then
8074 DSYMUTIL=":"
8075 else
8076 case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080 ac_tool_warned=yes ;;
8081 esac
8082 DSYMUTIL=$ac_ct_DSYMUTIL
8083 fi
8084 else
8085 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8086 fi
8087
8088 if test -n "$ac_tool_prefix"; then
8089 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8090 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 printf %s "checking for $ac_word... " >&6; }
8093 if test ${ac_cv_prog_NMEDIT+y}
8094 then :
8095 printf %s "(cached) " >&6
8096 else $as_nop
8097 if test -n "$NMEDIT"; then
8098 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103 IFS=$as_save_IFS
8104 case $as_dir in #(((
8105 '') as_dir=./ ;;
8106 */) ;;
8107 *) as_dir=$as_dir/ ;;
8108 esac
8109 for ac_exec_ext in '' $ac_executable_extensions; do
8110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8113 break 2
8114 fi
8115 done
8116 done
8117 IFS=$as_save_IFS
8118
8119 fi
8120 fi
8121 NMEDIT=$ac_cv_prog_NMEDIT
8122 if test -n "$NMEDIT"; then
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8124 printf "%s\n" "$NMEDIT" >&6; }
8125 else
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 printf "%s\n" "no" >&6; }
8128 fi
8129
8130
8131 fi
8132 if test -z "$ac_cv_prog_NMEDIT"; then
8133 ac_ct_NMEDIT=$NMEDIT
8134 # Extract the first word of "nmedit", so it can be a program name with args.
8135 set dummy nmedit; ac_word=$2
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 printf %s "checking for $ac_word... " >&6; }
8138 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8139 then :
8140 printf %s "(cached) " >&6
8141 else $as_nop
8142 if test -n "$ac_ct_NMEDIT"; then
8143 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8144 else
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8147 do
8148 IFS=$as_save_IFS
8149 case $as_dir in #(((
8150 '') as_dir=./ ;;
8151 */) ;;
8152 *) as_dir=$as_dir/ ;;
8153 esac
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8167 if test -n "$ac_ct_NMEDIT"; then
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8169 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8170 else
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 printf "%s\n" "no" >&6; }
8173 fi
8174
8175 if test "x$ac_ct_NMEDIT" = x; then
8176 NMEDIT=":"
8177 else
8178 case $cross_compiling:$ac_tool_warned in
8179 yes:)
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8182 ac_tool_warned=yes ;;
8183 esac
8184 NMEDIT=$ac_ct_NMEDIT
8185 fi
8186 else
8187 NMEDIT="$ac_cv_prog_NMEDIT"
8188 fi
8189
8190 if test -n "$ac_tool_prefix"; then
8191 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8192 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 printf %s "checking for $ac_word... " >&6; }
8195 if test ${ac_cv_prog_LIPO+y}
8196 then :
8197 printf %s "(cached) " >&6
8198 else $as_nop
8199 if test -n "$LIPO"; then
8200 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205 IFS=$as_save_IFS
8206 case $as_dir in #(((
8207 '') as_dir=./ ;;
8208 */) ;;
8209 *) as_dir=$as_dir/ ;;
8210 esac
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 fi
8222 fi
8223 LIPO=$ac_cv_prog_LIPO
8224 if test -n "$LIPO"; then
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8226 printf "%s\n" "$LIPO" >&6; }
8227 else
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 printf "%s\n" "no" >&6; }
8230 fi
8231
8232
8233 fi
8234 if test -z "$ac_cv_prog_LIPO"; then
8235 ac_ct_LIPO=$LIPO
8236 # Extract the first word of "lipo", so it can be a program name with args.
8237 set dummy lipo; ac_word=$2
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 printf %s "checking for $ac_word... " >&6; }
8240 if test ${ac_cv_prog_ac_ct_LIPO+y}
8241 then :
8242 printf %s "(cached) " >&6
8243 else $as_nop
8244 if test -n "$ac_ct_LIPO"; then
8245 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8246 else
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8249 do
8250 IFS=$as_save_IFS
8251 case $as_dir in #(((
8252 '') as_dir=./ ;;
8253 */) ;;
8254 *) as_dir=$as_dir/ ;;
8255 esac
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_ac_ct_LIPO="lipo"
8259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8260 break 2
8261 fi
8262 done
8263 done
8264 IFS=$as_save_IFS
8265
8266 fi
8267 fi
8268 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8269 if test -n "$ac_ct_LIPO"; then
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8271 printf "%s\n" "$ac_ct_LIPO" >&6; }
8272 else
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 printf "%s\n" "no" >&6; }
8275 fi
8276
8277 if test "x$ac_ct_LIPO" = x; then
8278 LIPO=":"
8279 else
8280 case $cross_compiling:$ac_tool_warned in
8281 yes:)
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284 ac_tool_warned=yes ;;
8285 esac
8286 LIPO=$ac_ct_LIPO
8287 fi
8288 else
8289 LIPO="$ac_cv_prog_LIPO"
8290 fi
8291
8292 if test -n "$ac_tool_prefix"; then
8293 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}otool; ac_word=$2
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 printf %s "checking for $ac_word... " >&6; }
8297 if test ${ac_cv_prog_OTOOL+y}
8298 then :
8299 printf %s "(cached) " >&6
8300 else $as_nop
8301 if test -n "$OTOOL"; then
8302 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307 IFS=$as_save_IFS
8308 case $as_dir in #(((
8309 '') as_dir=./ ;;
8310 */) ;;
8311 *) as_dir=$as_dir/ ;;
8312 esac
8313 for ac_exec_ext in '' $ac_executable_extensions; do
8314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8315 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8317 break 2
8318 fi
8319 done
8320 done
8321 IFS=$as_save_IFS
8322
8323 fi
8324 fi
8325 OTOOL=$ac_cv_prog_OTOOL
8326 if test -n "$OTOOL"; then
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8328 printf "%s\n" "$OTOOL" >&6; }
8329 else
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 printf "%s\n" "no" >&6; }
8332 fi
8333
8334
8335 fi
8336 if test -z "$ac_cv_prog_OTOOL"; then
8337 ac_ct_OTOOL=$OTOOL
8338 # Extract the first word of "otool", so it can be a program name with args.
8339 set dummy otool; ac_word=$2
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 printf %s "checking for $ac_word... " >&6; }
8342 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8343 then :
8344 printf %s "(cached) " >&6
8345 else $as_nop
8346 if test -n "$ac_ct_OTOOL"; then
8347 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352 IFS=$as_save_IFS
8353 case $as_dir in #(((
8354 '') as_dir=./ ;;
8355 */) ;;
8356 *) as_dir=$as_dir/ ;;
8357 esac
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8360 ac_cv_prog_ac_ct_OTOOL="otool"
8361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8362 break 2
8363 fi
8364 done
8365 done
8366 IFS=$as_save_IFS
8367
8368 fi
8369 fi
8370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8371 if test -n "$ac_ct_OTOOL"; then
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8373 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8374 else
8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 printf "%s\n" "no" >&6; }
8377 fi
8378
8379 if test "x$ac_ct_OTOOL" = x; then
8380 OTOOL=":"
8381 else
8382 case $cross_compiling:$ac_tool_warned in
8383 yes:)
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386 ac_tool_warned=yes ;;
8387 esac
8388 OTOOL=$ac_ct_OTOOL
8389 fi
8390 else
8391 OTOOL="$ac_cv_prog_OTOOL"
8392 fi
8393
8394 if test -n "$ac_tool_prefix"; then
8395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 printf %s "checking for $ac_word... " >&6; }
8399 if test ${ac_cv_prog_OTOOL64+y}
8400 then :
8401 printf %s "(cached) " >&6
8402 else $as_nop
8403 if test -n "$OTOOL64"; then
8404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409 IFS=$as_save_IFS
8410 case $as_dir in #(((
8411 '') as_dir=./ ;;
8412 */) ;;
8413 *) as_dir=$as_dir/ ;;
8414 esac
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8417 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8419 break 2
8420 fi
8421 done
8422 done
8423 IFS=$as_save_IFS
8424
8425 fi
8426 fi
8427 OTOOL64=$ac_cv_prog_OTOOL64
8428 if test -n "$OTOOL64"; then
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8430 printf "%s\n" "$OTOOL64" >&6; }
8431 else
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 printf "%s\n" "no" >&6; }
8434 fi
8435
8436
8437 fi
8438 if test -z "$ac_cv_prog_OTOOL64"; then
8439 ac_ct_OTOOL64=$OTOOL64
8440 # Extract the first word of "otool64", so it can be a program name with args.
8441 set dummy otool64; ac_word=$2
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 printf %s "checking for $ac_word... " >&6; }
8444 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8445 then :
8446 printf %s "(cached) " >&6
8447 else $as_nop
8448 if test -n "$ac_ct_OTOOL64"; then
8449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454 IFS=$as_save_IFS
8455 case $as_dir in #(((
8456 '') as_dir=./ ;;
8457 */) ;;
8458 *) as_dir=$as_dir/ ;;
8459 esac
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8462 ac_cv_prog_ac_ct_OTOOL64="otool64"
8463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466 done
8467 done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8473 if test -n "$ac_ct_OTOOL64"; then
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8475 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8476 else
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 printf "%s\n" "no" >&6; }
8479 fi
8480
8481 if test "x$ac_ct_OTOOL64" = x; then
8482 OTOOL64=":"
8483 else
8484 case $cross_compiling:$ac_tool_warned in
8485 yes:)
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8487 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8488 ac_tool_warned=yes ;;
8489 esac
8490 OTOOL64=$ac_ct_OTOOL64
8491 fi
8492 else
8493 OTOOL64="$ac_cv_prog_OTOOL64"
8494 fi
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8523 printf %s "checking for -single_module linker flag... " >&6; }
8524 if test ${lt_cv_apple_cc_single_mod+y}
8525 then :
8526 printf %s "(cached) " >&6
8527 else $as_nop
8528 lt_cv_apple_cc_single_mod=no
8529 if test -z "$LT_MULTI_MODULE"; then
8530 # By default we will add the -single_module flag. You can override
8531 # by either setting the environment variable LT_MULTI_MODULE
8532 # non-empty at configure time, or by adding -multi_module to the
8533 # link flags.
8534 rm -rf libconftest.dylib*
8535 echo "int foo(void){return 1;}" > conftest.c
8536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8537 -dynamiclib -Wl,-single_module conftest.c" >&5
8538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8540 _lt_result=$?
8541 # If there is a non-empty error log, and "single_module"
8542 # appears in it, assume the flag caused a linker warning
8543 if test -s conftest.err && $GREP single_module conftest.err; then
8544 cat conftest.err >&5
8545 # Otherwise, if the output was created with a 0 exit code from
8546 # the compiler, it worked.
8547 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8548 lt_cv_apple_cc_single_mod=yes
8549 else
8550 cat conftest.err >&5
8551 fi
8552 rm -rf libconftest.dylib*
8553 rm -f conftest.*
8554 fi
8555 fi
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8557 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8558
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8560 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8561 if test ${lt_cv_ld_exported_symbols_list+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else $as_nop
8565 lt_cv_ld_exported_symbols_list=no
8566 save_LDFLAGS=$LDFLAGS
8567 echo "_main" > conftest.sym
8568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571
8572 int
8573 main (void)
8574 {
8575
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_link "$LINENO"
8581 then :
8582 lt_cv_ld_exported_symbols_list=yes
8583 else $as_nop
8584 lt_cv_ld_exported_symbols_list=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8587 conftest$ac_exeext conftest.$ac_ext
8588 LDFLAGS=$save_LDFLAGS
8589
8590 fi
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8592 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8593
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8595 printf %s "checking for -force_load linker flag... " >&6; }
8596 if test ${lt_cv_ld_force_load+y}
8597 then :
8598 printf %s "(cached) " >&6
8599 else $as_nop
8600 lt_cv_ld_force_load=no
8601 cat > conftest.c << _LT_EOF
8602 int forced_loaded() { return 2;}
8603 _LT_EOF
8604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8606 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8607 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8608 echo "$RANLIB libconftest.a" >&5
8609 $RANLIB libconftest.a 2>&5
8610 cat > conftest.c << _LT_EOF
8611 int main() { return 0;}
8612 _LT_EOF
8613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8615 _lt_result=$?
8616 if test -s conftest.err && $GREP force_load conftest.err; then
8617 cat conftest.err >&5
8618 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8619 lt_cv_ld_force_load=yes
8620 else
8621 cat conftest.err >&5
8622 fi
8623 rm -f conftest.err libconftest.a conftest conftest.c
8624 rm -rf conftest.dSYM
8625
8626 fi
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8628 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8629 case $host_os in
8630 rhapsody* | darwin1.[012])
8631 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8632 darwin1.*)
8633 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8634 darwin*)
8635 case $MACOSX_DEPLOYMENT_TARGET,$host in
8636 10.[012],*|,*powerpc*-darwin[5-8]*)
8637 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8638 *)
8639 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8640 esac
8641 ;;
8642 esac
8643 if test yes = "$lt_cv_apple_cc_single_mod"; then
8644 _lt_dar_single_mod='$single_module'
8645 fi
8646 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8647 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8648 else
8649 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8650 fi
8651 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8652 _lt_dsymutil='~$DSYMUTIL $lib || :'
8653 else
8654 _lt_dsymutil=
8655 fi
8656 ;;
8657 esac
8658
8659 # func_munge_path_list VARIABLE PATH
8660 # -----------------------------------
8661 # VARIABLE is name of variable containing _space_ separated list of
8662 # directories to be munged by the contents of PATH, which is string
8663 # having a format:
8664 # "DIR[:DIR]:"
8665 # string "DIR[ DIR]" will be prepended to VARIABLE
8666 # ":DIR[:DIR]"
8667 # string "DIR[ DIR]" will be appended to VARIABLE
8668 # "DIRP[:DIRP]::[DIRA:]DIRA"
8669 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8670 # "DIRA[ DIRA]" will be appended to VARIABLE
8671 # "DIR[:DIR]"
8672 # VARIABLE will be replaced by "DIR[ DIR]"
8673 func_munge_path_list ()
8674 {
8675 case x$2 in
8676 x)
8677 ;;
8678 *:)
8679 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8680 ;;
8681 x:*)
8682 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8683 ;;
8684 *::*)
8685 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8686 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8687 ;;
8688 *)
8689 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8690 ;;
8691 esac
8692 }
8693
8694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8695 "
8696 if test "x$ac_cv_header_dlfcn_h" = xyes
8697 then :
8698 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8699
8700 fi
8701
8702
8703
8704
8705
8706 # Set options
8707
8708
8709
8710 enable_dlopen=no
8711
8712
8713 enable_win32_dll=no
8714
8715
8716 # Check whether --enable-shared was given.
8717 if test ${enable_shared+y}
8718 then :
8719 enableval=$enable_shared; p=${PACKAGE-default}
8720 case $enableval in
8721 yes) enable_shared=yes ;;
8722 no) enable_shared=no ;;
8723 *)
8724 enable_shared=no
8725 # Look at the argument we got. We use all the common list separators.
8726 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8727 for pkg in $enableval; do
8728 IFS=$lt_save_ifs
8729 if test "X$pkg" = "X$p"; then
8730 enable_shared=yes
8731 fi
8732 done
8733 IFS=$lt_save_ifs
8734 ;;
8735 esac
8736 else $as_nop
8737 enable_shared=yes
8738 fi
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 # Check whether --enable-static was given.
8749 if test ${enable_static+y}
8750 then :
8751 enableval=$enable_static; p=${PACKAGE-default}
8752 case $enableval in
8753 yes) enable_static=yes ;;
8754 no) enable_static=no ;;
8755 *)
8756 enable_static=no
8757 # Look at the argument we got. We use all the common list separators.
8758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8759 for pkg in $enableval; do
8760 IFS=$lt_save_ifs
8761 if test "X$pkg" = "X$p"; then
8762 enable_static=yes
8763 fi
8764 done
8765 IFS=$lt_save_ifs
8766 ;;
8767 esac
8768 else $as_nop
8769 enable_static=yes
8770 fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781 # Check whether --with-pic was given.
8782 if test ${with_pic+y}
8783 then :
8784 withval=$with_pic; lt_p=${PACKAGE-default}
8785 case $withval in
8786 yes|no) pic_mode=$withval ;;
8787 *)
8788 pic_mode=default
8789 # Look at the argument we got. We use all the common list separators.
8790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8791 for lt_pkg in $withval; do
8792 IFS=$lt_save_ifs
8793 if test "X$lt_pkg" = "X$lt_p"; then
8794 pic_mode=yes
8795 fi
8796 done
8797 IFS=$lt_save_ifs
8798 ;;
8799 esac
8800 else $as_nop
8801 pic_mode=default
8802 fi
8803
8804
8805
8806
8807
8808
8809
8810
8811 # Check whether --enable-fast-install was given.
8812 if test ${enable_fast_install+y}
8813 then :
8814 enableval=$enable_fast_install; p=${PACKAGE-default}
8815 case $enableval in
8816 yes) enable_fast_install=yes ;;
8817 no) enable_fast_install=no ;;
8818 *)
8819 enable_fast_install=no
8820 # Look at the argument we got. We use all the common list separators.
8821 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8822 for pkg in $enableval; do
8823 IFS=$lt_save_ifs
8824 if test "X$pkg" = "X$p"; then
8825 enable_fast_install=yes
8826 fi
8827 done
8828 IFS=$lt_save_ifs
8829 ;;
8830 esac
8831 else $as_nop
8832 enable_fast_install=yes
8833 fi
8834
8835
8836
8837
8838
8839
8840
8841
8842 shared_archive_member_spec=
8843 case $host,$enable_shared in
8844 power*-*-aix[5-9]*,yes)
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8846 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8847
8848 # Check whether --with-aix-soname was given.
8849 if test ${with_aix_soname+y}
8850 then :
8851 withval=$with_aix_soname; case $withval in
8852 aix|svr4|both)
8853 ;;
8854 *)
8855 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8856 ;;
8857 esac
8858 lt_cv_with_aix_soname=$with_aix_soname
8859 else $as_nop
8860 if test ${lt_cv_with_aix_soname+y}
8861 then :
8862 printf %s "(cached) " >&6
8863 else $as_nop
8864 lt_cv_with_aix_soname=aix
8865 fi
8866
8867 with_aix_soname=$lt_cv_with_aix_soname
8868 fi
8869
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8871 printf "%s\n" "$with_aix_soname" >&6; }
8872 if test aix != "$with_aix_soname"; then
8873 # For the AIX way of multilib, we name the shared archive member
8874 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8875 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8876 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8877 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8878 if test 64 = "${OBJECT_MODE-32}"; then
8879 shared_archive_member_spec=shr_64
8880 else
8881 shared_archive_member_spec=shr
8882 fi
8883 fi
8884 ;;
8885 *)
8886 with_aix_soname=aix
8887 ;;
8888 esac
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 # This can be used to rebuild libtool when needed
8900 LIBTOOL_DEPS=$ltmain
8901
8902 # Always use our own libtool.
8903 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934 test -z "$LN_S" && LN_S="ln -s"
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 if test -n "${ZSH_VERSION+set}"; then
8950 setopt NO_GLOB_SUBST
8951 fi
8952
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8954 printf %s "checking for objdir... " >&6; }
8955 if test ${lt_cv_objdir+y}
8956 then :
8957 printf %s "(cached) " >&6
8958 else $as_nop
8959 rm -f .libs 2>/dev/null
8960 mkdir .libs 2>/dev/null
8961 if test -d .libs; then
8962 lt_cv_objdir=.libs
8963 else
8964 # MS-DOS does not allow filenames that begin with a dot.
8965 lt_cv_objdir=_libs
8966 fi
8967 rmdir .libs 2>/dev/null
8968 fi
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8970 printf "%s\n" "$lt_cv_objdir" >&6; }
8971 objdir=$lt_cv_objdir
8972
8973
8974
8975
8976
8977 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8978
8979
8980
8981
8982 case $host_os in
8983 aix3*)
8984 # AIX sometimes has problems with the GCC collect2 program. For some
8985 # reason, if we set the COLLECT_NAMES environment variable, the problems
8986 # vanish in a puff of smoke.
8987 if test set != "${COLLECT_NAMES+set}"; then
8988 COLLECT_NAMES=
8989 export COLLECT_NAMES
8990 fi
8991 ;;
8992 esac
8993
8994 # Global variables:
8995 ofile=libtool
8996 can_build_shared=yes
8997
8998 # All known linkers require a '.a' archive for static linking (except MSVC and
8999 # ICC, which need '.lib').
9000 libext=a
9001
9002 with_gnu_ld=$lt_cv_prog_gnu_ld
9003
9004 old_CC=$CC
9005 old_CFLAGS=$CFLAGS
9006
9007 # Set sane defaults for various variables
9008 test -z "$CC" && CC=cc
9009 test -z "$LTCC" && LTCC=$CC
9010 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9011 test -z "$LD" && LD=ld
9012 test -z "$ac_objext" && ac_objext=o
9013
9014 func_cc_basename $compiler
9015 cc_basename=$func_cc_basename_result
9016
9017
9018 # Only perform the check for file, if the check method requires it
9019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9020 case $deplibs_check_method in
9021 file_magic*)
9022 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9024 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9025 if test ${lt_cv_path_MAGIC_CMD+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else $as_nop
9029 case $MAGIC_CMD in
9030 [\\/*] | ?:[\\/]*)
9031 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9032 ;;
9033 *)
9034 lt_save_MAGIC_CMD=$MAGIC_CMD
9035 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9036 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9037 for ac_dir in $ac_dummy; do
9038 IFS=$lt_save_ifs
9039 test -z "$ac_dir" && ac_dir=.
9040 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9041 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9042 if test -n "$file_magic_test_file"; then
9043 case $deplibs_check_method in
9044 "file_magic "*)
9045 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9046 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9047 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9048 $EGREP "$file_magic_regex" > /dev/null; then
9049 :
9050 else
9051 cat <<_LT_EOF 1>&2
9052
9053 *** Warning: the command libtool uses to detect shared libraries,
9054 *** $file_magic_cmd, produces output that libtool cannot recognize.
9055 *** The result is that libtool may fail to recognize shared libraries
9056 *** as such. This will affect the creation of libtool libraries that
9057 *** depend on shared libraries, but programs linked with such libtool
9058 *** libraries will work regardless of this problem. Nevertheless, you
9059 *** may want to report the problem to your system manager and/or to
9060 *** bug-libtool@gnu.org
9061
9062 _LT_EOF
9063 fi ;;
9064 esac
9065 fi
9066 break
9067 fi
9068 done
9069 IFS=$lt_save_ifs
9070 MAGIC_CMD=$lt_save_MAGIC_CMD
9071 ;;
9072 esac
9073 fi
9074
9075 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9076 if test -n "$MAGIC_CMD"; then
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9078 printf "%s\n" "$MAGIC_CMD" >&6; }
9079 else
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 printf "%s\n" "no" >&6; }
9082 fi
9083
9084
9085
9086
9087
9088 if test -z "$lt_cv_path_MAGIC_CMD"; then
9089 if test -n "$ac_tool_prefix"; then
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9091 printf %s "checking for file... " >&6; }
9092 if test ${lt_cv_path_MAGIC_CMD+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else $as_nop
9096 case $MAGIC_CMD in
9097 [\\/*] | ?:[\\/]*)
9098 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9099 ;;
9100 *)
9101 lt_save_MAGIC_CMD=$MAGIC_CMD
9102 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9104 for ac_dir in $ac_dummy; do
9105 IFS=$lt_save_ifs
9106 test -z "$ac_dir" && ac_dir=.
9107 if test -f "$ac_dir/file"; then
9108 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9109 if test -n "$file_magic_test_file"; then
9110 case $deplibs_check_method in
9111 "file_magic "*)
9112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9113 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9115 $EGREP "$file_magic_regex" > /dev/null; then
9116 :
9117 else
9118 cat <<_LT_EOF 1>&2
9119
9120 *** Warning: the command libtool uses to detect shared libraries,
9121 *** $file_magic_cmd, produces output that libtool cannot recognize.
9122 *** The result is that libtool may fail to recognize shared libraries
9123 *** as such. This will affect the creation of libtool libraries that
9124 *** depend on shared libraries, but programs linked with such libtool
9125 *** libraries will work regardless of this problem. Nevertheless, you
9126 *** may want to report the problem to your system manager and/or to
9127 *** bug-libtool@gnu.org
9128
9129 _LT_EOF
9130 fi ;;
9131 esac
9132 fi
9133 break
9134 fi
9135 done
9136 IFS=$lt_save_ifs
9137 MAGIC_CMD=$lt_save_MAGIC_CMD
9138 ;;
9139 esac
9140 fi
9141
9142 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9143 if test -n "$MAGIC_CMD"; then
9144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9145 printf "%s\n" "$MAGIC_CMD" >&6; }
9146 else
9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 printf "%s\n" "no" >&6; }
9149 fi
9150
9151
9152 else
9153 MAGIC_CMD=:
9154 fi
9155 fi
9156
9157 fi
9158 ;;
9159 esac
9160
9161 # Use C for the default configuration in the libtool script
9162
9163 lt_save_CC=$CC
9164 ac_ext=c
9165 ac_cpp='$CPP $CPPFLAGS'
9166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9169
9170
9171 # Source file extension for C test sources.
9172 ac_ext=c
9173
9174 # Object file extension for compiled C test sources.
9175 objext=o
9176 objext=$objext
9177
9178 # Code to be used in simple compile tests
9179 lt_simple_compile_test_code="int some_variable = 0;"
9180
9181 # Code to be used in simple link tests
9182 lt_simple_link_test_code='int main(){return(0);}'
9183
9184
9185
9186
9187
9188
9189
9190 # If no C compiler was specified, use CC.
9191 LTCC=${LTCC-"$CC"}
9192
9193 # If no C compiler flags were specified, use CFLAGS.
9194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9195
9196 # Allow CC to be a program name with arguments.
9197 compiler=$CC
9198
9199 # Save the default compiler, since it gets overwritten when the other
9200 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9201 compiler_DEFAULT=$CC
9202
9203 # save warnings/boilerplate of simple test code
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9207 _lt_compiler_boilerplate=`cat conftest.err`
9208 $RM conftest*
9209
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9213 _lt_linker_boilerplate=`cat conftest.err`
9214 $RM -r conftest*
9215
9216
9217 if test -n "$compiler"; then
9218
9219 lt_prog_compiler_no_builtin_flag=
9220
9221 if test yes = "$GCC"; then
9222 case $cc_basename in
9223 nvcc*)
9224 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9225 *)
9226 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9227 esac
9228
9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9230 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9231 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9232 then :
9233 printf %s "(cached) " >&6
9234 else $as_nop
9235 lt_cv_prog_compiler_rtti_exceptions=no
9236 ac_outfile=conftest.$ac_objext
9237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9238 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9239 # Insert the option either (1) after the last *FLAGS variable, or
9240 # (2) before a word containing "conftest.", or (3) at the end.
9241 # Note that $ac_compile itself does not contain backslashes and begins
9242 # with a dollar sign (not a hyphen), so the echo should work correctly.
9243 # The option is referenced via a variable to avoid confusing sed.
9244 lt_compile=`echo "$ac_compile" | $SED \
9245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247 -e 's:$: $lt_compiler_flag:'`
9248 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9249 (eval "$lt_compile" 2>conftest.err)
9250 ac_status=$?
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 if (exit $ac_status) && test -s "$ac_outfile"; then
9254 # The compiler can only warn and ignore the option if not recognized
9255 # So say no if there are warnings other than the usual output.
9256 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9259 lt_cv_prog_compiler_rtti_exceptions=yes
9260 fi
9261 fi
9262 $RM conftest*
9263
9264 fi
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9266 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9267
9268 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9270 else
9271 :
9272 fi
9273
9274 fi
9275
9276
9277
9278
9279
9280
9281 lt_prog_compiler_wl=
9282 lt_prog_compiler_pic=
9283 lt_prog_compiler_static=
9284
9285
9286 if test yes = "$GCC"; then
9287 lt_prog_compiler_wl='-Wl,'
9288 lt_prog_compiler_static='-static'
9289
9290 case $host_os in
9291 aix*)
9292 # All AIX code is PIC.
9293 if test ia64 = "$host_cpu"; then
9294 # AIX 5 now supports IA64 processor
9295 lt_prog_compiler_static='-Bstatic'
9296 fi
9297 lt_prog_compiler_pic='-fPIC'
9298 ;;
9299
9300 amigaos*)
9301 case $host_cpu in
9302 powerpc)
9303 # see comment about AmigaOS4 .so support
9304 lt_prog_compiler_pic='-fPIC'
9305 ;;
9306 m68k)
9307 # FIXME: we need at least 68020 code to build shared libraries, but
9308 # adding the '-m68020' flag to GCC prevents building anything better,
9309 # like '-m68040'.
9310 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9311 ;;
9312 esac
9313 ;;
9314
9315 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9316 # PIC is the default for these OSes.
9317 ;;
9318
9319 mingw* | cygwin* | pw32* | os2* | cegcc*)
9320 # This hack is so that the source file can tell whether it is being
9321 # built for inclusion in a dll (and should export symbols for example).
9322 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9323 # (--disable-auto-import) libraries
9324 lt_prog_compiler_pic='-DDLL_EXPORT'
9325 case $host_os in
9326 os2*)
9327 lt_prog_compiler_static='$wl-static'
9328 ;;
9329 esac
9330 ;;
9331
9332 darwin* | rhapsody*)
9333 # PIC is the default on this platform
9334 # Common symbols not allowed in MH_DYLIB files
9335 lt_prog_compiler_pic='-fno-common'
9336 ;;
9337
9338 haiku*)
9339 # PIC is the default for Haiku.
9340 # The "-static" flag exists, but is broken.
9341 lt_prog_compiler_static=
9342 ;;
9343
9344 hpux*)
9345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9347 # sets the default TLS model and affects inlining.
9348 case $host_cpu in
9349 hppa*64*)
9350 # +Z the default
9351 ;;
9352 *)
9353 lt_prog_compiler_pic='-fPIC'
9354 ;;
9355 esac
9356 ;;
9357
9358 interix[3-9]*)
9359 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9360 # Instead, we relocate shared libraries at runtime.
9361 ;;
9362
9363 msdosdjgpp*)
9364 # Just because we use GCC doesn't mean we suddenly get shared libraries
9365 # on systems that don't support them.
9366 lt_prog_compiler_can_build_shared=no
9367 enable_shared=no
9368 ;;
9369
9370 *nto* | *qnx*)
9371 # QNX uses GNU C++, but need to define -shared option too, otherwise
9372 # it will coredump.
9373 lt_prog_compiler_pic='-fPIC -shared'
9374 ;;
9375
9376 sysv4*MP*)
9377 if test -d /usr/nec; then
9378 lt_prog_compiler_pic=-Kconform_pic
9379 fi
9380 ;;
9381
9382 *)
9383 lt_prog_compiler_pic='-fPIC'
9384 ;;
9385 esac
9386
9387 case $cc_basename in
9388 nvcc*) # Cuda Compiler Driver 2.2
9389 lt_prog_compiler_wl='-Xlinker '
9390 if test -n "$lt_prog_compiler_pic"; then
9391 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9392 fi
9393 ;;
9394 esac
9395 else
9396 # PORTME Check for flag to pass linker flags through the system compiler.
9397 case $host_os in
9398 aix*)
9399 lt_prog_compiler_wl='-Wl,'
9400 if test ia64 = "$host_cpu"; then
9401 # AIX 5 now supports IA64 processor
9402 lt_prog_compiler_static='-Bstatic'
9403 else
9404 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9405 fi
9406 ;;
9407
9408 darwin* | rhapsody*)
9409 # PIC is the default on this platform
9410 # Common symbols not allowed in MH_DYLIB files
9411 lt_prog_compiler_pic='-fno-common'
9412 case $cc_basename in
9413 nagfor*)
9414 # NAG Fortran compiler
9415 lt_prog_compiler_wl='-Wl,-Wl,,'
9416 lt_prog_compiler_pic='-PIC'
9417 lt_prog_compiler_static='-Bstatic'
9418 ;;
9419 esac
9420 ;;
9421
9422 mingw* | cygwin* | pw32* | os2* | cegcc*)
9423 # This hack is so that the source file can tell whether it is being
9424 # built for inclusion in a dll (and should export symbols for example).
9425 lt_prog_compiler_pic='-DDLL_EXPORT'
9426 case $host_os in
9427 os2*)
9428 lt_prog_compiler_static='$wl-static'
9429 ;;
9430 esac
9431 ;;
9432
9433 hpux9* | hpux10* | hpux11*)
9434 lt_prog_compiler_wl='-Wl,'
9435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9436 # not for PA HP-UX.
9437 case $host_cpu in
9438 hppa*64*|ia64*)
9439 # +Z the default
9440 ;;
9441 *)
9442 lt_prog_compiler_pic='+Z'
9443 ;;
9444 esac
9445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9446 lt_prog_compiler_static='$wl-a ${wl}archive'
9447 ;;
9448
9449 irix5* | irix6* | nonstopux*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # PIC (with -KPIC) is the default.
9452 lt_prog_compiler_static='-non_shared'
9453 ;;
9454
9455 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9456 case $cc_basename in
9457 # old Intel for x86_64, which still supported -KPIC.
9458 ecc*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-static'
9462 ;;
9463 # icc used to be incompatible with GCC.
9464 # ICC 10 doesn't accept -KPIC any more.
9465 icc* | ifort*)
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_pic='-fPIC'
9468 lt_prog_compiler_static='-static'
9469 ;;
9470 # Lahey Fortran 8.1.
9471 lf95*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='--shared'
9474 lt_prog_compiler_static='--static'
9475 ;;
9476 nagfor*)
9477 # NAG Fortran compiler
9478 lt_prog_compiler_wl='-Wl,-Wl,,'
9479 lt_prog_compiler_pic='-PIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9482 tcc*)
9483 # Fabrice Bellard et al's Tiny C Compiler
9484 lt_prog_compiler_wl='-Wl,'
9485 lt_prog_compiler_pic='-fPIC'
9486 lt_prog_compiler_static='-static'
9487 ;;
9488 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9489 # Portland Group compilers (*not* the Pentium gcc compiler,
9490 # which looks to be a dead project)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-fpic'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
9495 ccc*)
9496 lt_prog_compiler_wl='-Wl,'
9497 # All Alpha code is PIC.
9498 lt_prog_compiler_static='-non_shared'
9499 ;;
9500 xl* | bgxl* | bgf* | mpixl*)
9501 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9502 lt_prog_compiler_wl='-Wl,'
9503 lt_prog_compiler_pic='-qpic'
9504 lt_prog_compiler_static='-qstaticlink'
9505 ;;
9506 *)
9507 case `$CC -V 2>&1 | $SED 5q` in
9508 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9510 lt_prog_compiler_pic='-KPIC'
9511 lt_prog_compiler_static='-Bstatic'
9512 lt_prog_compiler_wl=''
9513 ;;
9514 *Sun\ F* | *Sun*Fortran*)
9515 lt_prog_compiler_pic='-KPIC'
9516 lt_prog_compiler_static='-Bstatic'
9517 lt_prog_compiler_wl='-Qoption ld '
9518 ;;
9519 *Sun\ C*)
9520 # Sun C 5.9
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-Bstatic'
9523 lt_prog_compiler_wl='-Wl,'
9524 ;;
9525 *Intel*\ [CF]*Compiler*)
9526 lt_prog_compiler_wl='-Wl,'
9527 lt_prog_compiler_pic='-fPIC'
9528 lt_prog_compiler_static='-static'
9529 ;;
9530 *Portland\ Group*)
9531 lt_prog_compiler_wl='-Wl,'
9532 lt_prog_compiler_pic='-fpic'
9533 lt_prog_compiler_static='-Bstatic'
9534 ;;
9535 esac
9536 ;;
9537 esac
9538 ;;
9539
9540 newsos6)
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9543 ;;
9544
9545 *nto* | *qnx*)
9546 # QNX uses GNU C++, but need to define -shared option too, otherwise
9547 # it will coredump.
9548 lt_prog_compiler_pic='-fPIC -shared'
9549 ;;
9550
9551 osf3* | osf4* | osf5*)
9552 lt_prog_compiler_wl='-Wl,'
9553 # All OSF/1 code is PIC.
9554 lt_prog_compiler_static='-non_shared'
9555 ;;
9556
9557 rdos*)
9558 lt_prog_compiler_static='-non_shared'
9559 ;;
9560
9561 solaris*)
9562 lt_prog_compiler_pic='-KPIC'
9563 lt_prog_compiler_static='-Bstatic'
9564 case $cc_basename in
9565 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9566 lt_prog_compiler_wl='-Qoption ld ';;
9567 *)
9568 lt_prog_compiler_wl='-Wl,';;
9569 esac
9570 ;;
9571
9572 sunos4*)
9573 lt_prog_compiler_wl='-Qoption ld '
9574 lt_prog_compiler_pic='-PIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 ;;
9577
9578 sysv4 | sysv4.2uw2* | sysv4.3*)
9579 lt_prog_compiler_wl='-Wl,'
9580 lt_prog_compiler_pic='-KPIC'
9581 lt_prog_compiler_static='-Bstatic'
9582 ;;
9583
9584 sysv4*MP*)
9585 if test -d /usr/nec; then
9586 lt_prog_compiler_pic='-Kconform_pic'
9587 lt_prog_compiler_static='-Bstatic'
9588 fi
9589 ;;
9590
9591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-KPIC'
9594 lt_prog_compiler_static='-Bstatic'
9595 ;;
9596
9597 unicos*)
9598 lt_prog_compiler_wl='-Wl,'
9599 lt_prog_compiler_can_build_shared=no
9600 ;;
9601
9602 uts4*)
9603 lt_prog_compiler_pic='-pic'
9604 lt_prog_compiler_static='-Bstatic'
9605 ;;
9606
9607 *)
9608 lt_prog_compiler_can_build_shared=no
9609 ;;
9610 esac
9611 fi
9612
9613 case $host_os in
9614 # For platforms that do not support PIC, -DPIC is meaningless:
9615 *djgpp*)
9616 lt_prog_compiler_pic=
9617 ;;
9618 *)
9619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9620 ;;
9621 esac
9622
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9624 printf %s "checking for $compiler option to produce PIC... " >&6; }
9625 if test ${lt_cv_prog_compiler_pic+y}
9626 then :
9627 printf %s "(cached) " >&6
9628 else $as_nop
9629 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9630 fi
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9632 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9633 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9634
9635 #
9636 # Check to make sure the PIC flag actually works.
9637 #
9638 if test -n "$lt_prog_compiler_pic"; then
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9640 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9641 if test ${lt_cv_prog_compiler_pic_works+y}
9642 then :
9643 printf %s "(cached) " >&6
9644 else $as_nop
9645 lt_cv_prog_compiler_pic_works=no
9646 ac_outfile=conftest.$ac_objext
9647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9649 # Insert the option either (1) after the last *FLAGS variable, or
9650 # (2) before a word containing "conftest.", or (3) at the end.
9651 # Note that $ac_compile itself does not contain backslashes and begins
9652 # with a dollar sign (not a hyphen), so the echo should work correctly.
9653 # The option is referenced via a variable to avoid confusing sed.
9654 lt_compile=`echo "$ac_compile" | $SED \
9655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9657 -e 's:$: $lt_compiler_flag:'`
9658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9659 (eval "$lt_compile" 2>conftest.err)
9660 ac_status=$?
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 if (exit $ac_status) && test -s "$ac_outfile"; then
9664 # The compiler can only warn and ignore the option if not recognized
9665 # So say no if there are warnings other than the usual output.
9666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9669 lt_cv_prog_compiler_pic_works=yes
9670 fi
9671 fi
9672 $RM conftest*
9673
9674 fi
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9676 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9677
9678 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9679 case $lt_prog_compiler_pic in
9680 "" | " "*) ;;
9681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9682 esac
9683 else
9684 lt_prog_compiler_pic=
9685 lt_prog_compiler_can_build_shared=no
9686 fi
9687
9688 fi
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700 #
9701 # Check to make sure the static flag actually works.
9702 #
9703 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9705 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9706 if test ${lt_cv_prog_compiler_static_works+y}
9707 then :
9708 printf %s "(cached) " >&6
9709 else $as_nop
9710 lt_cv_prog_compiler_static_works=no
9711 save_LDFLAGS=$LDFLAGS
9712 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9713 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9715 # The linker can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 if test -s conftest.err; then
9718 # Append any errors to the config.log.
9719 cat conftest.err 1>&5
9720 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9722 if diff conftest.exp conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler_static_works=yes
9724 fi
9725 else
9726 lt_cv_prog_compiler_static_works=yes
9727 fi
9728 fi
9729 $RM -r conftest*
9730 LDFLAGS=$save_LDFLAGS
9731
9732 fi
9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9734 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9735
9736 if test yes = "$lt_cv_prog_compiler_static_works"; then
9737 :
9738 else
9739 lt_prog_compiler_static=
9740 fi
9741
9742
9743
9744
9745
9746
9747
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9749 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9750 if test ${lt_cv_prog_compiler_c_o+y}
9751 then :
9752 printf %s "(cached) " >&6
9753 else $as_nop
9754 lt_cv_prog_compiler_c_o=no
9755 $RM -r conftest 2>/dev/null
9756 mkdir conftest
9757 cd conftest
9758 mkdir out
9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760
9761 lt_compiler_flag="-o out/conftest2.$ac_objext"
9762 # Insert the option either (1) after the last *FLAGS variable, or
9763 # (2) before a word containing "conftest.", or (3) at the end.
9764 # Note that $ac_compile itself does not contain backslashes and begins
9765 # with a dollar sign (not a hyphen), so the echo should work correctly.
9766 lt_compile=`echo "$ac_compile" | $SED \
9767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9769 -e 's:$: $lt_compiler_flag:'`
9770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9771 (eval "$lt_compile" 2>out/conftest.err)
9772 ac_status=$?
9773 cat out/conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9776 then
9777 # The compiler can only warn and ignore the option if not recognized
9778 # So say no if there are warnings
9779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9780 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9781 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9782 lt_cv_prog_compiler_c_o=yes
9783 fi
9784 fi
9785 chmod u+w . 2>&5
9786 $RM conftest*
9787 # SGI C++ compiler will create directory out/ii_files/ for
9788 # template instantiation
9789 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9790 $RM out/* && rmdir out
9791 cd ..
9792 $RM -r conftest
9793 $RM conftest*
9794
9795 fi
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9797 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9798
9799
9800
9801
9802
9803
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9806 if test ${lt_cv_prog_compiler_c_o+y}
9807 then :
9808 printf %s "(cached) " >&6
9809 else $as_nop
9810 lt_cv_prog_compiler_c_o=no
9811 $RM -r conftest 2>/dev/null
9812 mkdir conftest
9813 cd conftest
9814 mkdir out
9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816
9817 lt_compiler_flag="-o out/conftest2.$ac_objext"
9818 # Insert the option either (1) after the last *FLAGS variable, or
9819 # (2) before a word containing "conftest.", or (3) at the end.
9820 # Note that $ac_compile itself does not contain backslashes and begins
9821 # with a dollar sign (not a hyphen), so the echo should work correctly.
9822 lt_compile=`echo "$ac_compile" | $SED \
9823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9825 -e 's:$: $lt_compiler_flag:'`
9826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9827 (eval "$lt_compile" 2>out/conftest.err)
9828 ac_status=$?
9829 cat out/conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9832 then
9833 # The compiler can only warn and ignore the option if not recognized
9834 # So say no if there are warnings
9835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9836 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9837 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9838 lt_cv_prog_compiler_c_o=yes
9839 fi
9840 fi
9841 chmod u+w . 2>&5
9842 $RM conftest*
9843 # SGI C++ compiler will create directory out/ii_files/ for
9844 # template instantiation
9845 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9846 $RM out/* && rmdir out
9847 cd ..
9848 $RM -r conftest
9849 $RM conftest*
9850
9851 fi
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9853 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9854
9855
9856
9857
9858 hard_links=nottested
9859 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9860 # do not overwrite the value of need_locks provided by the user
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9862 printf %s "checking if we can lock with hard links... " >&6; }
9863 hard_links=yes
9864 $RM conftest*
9865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9866 touch conftest.a
9867 ln conftest.a conftest.b 2>&5 || hard_links=no
9868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9870 printf "%s\n" "$hard_links" >&6; }
9871 if test no = "$hard_links"; then
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9873 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9874 need_locks=warn
9875 fi
9876 else
9877 need_locks=no
9878 fi
9879
9880
9881
9882
9883
9884
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9886 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9887
9888 runpath_var=
9889 allow_undefined_flag=
9890 always_export_symbols=no
9891 archive_cmds=
9892 archive_expsym_cmds=
9893 compiler_needs_object=no
9894 enable_shared_with_static_runtimes=no
9895 export_dynamic_flag_spec=
9896 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9897 hardcode_automatic=no
9898 hardcode_direct=no
9899 hardcode_direct_absolute=no
9900 hardcode_libdir_flag_spec=
9901 hardcode_libdir_separator=
9902 hardcode_minus_L=no
9903 hardcode_shlibpath_var=unsupported
9904 inherit_rpath=no
9905 link_all_deplibs=unknown
9906 module_cmds=
9907 module_expsym_cmds=
9908 old_archive_from_new_cmds=
9909 old_archive_from_expsyms_cmds=
9910 thread_safe_flag_spec=
9911 whole_archive_flag_spec=
9912 # include_expsyms should be a list of space-separated symbols to be *always*
9913 # included in the symbol list
9914 include_expsyms=
9915 # exclude_expsyms can be an extended regexp of symbols to exclude
9916 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9917 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9918 # as well as any symbol that contains 'd'.
9919 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9921 # platforms (ab)use it in PIC code, but their linkers get confused if
9922 # the symbol is explicitly referenced. Since portable code cannot
9923 # rely on this symbol name, it's probably fine to never include it in
9924 # preloaded symbol tables.
9925 # Exclude shared library initialization/finalization symbols.
9926 extract_expsyms_cmds=
9927
9928 case $host_os in
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9931 # When not using gcc, we currently assume that we are using
9932 # Microsoft Visual C++ or Intel C++ Compiler.
9933 if test yes != "$GCC"; then
9934 with_gnu_ld=no
9935 fi
9936 ;;
9937 interix*)
9938 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9939 with_gnu_ld=yes
9940 ;;
9941 openbsd* | bitrig*)
9942 with_gnu_ld=no
9943 ;;
9944 esac
9945
9946 ld_shlibs=yes
9947
9948 # On some targets, GNU ld is compatible enough with the native linker
9949 # that we're better off using the native interface for both.
9950 lt_use_gnu_ld_interface=no
9951 if test yes = "$with_gnu_ld"; then
9952 case $host_os in
9953 aix*)
9954 # The AIX port of GNU ld has always aspired to compatibility
9955 # with the native linker. However, as the warning in the GNU ld
9956 # block says, versions before 2.19.5* couldn't really create working
9957 # shared libraries, regardless of the interface used.
9958 case `$LD -v 2>&1` in
9959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9961 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9962 *)
9963 lt_use_gnu_ld_interface=yes
9964 ;;
9965 esac
9966 ;;
9967 *)
9968 lt_use_gnu_ld_interface=yes
9969 ;;
9970 esac
9971 fi
9972
9973 if test yes = "$lt_use_gnu_ld_interface"; then
9974 # If archive_cmds runs LD, not CC, wlarc should be empty
9975 wlarc='$wl'
9976
9977 # Set some defaults for GNU ld with shared library support. These
9978 # are reset later if shared libraries are not supported. Putting them
9979 # here allows them to be overridden if necessary.
9980 runpath_var=LD_RUN_PATH
9981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9982 export_dynamic_flag_spec='$wl--export-dynamic'
9983 # ancient GNU ld didn't support --whole-archive et. al.
9984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9985 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9986 else
9987 whole_archive_flag_spec=
9988 fi
9989 supports_anon_versioning=no
9990 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9991 *GNU\ gold*) supports_anon_versioning=yes ;;
9992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9995 *\ 2.11.*) ;; # other 2.11 versions
9996 *) supports_anon_versioning=yes ;;
9997 esac
9998
9999 # See if GNU ld supports shared libraries.
10000 case $host_os in
10001 aix[3-9]*)
10002 # On AIX/PPC, the GNU linker is very broken
10003 if test ia64 != "$host_cpu"; then
10004 ld_shlibs=no
10005 cat <<_LT_EOF 1>&2
10006
10007 *** Warning: the GNU linker, at least up to release 2.19, is reported
10008 *** to be unable to reliably create shared libraries on AIX.
10009 *** Therefore, libtool is disabling shared libraries support. If you
10010 *** really care for shared libraries, you may want to install binutils
10011 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10012 *** You will then need to restart the configuration process.
10013
10014 _LT_EOF
10015 fi
10016 ;;
10017
10018 amigaos*)
10019 case $host_cpu in
10020 powerpc)
10021 # see comment about AmigaOS4 .so support
10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023 archive_expsym_cmds=''
10024 ;;
10025 m68k)
10026 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)'
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 hardcode_minus_L=yes
10029 ;;
10030 esac
10031 ;;
10032
10033 beos*)
10034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10035 allow_undefined_flag=unsupported
10036 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10037 # support --undefined. This deserves some investigation. FIXME
10038 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039 else
10040 ld_shlibs=no
10041 fi
10042 ;;
10043
10044 cygwin* | mingw* | pw32* | cegcc*)
10045 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10046 # as there is no search path for DLLs.
10047 hardcode_libdir_flag_spec='-L$libdir'
10048 export_dynamic_flag_spec='$wl--export-all-symbols'
10049 allow_undefined_flag=unsupported
10050 always_export_symbols=no
10051 enable_shared_with_static_runtimes=yes
10052 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'
10053 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10054
10055 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10057 # If the export-symbols file already is a .def file, use it as
10058 # is; otherwise, prepend EXPORTS...
10059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10060 cp $export_symbols $output_objdir/$soname.def;
10061 else
10062 echo EXPORTS > $output_objdir/$soname.def;
10063 cat $export_symbols >> $output_objdir/$soname.def;
10064 fi~
10065 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10066 else
10067 ld_shlibs=no
10068 fi
10069 ;;
10070
10071 haiku*)
10072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10073 link_all_deplibs=yes
10074 ;;
10075
10076 os2*)
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_minus_L=yes
10079 allow_undefined_flag=unsupported
10080 shrext_cmds=.dll
10081 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10082 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10083 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10084 $ECHO EXPORTS >> $output_objdir/$libname.def~
10085 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10086 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10087 emximp -o $lib $output_objdir/$libname.def'
10088 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10089 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10090 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10091 $ECHO EXPORTS >> $output_objdir/$libname.def~
10092 prefix_cmds="$SED"~
10093 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10094 prefix_cmds="$prefix_cmds -e 1d";
10095 fi~
10096 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10097 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10099 emximp -o $lib $output_objdir/$libname.def'
10100 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10101 enable_shared_with_static_runtimes=yes
10102 file_list_spec='@'
10103 ;;
10104
10105 interix[3-9]*)
10106 hardcode_direct=no
10107 hardcode_shlibpath_var=no
10108 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10109 export_dynamic_flag_spec='$wl-E'
10110 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10111 # Instead, shared libraries are loaded at an image base (0x10000000 by
10112 # default) and relocated if they conflict, which is a slow very memory
10113 # consuming and fragmenting process. To avoid this, we pick a random,
10114 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10115 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10116 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10117 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'
10118 ;;
10119
10120 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10121 tmp_diet=no
10122 if test linux-dietlibc = "$host_os"; then
10123 case $cc_basename in
10124 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10125 esac
10126 fi
10127 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10128 && test no = "$tmp_diet"
10129 then
10130 tmp_addflag=' $pic_flag'
10131 tmp_sharedflag='-shared'
10132 case $cc_basename,$host_cpu in
10133 pgcc*) # Portland Group C compiler
10134 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'
10135 tmp_addflag=' $pic_flag'
10136 ;;
10137 pgf77* | pgf90* | pgf95* | pgfortran*)
10138 # Portland Group f77 and f90 compilers
10139 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'
10140 tmp_addflag=' $pic_flag -Mnomain' ;;
10141 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10142 tmp_addflag=' -i_dynamic' ;;
10143 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10144 tmp_addflag=' -i_dynamic -nofor_main' ;;
10145 ifc* | ifort*) # Intel Fortran compiler
10146 tmp_addflag=' -nofor_main' ;;
10147 lf95*) # Lahey Fortran 8.1
10148 whole_archive_flag_spec=
10149 tmp_sharedflag='--shared' ;;
10150 nagfor*) # NAGFOR 5.3
10151 tmp_sharedflag='-Wl,-shared' ;;
10152 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10153 tmp_sharedflag='-qmkshrobj'
10154 tmp_addflag= ;;
10155 nvcc*) # Cuda Compiler Driver 2.2
10156 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'
10157 compiler_needs_object=yes
10158 ;;
10159 esac
10160 case `$CC -V 2>&1 | $SED 5q` in
10161 *Sun\ C*) # Sun C 5.9
10162 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'
10163 compiler_needs_object=yes
10164 tmp_sharedflag='-G' ;;
10165 *Sun\ F*) # Sun Fortran 8.3
10166 tmp_sharedflag='-G' ;;
10167 esac
10168 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10169
10170 if test yes = "$supports_anon_versioning"; then
10171 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10172 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10173 echo "local: *; };" >> $output_objdir/$libname.ver~
10174 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10175 fi
10176
10177 case $cc_basename in
10178 tcc*)
10179 export_dynamic_flag_spec='-rdynamic'
10180 ;;
10181 xlf* | bgf* | bgxlf* | mpixlf*)
10182 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10183 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10184 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10185 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10186 if test yes = "$supports_anon_versioning"; then
10187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10188 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10189 echo "local: *; };" >> $output_objdir/$libname.ver~
10190 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10191 fi
10192 ;;
10193 esac
10194 else
10195 ld_shlibs=no
10196 fi
10197 ;;
10198
10199 netbsd*)
10200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10201 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10202 wlarc=
10203 else
10204 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10205 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10206 fi
10207 ;;
10208
10209 solaris*)
10210 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10211 ld_shlibs=no
10212 cat <<_LT_EOF 1>&2
10213
10214 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10215 *** create shared libraries on Solaris systems. Therefore, libtool
10216 *** is disabling shared libraries support. We urge you to upgrade GNU
10217 *** binutils to release 2.9.1 or newer. Another option is to modify
10218 *** your PATH or compiler configuration so that the native linker is
10219 *** used, and then restart.
10220
10221 _LT_EOF
10222 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10223 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10224 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10225 else
10226 ld_shlibs=no
10227 fi
10228 ;;
10229
10230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10231 case `$LD -v 2>&1` in
10232 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10233 ld_shlibs=no
10234 cat <<_LT_EOF 1>&2
10235
10236 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10237 *** reliably create shared libraries on SCO systems. Therefore, libtool
10238 *** is disabling shared libraries support. We urge you to upgrade GNU
10239 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10240 *** your PATH or compiler configuration so that the native linker is
10241 *** used, and then restart.
10242
10243 _LT_EOF
10244 ;;
10245 *)
10246 # For security reasons, it is highly recommended that you always
10247 # use absolute paths for naming shared libraries, and exclude the
10248 # DT_RUNPATH tag from executables and libraries. But doing so
10249 # requires that you compile everything twice, which is a pain.
10250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10254 else
10255 ld_shlibs=no
10256 fi
10257 ;;
10258 esac
10259 ;;
10260
10261 sunos4*)
10262 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10263 wlarc=
10264 hardcode_direct=yes
10265 hardcode_shlibpath_var=no
10266 ;;
10267
10268 *)
10269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10271 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10272 else
10273 ld_shlibs=no
10274 fi
10275 ;;
10276 esac
10277
10278 if test no = "$ld_shlibs"; then
10279 runpath_var=
10280 hardcode_libdir_flag_spec=
10281 export_dynamic_flag_spec=
10282 whole_archive_flag_spec=
10283 fi
10284 else
10285 # PORTME fill in a description of your system's linker (not GNU ld)
10286 case $host_os in
10287 aix3*)
10288 allow_undefined_flag=unsupported
10289 always_export_symbols=yes
10290 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'
10291 # Note: this linker hardcodes the directories in LIBPATH if there
10292 # are no directories specified by -L.
10293 hardcode_minus_L=yes
10294 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10295 # Neither direct hardcoding nor static linking is supported with a
10296 # broken collect2.
10297 hardcode_direct=unsupported
10298 fi
10299 ;;
10300
10301 aix[4-9]*)
10302 if test ia64 = "$host_cpu"; then
10303 # On IA64, the linker does run time linking by default, so we don't
10304 # have to do anything special.
10305 aix_use_runtimelinking=no
10306 exp_sym_flag='-Bexport'
10307 no_entry_flag=
10308 else
10309 # If we're using GNU nm, then we don't want the "-C" option.
10310 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10311 # Without the "-l" option, or with the "-B" option, AIX nm treats
10312 # weak defined symbols like other global defined symbols, whereas
10313 # GNU nm marks them as "W".
10314 # While the 'weak' keyword is ignored in the Export File, we need
10315 # it in the Import File for the 'aix-soname' feature, so we have
10316 # to replace the "-B" option with "-P" for AIX nm.
10317 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10318 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'
10319 else
10320 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'
10321 fi
10322 aix_use_runtimelinking=no
10323
10324 # Test if we are trying to use run time linking or normal
10325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10326 # have runtime linking enabled, and use it for executables.
10327 # For shared libraries, we enable/disable runtime linking
10328 # depending on the kind of the shared library created -
10329 # when "with_aix_soname,aix_use_runtimelinking" is:
10330 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10331 # "aix,yes" lib.so shared, rtl:yes, for executables
10332 # lib.a static archive
10333 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10334 # lib.a(lib.so.V) shared, rtl:no, for executables
10335 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10336 # lib.a(lib.so.V) shared, rtl:no
10337 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10338 # lib.a static archive
10339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10340 for ld_flag in $LDFLAGS; do
10341 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10342 aix_use_runtimelinking=yes
10343 break
10344 fi
10345 done
10346 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10347 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10348 # so we don't have lib.a shared libs to link our executables.
10349 # We have to force runtime linking in this case.
10350 aix_use_runtimelinking=yes
10351 LDFLAGS="$LDFLAGS -Wl,-brtl"
10352 fi
10353 ;;
10354 esac
10355
10356 exp_sym_flag='-bexport'
10357 no_entry_flag='-bnoentry'
10358 fi
10359
10360 # When large executables or shared objects are built, AIX ld can
10361 # have problems creating the table of contents. If linking a library
10362 # or program results in "error TOC overflow" add -mminimal-toc to
10363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10365
10366 archive_cmds=''
10367 hardcode_direct=yes
10368 hardcode_direct_absolute=yes
10369 hardcode_libdir_separator=':'
10370 link_all_deplibs=yes
10371 file_list_spec='$wl-f,'
10372 case $with_aix_soname,$aix_use_runtimelinking in
10373 aix,*) ;; # traditional, no import file
10374 svr4,* | *,yes) # use import file
10375 # The Import File defines what to hardcode.
10376 hardcode_direct=no
10377 hardcode_direct_absolute=no
10378 ;;
10379 esac
10380
10381 if test yes = "$GCC"; then
10382 case $host_os in aix4.[012]|aix4.[012].*)
10383 # We only want to do this on AIX 4.2 and lower, the check
10384 # below for broken collect2 doesn't work under 4.3+
10385 collect2name=`$CC -print-prog-name=collect2`
10386 if test -f "$collect2name" &&
10387 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10388 then
10389 # We have reworked collect2
10390 :
10391 else
10392 # We have old collect2
10393 hardcode_direct=unsupported
10394 # It fails to find uninstalled libraries when the uninstalled
10395 # path is not listed in the libpath. Setting hardcode_minus_L
10396 # to unsupported forces relinking
10397 hardcode_minus_L=yes
10398 hardcode_libdir_flag_spec='-L$libdir'
10399 hardcode_libdir_separator=
10400 fi
10401 ;;
10402 esac
10403 shared_flag='-shared'
10404 if test yes = "$aix_use_runtimelinking"; then
10405 shared_flag="$shared_flag "'$wl-G'
10406 fi
10407 # Need to ensure runtime linking is disabled for the traditional
10408 # shared library, or the linker may eventually find shared libraries
10409 # /with/ Import File - we do not want to mix them.
10410 shared_flag_aix='-shared'
10411 shared_flag_svr4='-shared $wl-G'
10412 else
10413 # not using gcc
10414 if test ia64 = "$host_cpu"; then
10415 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10416 # chokes on -Wl,-G. The following line is correct:
10417 shared_flag='-G'
10418 else
10419 if test yes = "$aix_use_runtimelinking"; then
10420 shared_flag='$wl-G'
10421 else
10422 shared_flag='$wl-bM:SRE'
10423 fi
10424 shared_flag_aix='$wl-bM:SRE'
10425 shared_flag_svr4='$wl-G'
10426 fi
10427 fi
10428
10429 export_dynamic_flag_spec='$wl-bexpall'
10430 # It seems that -bexpall does not export symbols beginning with
10431 # underscore (_), so it is better to generate a list of symbols to export.
10432 always_export_symbols=yes
10433 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10434 # Warning - without using the other runtime loading flags (-brtl),
10435 # -berok will link without error, but may produce a broken library.
10436 allow_undefined_flag='-berok'
10437 # Determine the default libpath from the value encoded in an
10438 # empty executable.
10439 if test set = "${lt_cv_aix_libpath+set}"; then
10440 aix_libpath=$lt_cv_aix_libpath
10441 else
10442 if test ${lt_cv_aix_libpath_+y}
10443 then :
10444 printf %s "(cached) " >&6
10445 else $as_nop
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448
10449 int
10450 main (void)
10451 {
10452
10453 ;
10454 return 0;
10455 }
10456 _ACEOF
10457 if ac_fn_c_try_link "$LINENO"
10458 then :
10459
10460 lt_aix_libpath_sed='
10461 /Import File Strings/,/^$/ {
10462 /^0/ {
10463 s/^0 *\([^ ]*\) *$/\1/
10464 p
10465 }
10466 }'
10467 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10468 # Check for a 64-bit object if we didn't find anything.
10469 if test -z "$lt_cv_aix_libpath_"; then
10470 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10471 fi
10472 fi
10473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10474 conftest$ac_exeext conftest.$ac_ext
10475 if test -z "$lt_cv_aix_libpath_"; then
10476 lt_cv_aix_libpath_=/usr/lib:/lib
10477 fi
10478
10479 fi
10480
10481 aix_libpath=$lt_cv_aix_libpath_
10482 fi
10483
10484 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10485 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
10486 else
10487 if test ia64 = "$host_cpu"; then
10488 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10489 allow_undefined_flag="-z nodefs"
10490 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"
10491 else
10492 # Determine the default libpath from the value encoded in an
10493 # empty executable.
10494 if test set = "${lt_cv_aix_libpath+set}"; then
10495 aix_libpath=$lt_cv_aix_libpath
10496 else
10497 if test ${lt_cv_aix_libpath_+y}
10498 then :
10499 printf %s "(cached) " >&6
10500 else $as_nop
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503
10504 int
10505 main (void)
10506 {
10507
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_link "$LINENO"
10513 then :
10514
10515 lt_aix_libpath_sed='
10516 /Import File Strings/,/^$/ {
10517 /^0/ {
10518 s/^0 *\([^ ]*\) *$/\1/
10519 p
10520 }
10521 }'
10522 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10523 # Check for a 64-bit object if we didn't find anything.
10524 if test -z "$lt_cv_aix_libpath_"; then
10525 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10526 fi
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10529 conftest$ac_exeext conftest.$ac_ext
10530 if test -z "$lt_cv_aix_libpath_"; then
10531 lt_cv_aix_libpath_=/usr/lib:/lib
10532 fi
10533
10534 fi
10535
10536 aix_libpath=$lt_cv_aix_libpath_
10537 fi
10538
10539 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10540 # Warning - without using the other run time loading flags,
10541 # -berok will link without error, but may produce a broken library.
10542 no_undefined_flag=' $wl-bernotok'
10543 allow_undefined_flag=' $wl-berok'
10544 if test yes = "$with_gnu_ld"; then
10545 # We only use this code for GNU lds that support --whole-archive.
10546 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10547 else
10548 # Exported symbols can be pulled into shared objects from archives
10549 whole_archive_flag_spec='$convenience'
10550 fi
10551 archive_cmds_need_lc=yes
10552 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10553 # -brtl affects multiple linker settings, -berok does not and is overridden later
10554 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10555 if test svr4 != "$with_aix_soname"; then
10556 # This is similar to how AIX traditionally builds its shared libraries.
10557 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'
10558 fi
10559 if test aix != "$with_aix_soname"; then
10560 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'
10561 else
10562 # used by -dlpreopen to get the symbols
10563 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10564 fi
10565 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10566 fi
10567 fi
10568 ;;
10569
10570 amigaos*)
10571 case $host_cpu in
10572 powerpc)
10573 # see comment about AmigaOS4 .so support
10574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10575 archive_expsym_cmds=''
10576 ;;
10577 m68k)
10578 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)'
10579 hardcode_libdir_flag_spec='-L$libdir'
10580 hardcode_minus_L=yes
10581 ;;
10582 esac
10583 ;;
10584
10585 bsdi[45]*)
10586 export_dynamic_flag_spec=-rdynamic
10587 ;;
10588
10589 cygwin* | mingw* | pw32* | cegcc*)
10590 # When not using gcc, we currently assume that we are using
10591 # Microsoft Visual C++ or Intel C++ Compiler.
10592 # hardcode_libdir_flag_spec is actually meaningless, as there is
10593 # no search path for DLLs.
10594 case $cc_basename in
10595 cl* | icl*)
10596 # Native MSVC or ICC
10597 hardcode_libdir_flag_spec=' '
10598 allow_undefined_flag=unsupported
10599 always_export_symbols=yes
10600 file_list_spec='@'
10601 # Tell ltmain to make .lib files, not .a files.
10602 libext=lib
10603 # Tell ltmain to make .dll files, not .so files.
10604 shrext_cmds=.dll
10605 # FIXME: Setting linknames here is a bad hack.
10606 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10607 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10608 cp "$export_symbols" "$output_objdir/$soname.def";
10609 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10610 else
10611 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10612 fi~
10613 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10614 linknames='
10615 # The linker will not automatically build a static lib if we build a DLL.
10616 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10617 enable_shared_with_static_runtimes=yes
10618 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10620 # Don't use ranlib
10621 old_postinstall_cmds='chmod 644 $oldlib'
10622 postlink_cmds='lt_outputfile="@OUTPUT@"~
10623 lt_tool_outputfile="@TOOL_OUTPUT@"~
10624 case $lt_outputfile in
10625 *.exe|*.EXE) ;;
10626 *)
10627 lt_outputfile=$lt_outputfile.exe
10628 lt_tool_outputfile=$lt_tool_outputfile.exe
10629 ;;
10630 esac~
10631 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10632 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10633 $RM "$lt_outputfile.manifest";
10634 fi'
10635 ;;
10636 *)
10637 # Assume MSVC and ICC wrapper
10638 hardcode_libdir_flag_spec=' '
10639 allow_undefined_flag=unsupported
10640 # Tell ltmain to make .lib files, not .a files.
10641 libext=lib
10642 # Tell ltmain to make .dll files, not .so files.
10643 shrext_cmds=.dll
10644 # FIXME: Setting linknames here is a bad hack.
10645 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10646 # The linker will automatically build a .lib file if we build a DLL.
10647 old_archive_from_new_cmds='true'
10648 # FIXME: Should let the user specify the lib program.
10649 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10650 enable_shared_with_static_runtimes=yes
10651 ;;
10652 esac
10653 ;;
10654
10655 darwin* | rhapsody*)
10656
10657
10658 archive_cmds_need_lc=no
10659 hardcode_direct=no
10660 hardcode_automatic=yes
10661 hardcode_shlibpath_var=unsupported
10662 if test yes = "$lt_cv_ld_force_load"; then
10663 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\"`'
10664
10665 else
10666 whole_archive_flag_spec=''
10667 fi
10668 link_all_deplibs=yes
10669 allow_undefined_flag=$_lt_dar_allow_undefined
10670 case $cc_basename in
10671 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10672 *) _lt_dar_can_shared=$GCC ;;
10673 esac
10674 if test yes = "$_lt_dar_can_shared"; then
10675 output_verbose_link_cmd=func_echo_all
10676 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10677 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10678 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"
10679 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"
10680
10681 else
10682 ld_shlibs=no
10683 fi
10684
10685 ;;
10686
10687 dgux*)
10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_libdir_flag_spec='-L$libdir'
10690 hardcode_shlibpath_var=no
10691 ;;
10692
10693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10694 # support. Future versions do this automatically, but an explicit c++rt0.o
10695 # does not break anything, and helps significantly (at the cost of a little
10696 # extra space).
10697 freebsd2.2*)
10698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10699 hardcode_libdir_flag_spec='-R$libdir'
10700 hardcode_direct=yes
10701 hardcode_shlibpath_var=no
10702 ;;
10703
10704 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10705 freebsd2.*)
10706 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_direct=yes
10708 hardcode_minus_L=yes
10709 hardcode_shlibpath_var=no
10710 ;;
10711
10712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10713 freebsd* | dragonfly* | midnightbsd*)
10714 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10715 hardcode_libdir_flag_spec='-R$libdir'
10716 hardcode_direct=yes
10717 hardcode_shlibpath_var=no
10718 ;;
10719
10720 hpux9*)
10721 if test yes = "$GCC"; then
10722 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'
10723 else
10724 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'
10725 fi
10726 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10727 hardcode_libdir_separator=:
10728 hardcode_direct=yes
10729
10730 # hardcode_minus_L: Not really in the search PATH,
10731 # but as the default location of the library.
10732 hardcode_minus_L=yes
10733 export_dynamic_flag_spec='$wl-E'
10734 ;;
10735
10736 hpux10*)
10737 if test yes,no = "$GCC,$with_gnu_ld"; then
10738 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739 else
10740 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10741 fi
10742 if test no = "$with_gnu_ld"; then
10743 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10744 hardcode_libdir_separator=:
10745 hardcode_direct=yes
10746 hardcode_direct_absolute=yes
10747 export_dynamic_flag_spec='$wl-E'
10748 # hardcode_minus_L: Not really in the search PATH,
10749 # but as the default location of the library.
10750 hardcode_minus_L=yes
10751 fi
10752 ;;
10753
10754 hpux11*)
10755 if test yes,no = "$GCC,$with_gnu_ld"; then
10756 case $host_cpu in
10757 hppa*64*)
10758 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10759 ;;
10760 ia64*)
10761 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10762 ;;
10763 *)
10764 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10765 ;;
10766 esac
10767 else
10768 case $host_cpu in
10769 hppa*64*)
10770 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 ;;
10772 ia64*)
10773 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10774 ;;
10775 *)
10776
10777 # Older versions of the 11.00 compiler do not understand -b yet
10778 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10780 printf %s "checking if $CC understands -b... " >&6; }
10781 if test ${lt_cv_prog_compiler__b+y}
10782 then :
10783 printf %s "(cached) " >&6
10784 else $as_nop
10785 lt_cv_prog_compiler__b=no
10786 save_LDFLAGS=$LDFLAGS
10787 LDFLAGS="$LDFLAGS -b"
10788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10790 # The linker can only warn and ignore the option if not recognized
10791 # So say no if there are warnings
10792 if test -s conftest.err; then
10793 # Append any errors to the config.log.
10794 cat conftest.err 1>&5
10795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10797 if diff conftest.exp conftest.er2 >/dev/null; then
10798 lt_cv_prog_compiler__b=yes
10799 fi
10800 else
10801 lt_cv_prog_compiler__b=yes
10802 fi
10803 fi
10804 $RM -r conftest*
10805 LDFLAGS=$save_LDFLAGS
10806
10807 fi
10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10809 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10810
10811 if test yes = "$lt_cv_prog_compiler__b"; then
10812 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10813 else
10814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10815 fi
10816
10817 ;;
10818 esac
10819 fi
10820 if test no = "$with_gnu_ld"; then
10821 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10822 hardcode_libdir_separator=:
10823
10824 case $host_cpu in
10825 hppa*64*|ia64*)
10826 hardcode_direct=no
10827 hardcode_shlibpath_var=no
10828 ;;
10829 *)
10830 hardcode_direct=yes
10831 hardcode_direct_absolute=yes
10832 export_dynamic_flag_spec='$wl-E'
10833
10834 # hardcode_minus_L: Not really in the search PATH,
10835 # but as the default location of the library.
10836 hardcode_minus_L=yes
10837 ;;
10838 esac
10839 fi
10840 ;;
10841
10842 irix5* | irix6* | nonstopux*)
10843 if test yes = "$GCC"; then
10844 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'
10845 # Try to use the -exported_symbol ld option, if it does not
10846 # work, assume that -exports_file does not work either and
10847 # implicitly export all symbols.
10848 # This should be the same for all languages, so no per-tag cache variable.
10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10850 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10851 if test ${lt_cv_irix_exported_symbol+y}
10852 then :
10853 printf %s "(cached) " >&6
10854 else $as_nop
10855 save_LDFLAGS=$LDFLAGS
10856 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 int foo (void) { return 0; }
10860 _ACEOF
10861 if ac_fn_c_try_link "$LINENO"
10862 then :
10863 lt_cv_irix_exported_symbol=yes
10864 else $as_nop
10865 lt_cv_irix_exported_symbol=no
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10868 conftest$ac_exeext conftest.$ac_ext
10869 LDFLAGS=$save_LDFLAGS
10870 fi
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10872 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10873 if test yes = "$lt_cv_irix_exported_symbol"; then
10874 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'
10875 fi
10876 else
10877 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'
10878 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'
10879 fi
10880 archive_cmds_need_lc='no'
10881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10882 hardcode_libdir_separator=:
10883 inherit_rpath=yes
10884 link_all_deplibs=yes
10885 ;;
10886
10887 linux*)
10888 case $cc_basename in
10889 tcc*)
10890 # Fabrice Bellard et al's Tiny C Compiler
10891 ld_shlibs=yes
10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893 ;;
10894 esac
10895 ;;
10896
10897 netbsd*)
10898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10900 else
10901 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10902 fi
10903 hardcode_libdir_flag_spec='-R$libdir'
10904 hardcode_direct=yes
10905 hardcode_shlibpath_var=no
10906 ;;
10907
10908 newsos6)
10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_direct=yes
10911 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10912 hardcode_libdir_separator=:
10913 hardcode_shlibpath_var=no
10914 ;;
10915
10916 *nto* | *qnx*)
10917 ;;
10918
10919 openbsd* | bitrig*)
10920 if test -f /usr/libexec/ld.so; then
10921 hardcode_direct=yes
10922 hardcode_shlibpath_var=no
10923 hardcode_direct_absolute=yes
10924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10927 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10928 export_dynamic_flag_spec='$wl-E'
10929 else
10930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10931 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10932 fi
10933 else
10934 ld_shlibs=no
10935 fi
10936 ;;
10937
10938 os2*)
10939 hardcode_libdir_flag_spec='-L$libdir'
10940 hardcode_minus_L=yes
10941 allow_undefined_flag=unsupported
10942 shrext_cmds=.dll
10943 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10944 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10945 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10946 $ECHO EXPORTS >> $output_objdir/$libname.def~
10947 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10948 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10949 emximp -o $lib $output_objdir/$libname.def'
10950 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10953 $ECHO EXPORTS >> $output_objdir/$libname.def~
10954 prefix_cmds="$SED"~
10955 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10956 prefix_cmds="$prefix_cmds -e 1d";
10957 fi~
10958 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10959 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10961 emximp -o $lib $output_objdir/$libname.def'
10962 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10963 enable_shared_with_static_runtimes=yes
10964 file_list_spec='@'
10965 ;;
10966
10967 osf3*)
10968 if test yes = "$GCC"; then
10969 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10970 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'
10971 else
10972 allow_undefined_flag=' -expect_unresolved \*'
10973 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'
10974 fi
10975 archive_cmds_need_lc='no'
10976 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10977 hardcode_libdir_separator=:
10978 ;;
10979
10980 osf4* | osf5*) # as osf3* with the addition of -msym flag
10981 if test yes = "$GCC"; then
10982 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10983 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'
10984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10985 else
10986 allow_undefined_flag=' -expect_unresolved \*'
10987 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'
10988 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~
10989 $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'
10990
10991 # Both c and cxx compiler support -rpath directly
10992 hardcode_libdir_flag_spec='-rpath $libdir'
10993 fi
10994 archive_cmds_need_lc='no'
10995 hardcode_libdir_separator=:
10996 ;;
10997
10998 solaris*)
10999 no_undefined_flag=' -z defs'
11000 if test yes = "$GCC"; then
11001 wlarc='$wl'
11002 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11004 $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'
11005 else
11006 case `$CC -V 2>&1` in
11007 *"Compilers 5.0"*)
11008 wlarc=''
11009 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11011 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11012 ;;
11013 *)
11014 wlarc='$wl'
11015 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11017 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11018 ;;
11019 esac
11020 fi
11021 hardcode_libdir_flag_spec='-R$libdir'
11022 hardcode_shlibpath_var=no
11023 case $host_os in
11024 solaris2.[0-5] | solaris2.[0-5].*) ;;
11025 *)
11026 # The compiler driver will combine and reorder linker options,
11027 # but understands '-z linker_flag'. GCC discards it without '$wl',
11028 # but is careful enough not to reorder.
11029 # Supported since Solaris 2.6 (maybe 2.5.1?)
11030 if test yes = "$GCC"; then
11031 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11032 else
11033 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11034 fi
11035 ;;
11036 esac
11037 link_all_deplibs=yes
11038 ;;
11039
11040 sunos4*)
11041 if test sequent = "$host_vendor"; then
11042 # Use $CC to link under sequent, because it throws in some extra .o
11043 # files that make .init and .fini sections work.
11044 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11045 else
11046 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11047 fi
11048 hardcode_libdir_flag_spec='-L$libdir'
11049 hardcode_direct=yes
11050 hardcode_minus_L=yes
11051 hardcode_shlibpath_var=no
11052 ;;
11053
11054 sysv4)
11055 case $host_vendor in
11056 sni)
11057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11058 hardcode_direct=yes # is this really true???
11059 ;;
11060 siemens)
11061 ## LD is ld it makes a PLAMLIB
11062 ## CC just makes a GrossModule.
11063 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11064 reload_cmds='$CC -r -o $output$reload_objs'
11065 hardcode_direct=no
11066 ;;
11067 motorola)
11068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11069 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11070 ;;
11071 esac
11072 runpath_var='LD_RUN_PATH'
11073 hardcode_shlibpath_var=no
11074 ;;
11075
11076 sysv4.3*)
11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078 hardcode_shlibpath_var=no
11079 export_dynamic_flag_spec='-Bexport'
11080 ;;
11081
11082 sysv4*MP*)
11083 if test -d /usr/nec; then
11084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11085 hardcode_shlibpath_var=no
11086 runpath_var=LD_RUN_PATH
11087 hardcode_runpath_var=yes
11088 ld_shlibs=yes
11089 fi
11090 ;;
11091
11092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11093 no_undefined_flag='$wl-z,text'
11094 archive_cmds_need_lc=no
11095 hardcode_shlibpath_var=no
11096 runpath_var='LD_RUN_PATH'
11097
11098 if test yes = "$GCC"; then
11099 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11100 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11101 else
11102 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11103 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11104 fi
11105 ;;
11106
11107 sysv5* | sco3.2v5* | sco5v6*)
11108 # Note: We CANNOT use -z defs as we might desire, because we do not
11109 # link with -lc, and that would cause any symbols used from libc to
11110 # always be unresolved, which means just about no library would
11111 # ever link correctly. If we're not using GNU ld we use -z text
11112 # though, which does catch some bad symbols but isn't as heavy-handed
11113 # as -z defs.
11114 no_undefined_flag='$wl-z,text'
11115 allow_undefined_flag='$wl-z,nodefs'
11116 archive_cmds_need_lc=no
11117 hardcode_shlibpath_var=no
11118 hardcode_libdir_flag_spec='$wl-R,$libdir'
11119 hardcode_libdir_separator=':'
11120 link_all_deplibs=yes
11121 export_dynamic_flag_spec='$wl-Bexport'
11122 runpath_var='LD_RUN_PATH'
11123
11124 if test yes = "$GCC"; then
11125 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11127 else
11128 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11130 fi
11131 ;;
11132
11133 uts4*)
11134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11135 hardcode_libdir_flag_spec='-L$libdir'
11136 hardcode_shlibpath_var=no
11137 ;;
11138
11139 *)
11140 ld_shlibs=no
11141 ;;
11142 esac
11143
11144 if test sni = "$host_vendor"; then
11145 case $host in
11146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11147 export_dynamic_flag_spec='$wl-Blargedynsym'
11148 ;;
11149 esac
11150 fi
11151 fi
11152
11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11154 printf "%s\n" "$ld_shlibs" >&6; }
11155 test no = "$ld_shlibs" && can_build_shared=no
11156
11157 with_gnu_ld=$with_gnu_ld
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173 #
11174 # Do we need to explicitly link libc?
11175 #
11176 case "x$archive_cmds_need_lc" in
11177 x|xyes)
11178 # Assume -lc should be added
11179 archive_cmds_need_lc=yes
11180
11181 if test yes,yes = "$GCC,$enable_shared"; then
11182 case $archive_cmds in
11183 *'~'*)
11184 # FIXME: we may have to deal with multi-command sequences.
11185 ;;
11186 '$CC '*)
11187 # Test whether the compiler implicitly links with -lc since on some
11188 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11189 # to ld, don't add -lc before -lgcc.
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11191 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11192 if test ${lt_cv_archive_cmds_need_lc+y}
11193 then :
11194 printf %s "(cached) " >&6
11195 else $as_nop
11196 $RM conftest*
11197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11198
11199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11200 (eval $ac_compile) 2>&5
11201 ac_status=$?
11202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11203 test $ac_status = 0; } 2>conftest.err; then
11204 soname=conftest
11205 lib=conftest
11206 libobjs=conftest.$ac_objext
11207 deplibs=
11208 wl=$lt_prog_compiler_wl
11209 pic_flag=$lt_prog_compiler_pic
11210 compiler_flags=-v
11211 linker_flags=-v
11212 verstring=
11213 output_objdir=.
11214 libname=conftest
11215 lt_save_allow_undefined_flag=$allow_undefined_flag
11216 allow_undefined_flag=
11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11218 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11219 ac_status=$?
11220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; }
11222 then
11223 lt_cv_archive_cmds_need_lc=no
11224 else
11225 lt_cv_archive_cmds_need_lc=yes
11226 fi
11227 allow_undefined_flag=$lt_save_allow_undefined_flag
11228 else
11229 cat conftest.err 1>&5
11230 fi
11231 $RM conftest*
11232
11233 fi
11234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11235 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11236 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11237 ;;
11238 esac
11239 fi
11240 ;;
11241 esac
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11395 printf %s "checking dynamic linker characteristics... " >&6; }
11396
11397 if test yes = "$GCC"; then
11398 case $host_os in
11399 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11400 *) lt_awk_arg='/^libraries:/' ;;
11401 esac
11402 case $host_os in
11403 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11404 *) lt_sed_strip_eq='s|=/|/|g' ;;
11405 esac
11406 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11407 case $lt_search_path_spec in
11408 *\;*)
11409 # if the path contains ";" then we assume it to be the separator
11410 # otherwise default to the standard path separator (i.e. ":") - it is
11411 # assumed that no part of a normal pathname contains ";" but that should
11412 # okay in the real world where ";" in dirpaths is itself problematic.
11413 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11414 ;;
11415 *)
11416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11417 ;;
11418 esac
11419 # Ok, now we have the path, separated by spaces, we can step through it
11420 # and add multilib dir if necessary...
11421 lt_tmp_lt_search_path_spec=
11422 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11423 # ...but if some path component already ends with the multilib dir we assume
11424 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11425 case "$lt_multi_os_dir; $lt_search_path_spec " in
11426 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11427 lt_multi_os_dir=
11428 ;;
11429 esac
11430 for lt_sys_path in $lt_search_path_spec; do
11431 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11433 elif test -n "$lt_multi_os_dir"; then
11434 test -d "$lt_sys_path" && \
11435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11436 fi
11437 done
11438 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11439 BEGIN {RS = " "; FS = "/|\n";} {
11440 lt_foo = "";
11441 lt_count = 0;
11442 for (lt_i = NF; lt_i > 0; lt_i--) {
11443 if ($lt_i != "" && $lt_i != ".") {
11444 if ($lt_i == "..") {
11445 lt_count++;
11446 } else {
11447 if (lt_count == 0) {
11448 lt_foo = "/" $lt_i lt_foo;
11449 } else {
11450 lt_count--;
11451 }
11452 }
11453 }
11454 }
11455 if (lt_foo != "") { lt_freq[lt_foo]++; }
11456 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11457 }'`
11458 # AWK program above erroneously prepends '/' to C:/dos/paths
11459 # for these hosts.
11460 case $host_os in
11461 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11462 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11463 esac
11464 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11465 else
11466 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11467 fi
11468 library_names_spec=
11469 libname_spec='lib$name'
11470 soname_spec=
11471 shrext_cmds=.so
11472 postinstall_cmds=
11473 postuninstall_cmds=
11474 finish_cmds=
11475 finish_eval=
11476 shlibpath_var=
11477 shlibpath_overrides_runpath=unknown
11478 version_type=none
11479 dynamic_linker="$host_os ld.so"
11480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11481 need_lib_prefix=unknown
11482 hardcode_into_libs=no
11483
11484 # when you set need_version to no, make sure it does not cause -set_version
11485 # flags to be left without arguments
11486 need_version=unknown
11487
11488
11489
11490 case $host_os in
11491 aix3*)
11492 version_type=linux # correct to gnu/linux during the next big refactor
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11494 shlibpath_var=LIBPATH
11495
11496 # AIX 3 has no versioning support, so we append a major version to the name.
11497 soname_spec='$libname$release$shared_ext$major'
11498 ;;
11499
11500 aix[4-9]*)
11501 version_type=linux # correct to gnu/linux during the next big refactor
11502 need_lib_prefix=no
11503 need_version=no
11504 hardcode_into_libs=yes
11505 if test ia64 = "$host_cpu"; then
11506 # AIX 5 supports IA64
11507 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 else
11510 # With GCC up to 2.95.x, collect2 would create an import file
11511 # for dependence libraries. The import file would start with
11512 # the line '#! .'. This would cause the generated library to
11513 # depend on '.', always an invalid library. This was fixed in
11514 # development snapshots of GCC prior to 3.0.
11515 case $host_os in
11516 aix4 | aix4.[01] | aix4.[01].*)
11517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11518 echo ' yes '
11519 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11520 :
11521 else
11522 can_build_shared=no
11523 fi
11524 ;;
11525 esac
11526 # Using Import Files as archive members, it is possible to support
11527 # filename-based versioning of shared library archives on AIX. While
11528 # this would work for both with and without runtime linking, it will
11529 # prevent static linking of such archives. So we do filename-based
11530 # shared library versioning with .so extension only, which is used
11531 # when both runtime linking and shared linking is enabled.
11532 # Unfortunately, runtime linking may impact performance, so we do
11533 # not want this to be the default eventually. Also, we use the
11534 # versioned .so libs for executables only if there is the -brtl
11535 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11536 # To allow for filename-based versioning support, we need to create
11537 # libNAME.so.V as an archive file, containing:
11538 # *) an Import File, referring to the versioned filename of the
11539 # archive as well as the shared archive member, telling the
11540 # bitwidth (32 or 64) of that shared object, and providing the
11541 # list of exported symbols of that shared object, eventually
11542 # decorated with the 'weak' keyword
11543 # *) the shared object with the F_LOADONLY flag set, to really avoid
11544 # it being seen by the linker.
11545 # At run time we better use the real file rather than another symlink,
11546 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11547
11548 case $with_aix_soname,$aix_use_runtimelinking in
11549 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11550 # soname into executable. Probably we can add versioning support to
11551 # collect2, so additional links can be useful in future.
11552 aix,yes) # traditional libtool
11553 dynamic_linker='AIX unversionable lib.so'
11554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11555 # instead of lib<name>.a to let people know that these are not
11556 # typical AIX shared libraries.
11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11558 ;;
11559 aix,no) # traditional AIX only
11560 dynamic_linker='AIX lib.a(lib.so.V)'
11561 # We preserve .a as extension for shared libraries through AIX4.2
11562 # and later when we are not doing run time linking.
11563 library_names_spec='$libname$release.a $libname.a'
11564 soname_spec='$libname$release$shared_ext$major'
11565 ;;
11566 svr4,*) # full svr4 only
11567 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11568 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11569 # We do not specify a path in Import Files, so LIBPATH fires.
11570 shlibpath_overrides_runpath=yes
11571 ;;
11572 *,yes) # both, prefer svr4
11573 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11574 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11575 # unpreferred sharedlib libNAME.a needs extra handling
11576 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"'
11577 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"'
11578 # We do not specify a path in Import Files, so LIBPATH fires.
11579 shlibpath_overrides_runpath=yes
11580 ;;
11581 *,no) # both, prefer aix
11582 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11583 library_names_spec='$libname$release.a $libname.a'
11584 soname_spec='$libname$release$shared_ext$major'
11585 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11586 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)'
11587 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"'
11588 ;;
11589 esac
11590 shlibpath_var=LIBPATH
11591 fi
11592 ;;
11593
11594 amigaos*)
11595 case $host_cpu in
11596 powerpc)
11597 # Since July 2007 AmigaOS4 officially supports .so libraries.
11598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11600 ;;
11601 m68k)
11602 library_names_spec='$libname.ixlibrary $libname.a'
11603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11604 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'
11605 ;;
11606 esac
11607 ;;
11608
11609 beos*)
11610 library_names_spec='$libname$shared_ext'
11611 dynamic_linker="$host_os ld.so"
11612 shlibpath_var=LIBRARY_PATH
11613 ;;
11614
11615 bsdi[45]*)
11616 version_type=linux # correct to gnu/linux during the next big refactor
11617 need_version=no
11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619 soname_spec='$libname$release$shared_ext$major'
11620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11621 shlibpath_var=LD_LIBRARY_PATH
11622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11624 # the default ld.so.conf also contains /usr/contrib/lib and
11625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11626 # libtool to hard-code these into programs
11627 ;;
11628
11629 cygwin* | mingw* | pw32* | cegcc*)
11630 version_type=windows
11631 shrext_cmds=.dll
11632 need_version=no
11633 need_lib_prefix=no
11634
11635 case $GCC,$cc_basename in
11636 yes,*)
11637 # gcc
11638 library_names_spec='$libname.dll.a'
11639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11640 postinstall_cmds='base_file=`basename \$file`~
11641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11642 dldir=$destdir/`dirname \$dlpath`~
11643 test -d \$dldir || mkdir -p \$dldir~
11644 $install_prog $dir/$dlname \$dldir/$dlname~
11645 chmod a+x \$dldir/$dlname~
11646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11648 fi'
11649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11650 dlpath=$dir/\$dldll~
11651 $RM \$dlpath'
11652 shlibpath_overrides_runpath=yes
11653
11654 case $host_os in
11655 cygwin*)
11656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11657 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11658
11659 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11660 ;;
11661 mingw* | cegcc*)
11662 # MinGW DLLs use traditional 'lib' prefix
11663 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11664 ;;
11665 pw32*)
11666 # pw32 DLLs use 'pw' prefix rather than 'lib'
11667 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11668 ;;
11669 esac
11670 dynamic_linker='Win32 ld.exe'
11671 ;;
11672
11673 *,cl* | *,icl*)
11674 # Native MSVC or ICC
11675 libname_spec='$name'
11676 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11677 library_names_spec='$libname.dll.lib'
11678
11679 case $build_os in
11680 mingw*)
11681 sys_lib_search_path_spec=
11682 lt_save_ifs=$IFS
11683 IFS=';'
11684 for lt_path in $LIB
11685 do
11686 IFS=$lt_save_ifs
11687 # Let DOS variable expansion print the short 8.3 style file name.
11688 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11689 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11690 done
11691 IFS=$lt_save_ifs
11692 # Convert to MSYS style.
11693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11694 ;;
11695 cygwin*)
11696 # Convert to unix form, then to dos form, then back to unix form
11697 # but this time dos style (no spaces!) so that the unix form looks
11698 # like /cygdrive/c/PROGRA~1:/cygdr...
11699 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11700 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11701 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11702 ;;
11703 *)
11704 sys_lib_search_path_spec=$LIB
11705 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11706 # It is most probably a Windows format PATH.
11707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11708 else
11709 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11710 fi
11711 # FIXME: find the short name or the path components, as spaces are
11712 # common. (e.g. "Program Files" -> "PROGRA~1")
11713 ;;
11714 esac
11715
11716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11717 postinstall_cmds='base_file=`basename \$file`~
11718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11719 dldir=$destdir/`dirname \$dlpath`~
11720 test -d \$dldir || mkdir -p \$dldir~
11721 $install_prog $dir/$dlname \$dldir/$dlname'
11722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11723 dlpath=$dir/\$dldll~
11724 $RM \$dlpath'
11725 shlibpath_overrides_runpath=yes
11726 dynamic_linker='Win32 link.exe'
11727 ;;
11728
11729 *)
11730 # Assume MSVC and ICC wrapper
11731 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11732 dynamic_linker='Win32 ld.exe'
11733 ;;
11734 esac
11735 # FIXME: first we should search . and the directory the executable is in
11736 shlibpath_var=PATH
11737 ;;
11738
11739 darwin* | rhapsody*)
11740 dynamic_linker="$host_os dyld"
11741 version_type=darwin
11742 need_lib_prefix=no
11743 need_version=no
11744 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11745 soname_spec='$libname$release$major$shared_ext'
11746 shlibpath_overrides_runpath=yes
11747 shlibpath_var=DYLD_LIBRARY_PATH
11748 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11749
11750 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11752 ;;
11753
11754 dgux*)
11755 version_type=linux # correct to gnu/linux during the next big refactor
11756 need_lib_prefix=no
11757 need_version=no
11758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11759 soname_spec='$libname$release$shared_ext$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 ;;
11762
11763 freebsd* | dragonfly* | midnightbsd*)
11764 # DragonFly does not have aout. When/if they implement a new
11765 # versioning mechanism, adjust this.
11766 if test -x /usr/bin/objformat; then
11767 objformat=`/usr/bin/objformat`
11768 else
11769 case $host_os in
11770 freebsd[23].*) objformat=aout ;;
11771 *) objformat=elf ;;
11772 esac
11773 fi
11774 # Handle Gentoo/FreeBSD as it was Linux
11775 case $host_vendor in
11776 gentoo)
11777 version_type=linux ;;
11778 *)
11779 version_type=freebsd-$objformat ;;
11780 esac
11781
11782 case $version_type in
11783 freebsd-elf*)
11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11785 soname_spec='$libname$release$shared_ext$major'
11786 need_version=no
11787 need_lib_prefix=no
11788 ;;
11789 freebsd-*)
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11791 need_version=yes
11792 ;;
11793 linux)
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 need_lib_prefix=no
11797 need_version=no
11798 ;;
11799 esac
11800 shlibpath_var=LD_LIBRARY_PATH
11801 case $host_os in
11802 freebsd2.*)
11803 shlibpath_overrides_runpath=yes
11804 ;;
11805 freebsd3.[01]* | freebsdelf3.[01]*)
11806 shlibpath_overrides_runpath=yes
11807 hardcode_into_libs=yes
11808 ;;
11809 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11810 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11811 shlibpath_overrides_runpath=no
11812 hardcode_into_libs=yes
11813 ;;
11814 *) # from 4.6 on, and DragonFly
11815 shlibpath_overrides_runpath=yes
11816 hardcode_into_libs=yes
11817 ;;
11818 esac
11819 ;;
11820
11821 haiku*)
11822 version_type=linux # correct to gnu/linux during the next big refactor
11823 need_lib_prefix=no
11824 need_version=no
11825 dynamic_linker="$host_os runtime_loader"
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11827 soname_spec='$libname$release$shared_ext$major'
11828 shlibpath_var=LIBRARY_PATH
11829 shlibpath_overrides_runpath=no
11830 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11831 hardcode_into_libs=yes
11832 ;;
11833
11834 hpux9* | hpux10* | hpux11*)
11835 # Give a soname corresponding to the major version so that dld.sl refuses to
11836 # link against other versions.
11837 version_type=sunos
11838 need_lib_prefix=no
11839 need_version=no
11840 case $host_cpu in
11841 ia64*)
11842 shrext_cmds='.so'
11843 hardcode_into_libs=yes
11844 dynamic_linker="$host_os dld.so"
11845 shlibpath_var=LD_LIBRARY_PATH
11846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11848 soname_spec='$libname$release$shared_ext$major'
11849 if test 32 = "$HPUX_IA64_MODE"; then
11850 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11851 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11852 else
11853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11854 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11855 fi
11856 ;;
11857 hppa*64*)
11858 shrext_cmds='.sl'
11859 hardcode_into_libs=yes
11860 dynamic_linker="$host_os dld.sl"
11861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11864 soname_spec='$libname$release$shared_ext$major'
11865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11867 ;;
11868 *)
11869 shrext_cmds='.sl'
11870 dynamic_linker="$host_os dld.sl"
11871 shlibpath_var=SHLIB_PATH
11872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11874 soname_spec='$libname$release$shared_ext$major'
11875 ;;
11876 esac
11877 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11878 postinstall_cmds='chmod 555 $lib'
11879 # or fails outright, so override atomically:
11880 install_override_mode=555
11881 ;;
11882
11883 interix[3-9]*)
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 need_lib_prefix=no
11886 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=no
11892 hardcode_into_libs=yes
11893 ;;
11894
11895 irix5* | irix6* | nonstopux*)
11896 case $host_os in
11897 nonstopux*) version_type=nonstopux ;;
11898 *)
11899 if test yes = "$lt_cv_prog_gnu_ld"; then
11900 version_type=linux # correct to gnu/linux during the next big refactor
11901 else
11902 version_type=irix
11903 fi ;;
11904 esac
11905 need_lib_prefix=no
11906 need_version=no
11907 soname_spec='$libname$release$shared_ext$major'
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11909 case $host_os in
11910 irix5* | nonstopux*)
11911 libsuff= shlibsuff=
11912 ;;
11913 *)
11914 case $LD in # libtool.m4 will add one of these switches to LD
11915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11916 libsuff= shlibsuff= libmagic=32-bit;;
11917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11918 libsuff=32 shlibsuff=N32 libmagic=N32;;
11919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11921 *) libsuff= shlibsuff= libmagic=never-match;;
11922 esac
11923 ;;
11924 esac
11925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11926 shlibpath_overrides_runpath=no
11927 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11928 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11929 hardcode_into_libs=yes
11930 ;;
11931
11932 # No shared lib support for Linux oldld, aout, or coff.
11933 linux*oldld* | linux*aout* | linux*coff*)
11934 dynamic_linker=no
11935 ;;
11936
11937 linux*android*)
11938 version_type=none # Android doesn't support versioned libraries.
11939 need_lib_prefix=no
11940 need_version=no
11941 library_names_spec='$libname$release$shared_ext'
11942 soname_spec='$libname$release$shared_ext'
11943 finish_cmds=
11944 shlibpath_var=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath=yes
11946
11947 # This implies no fast_install, which is unacceptable.
11948 # Some rework will be needed to allow for fast_install
11949 # before this can be enabled.
11950 hardcode_into_libs=yes
11951
11952 dynamic_linker='Android linker'
11953 # Don't embed -rpath directories since the linker doesn't support them.
11954 hardcode_libdir_flag_spec='-L$libdir'
11955 ;;
11956
11957 # This must be glibc/ELF.
11958 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11959 version_type=linux # correct to gnu/linux during the next big refactor
11960 need_lib_prefix=no
11961 need_version=no
11962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11963 soname_spec='$libname$release$shared_ext$major'
11964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11965 shlibpath_var=LD_LIBRARY_PATH
11966 shlibpath_overrides_runpath=no
11967
11968 # Some binutils ld are patched to set DT_RUNPATH
11969 if test ${lt_cv_shlibpath_overrides_runpath+y}
11970 then :
11971 printf %s "(cached) " >&6
11972 else $as_nop
11973 lt_cv_shlibpath_overrides_runpath=no
11974 save_LDFLAGS=$LDFLAGS
11975 save_libdir=$libdir
11976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980
11981 int
11982 main (void)
11983 {
11984
11985 ;
11986 return 0;
11987 }
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"
11990 then :
11991 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11992 then :
11993 lt_cv_shlibpath_overrides_runpath=yes
11994 fi
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LDFLAGS=$save_LDFLAGS
11999 libdir=$save_libdir
12000
12001 fi
12002
12003 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12004
12005 # This implies no fast_install, which is unacceptable.
12006 # Some rework will be needed to allow for fast_install
12007 # before this can be enabled.
12008 hardcode_into_libs=yes
12009
12010 # Ideally, we could use ldconfig to report *all* directores which are
12011 # searched for libraries, however this is still not possible. Aside from not
12012 # being certain /sbin/ldconfig is available, command
12013 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12014 # even though it is searched at run-time. Try to do the best guess by
12015 # appending ld.so.conf contents (and includes) to the search path.
12016 if test -f /etc/ld.so.conf; then
12017 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' ' '`
12018 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12019 fi
12020
12021 # We used to test for /lib/ld.so.1 and disable shared libraries on
12022 # powerpc, because MkLinux only supported shared libraries with the
12023 # GNU dynamic linker. Since this was broken with cross compilers,
12024 # most powerpc-linux boxes support dynamic linking these days and
12025 # people can always --disable-shared, the test was removed, and we
12026 # assume the GNU/Linux dynamic linker is in use.
12027 dynamic_linker='GNU/Linux ld.so'
12028 ;;
12029
12030 netbsd*)
12031 version_type=sunos
12032 need_lib_prefix=no
12033 need_version=no
12034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12035 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12037 dynamic_linker='NetBSD (a.out) ld.so'
12038 else
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12041 dynamic_linker='NetBSD ld.elf_so'
12042 fi
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes
12045 hardcode_into_libs=yes
12046 ;;
12047
12048 newsos6)
12049 version_type=linux # correct to gnu/linux during the next big refactor
12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes
12053 ;;
12054
12055 *nto* | *qnx*)
12056 version_type=qnx
12057 need_lib_prefix=no
12058 need_version=no
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 soname_spec='$libname$release$shared_ext$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=no
12063 hardcode_into_libs=yes
12064 dynamic_linker='ldqnx.so'
12065 ;;
12066
12067 openbsd* | bitrig*)
12068 version_type=sunos
12069 sys_lib_dlsearch_path_spec=/usr/lib
12070 need_lib_prefix=no
12071 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12072 need_version=no
12073 else
12074 need_version=yes
12075 fi
12076 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 shlibpath_overrides_runpath=yes
12080 ;;
12081
12082 os2*)
12083 libname_spec='$name'
12084 version_type=windows
12085 shrext_cmds=.dll
12086 need_version=no
12087 need_lib_prefix=no
12088 # OS/2 can only load a DLL with a base name of 8 characters or less.
12089 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12090 v=$($ECHO $release$versuffix | tr -d .-);
12091 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12092 $ECHO $n$v`$shared_ext'
12093 library_names_spec='${libname}_dll.$libext'
12094 dynamic_linker='OS/2 ld.exe'
12095 shlibpath_var=BEGINLIBPATH
12096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12098 postinstall_cmds='base_file=`basename \$file`~
12099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12100 dldir=$destdir/`dirname \$dlpath`~
12101 test -d \$dldir || mkdir -p \$dldir~
12102 $install_prog $dir/$dlname \$dldir/$dlname~
12103 chmod a+x \$dldir/$dlname~
12104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12106 fi'
12107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12108 dlpath=$dir/\$dldll~
12109 $RM \$dlpath'
12110 ;;
12111
12112 osf3* | osf4* | osf5*)
12113 version_type=osf
12114 need_lib_prefix=no
12115 need_version=no
12116 soname_spec='$libname$release$shared_ext$major'
12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12121 ;;
12122
12123 rdos*)
12124 dynamic_linker=no
12125 ;;
12126
12127 solaris*)
12128 version_type=linux # correct to gnu/linux during the next big refactor
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12132 soname_spec='$libname$release$shared_ext$major'
12133 shlibpath_var=LD_LIBRARY_PATH
12134 shlibpath_overrides_runpath=yes
12135 hardcode_into_libs=yes
12136 # ldd complains unless libraries are executable
12137 postinstall_cmds='chmod +x $lib'
12138 ;;
12139
12140 sunos4*)
12141 version_type=sunos
12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12144 shlibpath_var=LD_LIBRARY_PATH
12145 shlibpath_overrides_runpath=yes
12146 if test yes = "$with_gnu_ld"; then
12147 need_lib_prefix=no
12148 fi
12149 need_version=yes
12150 ;;
12151
12152 sysv4 | sysv4.3*)
12153 version_type=linux # correct to gnu/linux during the next big refactor
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 case $host_vendor in
12158 sni)
12159 shlibpath_overrides_runpath=no
12160 need_lib_prefix=no
12161 runpath_var=LD_RUN_PATH
12162 ;;
12163 siemens)
12164 need_lib_prefix=no
12165 ;;
12166 motorola)
12167 need_lib_prefix=no
12168 need_version=no
12169 shlibpath_overrides_runpath=no
12170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12171 ;;
12172 esac
12173 ;;
12174
12175 sysv4*MP*)
12176 if test -d /usr/nec; then
12177 version_type=linux # correct to gnu/linux during the next big refactor
12178 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12179 soname_spec='$libname$shared_ext.$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 fi
12182 ;;
12183
12184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12185 version_type=sco
12186 need_lib_prefix=no
12187 need_version=no
12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12189 soname_spec='$libname$release$shared_ext$major'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 shlibpath_overrides_runpath=yes
12192 hardcode_into_libs=yes
12193 if test yes = "$with_gnu_ld"; then
12194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12195 else
12196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12197 case $host_os in
12198 sco3.2v5*)
12199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12200 ;;
12201 esac
12202 fi
12203 sys_lib_dlsearch_path_spec='/usr/lib'
12204 ;;
12205
12206 tpf*)
12207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12208 version_type=linux # correct to gnu/linux during the next big refactor
12209 need_lib_prefix=no
12210 need_version=no
12211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=no
12214 hardcode_into_libs=yes
12215 ;;
12216
12217 uts4*)
12218 version_type=linux # correct to gnu/linux during the next big refactor
12219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12220 soname_spec='$libname$release$shared_ext$major'
12221 shlibpath_var=LD_LIBRARY_PATH
12222 ;;
12223
12224 *)
12225 dynamic_linker=no
12226 ;;
12227 esac
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12229 printf "%s\n" "$dynamic_linker" >&6; }
12230 test no = "$dynamic_linker" && can_build_shared=no
12231
12232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12233 if test yes = "$GCC"; then
12234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12235 fi
12236
12237 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12238 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12239 fi
12240
12241 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12242 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12243 fi
12244
12245 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12246 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12247
12248 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12249 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12250
12251 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12252 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12351 printf %s "checking how to hardcode library paths into programs... " >&6; }
12352 hardcode_action=
12353 if test -n "$hardcode_libdir_flag_spec" ||
12354 test -n "$runpath_var" ||
12355 test yes = "$hardcode_automatic"; then
12356
12357 # We can hardcode non-existent directories.
12358 if test no != "$hardcode_direct" &&
12359 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12360 # have to relink, otherwise we might link with an installed library
12361 # when we should be linking with a yet-to-be-installed one
12362 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12363 test no != "$hardcode_minus_L"; then
12364 # Linking always hardcodes the temporary library directory.
12365 hardcode_action=relink
12366 else
12367 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12368 hardcode_action=immediate
12369 fi
12370 else
12371 # We cannot hardcode anything, or else we can only hardcode existing
12372 # directories.
12373 hardcode_action=unsupported
12374 fi
12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12376 printf "%s\n" "$hardcode_action" >&6; }
12377
12378 if test relink = "$hardcode_action" ||
12379 test yes = "$inherit_rpath"; then
12380 # Fast installation is not supported
12381 enable_fast_install=no
12382 elif test yes = "$shlibpath_overrides_runpath" ||
12383 test no = "$enable_shared"; then
12384 # Fast installation is not necessary
12385 enable_fast_install=needless
12386 fi
12387
12388
12389
12390
12391
12392
12393 if test yes != "$enable_dlopen"; then
12394 enable_dlopen=unknown
12395 enable_dlopen_self=unknown
12396 enable_dlopen_self_static=unknown
12397 else
12398 lt_cv_dlopen=no
12399 lt_cv_dlopen_libs=
12400
12401 case $host_os in
12402 beos*)
12403 lt_cv_dlopen=load_add_on
12404 lt_cv_dlopen_libs=
12405 lt_cv_dlopen_self=yes
12406 ;;
12407
12408 mingw* | pw32* | cegcc*)
12409 lt_cv_dlopen=LoadLibrary
12410 lt_cv_dlopen_libs=
12411 ;;
12412
12413 cygwin*)
12414 lt_cv_dlopen=dlopen
12415 lt_cv_dlopen_libs=
12416 ;;
12417
12418 darwin*)
12419 # if libdl is installed we need to link against it
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12421 printf %s "checking for dlopen in -ldl... " >&6; }
12422 if test ${ac_cv_lib_dl_dlopen+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else $as_nop
12426 ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-ldl $LIBS"
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply.
12434 The 'extern "C"' is for builds by C++ compilers;
12435 although this is not generally supported in C code supporting it here
12436 has little cost and some practical benefit (sr 110532). */
12437 #ifdef __cplusplus
12438 extern "C"
12439 #endif
12440 char dlopen (void);
12441 int
12442 main (void)
12443 {
12444 return dlopen ();
12445 ;
12446 return 0;
12447 }
12448 _ACEOF
12449 if ac_fn_c_try_link "$LINENO"
12450 then :
12451 ac_cv_lib_dl_dlopen=yes
12452 else $as_nop
12453 ac_cv_lib_dl_dlopen=no
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12458 fi
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12460 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12461 if test "x$ac_cv_lib_dl_dlopen" = xyes
12462 then :
12463 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12464 else $as_nop
12465
12466 lt_cv_dlopen=dyld
12467 lt_cv_dlopen_libs=
12468 lt_cv_dlopen_self=yes
12469
12470 fi
12471
12472 ;;
12473
12474 tpf*)
12475 # Don't try to run any link tests for TPF. We know it's impossible
12476 # because TPF is a cross-compiler, and we know how we open DSOs.
12477 lt_cv_dlopen=dlopen
12478 lt_cv_dlopen_libs=
12479 lt_cv_dlopen_self=no
12480 ;;
12481
12482 *)
12483 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12484 if test "x$ac_cv_func_shl_load" = xyes
12485 then :
12486 lt_cv_dlopen=shl_load
12487 else $as_nop
12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12489 printf %s "checking for shl_load in -ldld... " >&6; }
12490 if test ${ac_cv_lib_dld_shl_load+y}
12491 then :
12492 printf %s "(cached) " >&6
12493 else $as_nop
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-ldld $LIBS"
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12498
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply.
12502 The 'extern "C"' is for builds by C++ compilers;
12503 although this is not generally supported in C code supporting it here
12504 has little cost and some practical benefit (sr 110532). */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 char shl_load (void);
12509 int
12510 main (void)
12511 {
12512 return shl_load ();
12513 ;
12514 return 0;
12515 }
12516 _ACEOF
12517 if ac_fn_c_try_link "$LINENO"
12518 then :
12519 ac_cv_lib_dld_shl_load=yes
12520 else $as_nop
12521 ac_cv_lib_dld_shl_load=no
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12524 conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12526 fi
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12528 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12529 if test "x$ac_cv_lib_dld_shl_load" = xyes
12530 then :
12531 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12532 else $as_nop
12533 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12534 if test "x$ac_cv_func_dlopen" = xyes
12535 then :
12536 lt_cv_dlopen=dlopen
12537 else $as_nop
12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12539 printf %s "checking for dlopen in -ldl... " >&6; }
12540 if test ${ac_cv_lib_dl_dlopen+y}
12541 then :
12542 printf %s "(cached) " >&6
12543 else $as_nop
12544 ac_check_lib_save_LIBS=$LIBS
12545 LIBS="-ldl $LIBS"
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply.
12552 The 'extern "C"' is for builds by C++ compilers;
12553 although this is not generally supported in C code supporting it here
12554 has little cost and some practical benefit (sr 110532). */
12555 #ifdef __cplusplus
12556 extern "C"
12557 #endif
12558 char dlopen (void);
12559 int
12560 main (void)
12561 {
12562 return dlopen ();
12563 ;
12564 return 0;
12565 }
12566 _ACEOF
12567 if ac_fn_c_try_link "$LINENO"
12568 then :
12569 ac_cv_lib_dl_dlopen=yes
12570 else $as_nop
12571 ac_cv_lib_dl_dlopen=no
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12574 conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_lib_save_LIBS
12576 fi
12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12578 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12579 if test "x$ac_cv_lib_dl_dlopen" = xyes
12580 then :
12581 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12582 else $as_nop
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12584 printf %s "checking for dlopen in -lsvld... " >&6; }
12585 if test ${ac_cv_lib_svld_dlopen+y}
12586 then :
12587 printf %s "(cached) " >&6
12588 else $as_nop
12589 ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-lsvld $LIBS"
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply.
12597 The 'extern "C"' is for builds by C++ compilers;
12598 although this is not generally supported in C code supporting it here
12599 has little cost and some practical benefit (sr 110532). */
12600 #ifdef __cplusplus
12601 extern "C"
12602 #endif
12603 char dlopen (void);
12604 int
12605 main (void)
12606 {
12607 return dlopen ();
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 if ac_fn_c_try_link "$LINENO"
12613 then :
12614 ac_cv_lib_svld_dlopen=yes
12615 else $as_nop
12616 ac_cv_lib_svld_dlopen=no
12617 fi
12618 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12619 conftest$ac_exeext conftest.$ac_ext
12620 LIBS=$ac_check_lib_save_LIBS
12621 fi
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12623 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12624 if test "x$ac_cv_lib_svld_dlopen" = xyes
12625 then :
12626 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12627 else $as_nop
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12629 printf %s "checking for dld_link in -ldld... " >&6; }
12630 if test ${ac_cv_lib_dld_dld_link+y}
12631 then :
12632 printf %s "(cached) " >&6
12633 else $as_nop
12634 ac_check_lib_save_LIBS=$LIBS
12635 LIBS="-ldld $LIBS"
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12638
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply.
12642 The 'extern "C"' is for builds by C++ compilers;
12643 although this is not generally supported in C code supporting it here
12644 has little cost and some practical benefit (sr 110532). */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char dld_link (void);
12649 int
12650 main (void)
12651 {
12652 return dld_link ();
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_link "$LINENO"
12658 then :
12659 ac_cv_lib_dld_dld_link=yes
12660 else $as_nop
12661 ac_cv_lib_dld_dld_link=no
12662 fi
12663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12664 conftest$ac_exeext conftest.$ac_ext
12665 LIBS=$ac_check_lib_save_LIBS
12666 fi
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12668 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12669 if test "x$ac_cv_lib_dld_dld_link" = xyes
12670 then :
12671 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12672 fi
12673
12674
12675 fi
12676
12677
12678 fi
12679
12680
12681 fi
12682
12683
12684 fi
12685
12686
12687 fi
12688
12689 ;;
12690 esac
12691
12692 if test no = "$lt_cv_dlopen"; then
12693 enable_dlopen=no
12694 else
12695 enable_dlopen=yes
12696 fi
12697
12698 case $lt_cv_dlopen in
12699 dlopen)
12700 save_CPPFLAGS=$CPPFLAGS
12701 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12702
12703 save_LDFLAGS=$LDFLAGS
12704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12705
12706 save_LIBS=$LIBS
12707 LIBS="$lt_cv_dlopen_libs $LIBS"
12708
12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12710 printf %s "checking whether a program can dlopen itself... " >&6; }
12711 if test ${lt_cv_dlopen_self+y}
12712 then :
12713 printf %s "(cached) " >&6
12714 else $as_nop
12715 if test yes = "$cross_compiling"; then :
12716 lt_cv_dlopen_self=cross
12717 else
12718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12719 lt_status=$lt_dlunknown
12720 cat > conftest.$ac_ext <<_LT_EOF
12721 #line $LINENO "configure"
12722 #include "confdefs.h"
12723
12724 #if HAVE_DLFCN_H
12725 #include <dlfcn.h>
12726 #endif
12727
12728 #include <stdio.h>
12729
12730 #ifdef RTLD_GLOBAL
12731 # define LT_DLGLOBAL RTLD_GLOBAL
12732 #else
12733 # ifdef DL_GLOBAL
12734 # define LT_DLGLOBAL DL_GLOBAL
12735 # else
12736 # define LT_DLGLOBAL 0
12737 # endif
12738 #endif
12739
12740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12741 find out it does not work in some platform. */
12742 #ifndef LT_DLLAZY_OR_NOW
12743 # ifdef RTLD_LAZY
12744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12745 # else
12746 # ifdef DL_LAZY
12747 # define LT_DLLAZY_OR_NOW DL_LAZY
12748 # else
12749 # ifdef RTLD_NOW
12750 # define LT_DLLAZY_OR_NOW RTLD_NOW
12751 # else
12752 # ifdef DL_NOW
12753 # define LT_DLLAZY_OR_NOW DL_NOW
12754 # else
12755 # define LT_DLLAZY_OR_NOW 0
12756 # endif
12757 # endif
12758 # endif
12759 # endif
12760 #endif
12761
12762 /* When -fvisibility=hidden is used, assume the code has been annotated
12763 correspondingly for the symbols needed. */
12764 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12765 int fnord () __attribute__((visibility("default")));
12766 #endif
12767
12768 int fnord () { return 42; }
12769 int main ()
12770 {
12771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12772 int status = $lt_dlunknown;
12773
12774 if (self)
12775 {
12776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12777 else
12778 {
12779 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12780 else puts (dlerror ());
12781 }
12782 /* dlclose (self); */
12783 }
12784 else
12785 puts (dlerror ());
12786
12787 return status;
12788 }
12789 _LT_EOF
12790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12791 (eval $ac_link) 2>&5
12792 ac_status=$?
12793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12795 (./conftest; exit; ) >&5 2>/dev/null
12796 lt_status=$?
12797 case x$lt_status in
12798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12800 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12801 esac
12802 else :
12803 # compilation failed
12804 lt_cv_dlopen_self=no
12805 fi
12806 fi
12807 rm -fr conftest*
12808
12809
12810 fi
12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12812 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12813
12814 if test yes = "$lt_cv_dlopen_self"; then
12815 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12817 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12818 if test ${lt_cv_dlopen_self_static+y}
12819 then :
12820 printf %s "(cached) " >&6
12821 else $as_nop
12822 if test yes = "$cross_compiling"; then :
12823 lt_cv_dlopen_self_static=cross
12824 else
12825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12826 lt_status=$lt_dlunknown
12827 cat > conftest.$ac_ext <<_LT_EOF
12828 #line $LINENO "configure"
12829 #include "confdefs.h"
12830
12831 #if HAVE_DLFCN_H
12832 #include <dlfcn.h>
12833 #endif
12834
12835 #include <stdio.h>
12836
12837 #ifdef RTLD_GLOBAL
12838 # define LT_DLGLOBAL RTLD_GLOBAL
12839 #else
12840 # ifdef DL_GLOBAL
12841 # define LT_DLGLOBAL DL_GLOBAL
12842 # else
12843 # define LT_DLGLOBAL 0
12844 # endif
12845 #endif
12846
12847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12848 find out it does not work in some platform. */
12849 #ifndef LT_DLLAZY_OR_NOW
12850 # ifdef RTLD_LAZY
12851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12852 # else
12853 # ifdef DL_LAZY
12854 # define LT_DLLAZY_OR_NOW DL_LAZY
12855 # else
12856 # ifdef RTLD_NOW
12857 # define LT_DLLAZY_OR_NOW RTLD_NOW
12858 # else
12859 # ifdef DL_NOW
12860 # define LT_DLLAZY_OR_NOW DL_NOW
12861 # else
12862 # define LT_DLLAZY_OR_NOW 0
12863 # endif
12864 # endif
12865 # endif
12866 # endif
12867 #endif
12868
12869 /* When -fvisibility=hidden is used, assume the code has been annotated
12870 correspondingly for the symbols needed. */
12871 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12872 int fnord () __attribute__((visibility("default")));
12873 #endif
12874
12875 int fnord () { return 42; }
12876 int main ()
12877 {
12878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12879 int status = $lt_dlunknown;
12880
12881 if (self)
12882 {
12883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12884 else
12885 {
12886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12887 else puts (dlerror ());
12888 }
12889 /* dlclose (self); */
12890 }
12891 else
12892 puts (dlerror ());
12893
12894 return status;
12895 }
12896 _LT_EOF
12897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12898 (eval $ac_link) 2>&5
12899 ac_status=$?
12900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12901 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12902 (./conftest; exit; ) >&5 2>/dev/null
12903 lt_status=$?
12904 case x$lt_status in
12905 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12906 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12907 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12908 esac
12909 else :
12910 # compilation failed
12911 lt_cv_dlopen_self_static=no
12912 fi
12913 fi
12914 rm -fr conftest*
12915
12916
12917 fi
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12919 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12920 fi
12921
12922 CPPFLAGS=$save_CPPFLAGS
12923 LDFLAGS=$save_LDFLAGS
12924 LIBS=$save_LIBS
12925 ;;
12926 esac
12927
12928 case $lt_cv_dlopen_self in
12929 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12930 *) enable_dlopen_self=unknown ;;
12931 esac
12932
12933 case $lt_cv_dlopen_self_static in
12934 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12935 *) enable_dlopen_self_static=unknown ;;
12936 esac
12937 fi
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955 striplib=
12956 old_striplib=
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12958 printf %s "checking whether stripping libraries is possible... " >&6; }
12959 if test -z "$STRIP"; then
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961 printf "%s\n" "no" >&6; }
12962 else
12963 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12964 old_striplib="$STRIP --strip-debug"
12965 striplib="$STRIP --strip-unneeded"
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967 printf "%s\n" "yes" >&6; }
12968 else
12969 case $host_os in
12970 darwin*)
12971 # FIXME - insert some real tests, host_os isn't really good enough
12972 striplib="$STRIP -x"
12973 old_striplib="$STRIP -S"
12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12975 printf "%s\n" "yes" >&6; }
12976 ;;
12977 freebsd*)
12978 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12979 old_striplib="$STRIP --strip-debug"
12980 striplib="$STRIP --strip-unneeded"
12981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982 printf "%s\n" "yes" >&6; }
12983 else
12984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 printf "%s\n" "no" >&6; }
12986 fi
12987 ;;
12988 *)
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 printf "%s\n" "no" >&6; }
12991 ;;
12992 esac
12993 fi
12994 fi
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007 # Report what library types will actually be built
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13009 printf %s "checking if libtool supports shared libraries... " >&6; }
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13011 printf "%s\n" "$can_build_shared" >&6; }
13012
13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13014 printf %s "checking whether to build shared libraries... " >&6; }
13015 test no = "$can_build_shared" && enable_shared=no
13016
13017 # On AIX, shared libraries and static libraries use the same namespace, and
13018 # are all built from PIC.
13019 case $host_os in
13020 aix3*)
13021 test yes = "$enable_shared" && enable_static=no
13022 if test -n "$RANLIB"; then
13023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13024 postinstall_cmds='$RANLIB $lib'
13025 fi
13026 ;;
13027
13028 aix[4-9]*)
13029 if test ia64 != "$host_cpu"; then
13030 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13031 yes,aix,yes) ;; # shared object as lib.so file only
13032 yes,svr4,*) ;; # shared object as lib.so archive member only
13033 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13034 esac
13035 fi
13036 ;;
13037 esac
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13039 printf "%s\n" "$enable_shared" >&6; }
13040
13041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13042 printf %s "checking whether to build static libraries... " >&6; }
13043 # Make sure either enable_shared or enable_static is yes.
13044 test yes = "$enable_shared" || enable_static=yes
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13046 printf "%s\n" "$enable_static" >&6; }
13047
13048
13049
13050
13051 fi
13052 ac_ext=c
13053 ac_cpp='$CPP $CPPFLAGS'
13054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13057
13058 CC=$lt_save_CC
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074 ac_config_commands="$ac_config_commands libtool"
13075
13076
13077
13078
13079 # Only expand once:
13080
13081
13082
13083 # Require xorg-macros minimum of 1.12 for DocBook external references
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13097 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13098 if test ${ac_cv_c_undeclared_builtin_options+y}
13099 then :
13100 printf %s "(cached) " >&6
13101 else $as_nop
13102 ac_save_CFLAGS=$CFLAGS
13103 ac_cv_c_undeclared_builtin_options='cannot detect'
13104 for ac_arg in '' -fno-builtin; do
13105 CFLAGS="$ac_save_CFLAGS $ac_arg"
13106 # This test program should *not* compile successfully.
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109
13110 int
13111 main (void)
13112 {
13113 (void) strchr;
13114 ;
13115 return 0;
13116 }
13117 _ACEOF
13118 if ac_fn_c_try_compile "$LINENO"
13119 then :
13120
13121 else $as_nop
13122 # This test program should compile successfully.
13123 # No library function is consistently available on
13124 # freestanding implementations, so test against a dummy
13125 # declaration. Include always-available headers on the
13126 # off chance that they somehow elicit warnings.
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 #include <float.h>
13130 #include <limits.h>
13131 #include <stdarg.h>
13132 #include <stddef.h>
13133 extern void ac_decl (int, char *);
13134
13135 int
13136 main (void)
13137 {
13138 (void) ac_decl (0, (char *) 0);
13139 (void) ac_decl;
13140
13141 ;
13142 return 0;
13143 }
13144 _ACEOF
13145 if ac_fn_c_try_compile "$LINENO"
13146 then :
13147 if test x"$ac_arg" = x
13148 then :
13149 ac_cv_c_undeclared_builtin_options='none needed'
13150 else $as_nop
13151 ac_cv_c_undeclared_builtin_options=$ac_arg
13152 fi
13153 break
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13158 done
13159 CFLAGS=$ac_save_CFLAGS
13160
13161 fi
13162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13163 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13164 case $ac_cv_c_undeclared_builtin_options in #(
13165 'cannot detect') :
13166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13167 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13168 as_fn_error $? "cannot make $CC report undeclared builtins
13169 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13170 'none needed') :
13171 ac_c_undeclared_builtin_options='' ;; #(
13172 *) :
13173 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13174 esac
13175
13176
13177
13178
13179
13180 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13181 if test "x$ac_cv_have_decl___clang__" = xyes
13182 then :
13183 CLANGCC="yes"
13184 else $as_nop
13185 CLANGCC="no"
13186 fi
13187 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13188 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13189 then :
13190 INTELCC="yes"
13191 else $as_nop
13192 INTELCC="no"
13193 fi
13194 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13195 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13196 then :
13197 SUNCC="yes"
13198 else $as_nop
13199 SUNCC="no"
13200 fi
13201
13202
13203
13204
13205
13206
13207
13208
13209 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13210 if test -n "$ac_tool_prefix"; then
13211 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13212 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214 printf %s "checking for $ac_word... " >&6; }
13215 if test ${ac_cv_path_PKG_CONFIG+y}
13216 then :
13217 printf %s "(cached) " >&6
13218 else $as_nop
13219 case $PKG_CONFIG in
13220 [\\/]* | ?:[\\/]*)
13221 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13222 ;;
13223 *)
13224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13225 for as_dir in $PATH
13226 do
13227 IFS=$as_save_IFS
13228 case $as_dir in #(((
13229 '') as_dir=./ ;;
13230 */) ;;
13231 *) as_dir=$as_dir/ ;;
13232 esac
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13235 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13237 break 2
13238 fi
13239 done
13240 done
13241 IFS=$as_save_IFS
13242
13243 ;;
13244 esac
13245 fi
13246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13247 if test -n "$PKG_CONFIG"; then
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13249 printf "%s\n" "$PKG_CONFIG" >&6; }
13250 else
13251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 printf "%s\n" "no" >&6; }
13253 fi
13254
13255
13256 fi
13257 if test -z "$ac_cv_path_PKG_CONFIG"; then
13258 ac_pt_PKG_CONFIG=$PKG_CONFIG
13259 # Extract the first word of "pkg-config", so it can be a program name with args.
13260 set dummy pkg-config; ac_word=$2
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 printf %s "checking for $ac_word... " >&6; }
13263 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13264 then :
13265 printf %s "(cached) " >&6
13266 else $as_nop
13267 case $ac_pt_PKG_CONFIG in
13268 [\\/]* | ?:[\\/]*)
13269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13270 ;;
13271 *)
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275 IFS=$as_save_IFS
13276 case $as_dir in #(((
13277 '') as_dir=./ ;;
13278 */) ;;
13279 *) as_dir=$as_dir/ ;;
13280 esac
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13283 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13285 break 2
13286 fi
13287 done
13288 done
13289 IFS=$as_save_IFS
13290
13291 ;;
13292 esac
13293 fi
13294 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13295 if test -n "$ac_pt_PKG_CONFIG"; then
13296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13297 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13298 else
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300 printf "%s\n" "no" >&6; }
13301 fi
13302
13303 if test "x$ac_pt_PKG_CONFIG" = x; then
13304 PKG_CONFIG=""
13305 else
13306 case $cross_compiling:$ac_tool_warned in
13307 yes:)
13308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13310 ac_tool_warned=yes ;;
13311 esac
13312 PKG_CONFIG=$ac_pt_PKG_CONFIG
13313 fi
13314 else
13315 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13316 fi
13317
13318 fi
13319 if test -n "$PKG_CONFIG"; then
13320 _pkg_min_version=0.9.0
13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13322 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13323 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13325 printf "%s\n" "yes" >&6; }
13326 else
13327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328 printf "%s\n" "no" >&6; }
13329 PKG_CONFIG=""
13330 fi
13331 fi
13332
13333
13334
13335
13336
13337 # Check whether --enable-selective-werror was given.
13338 if test ${enable_selective_werror+y}
13339 then :
13340 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13341 else $as_nop
13342 SELECTIVE_WERROR=yes
13343 fi
13344
13345
13346
13347
13348
13349 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13350 if test "x$SUNCC" = "xyes"; then
13351 BASE_CFLAGS="-v"
13352 else
13353 BASE_CFLAGS=""
13354 fi
13355
13356 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370 xorg_testset_save_CFLAGS="$CFLAGS"
13371
13372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13377 then :
13378 printf %s "(cached) " >&6
13379 else $as_nop
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 int i;
13383 _ACEOF
13384 if ac_fn_c_try_compile "$LINENO"
13385 then :
13386 xorg_cv_cc_flag_unknown_warning_option=yes
13387 else $as_nop
13388 xorg_cv_cc_flag_unknown_warning_option=no
13389 fi
13390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13391 fi
13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13395 CFLAGS="$xorg_testset_save_CFLAGS"
13396 fi
13397
13398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13401 fi
13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13406 then :
13407 printf %s "(cached) " >&6
13408 else $as_nop
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 int i;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"
13414 then :
13415 xorg_cv_cc_flag_unused_command_line_argument=yes
13416 else $as_nop
13417 xorg_cv_cc_flag_unused_command_line_argument=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13420 fi
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13424 CFLAGS="$xorg_testset_save_CFLAGS"
13425 fi
13426
13427 found="no"
13428
13429 if test $found = "no" ; then
13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432 fi
13433
13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13436 fi
13437
13438 CFLAGS="$CFLAGS -Wall"
13439
13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13441 printf %s "checking if $CC supports -Wall... " >&6; }
13442 cacheid=xorg_cv_cc_flag__Wall
13443 if eval test \${$cacheid+y}
13444 then :
13445 printf %s "(cached) " >&6
13446 else $as_nop
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13449 int i;
13450 int
13451 main (void)
13452 {
13453
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 if ac_fn_c_try_link "$LINENO"
13459 then :
13460 eval $cacheid=yes
13461 else $as_nop
13462 eval $cacheid=no
13463 fi
13464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13465 conftest$ac_exeext conftest.$ac_ext
13466 fi
13467
13468
13469 CFLAGS="$xorg_testset_save_CFLAGS"
13470
13471 eval supported=\$$cacheid
13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13473 printf "%s\n" "$supported" >&6; }
13474 if test "$supported" = "yes" ; then
13475 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13476 found="yes"
13477 fi
13478 fi
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494 xorg_testset_save_CFLAGS="$CFLAGS"
13495
13496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13501 then :
13502 printf %s "(cached) " >&6
13503 else $as_nop
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506 int i;
13507 _ACEOF
13508 if ac_fn_c_try_compile "$LINENO"
13509 then :
13510 xorg_cv_cc_flag_unknown_warning_option=yes
13511 else $as_nop
13512 xorg_cv_cc_flag_unknown_warning_option=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13515 fi
13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13517 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13519 CFLAGS="$xorg_testset_save_CFLAGS"
13520 fi
13521
13522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13525 fi
13526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13530 then :
13531 printf %s "(cached) " >&6
13532 else $as_nop
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13535 int i;
13536 _ACEOF
13537 if ac_fn_c_try_compile "$LINENO"
13538 then :
13539 xorg_cv_cc_flag_unused_command_line_argument=yes
13540 else $as_nop
13541 xorg_cv_cc_flag_unused_command_line_argument=no
13542 fi
13543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13544 fi
13545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13546 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13548 CFLAGS="$xorg_testset_save_CFLAGS"
13549 fi
13550
13551 found="no"
13552
13553 if test $found = "no" ; then
13554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556 fi
13557
13558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560 fi
13561
13562 CFLAGS="$CFLAGS -Wpointer-arith"
13563
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13565 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13566 cacheid=xorg_cv_cc_flag__Wpointer_arith
13567 if eval test \${$cacheid+y}
13568 then :
13569 printf %s "(cached) " >&6
13570 else $as_nop
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573 int i;
13574 int
13575 main (void)
13576 {
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_link "$LINENO"
13583 then :
13584 eval $cacheid=yes
13585 else $as_nop
13586 eval $cacheid=no
13587 fi
13588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13589 conftest$ac_exeext conftest.$ac_ext
13590 fi
13591
13592
13593 CFLAGS="$xorg_testset_save_CFLAGS"
13594
13595 eval supported=\$$cacheid
13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13597 printf "%s\n" "$supported" >&6; }
13598 if test "$supported" = "yes" ; then
13599 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13600 found="yes"
13601 fi
13602 fi
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618 xorg_testset_save_CFLAGS="$CFLAGS"
13619
13620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13625 then :
13626 printf %s "(cached) " >&6
13627 else $as_nop
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630 int i;
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"
13633 then :
13634 xorg_cv_cc_flag_unknown_warning_option=yes
13635 else $as_nop
13636 xorg_cv_cc_flag_unknown_warning_option=no
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13639 fi
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13643 CFLAGS="$xorg_testset_save_CFLAGS"
13644 fi
13645
13646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13649 fi
13650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13654 then :
13655 printf %s "(cached) " >&6
13656 else $as_nop
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int i;
13660 _ACEOF
13661 if ac_fn_c_try_compile "$LINENO"
13662 then :
13663 xorg_cv_cc_flag_unused_command_line_argument=yes
13664 else $as_nop
13665 xorg_cv_cc_flag_unused_command_line_argument=no
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13668 fi
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13670 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13672 CFLAGS="$xorg_testset_save_CFLAGS"
13673 fi
13674
13675 found="no"
13676
13677 if test $found = "no" ; then
13678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13680 fi
13681
13682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13684 fi
13685
13686 CFLAGS="$CFLAGS -Wmissing-declarations"
13687
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13689 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13690 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13691 if eval test \${$cacheid+y}
13692 then :
13693 printf %s "(cached) " >&6
13694 else $as_nop
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 int i;
13698 int
13699 main (void)
13700 {
13701
13702 ;
13703 return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"
13707 then :
13708 eval $cacheid=yes
13709 else $as_nop
13710 eval $cacheid=no
13711 fi
13712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13713 conftest$ac_exeext conftest.$ac_ext
13714 fi
13715
13716
13717 CFLAGS="$xorg_testset_save_CFLAGS"
13718
13719 eval supported=\$$cacheid
13720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13721 printf "%s\n" "$supported" >&6; }
13722 if test "$supported" = "yes" ; then
13723 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13724 found="yes"
13725 fi
13726 fi
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742 xorg_testset_save_CFLAGS="$CFLAGS"
13743
13744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13749 then :
13750 printf %s "(cached) " >&6
13751 else $as_nop
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 int i;
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"
13757 then :
13758 xorg_cv_cc_flag_unknown_warning_option=yes
13759 else $as_nop
13760 xorg_cv_cc_flag_unknown_warning_option=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13763 fi
13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13767 CFLAGS="$xorg_testset_save_CFLAGS"
13768 fi
13769
13770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13773 fi
13774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13778 then :
13779 printf %s "(cached) " >&6
13780 else $as_nop
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783 int i;
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"
13786 then :
13787 xorg_cv_cc_flag_unused_command_line_argument=yes
13788 else $as_nop
13789 xorg_cv_cc_flag_unused_command_line_argument=no
13790 fi
13791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13792 fi
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13796 CFLAGS="$xorg_testset_save_CFLAGS"
13797 fi
13798
13799 found="no"
13800
13801 if test $found = "no" ; then
13802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 fi
13805
13806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808 fi
13809
13810 CFLAGS="$CFLAGS -Wformat=2"
13811
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13813 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13814 cacheid=xorg_cv_cc_flag__Wformat_2
13815 if eval test \${$cacheid+y}
13816 then :
13817 printf %s "(cached) " >&6
13818 else $as_nop
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 int i;
13822 int
13823 main (void)
13824 {
13825
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"
13831 then :
13832 eval $cacheid=yes
13833 else $as_nop
13834 eval $cacheid=no
13835 fi
13836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13837 conftest$ac_exeext conftest.$ac_ext
13838 fi
13839
13840
13841 CFLAGS="$xorg_testset_save_CFLAGS"
13842
13843 eval supported=\$$cacheid
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13845 printf "%s\n" "$supported" >&6; }
13846 if test "$supported" = "yes" ; then
13847 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13848 found="yes"
13849 fi
13850 fi
13851
13852 if test $found = "no" ; then
13853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855 fi
13856
13857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13859 fi
13860
13861 CFLAGS="$CFLAGS -Wformat"
13862
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13864 printf %s "checking if $CC supports -Wformat... " >&6; }
13865 cacheid=xorg_cv_cc_flag__Wformat
13866 if eval test \${$cacheid+y}
13867 then :
13868 printf %s "(cached) " >&6
13869 else $as_nop
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 int i;
13873 int
13874 main (void)
13875 {
13876
13877 ;
13878 return 0;
13879 }
13880 _ACEOF
13881 if ac_fn_c_try_link "$LINENO"
13882 then :
13883 eval $cacheid=yes
13884 else $as_nop
13885 eval $cacheid=no
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13888 conftest$ac_exeext conftest.$ac_ext
13889 fi
13890
13891
13892 CFLAGS="$xorg_testset_save_CFLAGS"
13893
13894 eval supported=\$$cacheid
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13896 printf "%s\n" "$supported" >&6; }
13897 if test "$supported" = "yes" ; then
13898 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13899 found="yes"
13900 fi
13901 fi
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919 xorg_testset_save_CFLAGS="$CFLAGS"
13920
13921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13926 then :
13927 printf %s "(cached) " >&6
13928 else $as_nop
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"
13934 then :
13935 xorg_cv_cc_flag_unknown_warning_option=yes
13936 else $as_nop
13937 xorg_cv_cc_flag_unknown_warning_option=no
13938 fi
13939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13940 fi
13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13944 CFLAGS="$xorg_testset_save_CFLAGS"
13945 fi
13946
13947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13950 fi
13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13955 then :
13956 printf %s "(cached) " >&6
13957 else $as_nop
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int i;
13961 _ACEOF
13962 if ac_fn_c_try_compile "$LINENO"
13963 then :
13964 xorg_cv_cc_flag_unused_command_line_argument=yes
13965 else $as_nop
13966 xorg_cv_cc_flag_unused_command_line_argument=no
13967 fi
13968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13969 fi
13970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13973 CFLAGS="$xorg_testset_save_CFLAGS"
13974 fi
13975
13976 found="no"
13977
13978 if test $found = "no" ; then
13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981 fi
13982
13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13985 fi
13986
13987 CFLAGS="$CFLAGS -Wstrict-prototypes"
13988
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13990 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13991 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13992 if eval test \${$cacheid+y}
13993 then :
13994 printf %s "(cached) " >&6
13995 else $as_nop
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 int i;
13999 int
14000 main (void)
14001 {
14002
14003 ;
14004 return 0;
14005 }
14006 _ACEOF
14007 if ac_fn_c_try_link "$LINENO"
14008 then :
14009 eval $cacheid=yes
14010 else $as_nop
14011 eval $cacheid=no
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14014 conftest$ac_exeext conftest.$ac_ext
14015 fi
14016
14017
14018 CFLAGS="$xorg_testset_save_CFLAGS"
14019
14020 eval supported=\$$cacheid
14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14022 printf "%s\n" "$supported" >&6; }
14023 if test "$supported" = "yes" ; then
14024 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14025 found="yes"
14026 fi
14027 fi
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043 xorg_testset_save_CFLAGS="$CFLAGS"
14044
14045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14050 then :
14051 printf %s "(cached) " >&6
14052 else $as_nop
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 int i;
14056 _ACEOF
14057 if ac_fn_c_try_compile "$LINENO"
14058 then :
14059 xorg_cv_cc_flag_unknown_warning_option=yes
14060 else $as_nop
14061 xorg_cv_cc_flag_unknown_warning_option=no
14062 fi
14063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14064 fi
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14066 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14068 CFLAGS="$xorg_testset_save_CFLAGS"
14069 fi
14070
14071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14074 fi
14075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14077 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14078 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14079 then :
14080 printf %s "(cached) " >&6
14081 else $as_nop
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 int i;
14085 _ACEOF
14086 if ac_fn_c_try_compile "$LINENO"
14087 then :
14088 xorg_cv_cc_flag_unused_command_line_argument=yes
14089 else $as_nop
14090 xorg_cv_cc_flag_unused_command_line_argument=no
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14093 fi
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14095 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14097 CFLAGS="$xorg_testset_save_CFLAGS"
14098 fi
14099
14100 found="no"
14101
14102 if test $found = "no" ; then
14103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14105 fi
14106
14107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14109 fi
14110
14111 CFLAGS="$CFLAGS -Wmissing-prototypes"
14112
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14114 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14115 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14116 if eval test \${$cacheid+y}
14117 then :
14118 printf %s "(cached) " >&6
14119 else $as_nop
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14122 int i;
14123 int
14124 main (void)
14125 {
14126
14127 ;
14128 return 0;
14129 }
14130 _ACEOF
14131 if ac_fn_c_try_link "$LINENO"
14132 then :
14133 eval $cacheid=yes
14134 else $as_nop
14135 eval $cacheid=no
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14138 conftest$ac_exeext conftest.$ac_ext
14139 fi
14140
14141
14142 CFLAGS="$xorg_testset_save_CFLAGS"
14143
14144 eval supported=\$$cacheid
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14146 printf "%s\n" "$supported" >&6; }
14147 if test "$supported" = "yes" ; then
14148 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14149 found="yes"
14150 fi
14151 fi
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167 xorg_testset_save_CFLAGS="$CFLAGS"
14168
14169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14172 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14173 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14174 then :
14175 printf %s "(cached) " >&6
14176 else $as_nop
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 int i;
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"
14182 then :
14183 xorg_cv_cc_flag_unknown_warning_option=yes
14184 else $as_nop
14185 xorg_cv_cc_flag_unknown_warning_option=no
14186 fi
14187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14188 fi
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14192 CFLAGS="$xorg_testset_save_CFLAGS"
14193 fi
14194
14195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14198 fi
14199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14203 then :
14204 printf %s "(cached) " >&6
14205 else $as_nop
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"
14211 then :
14212 xorg_cv_cc_flag_unused_command_line_argument=yes
14213 else $as_nop
14214 xorg_cv_cc_flag_unused_command_line_argument=no
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14217 fi
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14219 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14221 CFLAGS="$xorg_testset_save_CFLAGS"
14222 fi
14223
14224 found="no"
14225
14226 if test $found = "no" ; then
14227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14229 fi
14230
14231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14233 fi
14234
14235 CFLAGS="$CFLAGS -Wnested-externs"
14236
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14238 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14239 cacheid=xorg_cv_cc_flag__Wnested_externs
14240 if eval test \${$cacheid+y}
14241 then :
14242 printf %s "(cached) " >&6
14243 else $as_nop
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14246 int i;
14247 int
14248 main (void)
14249 {
14250
14251 ;
14252 return 0;
14253 }
14254 _ACEOF
14255 if ac_fn_c_try_link "$LINENO"
14256 then :
14257 eval $cacheid=yes
14258 else $as_nop
14259 eval $cacheid=no
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14262 conftest$ac_exeext conftest.$ac_ext
14263 fi
14264
14265
14266 CFLAGS="$xorg_testset_save_CFLAGS"
14267
14268 eval supported=\$$cacheid
14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14270 printf "%s\n" "$supported" >&6; }
14271 if test "$supported" = "yes" ; then
14272 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14273 found="yes"
14274 fi
14275 fi
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291 xorg_testset_save_CFLAGS="$CFLAGS"
14292
14293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14296 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14297 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14298 then :
14299 printf %s "(cached) " >&6
14300 else $as_nop
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14303 int i;
14304 _ACEOF
14305 if ac_fn_c_try_compile "$LINENO"
14306 then :
14307 xorg_cv_cc_flag_unknown_warning_option=yes
14308 else $as_nop
14309 xorg_cv_cc_flag_unknown_warning_option=no
14310 fi
14311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14312 fi
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14314 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14316 CFLAGS="$xorg_testset_save_CFLAGS"
14317 fi
14318
14319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14322 fi
14323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14325 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14326 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14327 then :
14328 printf %s "(cached) " >&6
14329 else $as_nop
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 int i;
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"
14335 then :
14336 xorg_cv_cc_flag_unused_command_line_argument=yes
14337 else $as_nop
14338 xorg_cv_cc_flag_unused_command_line_argument=no
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14341 fi
14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14345 CFLAGS="$xorg_testset_save_CFLAGS"
14346 fi
14347
14348 found="no"
14349
14350 if test $found = "no" ; then
14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14353 fi
14354
14355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14357 fi
14358
14359 CFLAGS="$CFLAGS -Wbad-function-cast"
14360
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14362 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14363 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14364 if eval test \${$cacheid+y}
14365 then :
14366 printf %s "(cached) " >&6
14367 else $as_nop
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 int i;
14371 int
14372 main (void)
14373 {
14374
14375 ;
14376 return 0;
14377 }
14378 _ACEOF
14379 if ac_fn_c_try_link "$LINENO"
14380 then :
14381 eval $cacheid=yes
14382 else $as_nop
14383 eval $cacheid=no
14384 fi
14385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14386 conftest$ac_exeext conftest.$ac_ext
14387 fi
14388
14389
14390 CFLAGS="$xorg_testset_save_CFLAGS"
14391
14392 eval supported=\$$cacheid
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14394 printf "%s\n" "$supported" >&6; }
14395 if test "$supported" = "yes" ; then
14396 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14397 found="yes"
14398 fi
14399 fi
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415 xorg_testset_save_CFLAGS="$CFLAGS"
14416
14417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14420 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14421 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14422 then :
14423 printf %s "(cached) " >&6
14424 else $as_nop
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 int i;
14428 _ACEOF
14429 if ac_fn_c_try_compile "$LINENO"
14430 then :
14431 xorg_cv_cc_flag_unknown_warning_option=yes
14432 else $as_nop
14433 xorg_cv_cc_flag_unknown_warning_option=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14436 fi
14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14438 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14440 CFLAGS="$xorg_testset_save_CFLAGS"
14441 fi
14442
14443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14446 fi
14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14449 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14450 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14451 then :
14452 printf %s "(cached) " >&6
14453 else $as_nop
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 int i;
14457 _ACEOF
14458 if ac_fn_c_try_compile "$LINENO"
14459 then :
14460 xorg_cv_cc_flag_unused_command_line_argument=yes
14461 else $as_nop
14462 xorg_cv_cc_flag_unused_command_line_argument=no
14463 fi
14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14465 fi
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14467 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14469 CFLAGS="$xorg_testset_save_CFLAGS"
14470 fi
14471
14472 found="no"
14473
14474 if test $found = "no" ; then
14475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14477 fi
14478
14479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14481 fi
14482
14483 CFLAGS="$CFLAGS -Wold-style-definition"
14484
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14486 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14487 cacheid=xorg_cv_cc_flag__Wold_style_definition
14488 if eval test \${$cacheid+y}
14489 then :
14490 printf %s "(cached) " >&6
14491 else $as_nop
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14494 int i;
14495 int
14496 main (void)
14497 {
14498
14499 ;
14500 return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"
14504 then :
14505 eval $cacheid=yes
14506 else $as_nop
14507 eval $cacheid=no
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14510 conftest$ac_exeext conftest.$ac_ext
14511 fi
14512
14513
14514 CFLAGS="$xorg_testset_save_CFLAGS"
14515
14516 eval supported=\$$cacheid
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14518 printf "%s\n" "$supported" >&6; }
14519 if test "$supported" = "yes" ; then
14520 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14521 found="yes"
14522 fi
14523 fi
14524
14525 if test $found = "no" ; then
14526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14528 fi
14529
14530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14532 fi
14533
14534 CFLAGS="$CFLAGS -fd"
14535
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14537 printf %s "checking if $CC supports -fd... " >&6; }
14538 cacheid=xorg_cv_cc_flag__fd
14539 if eval test \${$cacheid+y}
14540 then :
14541 printf %s "(cached) " >&6
14542 else $as_nop
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14545 int i;
14546 int
14547 main (void)
14548 {
14549
14550 ;
14551 return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_c_try_link "$LINENO"
14555 then :
14556 eval $cacheid=yes
14557 else $as_nop
14558 eval $cacheid=no
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14561 conftest$ac_exeext conftest.$ac_ext
14562 fi
14563
14564
14565 CFLAGS="$xorg_testset_save_CFLAGS"
14566
14567 eval supported=\$$cacheid
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14569 printf "%s\n" "$supported" >&6; }
14570 if test "$supported" = "yes" ; then
14571 BASE_CFLAGS="$BASE_CFLAGS -fd"
14572 found="yes"
14573 fi
14574 fi
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590 xorg_testset_save_CFLAGS="$CFLAGS"
14591
14592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14596 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14597 then :
14598 printf %s "(cached) " >&6
14599 else $as_nop
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602 int i;
14603 _ACEOF
14604 if ac_fn_c_try_compile "$LINENO"
14605 then :
14606 xorg_cv_cc_flag_unknown_warning_option=yes
14607 else $as_nop
14608 xorg_cv_cc_flag_unknown_warning_option=no
14609 fi
14610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14611 fi
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14615 CFLAGS="$xorg_testset_save_CFLAGS"
14616 fi
14617
14618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14621 fi
14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14626 then :
14627 printf %s "(cached) " >&6
14628 else $as_nop
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 int i;
14632 _ACEOF
14633 if ac_fn_c_try_compile "$LINENO"
14634 then :
14635 xorg_cv_cc_flag_unused_command_line_argument=yes
14636 else $as_nop
14637 xorg_cv_cc_flag_unused_command_line_argument=no
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14640 fi
14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14644 CFLAGS="$xorg_testset_save_CFLAGS"
14645 fi
14646
14647 found="no"
14648
14649 if test $found = "no" ; then
14650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14652 fi
14653
14654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14656 fi
14657
14658 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14659
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14661 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14662 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14663 if eval test \${$cacheid+y}
14664 then :
14665 printf %s "(cached) " >&6
14666 else $as_nop
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 int i;
14670 int
14671 main (void)
14672 {
14673
14674 ;
14675 return 0;
14676 }
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"
14679 then :
14680 eval $cacheid=yes
14681 else $as_nop
14682 eval $cacheid=no
14683 fi
14684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14685 conftest$ac_exeext conftest.$ac_ext
14686 fi
14687
14688
14689 CFLAGS="$xorg_testset_save_CFLAGS"
14690
14691 eval supported=\$$cacheid
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14693 printf "%s\n" "$supported" >&6; }
14694 if test "$supported" = "yes" ; then
14695 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14696 found="yes"
14697 fi
14698 fi
14699
14700
14701
14702
14703
14704 # This chunk adds additional warnings that could catch undesired effects.
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718 xorg_testset_save_CFLAGS="$CFLAGS"
14719
14720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14725 then :
14726 printf %s "(cached) " >&6
14727 else $as_nop
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14730 int i;
14731 _ACEOF
14732 if ac_fn_c_try_compile "$LINENO"
14733 then :
14734 xorg_cv_cc_flag_unknown_warning_option=yes
14735 else $as_nop
14736 xorg_cv_cc_flag_unknown_warning_option=no
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14739 fi
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14743 CFLAGS="$xorg_testset_save_CFLAGS"
14744 fi
14745
14746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749 fi
14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14754 then :
14755 printf %s "(cached) " >&6
14756 else $as_nop
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"
14762 then :
14763 xorg_cv_cc_flag_unused_command_line_argument=yes
14764 else $as_nop
14765 xorg_cv_cc_flag_unused_command_line_argument=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14768 fi
14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14772 CFLAGS="$xorg_testset_save_CFLAGS"
14773 fi
14774
14775 found="no"
14776
14777 if test $found = "no" ; then
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 fi
14781
14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14784 fi
14785
14786 CFLAGS="$CFLAGS -Wunused"
14787
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14789 printf %s "checking if $CC supports -Wunused... " >&6; }
14790 cacheid=xorg_cv_cc_flag__Wunused
14791 if eval test \${$cacheid+y}
14792 then :
14793 printf %s "(cached) " >&6
14794 else $as_nop
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796 /* end confdefs.h. */
14797 int i;
14798 int
14799 main (void)
14800 {
14801
14802 ;
14803 return 0;
14804 }
14805 _ACEOF
14806 if ac_fn_c_try_link "$LINENO"
14807 then :
14808 eval $cacheid=yes
14809 else $as_nop
14810 eval $cacheid=no
14811 fi
14812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14813 conftest$ac_exeext conftest.$ac_ext
14814 fi
14815
14816
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818
14819 eval supported=\$$cacheid
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14821 printf "%s\n" "$supported" >&6; }
14822 if test "$supported" = "yes" ; then
14823 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14824 found="yes"
14825 fi
14826 fi
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842 xorg_testset_save_CFLAGS="$CFLAGS"
14843
14844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14848 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14849 then :
14850 printf %s "(cached) " >&6
14851 else $as_nop
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 int i;
14855 _ACEOF
14856 if ac_fn_c_try_compile "$LINENO"
14857 then :
14858 xorg_cv_cc_flag_unknown_warning_option=yes
14859 else $as_nop
14860 xorg_cv_cc_flag_unknown_warning_option=no
14861 fi
14862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14863 fi
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14865 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14867 CFLAGS="$xorg_testset_save_CFLAGS"
14868 fi
14869
14870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14873 fi
14874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14876 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14877 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14878 then :
14879 printf %s "(cached) " >&6
14880 else $as_nop
14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14882 /* end confdefs.h. */
14883 int i;
14884 _ACEOF
14885 if ac_fn_c_try_compile "$LINENO"
14886 then :
14887 xorg_cv_cc_flag_unused_command_line_argument=yes
14888 else $as_nop
14889 xorg_cv_cc_flag_unused_command_line_argument=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14892 fi
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14896 CFLAGS="$xorg_testset_save_CFLAGS"
14897 fi
14898
14899 found="no"
14900
14901 if test $found = "no" ; then
14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14904 fi
14905
14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14908 fi
14909
14910 CFLAGS="$CFLAGS -Wuninitialized"
14911
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14913 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14914 cacheid=xorg_cv_cc_flag__Wuninitialized
14915 if eval test \${$cacheid+y}
14916 then :
14917 printf %s "(cached) " >&6
14918 else $as_nop
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14921 int i;
14922 int
14923 main (void)
14924 {
14925
14926 ;
14927 return 0;
14928 }
14929 _ACEOF
14930 if ac_fn_c_try_link "$LINENO"
14931 then :
14932 eval $cacheid=yes
14933 else $as_nop
14934 eval $cacheid=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939
14940
14941 CFLAGS="$xorg_testset_save_CFLAGS"
14942
14943 eval supported=\$$cacheid
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14945 printf "%s\n" "$supported" >&6; }
14946 if test "$supported" = "yes" ; then
14947 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14948 found="yes"
14949 fi
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 xorg_testset_save_CFLAGS="$CFLAGS"
14967
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14973 then :
14974 printf %s "(cached) " >&6
14975 else $as_nop
14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h. */
14978 int i;
14979 _ACEOF
14980 if ac_fn_c_try_compile "$LINENO"
14981 then :
14982 xorg_cv_cc_flag_unknown_warning_option=yes
14983 else $as_nop
14984 xorg_cv_cc_flag_unknown_warning_option=no
14985 fi
14986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14987 fi
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14991 CFLAGS="$xorg_testset_save_CFLAGS"
14992 fi
14993
14994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14997 fi
14998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15002 then :
15003 printf %s "(cached) " >&6
15004 else $as_nop
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007 int i;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"
15010 then :
15011 xorg_cv_cc_flag_unused_command_line_argument=yes
15012 else $as_nop
15013 xorg_cv_cc_flag_unused_command_line_argument=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15016 fi
15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15020 CFLAGS="$xorg_testset_save_CFLAGS"
15021 fi
15022
15023 found="no"
15024
15025 if test $found = "no" ; then
15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028 fi
15029
15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15032 fi
15033
15034 CFLAGS="$CFLAGS -Wshadow"
15035
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15037 printf %s "checking if $CC supports -Wshadow... " >&6; }
15038 cacheid=xorg_cv_cc_flag__Wshadow
15039 if eval test \${$cacheid+y}
15040 then :
15041 printf %s "(cached) " >&6
15042 else $as_nop
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15045 int i;
15046 int
15047 main (void)
15048 {
15049
15050 ;
15051 return 0;
15052 }
15053 _ACEOF
15054 if ac_fn_c_try_link "$LINENO"
15055 then :
15056 eval $cacheid=yes
15057 else $as_nop
15058 eval $cacheid=no
15059 fi
15060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15061 conftest$ac_exeext conftest.$ac_ext
15062 fi
15063
15064
15065 CFLAGS="$xorg_testset_save_CFLAGS"
15066
15067 eval supported=\$$cacheid
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15069 printf "%s\n" "$supported" >&6; }
15070 if test "$supported" = "yes" ; then
15071 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15072 found="yes"
15073 fi
15074 fi
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090 xorg_testset_save_CFLAGS="$CFLAGS"
15091
15092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15097 then :
15098 printf %s "(cached) " >&6
15099 else $as_nop
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 int i;
15103 _ACEOF
15104 if ac_fn_c_try_compile "$LINENO"
15105 then :
15106 xorg_cv_cc_flag_unknown_warning_option=yes
15107 else $as_nop
15108 xorg_cv_cc_flag_unknown_warning_option=no
15109 fi
15110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15111 fi
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15113 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15115 CFLAGS="$xorg_testset_save_CFLAGS"
15116 fi
15117
15118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15121 fi
15122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15124 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15125 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15126 then :
15127 printf %s "(cached) " >&6
15128 else $as_nop
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 int i;
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"
15134 then :
15135 xorg_cv_cc_flag_unused_command_line_argument=yes
15136 else $as_nop
15137 xorg_cv_cc_flag_unused_command_line_argument=no
15138 fi
15139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15140 fi
15141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15142 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15144 CFLAGS="$xorg_testset_save_CFLAGS"
15145 fi
15146
15147 found="no"
15148
15149 if test $found = "no" ; then
15150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15152 fi
15153
15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15156 fi
15157
15158 CFLAGS="$CFLAGS -Wmissing-noreturn"
15159
15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15161 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15162 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15163 if eval test \${$cacheid+y}
15164 then :
15165 printf %s "(cached) " >&6
15166 else $as_nop
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169 int i;
15170 int
15171 main (void)
15172 {
15173
15174 ;
15175 return 0;
15176 }
15177 _ACEOF
15178 if ac_fn_c_try_link "$LINENO"
15179 then :
15180 eval $cacheid=yes
15181 else $as_nop
15182 eval $cacheid=no
15183 fi
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15185 conftest$ac_exeext conftest.$ac_ext
15186 fi
15187
15188
15189 CFLAGS="$xorg_testset_save_CFLAGS"
15190
15191 eval supported=\$$cacheid
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15193 printf "%s\n" "$supported" >&6; }
15194 if test "$supported" = "yes" ; then
15195 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15196 found="yes"
15197 fi
15198 fi
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214 xorg_testset_save_CFLAGS="$CFLAGS"
15215
15216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15221 then :
15222 printf %s "(cached) " >&6
15223 else $as_nop
15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225 /* end confdefs.h. */
15226 int i;
15227 _ACEOF
15228 if ac_fn_c_try_compile "$LINENO"
15229 then :
15230 xorg_cv_cc_flag_unknown_warning_option=yes
15231 else $as_nop
15232 xorg_cv_cc_flag_unknown_warning_option=no
15233 fi
15234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15235 fi
15236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15239 CFLAGS="$xorg_testset_save_CFLAGS"
15240 fi
15241
15242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15245 fi
15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15250 then :
15251 printf %s "(cached) " >&6
15252 else $as_nop
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15255 int i;
15256 _ACEOF
15257 if ac_fn_c_try_compile "$LINENO"
15258 then :
15259 xorg_cv_cc_flag_unused_command_line_argument=yes
15260 else $as_nop
15261 xorg_cv_cc_flag_unused_command_line_argument=no
15262 fi
15263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15264 fi
15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15268 CFLAGS="$xorg_testset_save_CFLAGS"
15269 fi
15270
15271 found="no"
15272
15273 if test $found = "no" ; then
15274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15276 fi
15277
15278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15280 fi
15281
15282 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15283
15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15285 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15286 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15287 if eval test \${$cacheid+y}
15288 then :
15289 printf %s "(cached) " >&6
15290 else $as_nop
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 int i;
15294 int
15295 main (void)
15296 {
15297
15298 ;
15299 return 0;
15300 }
15301 _ACEOF
15302 if ac_fn_c_try_link "$LINENO"
15303 then :
15304 eval $cacheid=yes
15305 else $as_nop
15306 eval $cacheid=no
15307 fi
15308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15309 conftest$ac_exeext conftest.$ac_ext
15310 fi
15311
15312
15313 CFLAGS="$xorg_testset_save_CFLAGS"
15314
15315 eval supported=\$$cacheid
15316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15317 printf "%s\n" "$supported" >&6; }
15318 if test "$supported" = "yes" ; then
15319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15320 found="yes"
15321 fi
15322 fi
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338 xorg_testset_save_CFLAGS="$CFLAGS"
15339
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15343 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15344 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15345 then :
15346 printf %s "(cached) " >&6
15347 else $as_nop
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15350 int i;
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"
15353 then :
15354 xorg_cv_cc_flag_unknown_warning_option=yes
15355 else $as_nop
15356 xorg_cv_cc_flag_unknown_warning_option=no
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15359 fi
15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15361 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15363 CFLAGS="$xorg_testset_save_CFLAGS"
15364 fi
15365
15366 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15369 fi
15370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15372 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15373 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15374 then :
15375 printf %s "(cached) " >&6
15376 else $as_nop
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15379 int i;
15380 _ACEOF
15381 if ac_fn_c_try_compile "$LINENO"
15382 then :
15383 xorg_cv_cc_flag_unused_command_line_argument=yes
15384 else $as_nop
15385 xorg_cv_cc_flag_unused_command_line_argument=no
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15388 fi
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15390 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15392 CFLAGS="$xorg_testset_save_CFLAGS"
15393 fi
15394
15395 found="no"
15396
15397 if test $found = "no" ; then
15398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15400 fi
15401
15402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15404 fi
15405
15406 CFLAGS="$CFLAGS -Wredundant-decls"
15407
15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15409 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15410 cacheid=xorg_cv_cc_flag__Wredundant_decls
15411 if eval test \${$cacheid+y}
15412 then :
15413 printf %s "(cached) " >&6
15414 else $as_nop
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416 /* end confdefs.h. */
15417 int i;
15418 int
15419 main (void)
15420 {
15421
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_c_try_link "$LINENO"
15427 then :
15428 eval $cacheid=yes
15429 else $as_nop
15430 eval $cacheid=no
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15433 conftest$ac_exeext conftest.$ac_ext
15434 fi
15435
15436
15437 CFLAGS="$xorg_testset_save_CFLAGS"
15438
15439 eval supported=\$$cacheid
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15441 printf "%s\n" "$supported" >&6; }
15442 if test "$supported" = "yes" ; then
15443 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15444 found="yes"
15445 fi
15446 fi
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462 xorg_testset_save_CFLAGS="$CFLAGS"
15463
15464 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15467 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15468 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15469 then :
15470 printf %s "(cached) " >&6
15471 else $as_nop
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 int i;
15475 _ACEOF
15476 if ac_fn_c_try_compile "$LINENO"
15477 then :
15478 xorg_cv_cc_flag_unknown_warning_option=yes
15479 else $as_nop
15480 xorg_cv_cc_flag_unknown_warning_option=no
15481 fi
15482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15483 fi
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15487 CFLAGS="$xorg_testset_save_CFLAGS"
15488 fi
15489
15490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15493 fi
15494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15498 then :
15499 printf %s "(cached) " >&6
15500 else $as_nop
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15503 int i;
15504 _ACEOF
15505 if ac_fn_c_try_compile "$LINENO"
15506 then :
15507 xorg_cv_cc_flag_unused_command_line_argument=yes
15508 else $as_nop
15509 xorg_cv_cc_flag_unused_command_line_argument=no
15510 fi
15511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15512 fi
15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15516 CFLAGS="$xorg_testset_save_CFLAGS"
15517 fi
15518
15519 found="no"
15520
15521 if test $found = "no" ; then
15522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15524 fi
15525
15526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15528 fi
15529
15530 CFLAGS="$CFLAGS -Wlogical-op"
15531
15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15533 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15534 cacheid=xorg_cv_cc_flag__Wlogical_op
15535 if eval test \${$cacheid+y}
15536 then :
15537 printf %s "(cached) " >&6
15538 else $as_nop
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15541 int i;
15542 int
15543 main (void)
15544 {
15545
15546 ;
15547 return 0;
15548 }
15549 _ACEOF
15550 if ac_fn_c_try_link "$LINENO"
15551 then :
15552 eval $cacheid=yes
15553 else $as_nop
15554 eval $cacheid=no
15555 fi
15556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15557 conftest$ac_exeext conftest.$ac_ext
15558 fi
15559
15560
15561 CFLAGS="$xorg_testset_save_CFLAGS"
15562
15563 eval supported=\$$cacheid
15564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15565 printf "%s\n" "$supported" >&6; }
15566 if test "$supported" = "yes" ; then
15567 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15568 found="yes"
15569 fi
15570 fi
15571
15572
15573
15574 # These are currently disabled because they are noisy. They will be enabled
15575 # in the future once the codebase is sufficiently modernized to silence
15576 # them. For now, I don't want them to drown out the other warnings.
15577 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15578 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15579 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15580
15581 # Turn some warnings into errors, so we don't accidently get successful builds
15582 # when there are problems that should be fixed.
15583
15584 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598 xorg_testset_save_CFLAGS="$CFLAGS"
15599
15600 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15603 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15604 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15605 then :
15606 printf %s "(cached) " >&6
15607 else $as_nop
15608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15609 /* end confdefs.h. */
15610 int i;
15611 _ACEOF
15612 if ac_fn_c_try_compile "$LINENO"
15613 then :
15614 xorg_cv_cc_flag_unknown_warning_option=yes
15615 else $as_nop
15616 xorg_cv_cc_flag_unknown_warning_option=no
15617 fi
15618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15619 fi
15620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15623 CFLAGS="$xorg_testset_save_CFLAGS"
15624 fi
15625
15626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15629 fi
15630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15634 then :
15635 printf %s "(cached) " >&6
15636 else $as_nop
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639 int i;
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"
15642 then :
15643 xorg_cv_cc_flag_unused_command_line_argument=yes
15644 else $as_nop
15645 xorg_cv_cc_flag_unused_command_line_argument=no
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15648 fi
15649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15650 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 found="no"
15656
15657 if test $found = "no" ; then
15658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660 fi
15661
15662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15664 fi
15665
15666 CFLAGS="$CFLAGS -Werror=implicit"
15667
15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15669 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15670 cacheid=xorg_cv_cc_flag__Werror_implicit
15671 if eval test \${$cacheid+y}
15672 then :
15673 printf %s "(cached) " >&6
15674 else $as_nop
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 int i;
15678 int
15679 main (void)
15680 {
15681
15682 ;
15683 return 0;
15684 }
15685 _ACEOF
15686 if ac_fn_c_try_link "$LINENO"
15687 then :
15688 eval $cacheid=yes
15689 else $as_nop
15690 eval $cacheid=no
15691 fi
15692 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15693 conftest$ac_exeext conftest.$ac_ext
15694 fi
15695
15696
15697 CFLAGS="$xorg_testset_save_CFLAGS"
15698
15699 eval supported=\$$cacheid
15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15701 printf "%s\n" "$supported" >&6; }
15702 if test "$supported" = "yes" ; then
15703 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15704 found="yes"
15705 fi
15706 fi
15707
15708 if test $found = "no" ; then
15709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15711 fi
15712
15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15715 fi
15716
15717 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15718
15719 { 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
15720 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15721 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15722 if eval test \${$cacheid+y}
15723 then :
15724 printf %s "(cached) " >&6
15725 else $as_nop
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 int i;
15729 int
15730 main (void)
15731 {
15732
15733 ;
15734 return 0;
15735 }
15736 _ACEOF
15737 if ac_fn_c_try_link "$LINENO"
15738 then :
15739 eval $cacheid=yes
15740 else $as_nop
15741 eval $cacheid=no
15742 fi
15743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15744 conftest$ac_exeext conftest.$ac_ext
15745 fi
15746
15747
15748 CFLAGS="$xorg_testset_save_CFLAGS"
15749
15750 eval supported=\$$cacheid
15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15752 printf "%s\n" "$supported" >&6; }
15753 if test "$supported" = "yes" ; then
15754 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15755 found="yes"
15756 fi
15757 fi
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773 xorg_testset_save_CFLAGS="$CFLAGS"
15774
15775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15780 then :
15781 printf %s "(cached) " >&6
15782 else $as_nop
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785 int i;
15786 _ACEOF
15787 if ac_fn_c_try_compile "$LINENO"
15788 then :
15789 xorg_cv_cc_flag_unknown_warning_option=yes
15790 else $as_nop
15791 xorg_cv_cc_flag_unknown_warning_option=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15794 fi
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15798 CFLAGS="$xorg_testset_save_CFLAGS"
15799 fi
15800
15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804 fi
15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15809 then :
15810 printf %s "(cached) " >&6
15811 else $as_nop
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814 int i;
15815 _ACEOF
15816 if ac_fn_c_try_compile "$LINENO"
15817 then :
15818 xorg_cv_cc_flag_unused_command_line_argument=yes
15819 else $as_nop
15820 xorg_cv_cc_flag_unused_command_line_argument=no
15821 fi
15822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15823 fi
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15825 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15827 CFLAGS="$xorg_testset_save_CFLAGS"
15828 fi
15829
15830 found="no"
15831
15832 if test $found = "no" ; then
15833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835 fi
15836
15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15839 fi
15840
15841 CFLAGS="$CFLAGS -Werror=nonnull"
15842
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15844 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15845 cacheid=xorg_cv_cc_flag__Werror_nonnull
15846 if eval test \${$cacheid+y}
15847 then :
15848 printf %s "(cached) " >&6
15849 else $as_nop
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 int i;
15853 int
15854 main (void)
15855 {
15856
15857 ;
15858 return 0;
15859 }
15860 _ACEOF
15861 if ac_fn_c_try_link "$LINENO"
15862 then :
15863 eval $cacheid=yes
15864 else $as_nop
15865 eval $cacheid=no
15866 fi
15867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15868 conftest$ac_exeext conftest.$ac_ext
15869 fi
15870
15871
15872 CFLAGS="$xorg_testset_save_CFLAGS"
15873
15874 eval supported=\$$cacheid
15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15876 printf "%s\n" "$supported" >&6; }
15877 if test "$supported" = "yes" ; then
15878 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15879 found="yes"
15880 fi
15881 fi
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897 xorg_testset_save_CFLAGS="$CFLAGS"
15898
15899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15902 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15903 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15904 then :
15905 printf %s "(cached) " >&6
15906 else $as_nop
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 int i;
15910 _ACEOF
15911 if ac_fn_c_try_compile "$LINENO"
15912 then :
15913 xorg_cv_cc_flag_unknown_warning_option=yes
15914 else $as_nop
15915 xorg_cv_cc_flag_unknown_warning_option=no
15916 fi
15917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15918 fi
15919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15922 CFLAGS="$xorg_testset_save_CFLAGS"
15923 fi
15924
15925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15928 fi
15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15933 then :
15934 printf %s "(cached) " >&6
15935 else $as_nop
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937 /* end confdefs.h. */
15938 int i;
15939 _ACEOF
15940 if ac_fn_c_try_compile "$LINENO"
15941 then :
15942 xorg_cv_cc_flag_unused_command_line_argument=yes
15943 else $as_nop
15944 xorg_cv_cc_flag_unused_command_line_argument=no
15945 fi
15946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15947 fi
15948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15951 CFLAGS="$xorg_testset_save_CFLAGS"
15952 fi
15953
15954 found="no"
15955
15956 if test $found = "no" ; then
15957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15959 fi
15960
15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15963 fi
15964
15965 CFLAGS="$CFLAGS -Werror=init-self"
15966
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15968 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15969 cacheid=xorg_cv_cc_flag__Werror_init_self
15970 if eval test \${$cacheid+y}
15971 then :
15972 printf %s "(cached) " >&6
15973 else $as_nop
15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h. */
15976 int i;
15977 int
15978 main (void)
15979 {
15980
15981 ;
15982 return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_link "$LINENO"
15986 then :
15987 eval $cacheid=yes
15988 else $as_nop
15989 eval $cacheid=no
15990 fi
15991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15992 conftest$ac_exeext conftest.$ac_ext
15993 fi
15994
15995
15996 CFLAGS="$xorg_testset_save_CFLAGS"
15997
15998 eval supported=\$$cacheid
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16000 printf "%s\n" "$supported" >&6; }
16001 if test "$supported" = "yes" ; then
16002 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16003 found="yes"
16004 fi
16005 fi
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021 xorg_testset_save_CFLAGS="$CFLAGS"
16022
16023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16028 then :
16029 printf %s "(cached) " >&6
16030 else $as_nop
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 int i;
16034 _ACEOF
16035 if ac_fn_c_try_compile "$LINENO"
16036 then :
16037 xorg_cv_cc_flag_unknown_warning_option=yes
16038 else $as_nop
16039 xorg_cv_cc_flag_unknown_warning_option=no
16040 fi
16041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16042 fi
16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16044 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16046 CFLAGS="$xorg_testset_save_CFLAGS"
16047 fi
16048
16049 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052 fi
16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16055 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16056 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16057 then :
16058 printf %s "(cached) " >&6
16059 else $as_nop
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 int i;
16063 _ACEOF
16064 if ac_fn_c_try_compile "$LINENO"
16065 then :
16066 xorg_cv_cc_flag_unused_command_line_argument=yes
16067 else $as_nop
16068 xorg_cv_cc_flag_unused_command_line_argument=no
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16071 fi
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16073 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16075 CFLAGS="$xorg_testset_save_CFLAGS"
16076 fi
16077
16078 found="no"
16079
16080 if test $found = "no" ; then
16081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083 fi
16084
16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16087 fi
16088
16089 CFLAGS="$CFLAGS -Werror=main"
16090
16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16092 printf %s "checking if $CC supports -Werror=main... " >&6; }
16093 cacheid=xorg_cv_cc_flag__Werror_main
16094 if eval test \${$cacheid+y}
16095 then :
16096 printf %s "(cached) " >&6
16097 else $as_nop
16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099 /* end confdefs.h. */
16100 int i;
16101 int
16102 main (void)
16103 {
16104
16105 ;
16106 return 0;
16107 }
16108 _ACEOF
16109 if ac_fn_c_try_link "$LINENO"
16110 then :
16111 eval $cacheid=yes
16112 else $as_nop
16113 eval $cacheid=no
16114 fi
16115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16116 conftest$ac_exeext conftest.$ac_ext
16117 fi
16118
16119
16120 CFLAGS="$xorg_testset_save_CFLAGS"
16121
16122 eval supported=\$$cacheid
16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16124 printf "%s\n" "$supported" >&6; }
16125 if test "$supported" = "yes" ; then
16126 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16127 found="yes"
16128 fi
16129 fi
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145 xorg_testset_save_CFLAGS="$CFLAGS"
16146
16147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16150 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16151 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16152 then :
16153 printf %s "(cached) " >&6
16154 else $as_nop
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157 int i;
16158 _ACEOF
16159 if ac_fn_c_try_compile "$LINENO"
16160 then :
16161 xorg_cv_cc_flag_unknown_warning_option=yes
16162 else $as_nop
16163 xorg_cv_cc_flag_unknown_warning_option=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16166 fi
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16168 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16171 fi
16172
16173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16176 fi
16177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16179 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16180 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16181 then :
16182 printf %s "(cached) " >&6
16183 else $as_nop
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 int i;
16187 _ACEOF
16188 if ac_fn_c_try_compile "$LINENO"
16189 then :
16190 xorg_cv_cc_flag_unused_command_line_argument=yes
16191 else $as_nop
16192 xorg_cv_cc_flag_unused_command_line_argument=no
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16195 fi
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16199 CFLAGS="$xorg_testset_save_CFLAGS"
16200 fi
16201
16202 found="no"
16203
16204 if test $found = "no" ; then
16205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16207 fi
16208
16209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16211 fi
16212
16213 CFLAGS="$CFLAGS -Werror=missing-braces"
16214
16215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16216 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16217 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16218 if eval test \${$cacheid+y}
16219 then :
16220 printf %s "(cached) " >&6
16221 else $as_nop
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 int i;
16225 int
16226 main (void)
16227 {
16228
16229 ;
16230 return 0;
16231 }
16232 _ACEOF
16233 if ac_fn_c_try_link "$LINENO"
16234 then :
16235 eval $cacheid=yes
16236 else $as_nop
16237 eval $cacheid=no
16238 fi
16239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16240 conftest$ac_exeext conftest.$ac_ext
16241 fi
16242
16243
16244 CFLAGS="$xorg_testset_save_CFLAGS"
16245
16246 eval supported=\$$cacheid
16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16248 printf "%s\n" "$supported" >&6; }
16249 if test "$supported" = "yes" ; then
16250 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16251 found="yes"
16252 fi
16253 fi
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269 xorg_testset_save_CFLAGS="$CFLAGS"
16270
16271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16274 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16275 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16276 then :
16277 printf %s "(cached) " >&6
16278 else $as_nop
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 int i;
16282 _ACEOF
16283 if ac_fn_c_try_compile "$LINENO"
16284 then :
16285 xorg_cv_cc_flag_unknown_warning_option=yes
16286 else $as_nop
16287 xorg_cv_cc_flag_unknown_warning_option=no
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16290 fi
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16292 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16294 CFLAGS="$xorg_testset_save_CFLAGS"
16295 fi
16296
16297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300 fi
16301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16303 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16304 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16305 then :
16306 printf %s "(cached) " >&6
16307 else $as_nop
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 int i;
16311 _ACEOF
16312 if ac_fn_c_try_compile "$LINENO"
16313 then :
16314 xorg_cv_cc_flag_unused_command_line_argument=yes
16315 else $as_nop
16316 xorg_cv_cc_flag_unused_command_line_argument=no
16317 fi
16318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16319 fi
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16321 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16323 CFLAGS="$xorg_testset_save_CFLAGS"
16324 fi
16325
16326 found="no"
16327
16328 if test $found = "no" ; then
16329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16331 fi
16332
16333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16335 fi
16336
16337 CFLAGS="$CFLAGS -Werror=sequence-point"
16338
16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16340 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16341 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16342 if eval test \${$cacheid+y}
16343 then :
16344 printf %s "(cached) " >&6
16345 else $as_nop
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16348 int i;
16349 int
16350 main (void)
16351 {
16352
16353 ;
16354 return 0;
16355 }
16356 _ACEOF
16357 if ac_fn_c_try_link "$LINENO"
16358 then :
16359 eval $cacheid=yes
16360 else $as_nop
16361 eval $cacheid=no
16362 fi
16363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16364 conftest$ac_exeext conftest.$ac_ext
16365 fi
16366
16367
16368 CFLAGS="$xorg_testset_save_CFLAGS"
16369
16370 eval supported=\$$cacheid
16371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372 printf "%s\n" "$supported" >&6; }
16373 if test "$supported" = "yes" ; then
16374 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16375 found="yes"
16376 fi
16377 fi
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393 xorg_testset_save_CFLAGS="$CFLAGS"
16394
16395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16399 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16400 then :
16401 printf %s "(cached) " >&6
16402 else $as_nop
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 int i;
16406 _ACEOF
16407 if ac_fn_c_try_compile "$LINENO"
16408 then :
16409 xorg_cv_cc_flag_unknown_warning_option=yes
16410 else $as_nop
16411 xorg_cv_cc_flag_unknown_warning_option=no
16412 fi
16413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16414 fi
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16416 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16418 CFLAGS="$xorg_testset_save_CFLAGS"
16419 fi
16420
16421 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424 fi
16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16427 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16428 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16429 then :
16430 printf %s "(cached) " >&6
16431 else $as_nop
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16434 int i;
16435 _ACEOF
16436 if ac_fn_c_try_compile "$LINENO"
16437 then :
16438 xorg_cv_cc_flag_unused_command_line_argument=yes
16439 else $as_nop
16440 xorg_cv_cc_flag_unused_command_line_argument=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16443 fi
16444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16445 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16447 CFLAGS="$xorg_testset_save_CFLAGS"
16448 fi
16449
16450 found="no"
16451
16452 if test $found = "no" ; then
16453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16455 fi
16456
16457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459 fi
16460
16461 CFLAGS="$CFLAGS -Werror=return-type"
16462
16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16464 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16465 cacheid=xorg_cv_cc_flag__Werror_return_type
16466 if eval test \${$cacheid+y}
16467 then :
16468 printf %s "(cached) " >&6
16469 else $as_nop
16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h. */
16472 int i;
16473 int
16474 main (void)
16475 {
16476
16477 ;
16478 return 0;
16479 }
16480 _ACEOF
16481 if ac_fn_c_try_link "$LINENO"
16482 then :
16483 eval $cacheid=yes
16484 else $as_nop
16485 eval $cacheid=no
16486 fi
16487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16488 conftest$ac_exeext conftest.$ac_ext
16489 fi
16490
16491
16492 CFLAGS="$xorg_testset_save_CFLAGS"
16493
16494 eval supported=\$$cacheid
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16496 printf "%s\n" "$supported" >&6; }
16497 if test "$supported" = "yes" ; then
16498 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16499 found="yes"
16500 fi
16501 fi
16502
16503 if test $found = "no" ; then
16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16506 fi
16507
16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16510 fi
16511
16512 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16513
16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16515 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16516 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16517 if eval test \${$cacheid+y}
16518 then :
16519 printf %s "(cached) " >&6
16520 else $as_nop
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 int i;
16524 int
16525 main (void)
16526 {
16527
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_link "$LINENO"
16533 then :
16534 eval $cacheid=yes
16535 else $as_nop
16536 eval $cacheid=no
16537 fi
16538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16539 conftest$ac_exeext conftest.$ac_ext
16540 fi
16541
16542
16543 CFLAGS="$xorg_testset_save_CFLAGS"
16544
16545 eval supported=\$$cacheid
16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16547 printf "%s\n" "$supported" >&6; }
16548 if test "$supported" = "yes" ; then
16549 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16550 found="yes"
16551 fi
16552 fi
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568 xorg_testset_save_CFLAGS="$CFLAGS"
16569
16570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16574 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16575 then :
16576 printf %s "(cached) " >&6
16577 else $as_nop
16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16579 /* end confdefs.h. */
16580 int i;
16581 _ACEOF
16582 if ac_fn_c_try_compile "$LINENO"
16583 then :
16584 xorg_cv_cc_flag_unknown_warning_option=yes
16585 else $as_nop
16586 xorg_cv_cc_flag_unknown_warning_option=no
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16589 fi
16590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16593 CFLAGS="$xorg_testset_save_CFLAGS"
16594 fi
16595
16596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16599 fi
16600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16604 then :
16605 printf %s "(cached) " >&6
16606 else $as_nop
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 int i;
16610 _ACEOF
16611 if ac_fn_c_try_compile "$LINENO"
16612 then :
16613 xorg_cv_cc_flag_unused_command_line_argument=yes
16614 else $as_nop
16615 xorg_cv_cc_flag_unused_command_line_argument=no
16616 fi
16617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16618 fi
16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16622 CFLAGS="$xorg_testset_save_CFLAGS"
16623 fi
16624
16625 found="no"
16626
16627 if test $found = "no" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631
16632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16634 fi
16635
16636 CFLAGS="$CFLAGS -Werror=trigraphs"
16637
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16639 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16640 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16641 if eval test \${$cacheid+y}
16642 then :
16643 printf %s "(cached) " >&6
16644 else $as_nop
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 int i;
16648 int
16649 main (void)
16650 {
16651
16652 ;
16653 return 0;
16654 }
16655 _ACEOF
16656 if ac_fn_c_try_link "$LINENO"
16657 then :
16658 eval $cacheid=yes
16659 else $as_nop
16660 eval $cacheid=no
16661 fi
16662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16663 conftest$ac_exeext conftest.$ac_ext
16664 fi
16665
16666
16667 CFLAGS="$xorg_testset_save_CFLAGS"
16668
16669 eval supported=\$$cacheid
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16671 printf "%s\n" "$supported" >&6; }
16672 if test "$supported" = "yes" ; then
16673 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16674 found="yes"
16675 fi
16676 fi
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692 xorg_testset_save_CFLAGS="$CFLAGS"
16693
16694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16698 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16699 then :
16700 printf %s "(cached) " >&6
16701 else $as_nop
16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16703 /* end confdefs.h. */
16704 int i;
16705 _ACEOF
16706 if ac_fn_c_try_compile "$LINENO"
16707 then :
16708 xorg_cv_cc_flag_unknown_warning_option=yes
16709 else $as_nop
16710 xorg_cv_cc_flag_unknown_warning_option=no
16711 fi
16712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16713 fi
16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16717 CFLAGS="$xorg_testset_save_CFLAGS"
16718 fi
16719
16720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 fi
16724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16728 then :
16729 printf %s "(cached) " >&6
16730 else $as_nop
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 int i;
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"
16736 then :
16737 xorg_cv_cc_flag_unused_command_line_argument=yes
16738 else $as_nop
16739 xorg_cv_cc_flag_unused_command_line_argument=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16742 fi
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16744 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16746 CFLAGS="$xorg_testset_save_CFLAGS"
16747 fi
16748
16749 found="no"
16750
16751 if test $found = "no" ; then
16752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16754 fi
16755
16756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16758 fi
16759
16760 CFLAGS="$CFLAGS -Werror=array-bounds"
16761
16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16763 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16764 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16765 if eval test \${$cacheid+y}
16766 then :
16767 printf %s "(cached) " >&6
16768 else $as_nop
16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16771 int i;
16772 int
16773 main (void)
16774 {
16775
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 if ac_fn_c_try_link "$LINENO"
16781 then :
16782 eval $cacheid=yes
16783 else $as_nop
16784 eval $cacheid=no
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16787 conftest$ac_exeext conftest.$ac_ext
16788 fi
16789
16790
16791 CFLAGS="$xorg_testset_save_CFLAGS"
16792
16793 eval supported=\$$cacheid
16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16795 printf "%s\n" "$supported" >&6; }
16796 if test "$supported" = "yes" ; then
16797 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16798 found="yes"
16799 fi
16800 fi
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816 xorg_testset_save_CFLAGS="$CFLAGS"
16817
16818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16822 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16823 then :
16824 printf %s "(cached) " >&6
16825 else $as_nop
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16828 int i;
16829 _ACEOF
16830 if ac_fn_c_try_compile "$LINENO"
16831 then :
16832 xorg_cv_cc_flag_unknown_warning_option=yes
16833 else $as_nop
16834 xorg_cv_cc_flag_unknown_warning_option=no
16835 fi
16836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16837 fi
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16839 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16841 CFLAGS="$xorg_testset_save_CFLAGS"
16842 fi
16843
16844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16847 fi
16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16852 then :
16853 printf %s "(cached) " >&6
16854 else $as_nop
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16857 int i;
16858 _ACEOF
16859 if ac_fn_c_try_compile "$LINENO"
16860 then :
16861 xorg_cv_cc_flag_unused_command_line_argument=yes
16862 else $as_nop
16863 xorg_cv_cc_flag_unused_command_line_argument=no
16864 fi
16865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16866 fi
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16870 CFLAGS="$xorg_testset_save_CFLAGS"
16871 fi
16872
16873 found="no"
16874
16875 if test $found = "no" ; then
16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16878 fi
16879
16880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16882 fi
16883
16884 CFLAGS="$CFLAGS -Werror=write-strings"
16885
16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16887 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16888 cacheid=xorg_cv_cc_flag__Werror_write_strings
16889 if eval test \${$cacheid+y}
16890 then :
16891 printf %s "(cached) " >&6
16892 else $as_nop
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16895 int i;
16896 int
16897 main (void)
16898 {
16899
16900 ;
16901 return 0;
16902 }
16903 _ACEOF
16904 if ac_fn_c_try_link "$LINENO"
16905 then :
16906 eval $cacheid=yes
16907 else $as_nop
16908 eval $cacheid=no
16909 fi
16910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16911 conftest$ac_exeext conftest.$ac_ext
16912 fi
16913
16914
16915 CFLAGS="$xorg_testset_save_CFLAGS"
16916
16917 eval supported=\$$cacheid
16918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16919 printf "%s\n" "$supported" >&6; }
16920 if test "$supported" = "yes" ; then
16921 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16922 found="yes"
16923 fi
16924 fi
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940 xorg_testset_save_CFLAGS="$CFLAGS"
16941
16942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16946 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16947 then :
16948 printf %s "(cached) " >&6
16949 else $as_nop
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16952 int i;
16953 _ACEOF
16954 if ac_fn_c_try_compile "$LINENO"
16955 then :
16956 xorg_cv_cc_flag_unknown_warning_option=yes
16957 else $as_nop
16958 xorg_cv_cc_flag_unknown_warning_option=no
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16961 fi
16962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16963 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16965 CFLAGS="$xorg_testset_save_CFLAGS"
16966 fi
16967
16968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16971 fi
16972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16974 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16975 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16976 then :
16977 printf %s "(cached) " >&6
16978 else $as_nop
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 int i;
16982 _ACEOF
16983 if ac_fn_c_try_compile "$LINENO"
16984 then :
16985 xorg_cv_cc_flag_unused_command_line_argument=yes
16986 else $as_nop
16987 xorg_cv_cc_flag_unused_command_line_argument=no
16988 fi
16989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16990 fi
16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16994 CFLAGS="$xorg_testset_save_CFLAGS"
16995 fi
16996
16997 found="no"
16998
16999 if test $found = "no" ; then
17000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17002 fi
17003
17004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17006 fi
17007
17008 CFLAGS="$CFLAGS -Werror=address"
17009
17010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17011 printf %s "checking if $CC supports -Werror=address... " >&6; }
17012 cacheid=xorg_cv_cc_flag__Werror_address
17013 if eval test \${$cacheid+y}
17014 then :
17015 printf %s "(cached) " >&6
17016 else $as_nop
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17019 int i;
17020 int
17021 main (void)
17022 {
17023
17024 ;
17025 return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"
17029 then :
17030 eval $cacheid=yes
17031 else $as_nop
17032 eval $cacheid=no
17033 fi
17034 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17035 conftest$ac_exeext conftest.$ac_ext
17036 fi
17037
17038
17039 CFLAGS="$xorg_testset_save_CFLAGS"
17040
17041 eval supported=\$$cacheid
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17043 printf "%s\n" "$supported" >&6; }
17044 if test "$supported" = "yes" ; then
17045 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17046 found="yes"
17047 fi
17048 fi
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064 xorg_testset_save_CFLAGS="$CFLAGS"
17065
17066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17069 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17070 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17071 then :
17072 printf %s "(cached) " >&6
17073 else $as_nop
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 int i;
17077 _ACEOF
17078 if ac_fn_c_try_compile "$LINENO"
17079 then :
17080 xorg_cv_cc_flag_unknown_warning_option=yes
17081 else $as_nop
17082 xorg_cv_cc_flag_unknown_warning_option=no
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17085 fi
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17087 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17089 CFLAGS="$xorg_testset_save_CFLAGS"
17090 fi
17091
17092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17095 fi
17096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17098 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17099 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17100 then :
17101 printf %s "(cached) " >&6
17102 else $as_nop
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105 int i;
17106 _ACEOF
17107 if ac_fn_c_try_compile "$LINENO"
17108 then :
17109 xorg_cv_cc_flag_unused_command_line_argument=yes
17110 else $as_nop
17111 xorg_cv_cc_flag_unused_command_line_argument=no
17112 fi
17113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17114 fi
17115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17116 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17118 CFLAGS="$xorg_testset_save_CFLAGS"
17119 fi
17120
17121 found="no"
17122
17123 if test $found = "no" ; then
17124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17126 fi
17127
17128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17130 fi
17131
17132 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17133
17134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17135 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17136 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17137 if eval test \${$cacheid+y}
17138 then :
17139 printf %s "(cached) " >&6
17140 else $as_nop
17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17142 /* end confdefs.h. */
17143 int i;
17144 int
17145 main (void)
17146 {
17147
17148 ;
17149 return 0;
17150 }
17151 _ACEOF
17152 if ac_fn_c_try_link "$LINENO"
17153 then :
17154 eval $cacheid=yes
17155 else $as_nop
17156 eval $cacheid=no
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17159 conftest$ac_exeext conftest.$ac_ext
17160 fi
17161
17162
17163 CFLAGS="$xorg_testset_save_CFLAGS"
17164
17165 eval supported=\$$cacheid
17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17167 printf "%s\n" "$supported" >&6; }
17168 if test "$supported" = "yes" ; then
17169 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17170 found="yes"
17171 fi
17172 fi
17173
17174 if test $found = "no" ; then
17175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177 fi
17178
17179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17181 fi
17182
17183 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17184
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17186 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17187 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17188 if eval test \${$cacheid+y}
17189 then :
17190 printf %s "(cached) " >&6
17191 else $as_nop
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 int i;
17195 int
17196 main (void)
17197 {
17198
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 if ac_fn_c_try_link "$LINENO"
17204 then :
17205 eval $cacheid=yes
17206 else $as_nop
17207 eval $cacheid=no
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17210 conftest$ac_exeext conftest.$ac_ext
17211 fi
17212
17213
17214 CFLAGS="$xorg_testset_save_CFLAGS"
17215
17216 eval supported=\$$cacheid
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17218 printf "%s\n" "$supported" >&6; }
17219 if test "$supported" = "yes" ; then
17220 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17221 found="yes"
17222 fi
17223 fi
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239 xorg_testset_save_CFLAGS="$CFLAGS"
17240
17241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17245 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17246 then :
17247 printf %s "(cached) " >&6
17248 else $as_nop
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251 int i;
17252 _ACEOF
17253 if ac_fn_c_try_compile "$LINENO"
17254 then :
17255 xorg_cv_cc_flag_unknown_warning_option=yes
17256 else $as_nop
17257 xorg_cv_cc_flag_unknown_warning_option=no
17258 fi
17259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17260 fi
17261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17262 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17264 CFLAGS="$xorg_testset_save_CFLAGS"
17265 fi
17266
17267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17270 fi
17271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17273 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17274 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17275 then :
17276 printf %s "(cached) " >&6
17277 else $as_nop
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280 int i;
17281 _ACEOF
17282 if ac_fn_c_try_compile "$LINENO"
17283 then :
17284 xorg_cv_cc_flag_unused_command_line_argument=yes
17285 else $as_nop
17286 xorg_cv_cc_flag_unused_command_line_argument=no
17287 fi
17288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17289 fi
17290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17291 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17293 CFLAGS="$xorg_testset_save_CFLAGS"
17294 fi
17295
17296 found="no"
17297
17298 if test $found = "no" ; then
17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17301 fi
17302
17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17305 fi
17306
17307 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17308
17309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17310 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17311 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17312 if eval test \${$cacheid+y}
17313 then :
17314 printf %s "(cached) " >&6
17315 else $as_nop
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17318 int i;
17319 int
17320 main (void)
17321 {
17322
17323 ;
17324 return 0;
17325 }
17326 _ACEOF
17327 if ac_fn_c_try_link "$LINENO"
17328 then :
17329 eval $cacheid=yes
17330 else $as_nop
17331 eval $cacheid=no
17332 fi
17333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17334 conftest$ac_exeext conftest.$ac_ext
17335 fi
17336
17337
17338 CFLAGS="$xorg_testset_save_CFLAGS"
17339
17340 eval supported=\$$cacheid
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17342 printf "%s\n" "$supported" >&6; }
17343 if test "$supported" = "yes" ; then
17344 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17345 found="yes"
17346 fi
17347 fi
17348
17349 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17350 else
17351 { 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
17352 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;}
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366 xorg_testset_save_CFLAGS="$CFLAGS"
17367
17368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17372 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17373 then :
17374 printf %s "(cached) " >&6
17375 else $as_nop
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378 int i;
17379 _ACEOF
17380 if ac_fn_c_try_compile "$LINENO"
17381 then :
17382 xorg_cv_cc_flag_unknown_warning_option=yes
17383 else $as_nop
17384 xorg_cv_cc_flag_unknown_warning_option=no
17385 fi
17386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17387 fi
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17391 CFLAGS="$xorg_testset_save_CFLAGS"
17392 fi
17393
17394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17397 fi
17398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17402 then :
17403 printf %s "(cached) " >&6
17404 else $as_nop
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17407 int i;
17408 _ACEOF
17409 if ac_fn_c_try_compile "$LINENO"
17410 then :
17411 xorg_cv_cc_flag_unused_command_line_argument=yes
17412 else $as_nop
17413 xorg_cv_cc_flag_unused_command_line_argument=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17416 fi
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17420 CFLAGS="$xorg_testset_save_CFLAGS"
17421 fi
17422
17423 found="no"
17424
17425 if test $found = "no" ; then
17426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17428 fi
17429
17430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17432 fi
17433
17434 CFLAGS="$CFLAGS -Wimplicit"
17435
17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17437 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17438 cacheid=xorg_cv_cc_flag__Wimplicit
17439 if eval test \${$cacheid+y}
17440 then :
17441 printf %s "(cached) " >&6
17442 else $as_nop
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17445 int i;
17446 int
17447 main (void)
17448 {
17449
17450 ;
17451 return 0;
17452 }
17453 _ACEOF
17454 if ac_fn_c_try_link "$LINENO"
17455 then :
17456 eval $cacheid=yes
17457 else $as_nop
17458 eval $cacheid=no
17459 fi
17460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17461 conftest$ac_exeext conftest.$ac_ext
17462 fi
17463
17464
17465 CFLAGS="$xorg_testset_save_CFLAGS"
17466
17467 eval supported=\$$cacheid
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17469 printf "%s\n" "$supported" >&6; }
17470 if test "$supported" = "yes" ; then
17471 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17472 found="yes"
17473 fi
17474 fi
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490 xorg_testset_save_CFLAGS="$CFLAGS"
17491
17492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17496 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17497 then :
17498 printf %s "(cached) " >&6
17499 else $as_nop
17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17501 /* end confdefs.h. */
17502 int i;
17503 _ACEOF
17504 if ac_fn_c_try_compile "$LINENO"
17505 then :
17506 xorg_cv_cc_flag_unknown_warning_option=yes
17507 else $as_nop
17508 xorg_cv_cc_flag_unknown_warning_option=no
17509 fi
17510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17511 fi
17512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17515 CFLAGS="$xorg_testset_save_CFLAGS"
17516 fi
17517
17518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17521 fi
17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17526 then :
17527 printf %s "(cached) " >&6
17528 else $as_nop
17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530 /* end confdefs.h. */
17531 int i;
17532 _ACEOF
17533 if ac_fn_c_try_compile "$LINENO"
17534 then :
17535 xorg_cv_cc_flag_unused_command_line_argument=yes
17536 else $as_nop
17537 xorg_cv_cc_flag_unused_command_line_argument=no
17538 fi
17539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17540 fi
17541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17544 CFLAGS="$xorg_testset_save_CFLAGS"
17545 fi
17546
17547 found="no"
17548
17549 if test $found = "no" ; then
17550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17552 fi
17553
17554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17556 fi
17557
17558 CFLAGS="$CFLAGS -Wnonnull"
17559
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17561 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17562 cacheid=xorg_cv_cc_flag__Wnonnull
17563 if eval test \${$cacheid+y}
17564 then :
17565 printf %s "(cached) " >&6
17566 else $as_nop
17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 int i;
17570 int
17571 main (void)
17572 {
17573
17574 ;
17575 return 0;
17576 }
17577 _ACEOF
17578 if ac_fn_c_try_link "$LINENO"
17579 then :
17580 eval $cacheid=yes
17581 else $as_nop
17582 eval $cacheid=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17585 conftest$ac_exeext conftest.$ac_ext
17586 fi
17587
17588
17589 CFLAGS="$xorg_testset_save_CFLAGS"
17590
17591 eval supported=\$$cacheid
17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17593 printf "%s\n" "$supported" >&6; }
17594 if test "$supported" = "yes" ; then
17595 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17596 found="yes"
17597 fi
17598 fi
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614 xorg_testset_save_CFLAGS="$CFLAGS"
17615
17616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17620 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17621 then :
17622 printf %s "(cached) " >&6
17623 else $as_nop
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17626 int i;
17627 _ACEOF
17628 if ac_fn_c_try_compile "$LINENO"
17629 then :
17630 xorg_cv_cc_flag_unknown_warning_option=yes
17631 else $as_nop
17632 xorg_cv_cc_flag_unknown_warning_option=no
17633 fi
17634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17635 fi
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17639 CFLAGS="$xorg_testset_save_CFLAGS"
17640 fi
17641
17642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17645 fi
17646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17650 then :
17651 printf %s "(cached) " >&6
17652 else $as_nop
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17655 int i;
17656 _ACEOF
17657 if ac_fn_c_try_compile "$LINENO"
17658 then :
17659 xorg_cv_cc_flag_unused_command_line_argument=yes
17660 else $as_nop
17661 xorg_cv_cc_flag_unused_command_line_argument=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17664 fi
17665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669 fi
17670
17671 found="no"
17672
17673 if test $found = "no" ; then
17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17676 fi
17677
17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17680 fi
17681
17682 CFLAGS="$CFLAGS -Winit-self"
17683
17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17685 printf %s "checking if $CC supports -Winit-self... " >&6; }
17686 cacheid=xorg_cv_cc_flag__Winit_self
17687 if eval test \${$cacheid+y}
17688 then :
17689 printf %s "(cached) " >&6
17690 else $as_nop
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17693 int i;
17694 int
17695 main (void)
17696 {
17697
17698 ;
17699 return 0;
17700 }
17701 _ACEOF
17702 if ac_fn_c_try_link "$LINENO"
17703 then :
17704 eval $cacheid=yes
17705 else $as_nop
17706 eval $cacheid=no
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17709 conftest$ac_exeext conftest.$ac_ext
17710 fi
17711
17712
17713 CFLAGS="$xorg_testset_save_CFLAGS"
17714
17715 eval supported=\$$cacheid
17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17717 printf "%s\n" "$supported" >&6; }
17718 if test "$supported" = "yes" ; then
17719 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17720 found="yes"
17721 fi
17722 fi
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738 xorg_testset_save_CFLAGS="$CFLAGS"
17739
17740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17744 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17745 then :
17746 printf %s "(cached) " >&6
17747 else $as_nop
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 int i;
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"
17753 then :
17754 xorg_cv_cc_flag_unknown_warning_option=yes
17755 else $as_nop
17756 xorg_cv_cc_flag_unknown_warning_option=no
17757 fi
17758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17759 fi
17760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17763 CFLAGS="$xorg_testset_save_CFLAGS"
17764 fi
17765
17766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17769 fi
17770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17774 then :
17775 printf %s "(cached) " >&6
17776 else $as_nop
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778 /* end confdefs.h. */
17779 int i;
17780 _ACEOF
17781 if ac_fn_c_try_compile "$LINENO"
17782 then :
17783 xorg_cv_cc_flag_unused_command_line_argument=yes
17784 else $as_nop
17785 xorg_cv_cc_flag_unused_command_line_argument=no
17786 fi
17787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17788 fi
17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17792 CFLAGS="$xorg_testset_save_CFLAGS"
17793 fi
17794
17795 found="no"
17796
17797 if test $found = "no" ; then
17798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17800 fi
17801
17802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804 fi
17805
17806 CFLAGS="$CFLAGS -Wmain"
17807
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17809 printf %s "checking if $CC supports -Wmain... " >&6; }
17810 cacheid=xorg_cv_cc_flag__Wmain
17811 if eval test \${$cacheid+y}
17812 then :
17813 printf %s "(cached) " >&6
17814 else $as_nop
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 int i;
17818 int
17819 main (void)
17820 {
17821
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"
17827 then :
17828 eval $cacheid=yes
17829 else $as_nop
17830 eval $cacheid=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17833 conftest$ac_exeext conftest.$ac_ext
17834 fi
17835
17836
17837 CFLAGS="$xorg_testset_save_CFLAGS"
17838
17839 eval supported=\$$cacheid
17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17841 printf "%s\n" "$supported" >&6; }
17842 if test "$supported" = "yes" ; then
17843 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17844 found="yes"
17845 fi
17846 fi
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862 xorg_testset_save_CFLAGS="$CFLAGS"
17863
17864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17868 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17869 then :
17870 printf %s "(cached) " >&6
17871 else $as_nop
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17874 int i;
17875 _ACEOF
17876 if ac_fn_c_try_compile "$LINENO"
17877 then :
17878 xorg_cv_cc_flag_unknown_warning_option=yes
17879 else $as_nop
17880 xorg_cv_cc_flag_unknown_warning_option=no
17881 fi
17882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17883 fi
17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17887 CFLAGS="$xorg_testset_save_CFLAGS"
17888 fi
17889
17890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17893 fi
17894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17898 then :
17899 printf %s "(cached) " >&6
17900 else $as_nop
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17903 int i;
17904 _ACEOF
17905 if ac_fn_c_try_compile "$LINENO"
17906 then :
17907 xorg_cv_cc_flag_unused_command_line_argument=yes
17908 else $as_nop
17909 xorg_cv_cc_flag_unused_command_line_argument=no
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17912 fi
17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17914 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17916 CFLAGS="$xorg_testset_save_CFLAGS"
17917 fi
17918
17919 found="no"
17920
17921 if test $found = "no" ; then
17922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17924 fi
17925
17926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17928 fi
17929
17930 CFLAGS="$CFLAGS -Wmissing-braces"
17931
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17933 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17934 cacheid=xorg_cv_cc_flag__Wmissing_braces
17935 if eval test \${$cacheid+y}
17936 then :
17937 printf %s "(cached) " >&6
17938 else $as_nop
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17941 int i;
17942 int
17943 main (void)
17944 {
17945
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 if ac_fn_c_try_link "$LINENO"
17951 then :
17952 eval $cacheid=yes
17953 else $as_nop
17954 eval $cacheid=no
17955 fi
17956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17957 conftest$ac_exeext conftest.$ac_ext
17958 fi
17959
17960
17961 CFLAGS="$xorg_testset_save_CFLAGS"
17962
17963 eval supported=\$$cacheid
17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17965 printf "%s\n" "$supported" >&6; }
17966 if test "$supported" = "yes" ; then
17967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17968 found="yes"
17969 fi
17970 fi
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986 xorg_testset_save_CFLAGS="$CFLAGS"
17987
17988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17992 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17993 then :
17994 printf %s "(cached) " >&6
17995 else $as_nop
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17998 int i;
17999 _ACEOF
18000 if ac_fn_c_try_compile "$LINENO"
18001 then :
18002 xorg_cv_cc_flag_unknown_warning_option=yes
18003 else $as_nop
18004 xorg_cv_cc_flag_unknown_warning_option=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18007 fi
18008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18011 CFLAGS="$xorg_testset_save_CFLAGS"
18012 fi
18013
18014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18017 fi
18018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18022 then :
18023 printf %s "(cached) " >&6
18024 else $as_nop
18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h. */
18027 int i;
18028 _ACEOF
18029 if ac_fn_c_try_compile "$LINENO"
18030 then :
18031 xorg_cv_cc_flag_unused_command_line_argument=yes
18032 else $as_nop
18033 xorg_cv_cc_flag_unused_command_line_argument=no
18034 fi
18035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18036 fi
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18038 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18040 CFLAGS="$xorg_testset_save_CFLAGS"
18041 fi
18042
18043 found="no"
18044
18045 if test $found = "no" ; then
18046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18048 fi
18049
18050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18052 fi
18053
18054 CFLAGS="$CFLAGS -Wsequence-point"
18055
18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18057 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18058 cacheid=xorg_cv_cc_flag__Wsequence_point
18059 if eval test \${$cacheid+y}
18060 then :
18061 printf %s "(cached) " >&6
18062 else $as_nop
18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18064 /* end confdefs.h. */
18065 int i;
18066 int
18067 main (void)
18068 {
18069
18070 ;
18071 return 0;
18072 }
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"
18075 then :
18076 eval $cacheid=yes
18077 else $as_nop
18078 eval $cacheid=no
18079 fi
18080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18081 conftest$ac_exeext conftest.$ac_ext
18082 fi
18083
18084
18085 CFLAGS="$xorg_testset_save_CFLAGS"
18086
18087 eval supported=\$$cacheid
18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18089 printf "%s\n" "$supported" >&6; }
18090 if test "$supported" = "yes" ; then
18091 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18092 found="yes"
18093 fi
18094 fi
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110 xorg_testset_save_CFLAGS="$CFLAGS"
18111
18112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18116 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18117 then :
18118 printf %s "(cached) " >&6
18119 else $as_nop
18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h. */
18122 int i;
18123 _ACEOF
18124 if ac_fn_c_try_compile "$LINENO"
18125 then :
18126 xorg_cv_cc_flag_unknown_warning_option=yes
18127 else $as_nop
18128 xorg_cv_cc_flag_unknown_warning_option=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18131 fi
18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18135 CFLAGS="$xorg_testset_save_CFLAGS"
18136 fi
18137
18138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18141 fi
18142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18146 then :
18147 printf %s "(cached) " >&6
18148 else $as_nop
18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h. */
18151 int i;
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"
18154 then :
18155 xorg_cv_cc_flag_unused_command_line_argument=yes
18156 else $as_nop
18157 xorg_cv_cc_flag_unused_command_line_argument=no
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18160 fi
18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18164 CFLAGS="$xorg_testset_save_CFLAGS"
18165 fi
18166
18167 found="no"
18168
18169 if test $found = "no" ; then
18170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18172 fi
18173
18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18176 fi
18177
18178 CFLAGS="$CFLAGS -Wreturn-type"
18179
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18181 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18182 cacheid=xorg_cv_cc_flag__Wreturn_type
18183 if eval test \${$cacheid+y}
18184 then :
18185 printf %s "(cached) " >&6
18186 else $as_nop
18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18189 int i;
18190 int
18191 main (void)
18192 {
18193
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 if ac_fn_c_try_link "$LINENO"
18199 then :
18200 eval $cacheid=yes
18201 else $as_nop
18202 eval $cacheid=no
18203 fi
18204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18205 conftest$ac_exeext conftest.$ac_ext
18206 fi
18207
18208
18209 CFLAGS="$xorg_testset_save_CFLAGS"
18210
18211 eval supported=\$$cacheid
18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18213 printf "%s\n" "$supported" >&6; }
18214 if test "$supported" = "yes" ; then
18215 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18216 found="yes"
18217 fi
18218 fi
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234 xorg_testset_save_CFLAGS="$CFLAGS"
18235
18236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18241 then :
18242 printf %s "(cached) " >&6
18243 else $as_nop
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18246 int i;
18247 _ACEOF
18248 if ac_fn_c_try_compile "$LINENO"
18249 then :
18250 xorg_cv_cc_flag_unknown_warning_option=yes
18251 else $as_nop
18252 xorg_cv_cc_flag_unknown_warning_option=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18255 fi
18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18259 CFLAGS="$xorg_testset_save_CFLAGS"
18260 fi
18261
18262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18265 fi
18266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18270 then :
18271 printf %s "(cached) " >&6
18272 else $as_nop
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274 /* end confdefs.h. */
18275 int i;
18276 _ACEOF
18277 if ac_fn_c_try_compile "$LINENO"
18278 then :
18279 xorg_cv_cc_flag_unused_command_line_argument=yes
18280 else $as_nop
18281 xorg_cv_cc_flag_unused_command_line_argument=no
18282 fi
18283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18284 fi
18285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18288 CFLAGS="$xorg_testset_save_CFLAGS"
18289 fi
18290
18291 found="no"
18292
18293 if test $found = "no" ; then
18294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18296 fi
18297
18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18300 fi
18301
18302 CFLAGS="$CFLAGS -Wtrigraphs"
18303
18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18305 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18306 cacheid=xorg_cv_cc_flag__Wtrigraphs
18307 if eval test \${$cacheid+y}
18308 then :
18309 printf %s "(cached) " >&6
18310 else $as_nop
18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 int i;
18314 int
18315 main (void)
18316 {
18317
18318 ;
18319 return 0;
18320 }
18321 _ACEOF
18322 if ac_fn_c_try_link "$LINENO"
18323 then :
18324 eval $cacheid=yes
18325 else $as_nop
18326 eval $cacheid=no
18327 fi
18328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18329 conftest$ac_exeext conftest.$ac_ext
18330 fi
18331
18332
18333 CFLAGS="$xorg_testset_save_CFLAGS"
18334
18335 eval supported=\$$cacheid
18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18337 printf "%s\n" "$supported" >&6; }
18338 if test "$supported" = "yes" ; then
18339 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18340 found="yes"
18341 fi
18342 fi
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358 xorg_testset_save_CFLAGS="$CFLAGS"
18359
18360 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18363 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18364 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18365 then :
18366 printf %s "(cached) " >&6
18367 else $as_nop
18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18369 /* end confdefs.h. */
18370 int i;
18371 _ACEOF
18372 if ac_fn_c_try_compile "$LINENO"
18373 then :
18374 xorg_cv_cc_flag_unknown_warning_option=yes
18375 else $as_nop
18376 xorg_cv_cc_flag_unknown_warning_option=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18379 fi
18380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18383 CFLAGS="$xorg_testset_save_CFLAGS"
18384 fi
18385
18386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18389 fi
18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18394 then :
18395 printf %s "(cached) " >&6
18396 else $as_nop
18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h. */
18399 int i;
18400 _ACEOF
18401 if ac_fn_c_try_compile "$LINENO"
18402 then :
18403 xorg_cv_cc_flag_unused_command_line_argument=yes
18404 else $as_nop
18405 xorg_cv_cc_flag_unused_command_line_argument=no
18406 fi
18407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18408 fi
18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18410 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18412 CFLAGS="$xorg_testset_save_CFLAGS"
18413 fi
18414
18415 found="no"
18416
18417 if test $found = "no" ; then
18418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18420 fi
18421
18422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18424 fi
18425
18426 CFLAGS="$CFLAGS -Warray-bounds"
18427
18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18429 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18430 cacheid=xorg_cv_cc_flag__Warray_bounds
18431 if eval test \${$cacheid+y}
18432 then :
18433 printf %s "(cached) " >&6
18434 else $as_nop
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 int i;
18438 int
18439 main (void)
18440 {
18441
18442 ;
18443 return 0;
18444 }
18445 _ACEOF
18446 if ac_fn_c_try_link "$LINENO"
18447 then :
18448 eval $cacheid=yes
18449 else $as_nop
18450 eval $cacheid=no
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18453 conftest$ac_exeext conftest.$ac_ext
18454 fi
18455
18456
18457 CFLAGS="$xorg_testset_save_CFLAGS"
18458
18459 eval supported=\$$cacheid
18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18461 printf "%s\n" "$supported" >&6; }
18462 if test "$supported" = "yes" ; then
18463 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18464 found="yes"
18465 fi
18466 fi
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482 xorg_testset_save_CFLAGS="$CFLAGS"
18483
18484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18488 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18489 then :
18490 printf %s "(cached) " >&6
18491 else $as_nop
18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493 /* end confdefs.h. */
18494 int i;
18495 _ACEOF
18496 if ac_fn_c_try_compile "$LINENO"
18497 then :
18498 xorg_cv_cc_flag_unknown_warning_option=yes
18499 else $as_nop
18500 xorg_cv_cc_flag_unknown_warning_option=no
18501 fi
18502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18503 fi
18504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18505 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18507 CFLAGS="$xorg_testset_save_CFLAGS"
18508 fi
18509
18510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18513 fi
18514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18516 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18517 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18518 then :
18519 printf %s "(cached) " >&6
18520 else $as_nop
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 int i;
18524 _ACEOF
18525 if ac_fn_c_try_compile "$LINENO"
18526 then :
18527 xorg_cv_cc_flag_unused_command_line_argument=yes
18528 else $as_nop
18529 xorg_cv_cc_flag_unused_command_line_argument=no
18530 fi
18531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18532 fi
18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18534 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18536 CFLAGS="$xorg_testset_save_CFLAGS"
18537 fi
18538
18539 found="no"
18540
18541 if test $found = "no" ; then
18542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18544 fi
18545
18546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18548 fi
18549
18550 CFLAGS="$CFLAGS -Wwrite-strings"
18551
18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18553 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18554 cacheid=xorg_cv_cc_flag__Wwrite_strings
18555 if eval test \${$cacheid+y}
18556 then :
18557 printf %s "(cached) " >&6
18558 else $as_nop
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18561 int i;
18562 int
18563 main (void)
18564 {
18565
18566 ;
18567 return 0;
18568 }
18569 _ACEOF
18570 if ac_fn_c_try_link "$LINENO"
18571 then :
18572 eval $cacheid=yes
18573 else $as_nop
18574 eval $cacheid=no
18575 fi
18576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18577 conftest$ac_exeext conftest.$ac_ext
18578 fi
18579
18580
18581 CFLAGS="$xorg_testset_save_CFLAGS"
18582
18583 eval supported=\$$cacheid
18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18585 printf "%s\n" "$supported" >&6; }
18586 if test "$supported" = "yes" ; then
18587 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18588 found="yes"
18589 fi
18590 fi
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606 xorg_testset_save_CFLAGS="$CFLAGS"
18607
18608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18611 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18612 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18613 then :
18614 printf %s "(cached) " >&6
18615 else $as_nop
18616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18617 /* end confdefs.h. */
18618 int i;
18619 _ACEOF
18620 if ac_fn_c_try_compile "$LINENO"
18621 then :
18622 xorg_cv_cc_flag_unknown_warning_option=yes
18623 else $as_nop
18624 xorg_cv_cc_flag_unknown_warning_option=no
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18627 fi
18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18631 CFLAGS="$xorg_testset_save_CFLAGS"
18632 fi
18633
18634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18637 fi
18638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18641 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18642 then :
18643 printf %s "(cached) " >&6
18644 else $as_nop
18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18647 int i;
18648 _ACEOF
18649 if ac_fn_c_try_compile "$LINENO"
18650 then :
18651 xorg_cv_cc_flag_unused_command_line_argument=yes
18652 else $as_nop
18653 xorg_cv_cc_flag_unused_command_line_argument=no
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18656 fi
18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18658 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18660 CFLAGS="$xorg_testset_save_CFLAGS"
18661 fi
18662
18663 found="no"
18664
18665 if test $found = "no" ; then
18666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18668 fi
18669
18670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18672 fi
18673
18674 CFLAGS="$CFLAGS -Waddress"
18675
18676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18677 printf %s "checking if $CC supports -Waddress... " >&6; }
18678 cacheid=xorg_cv_cc_flag__Waddress
18679 if eval test \${$cacheid+y}
18680 then :
18681 printf %s "(cached) " >&6
18682 else $as_nop
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18685 int i;
18686 int
18687 main (void)
18688 {
18689
18690 ;
18691 return 0;
18692 }
18693 _ACEOF
18694 if ac_fn_c_try_link "$LINENO"
18695 then :
18696 eval $cacheid=yes
18697 else $as_nop
18698 eval $cacheid=no
18699 fi
18700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18701 conftest$ac_exeext conftest.$ac_ext
18702 fi
18703
18704
18705 CFLAGS="$xorg_testset_save_CFLAGS"
18706
18707 eval supported=\$$cacheid
18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18709 printf "%s\n" "$supported" >&6; }
18710 if test "$supported" = "yes" ; then
18711 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18712 found="yes"
18713 fi
18714 fi
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730 xorg_testset_save_CFLAGS="$CFLAGS"
18731
18732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18736 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18737 then :
18738 printf %s "(cached) " >&6
18739 else $as_nop
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18742 int i;
18743 _ACEOF
18744 if ac_fn_c_try_compile "$LINENO"
18745 then :
18746 xorg_cv_cc_flag_unknown_warning_option=yes
18747 else $as_nop
18748 xorg_cv_cc_flag_unknown_warning_option=no
18749 fi
18750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18751 fi
18752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18753 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18755 CFLAGS="$xorg_testset_save_CFLAGS"
18756 fi
18757
18758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18761 fi
18762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18764 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18765 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18766 then :
18767 printf %s "(cached) " >&6
18768 else $as_nop
18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18770 /* end confdefs.h. */
18771 int i;
18772 _ACEOF
18773 if ac_fn_c_try_compile "$LINENO"
18774 then :
18775 xorg_cv_cc_flag_unused_command_line_argument=yes
18776 else $as_nop
18777 xorg_cv_cc_flag_unused_command_line_argument=no
18778 fi
18779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18780 fi
18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18782 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18784 CFLAGS="$xorg_testset_save_CFLAGS"
18785 fi
18786
18787 found="no"
18788
18789 if test $found = "no" ; then
18790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18792 fi
18793
18794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18796 fi
18797
18798 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18799
18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18801 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18802 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18803 if eval test \${$cacheid+y}
18804 then :
18805 printf %s "(cached) " >&6
18806 else $as_nop
18807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18808 /* end confdefs.h. */
18809 int i;
18810 int
18811 main (void)
18812 {
18813
18814 ;
18815 return 0;
18816 }
18817 _ACEOF
18818 if ac_fn_c_try_link "$LINENO"
18819 then :
18820 eval $cacheid=yes
18821 else $as_nop
18822 eval $cacheid=no
18823 fi
18824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18825 conftest$ac_exeext conftest.$ac_ext
18826 fi
18827
18828
18829 CFLAGS="$xorg_testset_save_CFLAGS"
18830
18831 eval supported=\$$cacheid
18832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18833 printf "%s\n" "$supported" >&6; }
18834 if test "$supported" = "yes" ; then
18835 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18836 found="yes"
18837 fi
18838 fi
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854 xorg_testset_save_CFLAGS="$CFLAGS"
18855
18856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18859 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18860 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18861 then :
18862 printf %s "(cached) " >&6
18863 else $as_nop
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866 int i;
18867 _ACEOF
18868 if ac_fn_c_try_compile "$LINENO"
18869 then :
18870 xorg_cv_cc_flag_unknown_warning_option=yes
18871 else $as_nop
18872 xorg_cv_cc_flag_unknown_warning_option=no
18873 fi
18874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18875 fi
18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18877 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18879 CFLAGS="$xorg_testset_save_CFLAGS"
18880 fi
18881
18882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18885 fi
18886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18888 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18889 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18890 then :
18891 printf %s "(cached) " >&6
18892 else $as_nop
18893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18894 /* end confdefs.h. */
18895 int i;
18896 _ACEOF
18897 if ac_fn_c_try_compile "$LINENO"
18898 then :
18899 xorg_cv_cc_flag_unused_command_line_argument=yes
18900 else $as_nop
18901 xorg_cv_cc_flag_unused_command_line_argument=no
18902 fi
18903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18904 fi
18905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18908 CFLAGS="$xorg_testset_save_CFLAGS"
18909 fi
18910
18911 found="no"
18912
18913 if test $found = "no" ; then
18914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18916 fi
18917
18918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18920 fi
18921
18922 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18923
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18925 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18926 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18927 if eval test \${$cacheid+y}
18928 then :
18929 printf %s "(cached) " >&6
18930 else $as_nop
18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h. */
18933 int i;
18934 int
18935 main (void)
18936 {
18937
18938 ;
18939 return 0;
18940 }
18941 _ACEOF
18942 if ac_fn_c_try_link "$LINENO"
18943 then :
18944 eval $cacheid=yes
18945 else $as_nop
18946 eval $cacheid=no
18947 fi
18948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18949 conftest$ac_exeext conftest.$ac_ext
18950 fi
18951
18952
18953 CFLAGS="$xorg_testset_save_CFLAGS"
18954
18955 eval supported=\$$cacheid
18956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18957 printf "%s\n" "$supported" >&6; }
18958 if test "$supported" = "yes" ; then
18959 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18960 found="yes"
18961 fi
18962 fi
18963
18964
18965 fi
18966
18967
18968
18969
18970
18971
18972
18973 CWARNFLAGS="$BASE_CFLAGS"
18974 if test "x$GCC" = xyes ; then
18975 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18976 fi
18977
18978
18979
18980
18981
18982
18983
18984
18985 # Check whether --enable-strict-compilation was given.
18986 if test ${enable_strict_compilation+y}
18987 then :
18988 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18989 else $as_nop
18990 STRICT_COMPILE=no
18991 fi
18992
18993
18994
18995
18996
18997
18998 STRICT_CFLAGS=""
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012 xorg_testset_save_CFLAGS="$CFLAGS"
19013
19014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19019 then :
19020 printf %s "(cached) " >&6
19021 else $as_nop
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19024 int i;
19025 _ACEOF
19026 if ac_fn_c_try_compile "$LINENO"
19027 then :
19028 xorg_cv_cc_flag_unknown_warning_option=yes
19029 else $as_nop
19030 xorg_cv_cc_flag_unknown_warning_option=no
19031 fi
19032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19033 fi
19034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19035 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19037 CFLAGS="$xorg_testset_save_CFLAGS"
19038 fi
19039
19040 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19043 fi
19044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19046 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19047 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19048 then :
19049 printf %s "(cached) " >&6
19050 else $as_nop
19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19053 int i;
19054 _ACEOF
19055 if ac_fn_c_try_compile "$LINENO"
19056 then :
19057 xorg_cv_cc_flag_unused_command_line_argument=yes
19058 else $as_nop
19059 xorg_cv_cc_flag_unused_command_line_argument=no
19060 fi
19061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19062 fi
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19066 CFLAGS="$xorg_testset_save_CFLAGS"
19067 fi
19068
19069 found="no"
19070
19071 if test $found = "no" ; then
19072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19074 fi
19075
19076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19078 fi
19079
19080 CFLAGS="$CFLAGS -pedantic"
19081
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19083 printf %s "checking if $CC supports -pedantic... " >&6; }
19084 cacheid=xorg_cv_cc_flag__pedantic
19085 if eval test \${$cacheid+y}
19086 then :
19087 printf %s "(cached) " >&6
19088 else $as_nop
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 int i;
19092 int
19093 main (void)
19094 {
19095
19096 ;
19097 return 0;
19098 }
19099 _ACEOF
19100 if ac_fn_c_try_link "$LINENO"
19101 then :
19102 eval $cacheid=yes
19103 else $as_nop
19104 eval $cacheid=no
19105 fi
19106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19107 conftest$ac_exeext conftest.$ac_ext
19108 fi
19109
19110
19111 CFLAGS="$xorg_testset_save_CFLAGS"
19112
19113 eval supported=\$$cacheid
19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19115 printf "%s\n" "$supported" >&6; }
19116 if test "$supported" = "yes" ; then
19117 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19118 found="yes"
19119 fi
19120 fi
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136 xorg_testset_save_CFLAGS="$CFLAGS"
19137
19138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19142 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19143 then :
19144 printf %s "(cached) " >&6
19145 else $as_nop
19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147 /* end confdefs.h. */
19148 int i;
19149 _ACEOF
19150 if ac_fn_c_try_compile "$LINENO"
19151 then :
19152 xorg_cv_cc_flag_unknown_warning_option=yes
19153 else $as_nop
19154 xorg_cv_cc_flag_unknown_warning_option=no
19155 fi
19156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19157 fi
19158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19159 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19161 CFLAGS="$xorg_testset_save_CFLAGS"
19162 fi
19163
19164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19167 fi
19168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19170 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19171 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19172 then :
19173 printf %s "(cached) " >&6
19174 else $as_nop
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h. */
19177 int i;
19178 _ACEOF
19179 if ac_fn_c_try_compile "$LINENO"
19180 then :
19181 xorg_cv_cc_flag_unused_command_line_argument=yes
19182 else $as_nop
19183 xorg_cv_cc_flag_unused_command_line_argument=no
19184 fi
19185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19186 fi
19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19190 CFLAGS="$xorg_testset_save_CFLAGS"
19191 fi
19192
19193 found="no"
19194
19195 if test $found = "no" ; then
19196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19198 fi
19199
19200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19202 fi
19203
19204 CFLAGS="$CFLAGS -Werror"
19205
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19207 printf %s "checking if $CC supports -Werror... " >&6; }
19208 cacheid=xorg_cv_cc_flag__Werror
19209 if eval test \${$cacheid+y}
19210 then :
19211 printf %s "(cached) " >&6
19212 else $as_nop
19213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19214 /* end confdefs.h. */
19215 int i;
19216 int
19217 main (void)
19218 {
19219
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 if ac_fn_c_try_link "$LINENO"
19225 then :
19226 eval $cacheid=yes
19227 else $as_nop
19228 eval $cacheid=no
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19231 conftest$ac_exeext conftest.$ac_ext
19232 fi
19233
19234
19235 CFLAGS="$xorg_testset_save_CFLAGS"
19236
19237 eval supported=\$$cacheid
19238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19239 printf "%s\n" "$supported" >&6; }
19240 if test "$supported" = "yes" ; then
19241 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19242 found="yes"
19243 fi
19244 fi
19245
19246 if test $found = "no" ; then
19247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19249 fi
19250
19251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19253 fi
19254
19255 CFLAGS="$CFLAGS -errwarn"
19256
19257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19258 printf %s "checking if $CC supports -errwarn... " >&6; }
19259 cacheid=xorg_cv_cc_flag__errwarn
19260 if eval test \${$cacheid+y}
19261 then :
19262 printf %s "(cached) " >&6
19263 else $as_nop
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19266 int i;
19267 int
19268 main (void)
19269 {
19270
19271 ;
19272 return 0;
19273 }
19274 _ACEOF
19275 if ac_fn_c_try_link "$LINENO"
19276 then :
19277 eval $cacheid=yes
19278 else $as_nop
19279 eval $cacheid=no
19280 fi
19281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19282 conftest$ac_exeext conftest.$ac_ext
19283 fi
19284
19285
19286 CFLAGS="$xorg_testset_save_CFLAGS"
19287
19288 eval supported=\$$cacheid
19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19290 printf "%s\n" "$supported" >&6; }
19291 if test "$supported" = "yes" ; then
19292 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19293 found="yes"
19294 fi
19295 fi
19296
19297
19298
19299 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19300 # activate it with -Werror, so we add it here explicitly.
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314 xorg_testset_save_CFLAGS="$CFLAGS"
19315
19316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19319 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19320 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19321 then :
19322 printf %s "(cached) " >&6
19323 else $as_nop
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19326 int i;
19327 _ACEOF
19328 if ac_fn_c_try_compile "$LINENO"
19329 then :
19330 xorg_cv_cc_flag_unknown_warning_option=yes
19331 else $as_nop
19332 xorg_cv_cc_flag_unknown_warning_option=no
19333 fi
19334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19335 fi
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19337 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19339 CFLAGS="$xorg_testset_save_CFLAGS"
19340 fi
19341
19342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19345 fi
19346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19348 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19349 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19350 then :
19351 printf %s "(cached) " >&6
19352 else $as_nop
19353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355 int i;
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"
19358 then :
19359 xorg_cv_cc_flag_unused_command_line_argument=yes
19360 else $as_nop
19361 xorg_cv_cc_flag_unused_command_line_argument=no
19362 fi
19363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19364 fi
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19368 CFLAGS="$xorg_testset_save_CFLAGS"
19369 fi
19370
19371 found="no"
19372
19373 if test $found = "no" ; then
19374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19376 fi
19377
19378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19380 fi
19381
19382 CFLAGS="$CFLAGS -Werror=attributes"
19383
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19385 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19386 cacheid=xorg_cv_cc_flag__Werror_attributes
19387 if eval test \${$cacheid+y}
19388 then :
19389 printf %s "(cached) " >&6
19390 else $as_nop
19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19393 int i;
19394 int
19395 main (void)
19396 {
19397
19398 ;
19399 return 0;
19400 }
19401 _ACEOF
19402 if ac_fn_c_try_link "$LINENO"
19403 then :
19404 eval $cacheid=yes
19405 else $as_nop
19406 eval $cacheid=no
19407 fi
19408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19409 conftest$ac_exeext conftest.$ac_ext
19410 fi
19411
19412
19413 CFLAGS="$xorg_testset_save_CFLAGS"
19414
19415 eval supported=\$$cacheid
19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19417 printf "%s\n" "$supported" >&6; }
19418 if test "$supported" = "yes" ; then
19419 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19420 found="yes"
19421 fi
19422 fi
19423
19424
19425
19426 if test "x$STRICT_COMPILE" = "xyes"; then
19427 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19428 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19429 fi
19430
19431
19432
19433
19434
19435
19436 cat >>confdefs.h <<_ACEOF
19437 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19438 _ACEOF
19439
19440 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19441 if test "x$PVM" = "x"; then
19442 PVM="0"
19443 fi
19444
19445 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19446
19447 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19448 if test "x$PVP" = "x"; then
19449 PVP="0"
19450 fi
19451
19452 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19453
19454
19455
19456 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19457 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19458 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19459 touch \$(top_srcdir)/ChangeLog; \
19460 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19461
19462
19463
19464
19465 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19466 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19467 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19468 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19469 touch \$(top_srcdir)/INSTALL; \
19470 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19471
19472
19473
19474
19475
19476
19477 case $host_os in
19478 solaris*)
19479 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19480 # check for a man page file found in later versions that use
19481 # traditional section numbers instead
19482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19483 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19484 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19485 then :
19486 printf %s "(cached) " >&6
19487 else $as_nop
19488 test "$cross_compiling" = yes &&
19489 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19490 if test -r "/usr/share/man/man7/attributes.7"; then
19491 ac_cv_file__usr_share_man_man7_attributes_7=yes
19492 else
19493 ac_cv_file__usr_share_man_man7_attributes_7=no
19494 fi
19495 fi
19496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19497 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19498 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19499 then :
19500 SYSV_MAN_SECTIONS=false
19501 else $as_nop
19502 SYSV_MAN_SECTIONS=true
19503 fi
19504
19505 ;;
19506 *) SYSV_MAN_SECTIONS=false ;;
19507 esac
19508
19509 if test x$APP_MAN_SUFFIX = x ; then
19510 APP_MAN_SUFFIX=1
19511 fi
19512 if test x$APP_MAN_DIR = x ; then
19513 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19514 fi
19515
19516 if test x$LIB_MAN_SUFFIX = x ; then
19517 LIB_MAN_SUFFIX=3
19518 fi
19519 if test x$LIB_MAN_DIR = x ; then
19520 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19521 fi
19522
19523 if test x$FILE_MAN_SUFFIX = x ; then
19524 case $SYSV_MAN_SECTIONS in
19525 true) FILE_MAN_SUFFIX=4 ;;
19526 *) FILE_MAN_SUFFIX=5 ;;
19527 esac
19528 fi
19529 if test x$FILE_MAN_DIR = x ; then
19530 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19531 fi
19532
19533 if test x$MISC_MAN_SUFFIX = x ; then
19534 case $SYSV_MAN_SECTIONS in
19535 true) MISC_MAN_SUFFIX=5 ;;
19536 *) MISC_MAN_SUFFIX=7 ;;
19537 esac
19538 fi
19539 if test x$MISC_MAN_DIR = x ; then
19540 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19541 fi
19542
19543 if test x$DRIVER_MAN_SUFFIX = x ; then
19544 case $SYSV_MAN_SECTIONS in
19545 true) DRIVER_MAN_SUFFIX=7 ;;
19546 *) DRIVER_MAN_SUFFIX=4 ;;
19547 esac
19548 fi
19549 if test x$DRIVER_MAN_DIR = x ; then
19550 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19551 fi
19552
19553 if test x$ADMIN_MAN_SUFFIX = x ; then
19554 case $SYSV_MAN_SECTIONS in
19555 true) ADMIN_MAN_SUFFIX=1m ;;
19556 *) ADMIN_MAN_SUFFIX=8 ;;
19557 esac
19558 fi
19559 if test x$ADMIN_MAN_DIR = x ; then
19560 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19561 fi
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577 XORG_MAN_PAGE="X Version 11"
19578
19579 MAN_SUBSTS="\
19580 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19581 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19582 -e 's|__xservername__|Xorg|g' \
19583 -e 's|__xconfigfile__|xorg.conf|g' \
19584 -e 's|__projectroot__|\$(prefix)|g' \
19585 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19586 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19587 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19588 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19589 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19590 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19591 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19592
19593
19594
19595 # Check whether --enable-silent-rules was given.
19596 if test ${enable_silent_rules+y}
19597 then :
19598 enableval=$enable_silent_rules;
19599 fi
19600
19601 case $enable_silent_rules in # (((
19602 yes) AM_DEFAULT_VERBOSITY=0;;
19603 no) AM_DEFAULT_VERBOSITY=1;;
19604 *) AM_DEFAULT_VERBOSITY=0;;
19605 esac
19606 am_make=${MAKE-make}
19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19608 printf %s "checking whether $am_make supports nested variables... " >&6; }
19609 if test ${am_cv_make_support_nested_variables+y}
19610 then :
19611 printf %s "(cached) " >&6
19612 else $as_nop
19613 if printf "%s\n" 'TRUE=$(BAR$(V))
19614 BAR0=false
19615 BAR1=true
19616 V=1
19617 am__doit:
19618 @$(TRUE)
19619 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19620 am_cv_make_support_nested_variables=yes
19621 else
19622 am_cv_make_support_nested_variables=no
19623 fi
19624 fi
19625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19626 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19627 if test $am_cv_make_support_nested_variables = yes; then
19628 AM_V='$(V)'
19629 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19630 else
19631 AM_V=$AM_DEFAULT_VERBOSITY
19632 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19633 fi
19634 AM_BACKSLASH='\'
19635
19636
19637
19638
19639 # Check whether --enable-docs was given.
19640 if test ${enable_docs+y}
19641 then :
19642 enableval=$enable_docs; build_docs=$enableval
19643 else $as_nop
19644 build_docs=yes
19645 fi
19646
19647
19648 if test x$build_docs = xyes; then
19649 ENABLE_DOCS_TRUE=
19650 ENABLE_DOCS_FALSE='#'
19651 else
19652 ENABLE_DOCS_TRUE='#'
19653 ENABLE_DOCS_FALSE=
19654 fi
19655
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
19657 printf %s "checking whether to build documentation... " >&6; }
19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
19659 printf "%s\n" "$build_docs" >&6; }
19660
19661
19662
19663 # Check whether --enable-specs was given.
19664 if test ${enable_specs+y}
19665 then :
19666 enableval=$enable_specs; build_specs=$enableval
19667 else $as_nop
19668 build_specs=yes
19669 fi
19670
19671
19672 if test x$build_specs = xyes; then
19673 ENABLE_SPECS_TRUE=
19674 ENABLE_SPECS_FALSE='#'
19675 else
19676 ENABLE_SPECS_TRUE='#'
19677 ENABLE_SPECS_FALSE=
19678 fi
19679
19680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19681 printf %s "checking whether to build functional specifications... " >&6; }
19682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19683 printf "%s\n" "$build_specs" >&6; }
19684
19685
19686
19687
19688
19689 # Check whether --with-xmlto was given.
19690 if test ${with_xmlto+y}
19691 then :
19692 withval=$with_xmlto; use_xmlto=$withval
19693 else $as_nop
19694 use_xmlto=auto
19695 fi
19696
19697
19698
19699 if test "x$use_xmlto" = x"auto"; then
19700 # Extract the first word of "xmlto", so it can be a program name with args.
19701 set dummy xmlto; ac_word=$2
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19703 printf %s "checking for $ac_word... " >&6; }
19704 if test ${ac_cv_path_XMLTO+y}
19705 then :
19706 printf %s "(cached) " >&6
19707 else $as_nop
19708 case $XMLTO in
19709 [\\/]* | ?:[\\/]*)
19710 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19711 ;;
19712 *)
19713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19714 for as_dir in $PATH
19715 do
19716 IFS=$as_save_IFS
19717 case $as_dir in #(((
19718 '') as_dir=./ ;;
19719 */) ;;
19720 *) as_dir=$as_dir/ ;;
19721 esac
19722 for ac_exec_ext in '' $ac_executable_extensions; do
19723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19724 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19726 break 2
19727 fi
19728 done
19729 done
19730 IFS=$as_save_IFS
19731
19732 ;;
19733 esac
19734 fi
19735 XMLTO=$ac_cv_path_XMLTO
19736 if test -n "$XMLTO"; then
19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19738 printf "%s\n" "$XMLTO" >&6; }
19739 else
19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19741 printf "%s\n" "no" >&6; }
19742 fi
19743
19744
19745 if test "x$XMLTO" = "x"; then
19746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19747 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19748 have_xmlto=no
19749 else
19750 have_xmlto=yes
19751 fi
19752 elif test "x$use_xmlto" = x"yes" ; then
19753 # Extract the first word of "xmlto", so it can be a program name with args.
19754 set dummy xmlto; ac_word=$2
19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19756 printf %s "checking for $ac_word... " >&6; }
19757 if test ${ac_cv_path_XMLTO+y}
19758 then :
19759 printf %s "(cached) " >&6
19760 else $as_nop
19761 case $XMLTO in
19762 [\\/]* | ?:[\\/]*)
19763 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19764 ;;
19765 *)
19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19768 do
19769 IFS=$as_save_IFS
19770 case $as_dir in #(((
19771 '') as_dir=./ ;;
19772 */) ;;
19773 *) as_dir=$as_dir/ ;;
19774 esac
19775 for ac_exec_ext in '' $ac_executable_extensions; do
19776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19777 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19779 break 2
19780 fi
19781 done
19782 done
19783 IFS=$as_save_IFS
19784
19785 ;;
19786 esac
19787 fi
19788 XMLTO=$ac_cv_path_XMLTO
19789 if test -n "$XMLTO"; then
19790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19791 printf "%s\n" "$XMLTO" >&6; }
19792 else
19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19794 printf "%s\n" "no" >&6; }
19795 fi
19796
19797
19798 if test "x$XMLTO" = "x"; then
19799 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19800 fi
19801 have_xmlto=yes
19802 elif test "x$use_xmlto" = x"no" ; then
19803 if test "x$XMLTO" != "x"; then
19804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19805 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19806 fi
19807 have_xmlto=no
19808 else
19809 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19810 fi
19811
19812 # Test for a minimum version of xmlto, if provided.
19813 if test "$have_xmlto" = yes; then
19814 # scrape the xmlto version
19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19816 printf %s "checking the xmlto version... " >&6; }
19817 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19819 printf "%s\n" "$xmlto_version" >&6; }
19820 as_arg_v1=$xmlto_version
19821 as_arg_v2=0.0.22
19822 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19823 case $? in #(
19824 1) :
19825 if test "x$use_xmlto" = xauto; then
19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19827 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19828 have_xmlto=no
19829 else
19830 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19831 fi ;; #(
19832 0) :
19833 ;; #(
19834 2) :
19835 ;; #(
19836 *) :
19837 ;;
19838 esac
19839 fi
19840
19841 # Test for the ability of xmlto to generate a text target
19842 #
19843 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19844 # following test for empty XML docbook files.
19845 # For compatibility reasons use the following empty XML docbook file and if
19846 # it fails try it again with a non-empty XML file.
19847 have_xmlto_text=no
19848 cat > conftest.xml << "EOF"
19849 EOF
19850 if test "$have_xmlto" = yes
19851 then :
19852 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19853 then :
19854 have_xmlto_text=yes
19855 else $as_nop
19856 # Try it again with a non-empty XML file.
19857 cat > conftest.xml << "EOF"
19858 <x></x>
19859 EOF
19860 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19861 then :
19862 have_xmlto_text=yes
19863 else $as_nop
19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19865 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19866 fi
19867 fi
19868 fi
19869 rm -f conftest.xml
19870 if test $have_xmlto_text = yes; then
19871 HAVE_XMLTO_TEXT_TRUE=
19872 HAVE_XMLTO_TEXT_FALSE='#'
19873 else
19874 HAVE_XMLTO_TEXT_TRUE='#'
19875 HAVE_XMLTO_TEXT_FALSE=
19876 fi
19877
19878 if test "$have_xmlto" = yes; then
19879 HAVE_XMLTO_TRUE=
19880 HAVE_XMLTO_FALSE='#'
19881 else
19882 HAVE_XMLTO_TRUE='#'
19883 HAVE_XMLTO_FALSE=
19884 fi
19885
19886
19887
19888
19889
19890
19891 # Check whether --with-fop was given.
19892 if test ${with_fop+y}
19893 then :
19894 withval=$with_fop; use_fop=$withval
19895 else $as_nop
19896 use_fop=auto
19897 fi
19898
19899
19900
19901 if test "x$use_fop" = x"auto"; then
19902 # Extract the first word of "fop", so it can be a program name with args.
19903 set dummy fop; ac_word=$2
19904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19905 printf %s "checking for $ac_word... " >&6; }
19906 if test ${ac_cv_path_FOP+y}
19907 then :
19908 printf %s "(cached) " >&6
19909 else $as_nop
19910 case $FOP in
19911 [\\/]* | ?:[\\/]*)
19912 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19913 ;;
19914 *)
19915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19916 for as_dir in $PATH
19917 do
19918 IFS=$as_save_IFS
19919 case $as_dir in #(((
19920 '') as_dir=./ ;;
19921 */) ;;
19922 *) as_dir=$as_dir/ ;;
19923 esac
19924 for ac_exec_ext in '' $ac_executable_extensions; do
19925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19926 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19928 break 2
19929 fi
19930 done
19931 done
19932 IFS=$as_save_IFS
19933
19934 ;;
19935 esac
19936 fi
19937 FOP=$ac_cv_path_FOP
19938 if test -n "$FOP"; then
19939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19940 printf "%s\n" "$FOP" >&6; }
19941 else
19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943 printf "%s\n" "no" >&6; }
19944 fi
19945
19946
19947 if test "x$FOP" = "x"; then
19948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19949 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19950 have_fop=no
19951 else
19952 have_fop=yes
19953 fi
19954 elif test "x$use_fop" = x"yes" ; then
19955 # Extract the first word of "fop", so it can be a program name with args.
19956 set dummy fop; ac_word=$2
19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19958 printf %s "checking for $ac_word... " >&6; }
19959 if test ${ac_cv_path_FOP+y}
19960 then :
19961 printf %s "(cached) " >&6
19962 else $as_nop
19963 case $FOP in
19964 [\\/]* | ?:[\\/]*)
19965 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19966 ;;
19967 *)
19968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969 for as_dir in $PATH
19970 do
19971 IFS=$as_save_IFS
19972 case $as_dir in #(((
19973 '') as_dir=./ ;;
19974 */) ;;
19975 *) as_dir=$as_dir/ ;;
19976 esac
19977 for ac_exec_ext in '' $ac_executable_extensions; do
19978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19979 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19981 break 2
19982 fi
19983 done
19984 done
19985 IFS=$as_save_IFS
19986
19987 ;;
19988 esac
19989 fi
19990 FOP=$ac_cv_path_FOP
19991 if test -n "$FOP"; then
19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19993 printf "%s\n" "$FOP" >&6; }
19994 else
19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19996 printf "%s\n" "no" >&6; }
19997 fi
19998
19999
20000 if test "x$FOP" = "x"; then
20001 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20002 fi
20003 have_fop=yes
20004 elif test "x$use_fop" = x"no" ; then
20005 if test "x$FOP" != "x"; then
20006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20007 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20008 fi
20009 have_fop=no
20010 else
20011 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20012 fi
20013
20014 # Test for a minimum version of fop, if provided.
20015
20016 if test "$have_fop" = yes; then
20017 HAVE_FOP_TRUE=
20018 HAVE_FOP_FALSE='#'
20019 else
20020 HAVE_FOP_TRUE='#'
20021 HAVE_FOP_FALSE=
20022 fi
20023
20024
20025
20026
20027 # Preserves the interface, should it be implemented later
20028
20029
20030
20031 # Check whether --with-xsltproc was given.
20032 if test ${with_xsltproc+y}
20033 then :
20034 withval=$with_xsltproc; use_xsltproc=$withval
20035 else $as_nop
20036 use_xsltproc=auto
20037 fi
20038
20039
20040
20041 if test "x$use_xsltproc" = x"auto"; then
20042 # Extract the first word of "xsltproc", so it can be a program name with args.
20043 set dummy xsltproc; ac_word=$2
20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20045 printf %s "checking for $ac_word... " >&6; }
20046 if test ${ac_cv_path_XSLTPROC+y}
20047 then :
20048 printf %s "(cached) " >&6
20049 else $as_nop
20050 case $XSLTPROC in
20051 [\\/]* | ?:[\\/]*)
20052 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20053 ;;
20054 *)
20055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20056 for as_dir in $PATH
20057 do
20058 IFS=$as_save_IFS
20059 case $as_dir in #(((
20060 '') as_dir=./ ;;
20061 */) ;;
20062 *) as_dir=$as_dir/ ;;
20063 esac
20064 for ac_exec_ext in '' $ac_executable_extensions; do
20065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20066 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20068 break 2
20069 fi
20070 done
20071 done
20072 IFS=$as_save_IFS
20073
20074 ;;
20075 esac
20076 fi
20077 XSLTPROC=$ac_cv_path_XSLTPROC
20078 if test -n "$XSLTPROC"; then
20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20080 printf "%s\n" "$XSLTPROC" >&6; }
20081 else
20082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20083 printf "%s\n" "no" >&6; }
20084 fi
20085
20086
20087 if test "x$XSLTPROC" = "x"; then
20088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20089 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20090 have_xsltproc=no
20091 else
20092 have_xsltproc=yes
20093 fi
20094 elif test "x$use_xsltproc" = x"yes" ; then
20095 # Extract the first word of "xsltproc", so it can be a program name with args.
20096 set dummy xsltproc; ac_word=$2
20097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20098 printf %s "checking for $ac_word... " >&6; }
20099 if test ${ac_cv_path_XSLTPROC+y}
20100 then :
20101 printf %s "(cached) " >&6
20102 else $as_nop
20103 case $XSLTPROC in
20104 [\\/]* | ?:[\\/]*)
20105 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20106 ;;
20107 *)
20108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109 for as_dir in $PATH
20110 do
20111 IFS=$as_save_IFS
20112 case $as_dir in #(((
20113 '') as_dir=./ ;;
20114 */) ;;
20115 *) as_dir=$as_dir/ ;;
20116 esac
20117 for ac_exec_ext in '' $ac_executable_extensions; do
20118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20119 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20121 break 2
20122 fi
20123 done
20124 done
20125 IFS=$as_save_IFS
20126
20127 ;;
20128 esac
20129 fi
20130 XSLTPROC=$ac_cv_path_XSLTPROC
20131 if test -n "$XSLTPROC"; then
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20133 printf "%s\n" "$XSLTPROC" >&6; }
20134 else
20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20136 printf "%s\n" "no" >&6; }
20137 fi
20138
20139
20140 if test "x$XSLTPROC" = "x"; then
20141 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20142 fi
20143 have_xsltproc=yes
20144 elif test "x$use_xsltproc" = x"no" ; then
20145 if test "x$XSLTPROC" != "x"; then
20146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20147 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20148 fi
20149 have_xsltproc=no
20150 else
20151 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20152 fi
20153
20154 if test "$have_xsltproc" = yes; then
20155 HAVE_XSLTPROC_TRUE=
20156 HAVE_XSLTPROC_FALSE='#'
20157 else
20158 HAVE_XSLTPROC_TRUE='#'
20159 HAVE_XSLTPROC_FALSE=
20160 fi
20161
20162
20163
20164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
20165 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
20166 XORG_SGML_PATH=
20167 if test -n "$PKG_CONFIG" && \
20168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
20169 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
20170 ac_status=$?
20171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20172 test $ac_status = 0; }; then
20173 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20174 else
20175 :
20176
20177 fi
20178
20179 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20180 # the path and the name of the doc stylesheet
20181 if test "x$XORG_SGML_PATH" != "x" ; then
20182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20183 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20184 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20185 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20186 else
20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 printf "%s\n" "no" >&6; }
20189 fi
20190
20191
20192
20193
20194 if test "x$XSL_STYLESHEET" != "x"; then
20195 HAVE_STYLESHEETS_TRUE=
20196 HAVE_STYLESHEETS_FALSE='#'
20197 else
20198 HAVE_STYLESHEETS_TRUE='#'
20199 HAVE_STYLESHEETS_FALSE=
20200 fi
20201
20202
20203
20204 # Obtain compiler/linker options for dependencies
20205
20206 pkg_failed=no
20207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICE" >&5
20208 printf %s "checking for ICE... " >&6; }
20209
20210 if test -n "$ICE_CFLAGS"; then
20211 pkg_cv_ICE_CFLAGS="$ICE_CFLAGS"
20212 elif test -n "$PKG_CONFIG"; then
20213 if test -n "$PKG_CONFIG" && \
20214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xtrans\""; } >&5
20215 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xtrans") 2>&5
20216 ac_status=$?
20217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20218 test $ac_status = 0; }; then
20219 pkg_cv_ICE_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 xtrans" 2>/dev/null`
20220 test "x$?" != "x0" && pkg_failed=yes
20221 else
20222 pkg_failed=yes
20223 fi
20224 else
20225 pkg_failed=untried
20226 fi
20227 if test -n "$ICE_LIBS"; then
20228 pkg_cv_ICE_LIBS="$ICE_LIBS"
20229 elif test -n "$PKG_CONFIG"; then
20230 if test -n "$PKG_CONFIG" && \
20231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xtrans\""; } >&5
20232 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xtrans") 2>&5
20233 ac_status=$?
20234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20235 test $ac_status = 0; }; then
20236 pkg_cv_ICE_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 xtrans" 2>/dev/null`
20237 test "x$?" != "x0" && pkg_failed=yes
20238 else
20239 pkg_failed=yes
20240 fi
20241 else
20242 pkg_failed=untried
20243 fi
20244
20245
20246
20247 if test $pkg_failed = yes; then
20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249 printf "%s\n" "no" >&6; }
20250
20251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20252 _pkg_short_errors_supported=yes
20253 else
20254 _pkg_short_errors_supported=no
20255 fi
20256 if test $_pkg_short_errors_supported = yes; then
20257 ICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 xtrans" 2>&1`
20258 else
20259 ICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 xtrans" 2>&1`
20260 fi
20261 # Put the nasty error message in config.log where it belongs
20262 echo "$ICE_PKG_ERRORS" >&5
20263
20264 as_fn_error $? "Package requirements (xproto >= 7.0.25 xtrans) were not met:
20265
20266 $ICE_PKG_ERRORS
20267
20268 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20269 installed software in a non-standard prefix.
20270
20271 Alternatively, you may set the environment variables ICE_CFLAGS
20272 and ICE_LIBS to avoid the need to call pkg-config.
20273 See the pkg-config man page for more details." "$LINENO" 5
20274 elif test $pkg_failed = untried; then
20275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20276 printf "%s\n" "no" >&6; }
20277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20279 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20280 is in your PATH or set the PKG_CONFIG environment variable to the full
20281 path to pkg-config.
20282
20283 Alternatively, you may set the environment variables ICE_CFLAGS
20284 and ICE_LIBS to avoid the need to call pkg-config.
20285 See the pkg-config man page for more details.
20286
20287 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20288 See \`config.log' for more details" "$LINENO" 5; }
20289 else
20290 ICE_CFLAGS=$pkg_cv_ICE_CFLAGS
20291 ICE_LIBS=$pkg_cv_ICE_LIBS
20292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20293 printf "%s\n" "yes" >&6; }
20294
20295 fi
20296
20297 # Checks for typedefs, structures, and compiler characteristics.
20298 # Check whether --enable-largefile was given.
20299 if test ${enable_largefile+y}
20300 then :
20301 enableval=$enable_largefile;
20302 fi
20303
20304 if test "$enable_largefile" != no; then
20305
20306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20307 printf %s "checking for special C compiler options needed for large files... " >&6; }
20308 if test ${ac_cv_sys_largefile_CC+y}
20309 then :
20310 printf %s "(cached) " >&6
20311 else $as_nop
20312 ac_cv_sys_largefile_CC=no
20313 if test "$GCC" != yes; then
20314 ac_save_CC=$CC
20315 while :; do
20316 # IRIX 6.2 and later do not support large files by default,
20317 # so use the C compiler's -n32 option if that helps.
20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319 /* end confdefs.h. */
20320 #include <sys/types.h>
20321 /* Check that off_t can represent 2**63 - 1 correctly.
20322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20323 since some C++ compilers masquerading as C compilers
20324 incorrectly reject 9223372036854775807. */
20325 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20327 && LARGE_OFF_T % 2147483647 == 1)
20328 ? 1 : -1];
20329 int
20330 main (void)
20331 {
20332
20333 ;
20334 return 0;
20335 }
20336 _ACEOF
20337 if ac_fn_c_try_compile "$LINENO"
20338 then :
20339 break
20340 fi
20341 rm -f core conftest.err conftest.$ac_objext conftest.beam
20342 CC="$CC -n32"
20343 if ac_fn_c_try_compile "$LINENO"
20344 then :
20345 ac_cv_sys_largefile_CC=' -n32'; break
20346 fi
20347 rm -f core conftest.err conftest.$ac_objext conftest.beam
20348 break
20349 done
20350 CC=$ac_save_CC
20351 rm -f conftest.$ac_ext
20352 fi
20353 fi
20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20355 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
20356 if test "$ac_cv_sys_largefile_CC" != no; then
20357 CC=$CC$ac_cv_sys_largefile_CC
20358 fi
20359
20360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20361 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20362 if test ${ac_cv_sys_file_offset_bits+y}
20363 then :
20364 printf %s "(cached) " >&6
20365 else $as_nop
20366 while :; do
20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368 /* end confdefs.h. */
20369 #include <sys/types.h>
20370 /* Check that off_t can represent 2**63 - 1 correctly.
20371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20372 since some C++ compilers masquerading as C compilers
20373 incorrectly reject 9223372036854775807. */
20374 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20376 && LARGE_OFF_T % 2147483647 == 1)
20377 ? 1 : -1];
20378 int
20379 main (void)
20380 {
20381
20382 ;
20383 return 0;
20384 }
20385 _ACEOF
20386 if ac_fn_c_try_compile "$LINENO"
20387 then :
20388 ac_cv_sys_file_offset_bits=no; break
20389 fi
20390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h. */
20393 #define _FILE_OFFSET_BITS 64
20394 #include <sys/types.h>
20395 /* Check that off_t can represent 2**63 - 1 correctly.
20396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20397 since some C++ compilers masquerading as C compilers
20398 incorrectly reject 9223372036854775807. */
20399 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20401 && LARGE_OFF_T % 2147483647 == 1)
20402 ? 1 : -1];
20403 int
20404 main (void)
20405 {
20406
20407 ;
20408 return 0;
20409 }
20410 _ACEOF
20411 if ac_fn_c_try_compile "$LINENO"
20412 then :
20413 ac_cv_sys_file_offset_bits=64; break
20414 fi
20415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20416 ac_cv_sys_file_offset_bits=unknown
20417 break
20418 done
20419 fi
20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20421 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
20422 case $ac_cv_sys_file_offset_bits in #(
20423 no | unknown) ;;
20424 *)
20425 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
20426 ;;
20427 esac
20428 rm -rf conftest*
20429 if test $ac_cv_sys_file_offset_bits = unknown; then
20430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20431 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
20432 if test ${ac_cv_sys_large_files+y}
20433 then :
20434 printf %s "(cached) " >&6
20435 else $as_nop
20436 while :; do
20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438 /* end confdefs.h. */
20439 #include <sys/types.h>
20440 /* Check that off_t can represent 2**63 - 1 correctly.
20441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20442 since some C++ compilers masquerading as C compilers
20443 incorrectly reject 9223372036854775807. */
20444 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20446 && LARGE_OFF_T % 2147483647 == 1)
20447 ? 1 : -1];
20448 int
20449 main (void)
20450 {
20451
20452 ;
20453 return 0;
20454 }
20455 _ACEOF
20456 if ac_fn_c_try_compile "$LINENO"
20457 then :
20458 ac_cv_sys_large_files=no; break
20459 fi
20460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h. */
20463 #define _LARGE_FILES 1
20464 #include <sys/types.h>
20465 /* Check that off_t can represent 2**63 - 1 correctly.
20466 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20467 since some C++ compilers masquerading as C compilers
20468 incorrectly reject 9223372036854775807. */
20469 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20470 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20471 && LARGE_OFF_T % 2147483647 == 1)
20472 ? 1 : -1];
20473 int
20474 main (void)
20475 {
20476
20477 ;
20478 return 0;
20479 }
20480 _ACEOF
20481 if ac_fn_c_try_compile "$LINENO"
20482 then :
20483 ac_cv_sys_large_files=1; break
20484 fi
20485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20486 ac_cv_sys_large_files=unknown
20487 break
20488 done
20489 fi
20490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20491 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
20492 case $ac_cv_sys_large_files in #(
20493 no | unknown) ;;
20494 *)
20495 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
20496 ;;
20497 esac
20498 rm -rf conftest*
20499 fi
20500 fi
20501
20502
20503 # Checks for non-standard functions and fallback to libbsd if we can
20504 # We only check for arc4random_buf, because if we have that, we don't
20505 # need/use getentropy.
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20508
20509 /* Override any GCC internal prototype to avoid an error.
20510 Use char because int might match the return type of a GCC
20511 builtin and then its argument prototype would still apply.
20512 The 'extern "C"' is for builds by C++ compilers;
20513 although this is not generally supported in C code supporting it here
20514 has little cost and some practical benefit (sr 110532). */
20515 #ifdef __cplusplus
20516 extern "C"
20517 #endif
20518 char arc4random_buf (void);
20519 int
20520 main (void)
20521 {
20522 return arc4random_buf ();
20523 ;
20524 return 0;
20525 }
20526 _ACEOF
20527 if ac_fn_c_try_link "$LINENO"
20528 then :
20529 TRY_LIBBSD="no"
20530 else $as_nop
20531 TRY_LIBBSD="yes"
20532 fi
20533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20534 conftest$ac_exeext conftest.$ac_ext
20535 if test "x$TRY_LIBBSD" = "xyes"
20536 then :
20537
20538 pkg_failed=no
20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5
20540 printf %s "checking for LIBBSD... " >&6; }
20541
20542 if test -n "$LIBBSD_CFLAGS"; then
20543 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
20544 elif test -n "$PKG_CONFIG"; then
20545 if test -n "$PKG_CONFIG" && \
20546 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
20547 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
20548 ac_status=$?
20549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20550 test $ac_status = 0; }; then
20551 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
20552 test "x$?" != "x0" && pkg_failed=yes
20553 else
20554 pkg_failed=yes
20555 fi
20556 else
20557 pkg_failed=untried
20558 fi
20559 if test -n "$LIBBSD_LIBS"; then
20560 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
20561 elif test -n "$PKG_CONFIG"; then
20562 if test -n "$PKG_CONFIG" && \
20563 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
20564 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
20565 ac_status=$?
20566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20567 test $ac_status = 0; }; then
20568 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
20569 test "x$?" != "x0" && pkg_failed=yes
20570 else
20571 pkg_failed=yes
20572 fi
20573 else
20574 pkg_failed=untried
20575 fi
20576
20577
20578
20579 if test $pkg_failed = yes; then
20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20581 printf "%s\n" "no" >&6; }
20582
20583 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20584 _pkg_short_errors_supported=yes
20585 else
20586 _pkg_short_errors_supported=no
20587 fi
20588 if test $_pkg_short_errors_supported = yes; then
20589 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
20590 else
20591 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
20592 fi
20593 # Put the nasty error message in config.log where it belongs
20594 echo "$LIBBSD_PKG_ERRORS" >&5
20595
20596 :
20597 elif test $pkg_failed = untried; then
20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20599 printf "%s\n" "no" >&6; }
20600 :
20601 else
20602 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
20603 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
20604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20605 printf "%s\n" "yes" >&6; }
20606
20607 CFLAGS="$CFLAGS $LIBBSD_CFLAGS"
20608 LIBS="$LIBS $LIBBSD_LIBS"
20609
20610 fi
20611 fi
20612
20613 # Checks for library functions.
20614 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
20615 if test "x$ac_cv_func_asprintf" = xyes
20616 then :
20617 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
20618
20619 fi
20620 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
20621 if test "x$ac_cv_func_arc4random_buf" = xyes
20622 then :
20623 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
20624
20625 fi
20626 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
20627 if test "x$ac_cv_func_getentropy" = xyes
20628 then :
20629 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
20630
20631 fi
20632
20633
20634 # Transport selection macro from xtrans.m4
20635
20636
20637 case $host_os in
20638 mingw*) unixdef="no" ;;
20639 *) unixdef="yes" ;;
20640 esac
20641 # Check whether --enable-unix-transport was given.
20642 if test ${enable_unix_transport+y}
20643 then :
20644 enableval=$enable_unix_transport; UNIXCONN=$enableval
20645 else $as_nop
20646 UNIXCONN=$unixdef
20647 fi
20648
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
20650 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
20651 if test "$UNIXCONN" = "yes"; then
20652
20653 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
20654
20655 fi
20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
20657 printf "%s\n" "$UNIXCONN" >&6; }
20658 # Check whether --enable-tcp-transport was given.
20659 if test ${enable_tcp_transport+y}
20660 then :
20661 enableval=$enable_tcp_transport; TCPCONN=$enableval
20662 else $as_nop
20663 TCPCONN=yes
20664 fi
20665
20666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
20667 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
20669 printf "%s\n" "$TCPCONN" >&6; }
20670 if test "$TCPCONN" = "yes"; then
20671
20672 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
20673
20674
20675 # SVR4 hides these in libraries other than libc
20676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20677 printf %s "checking for library containing socket... " >&6; }
20678 if test ${ac_cv_search_socket+y}
20679 then :
20680 printf %s "(cached) " >&6
20681 else $as_nop
20682 ac_func_search_save_LIBS=$LIBS
20683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684 /* end confdefs.h. */
20685
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply.
20689 The 'extern "C"' is for builds by C++ compilers;
20690 although this is not generally supported in C code supporting it here
20691 has little cost and some practical benefit (sr 110532). */
20692 #ifdef __cplusplus
20693 extern "C"
20694 #endif
20695 char socket (void);
20696 int
20697 main (void)
20698 {
20699 return socket ();
20700 ;
20701 return 0;
20702 }
20703 _ACEOF
20704 for ac_lib in '' socket
20705 do
20706 if test -z "$ac_lib"; then
20707 ac_res="none required"
20708 else
20709 ac_res=-l$ac_lib
20710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20711 fi
20712 if ac_fn_c_try_link "$LINENO"
20713 then :
20714 ac_cv_search_socket=$ac_res
20715 fi
20716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20717 conftest$ac_exeext
20718 if test ${ac_cv_search_socket+y}
20719 then :
20720 break
20721 fi
20722 done
20723 if test ${ac_cv_search_socket+y}
20724 then :
20725
20726 else $as_nop
20727 ac_cv_search_socket=no
20728 fi
20729 rm conftest.$ac_ext
20730 LIBS=$ac_func_search_save_LIBS
20731 fi
20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20733 printf "%s\n" "$ac_cv_search_socket" >&6; }
20734 ac_res=$ac_cv_search_socket
20735 if test "$ac_res" != no
20736 then :
20737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20738
20739 fi
20740
20741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20742 printf %s "checking for library containing gethostbyname... " >&6; }
20743 if test ${ac_cv_search_gethostbyname+y}
20744 then :
20745 printf %s "(cached) " >&6
20746 else $as_nop
20747 ac_func_search_save_LIBS=$LIBS
20748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749 /* end confdefs.h. */
20750
20751 /* Override any GCC internal prototype to avoid an error.
20752 Use char because int might match the return type of a GCC
20753 builtin and then its argument prototype would still apply.
20754 The 'extern "C"' is for builds by C++ compilers;
20755 although this is not generally supported in C code supporting it here
20756 has little cost and some practical benefit (sr 110532). */
20757 #ifdef __cplusplus
20758 extern "C"
20759 #endif
20760 char gethostbyname (void);
20761 int
20762 main (void)
20763 {
20764 return gethostbyname ();
20765 ;
20766 return 0;
20767 }
20768 _ACEOF
20769 for ac_lib in '' nsl
20770 do
20771 if test -z "$ac_lib"; then
20772 ac_res="none required"
20773 else
20774 ac_res=-l$ac_lib
20775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20776 fi
20777 if ac_fn_c_try_link "$LINENO"
20778 then :
20779 ac_cv_search_gethostbyname=$ac_res
20780 fi
20781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20782 conftest$ac_exeext
20783 if test ${ac_cv_search_gethostbyname+y}
20784 then :
20785 break
20786 fi
20787 done
20788 if test ${ac_cv_search_gethostbyname+y}
20789 then :
20790
20791 else $as_nop
20792 ac_cv_search_gethostbyname=no
20793 fi
20794 rm conftest.$ac_ext
20795 LIBS=$ac_func_search_save_LIBS
20796 fi
20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20798 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
20799 ac_res=$ac_cv_search_gethostbyname
20800 if test "$ac_res" != no
20801 then :
20802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20803
20804 fi
20805
20806 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
20807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20808 printf %s "checking for main in -lws2_32... " >&6; }
20809 if test ${ac_cv_lib_ws2_32_main+y}
20810 then :
20811 printf %s "(cached) " >&6
20812 else $as_nop
20813 ac_check_lib_save_LIBS=$LIBS
20814 LIBS="-lws2_32 $LIBS"
20815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816 /* end confdefs.h. */
20817
20818
20819 int
20820 main (void)
20821 {
20822 return main ();
20823 ;
20824 return 0;
20825 }
20826 _ACEOF
20827 if ac_fn_c_try_link "$LINENO"
20828 then :
20829 ac_cv_lib_ws2_32_main=yes
20830 else $as_nop
20831 ac_cv_lib_ws2_32_main=no
20832 fi
20833 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20834 conftest$ac_exeext conftest.$ac_ext
20835 LIBS=$ac_check_lib_save_LIBS
20836 fi
20837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20838 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
20839 if test "x$ac_cv_lib_ws2_32_main" = xyes
20840 then :
20841 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
20842
20843 LIBS="-lws2_32 $LIBS"
20844
20845 fi
20846
20847 fi
20848
20849 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20850 # Check whether --enable-ipv6 was given.
20851 if test ${enable_ipv6+y}
20852 then :
20853 enableval=$enable_ipv6; IPV6CONN=$enableval
20854 else $as_nop
20855 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20856 if test "x$ac_cv_func_getaddrinfo" = xyes
20857 then :
20858 IPV6CONN=yes
20859 else $as_nop
20860 IPV6CONN=no
20861 fi
20862
20863 fi
20864
20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20866 printf %s "checking if IPv6 support should be built... " >&6; }
20867 if test "$IPV6CONN" = "yes"; then
20868
20869 printf "%s\n" "#define IPv6 1" >>confdefs.h
20870
20871 fi
20872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20873 printf "%s\n" "$IPV6CONN" >&6; }
20874
20875 # 4.3BSD-Reno added a new member to struct sockaddr_in
20876 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20877 #include <sys/types.h>
20878 #include <sys/socket.h>
20879 #include <netinet/in.h>
20880
20881 "
20882 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
20883 then :
20884
20885 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
20886
20887 fi
20888
20889
20890 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20891 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20892 $ac_includes_default
20893 #include <sys/socket.h>
20894 "
20895 if test "x$ac_cv_type_socklen_t" = xyes
20896 then :
20897
20898 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
20899
20900
20901 fi
20902
20903
20904 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20905 # _XOPEN_SOURCE to get it (such as on Solaris)
20906 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20907 $ac_includes_default
20908 #include <sys/socket.h>
20909
20910 "
20911 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20912 then :
20913
20914 fi
20915
20916 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20917 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20918 unset ac_cv_member_struct_msghdr_msg_control
20919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20920 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20921 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20922 #define _XOPEN_SOURCE 600
20923 $ac_includes_default
20924 #include <sys/socket.h>
20925
20926 "
20927 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20928 then :
20929
20930 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
20931
20932
20933 fi
20934
20935 fi
20936 # If that didn't work, fall back to XPG5/UNIX98 with C89
20937 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20938 unset ac_cv_member_struct_msghdr_msg_control
20939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20940 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20941 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20942 #define _XOPEN_SOURCE 500
20943 $ac_includes_default
20944 #include <sys/socket.h>
20945
20946 "
20947 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
20948 then :
20949
20950 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
20951
20952
20953 fi
20954
20955 fi
20956
20957
20958
20959 fi
20960 case $host_os in
20961 solaris*|sco*|sysv4*) localdef="yes" ;;
20962 *) localdef="no" ;;
20963 esac
20964 # Check whether --enable-local-transport was given.
20965 if test ${enable_local_transport+y}
20966 then :
20967 enableval=$enable_local_transport; LOCALCONN=$enableval
20968 else $as_nop
20969 LOCALCONN=$localdef
20970 fi
20971
20972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20973 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
20974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20975 printf "%s\n" "$LOCALCONN" >&6; }
20976 if test "$LOCALCONN" = "yes"; then
20977
20978 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
20979
20980 fi
20981
20982 # Other functions Xtrans may need
20983 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
20984 if test "x$ac_cv_func_strcasecmp" = xyes
20985 then :
20986 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
20987
20988 fi
20989 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20990 if test "x$ac_cv_func_strlcpy" = xyes
20991 then :
20992 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20993
20994 fi
20995
20996
20997
20998
20999 printf "%s\n" "#define ICE_t 1" >>confdefs.h
21000
21001
21002 printf "%s\n" "#define TRANS_CLIENT 1" >>confdefs.h
21003
21004
21005 printf "%s\n" "#define TRANS_SERVER 1" >>confdefs.h
21006
21007
21008 # Allow checking code with lint, sparse, etc.
21009
21010
21011
21012
21013
21014 # Check whether --with-lint was given.
21015 if test ${with_lint+y}
21016 then :
21017 withval=$with_lint; use_lint=$withval
21018 else $as_nop
21019 use_lint=no
21020 fi
21021
21022
21023 # Obtain platform specific info like program name and options
21024 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
21025 case $host_os in
21026 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21027 lint_name=splint
21028 lint_options="-badflag"
21029 ;;
21030 *freebsd* | *netbsd*)
21031 lint_name=lint
21032 lint_options="-u -b"
21033 ;;
21034 *solaris*)
21035 lint_name=lint
21036 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21037 ;;
21038 esac
21039
21040 # Test for the presence of the program (either guessed by the code or spelled out by the user)
21041 if test "x$use_lint" = x"yes" ; then
21042 # Extract the first word of "$lint_name", so it can be a program name with args.
21043 set dummy $lint_name; ac_word=$2
21044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21045 printf %s "checking for $ac_word... " >&6; }
21046 if test ${ac_cv_path_LINT+y}
21047 then :
21048 printf %s "(cached) " >&6
21049 else $as_nop
21050 case $LINT in
21051 [\\/]* | ?:[\\/]*)
21052 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21053 ;;
21054 *)
21055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21056 for as_dir in $PATH
21057 do
21058 IFS=$as_save_IFS
21059 case $as_dir in #(((
21060 '') as_dir=./ ;;
21061 */) ;;
21062 *) as_dir=$as_dir/ ;;
21063 esac
21064 for ac_exec_ext in '' $ac_executable_extensions; do
21065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21066 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21068 break 2
21069 fi
21070 done
21071 done
21072 IFS=$as_save_IFS
21073
21074 ;;
21075 esac
21076 fi
21077 LINT=$ac_cv_path_LINT
21078 if test -n "$LINT"; then
21079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21080 printf "%s\n" "$LINT" >&6; }
21081 else
21082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21083 printf "%s\n" "no" >&6; }
21084 fi
21085
21086
21087 if test "x$LINT" = "x"; then
21088 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21089 fi
21090 elif test "x$use_lint" = x"no" ; then
21091 if test "x$LINT" != "x"; then
21092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21093 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21094 fi
21095 else
21096 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21097 fi
21098
21099 # User supplied flags override default flags
21100 if test "x$LINT_FLAGS" != "x"; then
21101 lint_options=$LINT_FLAGS
21102 fi
21103
21104 LINT_FLAGS=$lint_options
21105
21106 if test "x$LINT" != x; then
21107 LINT_TRUE=
21108 LINT_FALSE='#'
21109 else
21110 LINT_TRUE='#'
21111 LINT_FALSE=
21112 fi
21113
21114
21115
21116
21117
21118 # Check whether --enable-lint-library was given.
21119 if test ${enable_lint_library+y}
21120 then :
21121 enableval=$enable_lint_library; make_lint_lib=$enableval
21122 else $as_nop
21123 make_lint_lib=no
21124 fi
21125
21126
21127 if test "x$make_lint_lib" = x"yes" ; then
21128 LINTLIB=llib-lICE.ln
21129 if test "x$LINT" = "x"; then
21130 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21131 fi
21132 elif test "x$make_lint_lib" != x"no" ; then
21133 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21134 fi
21135
21136
21137 if test x$make_lint_lib != xno; then
21138 MAKE_LINT_LIB_TRUE=
21139 MAKE_LINT_LIB_FALSE='#'
21140 else
21141 MAKE_LINT_LIB_TRUE='#'
21142 MAKE_LINT_LIB_FALSE=
21143 fi
21144
21145
21146
21147 LINT_FLAGS="${LINT_FLAGS} ${ICE_CFLAGS} ${XTRANS_CFLAGS}"
21148
21149 ac_config_files="$ac_config_files Makefile doc/Makefile specs/Makefile src/Makefile ice.pc"
21150
21151 cat >confcache <<\_ACEOF
21152 # This file is a shell script that caches the results of configure
21153 # tests run on this system so they can be shared between configure
21154 # scripts and configure runs, see configure's option --config-cache.
21155 # It is not useful on other systems. If it contains results you don't
21156 # want to keep, you may remove or edit it.
21157 #
21158 # config.status only pays attention to the cache file if you give it
21159 # the --recheck option to rerun configure.
21160 #
21161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21163 # following values.
21164
21165 _ACEOF
21166
21167 # The following way of writing the cache mishandles newlines in values,
21168 # but we know of no workaround that is simple, portable, and efficient.
21169 # So, we kill variables containing newlines.
21170 # Ultrix sh set writes to stderr and can't be redirected directly,
21171 # and sets the high bit in the cache file unless we assign to the vars.
21172 (
21173 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21174 eval ac_val=\$$ac_var
21175 case $ac_val in #(
21176 *${as_nl}*)
21177 case $ac_var in #(
21178 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21179 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21180 esac
21181 case $ac_var in #(
21182 _ | IFS | as_nl) ;; #(
21183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21184 *) { eval $ac_var=; unset $ac_var;} ;;
21185 esac ;;
21186 esac
21187 done
21188
21189 (set) 2>&1 |
21190 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21191 *${as_nl}ac_space=\ *)
21192 # `set' does not quote correctly, so add quotes: double-quote
21193 # substitution turns \\\\ into \\, and sed turns \\ into \.
21194 sed -n \
21195 "s/'/'\\\\''/g;
21196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21197 ;; #(
21198 *)
21199 # `set' quotes correctly as required by POSIX, so do not add quotes.
21200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21201 ;;
21202 esac |
21203 sort
21204 ) |
21205 sed '
21206 /^ac_cv_env_/b end
21207 t clear
21208 :clear
21209 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21210 t end
21211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21212 :end' >>confcache
21213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21214 if test -w "$cache_file"; then
21215 if test "x$cache_file" != "x/dev/null"; then
21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21217 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21218 if test ! -f "$cache_file" || test -h "$cache_file"; then
21219 cat confcache >"$cache_file"
21220 else
21221 case $cache_file in #(
21222 */* | ?:*)
21223 mv -f confcache "$cache_file"$$ &&
21224 mv -f "$cache_file"$$ "$cache_file" ;; #(
21225 *)
21226 mv -f confcache "$cache_file" ;;
21227 esac
21228 fi
21229 fi
21230 else
21231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21232 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21233 fi
21234 fi
21235 rm -f confcache
21236
21237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21238 # Let make expand exec_prefix.
21239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21240
21241 DEFS=-DHAVE_CONFIG_H
21242
21243 ac_libobjs=
21244 ac_ltlibobjs=
21245 U=
21246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21247 # 1. Remove the extension, and $U if already installed.
21248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21249 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21251 # will be set to the directory where LIBOBJS objects are built.
21252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21254 done
21255 LIBOBJS=$ac_libobjs
21256
21257 LTLIBOBJS=$ac_ltlibobjs
21258
21259
21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21261 printf %s "checking that generated files are newer than configure... " >&6; }
21262 if test -n "$am_sleep_pid"; then
21263 # Hide warnings about reused PIDs.
21264 wait $am_sleep_pid 2>/dev/null
21265 fi
21266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21267 printf "%s\n" "done" >&6; }
21268 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21269 as_fn_error $? "conditional \"AMDEP\" was never defined.
21270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21271 fi
21272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21273 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21275 fi
21276 if test -n "$EXEEXT"; then
21277 am__EXEEXT_TRUE=
21278 am__EXEEXT_FALSE='#'
21279 else
21280 am__EXEEXT_TRUE='#'
21281 am__EXEEXT_FALSE=
21282 fi
21283
21284 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
21285 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
21286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21287 fi
21288 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21289 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21291 fi
21292 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21293 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21295 fi
21296 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21297 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21299 fi
21300 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21301 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21303 fi
21304 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21305 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21307 fi
21308 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21309 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21311 fi
21312 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21313 as_fn_error $? "conditional \"LINT\" was never defined.
21314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21315 fi
21316 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21317 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21319 fi
21320
21321 : "${CONFIG_STATUS=./config.status}"
21322 ac_write_fail=0
21323 ac_clean_files_save=$ac_clean_files
21324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21326 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21327 as_write_fail=0
21328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21329 #! $SHELL
21330 # Generated by $as_me.
21331 # Run this file to recreate the current configuration.
21332 # Compiler output produced by configure, useful for debugging
21333 # configure, is in config.log if it exists.
21334
21335 debug=false
21336 ac_cs_recheck=false
21337 ac_cs_silent=false
21338
21339 SHELL=\${CONFIG_SHELL-$SHELL}
21340 export SHELL
21341 _ASEOF
21342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21343 ## -------------------- ##
21344 ## M4sh Initialization. ##
21345 ## -------------------- ##
21346
21347 # Be more Bourne compatible
21348 DUALCASE=1; export DUALCASE # for MKS sh
21349 as_nop=:
21350 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21351 then :
21352 emulate sh
21353 NULLCMD=:
21354 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21355 # is contrary to our usage. Disable this feature.
21356 alias -g '${1+"$@"}'='"$@"'
21357 setopt NO_GLOB_SUBST
21358 else $as_nop
21359 case `(set -o) 2>/dev/null` in #(
21360 *posix*) :
21361 set -o posix ;; #(
21362 *) :
21363 ;;
21364 esac
21365 fi
21366
21367
21368
21369 # Reset variables that may have inherited troublesome values from
21370 # the environment.
21371
21372 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21373 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21374 # side effect of setting IFS to empty, thus disabling word splitting.)
21375 # Quoting is to prevent editors from complaining about space-tab.
21376 as_nl='
21377 '
21378 export as_nl
21379 IFS=" "" $as_nl"
21380
21381 PS1='$ '
21382 PS2='> '
21383 PS4='+ '
21384
21385 # Ensure predictable behavior from utilities with locale-dependent output.
21386 LC_ALL=C
21387 export LC_ALL
21388 LANGUAGE=C
21389 export LANGUAGE
21390
21391 # We cannot yet rely on "unset" to work, but we need these variables
21392 # to be unset--not just set to an empty or harmless value--now, to
21393 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21394 # also avoids known problems related to "unset" and subshell syntax
21395 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21396 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21397 do eval test \${$as_var+y} \
21398 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21399 done
21400
21401 # Ensure that fds 0, 1, and 2 are open.
21402 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21403 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21404 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21405
21406 # The user is always right.
21407 if ${PATH_SEPARATOR+false} :; then
21408 PATH_SEPARATOR=:
21409 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21410 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21411 PATH_SEPARATOR=';'
21412 }
21413 fi
21414
21415
21416 # Find who we are. Look in the path if we contain no directory separator.
21417 as_myself=
21418 case $0 in #((
21419 *[\\/]* ) as_myself=$0 ;;
21420 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21421 for as_dir in $PATH
21422 do
21423 IFS=$as_save_IFS
21424 case $as_dir in #(((
21425 '') as_dir=./ ;;
21426 */) ;;
21427 *) as_dir=$as_dir/ ;;
21428 esac
21429 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21430 done
21431 IFS=$as_save_IFS
21432
21433 ;;
21434 esac
21435 # We did not find ourselves, most probably we were run as `sh COMMAND'
21436 # in which case we are not to be found in the path.
21437 if test "x$as_myself" = x; then
21438 as_myself=$0
21439 fi
21440 if test ! -f "$as_myself"; then
21441 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21442 exit 1
21443 fi
21444
21445
21446
21447 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21448 # ----------------------------------------
21449 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21450 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21451 # script with STATUS, using 1 if that was 0.
21452 as_fn_error ()
21453 {
21454 as_status=$1; test $as_status -eq 0 && as_status=1
21455 if test "$4"; then
21456 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21458 fi
21459 printf "%s\n" "$as_me: error: $2" >&2
21460 as_fn_exit $as_status
21461 } # as_fn_error
21462
21463
21464
21465 # as_fn_set_status STATUS
21466 # -----------------------
21467 # Set $? to STATUS, without forking.
21468 as_fn_set_status ()
21469 {
21470 return $1
21471 } # as_fn_set_status
21472
21473 # as_fn_exit STATUS
21474 # -----------------
21475 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21476 as_fn_exit ()
21477 {
21478 set +e
21479 as_fn_set_status $1
21480 exit $1
21481 } # as_fn_exit
21482
21483 # as_fn_unset VAR
21484 # ---------------
21485 # Portably unset VAR.
21486 as_fn_unset ()
21487 {
21488 { eval $1=; unset $1;}
21489 }
21490 as_unset=as_fn_unset
21491
21492 # as_fn_append VAR VALUE
21493 # ----------------------
21494 # Append the text in VALUE to the end of the definition contained in VAR. Take
21495 # advantage of any shell optimizations that allow amortized linear growth over
21496 # repeated appends, instead of the typical quadratic growth present in naive
21497 # implementations.
21498 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21499 then :
21500 eval 'as_fn_append ()
21501 {
21502 eval $1+=\$2
21503 }'
21504 else $as_nop
21505 as_fn_append ()
21506 {
21507 eval $1=\$$1\$2
21508 }
21509 fi # as_fn_append
21510
21511 # as_fn_arith ARG...
21512 # ------------------
21513 # Perform arithmetic evaluation on the ARGs, and store the result in the
21514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21515 # must be portable across $(()) and expr.
21516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21517 then :
21518 eval 'as_fn_arith ()
21519 {
21520 as_val=$(( $* ))
21521 }'
21522 else $as_nop
21523 as_fn_arith ()
21524 {
21525 as_val=`expr "$@" || test $? -eq 1`
21526 }
21527 fi # as_fn_arith
21528
21529
21530 if expr a : '\(a\)' >/dev/null 2>&1 &&
21531 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21532 as_expr=expr
21533 else
21534 as_expr=false
21535 fi
21536
21537 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21538 as_basename=basename
21539 else
21540 as_basename=false
21541 fi
21542
21543 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21544 as_dirname=dirname
21545 else
21546 as_dirname=false
21547 fi
21548
21549 as_me=`$as_basename -- "$0" ||
21550 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21551 X"$0" : 'X\(//\)$' \| \
21552 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21553 printf "%s\n" X/"$0" |
21554 sed '/^.*\/\([^/][^/]*\)\/*$/{
21555 s//\1/
21556 q
21557 }
21558 /^X\/\(\/\/\)$/{
21559 s//\1/
21560 q
21561 }
21562 /^X\/\(\/\).*/{
21563 s//\1/
21564 q
21565 }
21566 s/.*/./; q'`
21567
21568 # Avoid depending upon Character Ranges.
21569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21572 as_cr_digits='0123456789'
21573 as_cr_alnum=$as_cr_Letters$as_cr_digits
21574
21575
21576 # Determine whether it's possible to make 'echo' print without a newline.
21577 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21578 # for compatibility with existing Makefiles.
21579 ECHO_C= ECHO_N= ECHO_T=
21580 case `echo -n x` in #(((((
21581 -n*)
21582 case `echo 'xy\c'` in
21583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21584 xy) ECHO_C='\c';;
21585 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21586 ECHO_T=' ';;
21587 esac;;
21588 *)
21589 ECHO_N='-n';;
21590 esac
21591
21592 # For backward compatibility with old third-party macros, we provide
21593 # the shell variables $as_echo and $as_echo_n. New code should use
21594 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21595 as_echo='printf %s\n'
21596 as_echo_n='printf %s'
21597
21598 rm -f conf$$ conf$$.exe conf$$.file
21599 if test -d conf$$.dir; then
21600 rm -f conf$$.dir/conf$$.file
21601 else
21602 rm -f conf$$.dir
21603 mkdir conf$$.dir 2>/dev/null
21604 fi
21605 if (echo >conf$$.file) 2>/dev/null; then
21606 if ln -s conf$$.file conf$$ 2>/dev/null; then
21607 as_ln_s='ln -s'
21608 # ... but there are two gotchas:
21609 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21610 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21611 # In both cases, we have to default to `cp -pR'.
21612 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21613 as_ln_s='cp -pR'
21614 elif ln conf$$.file conf$$ 2>/dev/null; then
21615 as_ln_s=ln
21616 else
21617 as_ln_s='cp -pR'
21618 fi
21619 else
21620 as_ln_s='cp -pR'
21621 fi
21622 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21623 rmdir conf$$.dir 2>/dev/null
21624
21625
21626 # as_fn_mkdir_p
21627 # -------------
21628 # Create "$as_dir" as a directory, including parents if necessary.
21629 as_fn_mkdir_p ()
21630 {
21631
21632 case $as_dir in #(
21633 -*) as_dir=./$as_dir;;
21634 esac
21635 test -d "$as_dir" || eval $as_mkdir_p || {
21636 as_dirs=
21637 while :; do
21638 case $as_dir in #(
21639 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21640 *) as_qdir=$as_dir;;
21641 esac
21642 as_dirs="'$as_qdir' $as_dirs"
21643 as_dir=`$as_dirname -- "$as_dir" ||
21644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$as_dir" : 'X\(//\)[^/]' \| \
21646 X"$as_dir" : 'X\(//\)$' \| \
21647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21648 printf "%s\n" X"$as_dir" |
21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21650 s//\1/
21651 q
21652 }
21653 /^X\(\/\/\)[^/].*/{
21654 s//\1/
21655 q
21656 }
21657 /^X\(\/\/\)$/{
21658 s//\1/
21659 q
21660 }
21661 /^X\(\/\).*/{
21662 s//\1/
21663 q
21664 }
21665 s/.*/./; q'`
21666 test -d "$as_dir" && break
21667 done
21668 test -z "$as_dirs" || eval "mkdir $as_dirs"
21669 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21670
21671
21672 } # as_fn_mkdir_p
21673 if mkdir -p . 2>/dev/null; then
21674 as_mkdir_p='mkdir -p "$as_dir"'
21675 else
21676 test -d ./-p && rmdir ./-p
21677 as_mkdir_p=false
21678 fi
21679
21680
21681 # as_fn_executable_p FILE
21682 # -----------------------
21683 # Test if FILE is an executable regular file.
21684 as_fn_executable_p ()
21685 {
21686 test -f "$1" && test -x "$1"
21687 } # as_fn_executable_p
21688 as_test_x='test -x'
21689 as_executable_p=as_fn_executable_p
21690
21691 # Sed expression to map a string onto a valid CPP name.
21692 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21693
21694 # Sed expression to map a string onto a valid variable name.
21695 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21696
21697
21698 exec 6>&1
21699 ## ----------------------------------- ##
21700 ## Main body of $CONFIG_STATUS script. ##
21701 ## ----------------------------------- ##
21702 _ASEOF
21703 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21704
21705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21706 # Save the log message, to keep $0 and so on meaningful, and to
21707 # report actual input values of CONFIG_FILES etc. instead of their
21708 # values after options handling.
21709 ac_log="
21710 This file was extended by libICE $as_me 1.1.1, which was
21711 generated by GNU Autoconf 2.71. Invocation command line was
21712
21713 CONFIG_FILES = $CONFIG_FILES
21714 CONFIG_HEADERS = $CONFIG_HEADERS
21715 CONFIG_LINKS = $CONFIG_LINKS
21716 CONFIG_COMMANDS = $CONFIG_COMMANDS
21717 $ $0 $@
21718
21719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21720 "
21721
21722 _ACEOF
21723
21724 case $ac_config_files in *"
21725 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21726 esac
21727
21728 case $ac_config_headers in *"
21729 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21730 esac
21731
21732
21733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21734 # Files that config.status was made for.
21735 config_files="$ac_config_files"
21736 config_headers="$ac_config_headers"
21737 config_commands="$ac_config_commands"
21738
21739 _ACEOF
21740
21741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21742 ac_cs_usage="\
21743 \`$as_me' instantiates files and other configuration actions
21744 from templates according to the current configuration. Unless the files
21745 and actions are specified as TAGs, all are instantiated by default.
21746
21747 Usage: $0 [OPTION]... [TAG]...
21748
21749 -h, --help print this help, then exit
21750 -V, --version print version number and configuration settings, then exit
21751 --config print configuration, then exit
21752 -q, --quiet, --silent
21753 do not print progress messages
21754 -d, --debug don't remove temporary files
21755 --recheck update $as_me by reconfiguring in the same conditions
21756 --file=FILE[:TEMPLATE]
21757 instantiate the configuration file FILE
21758 --header=FILE[:TEMPLATE]
21759 instantiate the configuration header FILE
21760
21761 Configuration files:
21762 $config_files
21763
21764 Configuration headers:
21765 $config_headers
21766
21767 Configuration commands:
21768 $config_commands
21769
21770 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libice/-/issues>."
21771
21772 _ACEOF
21773 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21774 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21776 ac_cs_config='$ac_cs_config_escaped'
21777 ac_cs_version="\\
21778 libICE config.status 1.1.1
21779 configured by $0, generated by GNU Autoconf 2.71,
21780 with options \\"\$ac_cs_config\\"
21781
21782 Copyright (C) 2021 Free Software Foundation, Inc.
21783 This config.status script is free software; the Free Software Foundation
21784 gives unlimited permission to copy, distribute and modify it."
21785
21786 ac_pwd='$ac_pwd'
21787 srcdir='$srcdir'
21788 INSTALL='$INSTALL'
21789 MKDIR_P='$MKDIR_P'
21790 AWK='$AWK'
21791 test -n "\$AWK" || AWK=awk
21792 _ACEOF
21793
21794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21795 # The default lists apply if the user does not specify any file.
21796 ac_need_defaults=:
21797 while test $# != 0
21798 do
21799 case $1 in
21800 --*=?*)
21801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21803 ac_shift=:
21804 ;;
21805 --*=)
21806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21807 ac_optarg=
21808 ac_shift=:
21809 ;;
21810 *)
21811 ac_option=$1
21812 ac_optarg=$2
21813 ac_shift=shift
21814 ;;
21815 esac
21816
21817 case $ac_option in
21818 # Handling of the options.
21819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21820 ac_cs_recheck=: ;;
21821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21822 printf "%s\n" "$ac_cs_version"; exit ;;
21823 --config | --confi | --conf | --con | --co | --c )
21824 printf "%s\n" "$ac_cs_config"; exit ;;
21825 --debug | --debu | --deb | --de | --d | -d )
21826 debug=: ;;
21827 --file | --fil | --fi | --f )
21828 $ac_shift
21829 case $ac_optarg in
21830 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21831 '') as_fn_error $? "missing file argument" ;;
21832 esac
21833 as_fn_append CONFIG_FILES " '$ac_optarg'"
21834 ac_need_defaults=false;;
21835 --header | --heade | --head | --hea )
21836 $ac_shift
21837 case $ac_optarg in
21838 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21839 esac
21840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21841 ac_need_defaults=false;;
21842 --he | --h)
21843 # Conflict between --help and --header
21844 as_fn_error $? "ambiguous option: \`$1'
21845 Try \`$0 --help' for more information.";;
21846 --help | --hel | -h )
21847 printf "%s\n" "$ac_cs_usage"; exit ;;
21848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21850 ac_cs_silent=: ;;
21851
21852 # This is an error.
21853 -*) as_fn_error $? "unrecognized option: \`$1'
21854 Try \`$0 --help' for more information." ;;
21855
21856 *) as_fn_append ac_config_targets " $1"
21857 ac_need_defaults=false ;;
21858
21859 esac
21860 shift
21861 done
21862
21863 ac_configure_extra_args=
21864
21865 if $ac_cs_silent; then
21866 exec 6>/dev/null
21867 ac_configure_extra_args="$ac_configure_extra_args --silent"
21868 fi
21869
21870 _ACEOF
21871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21872 if \$ac_cs_recheck; then
21873 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21874 shift
21875 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21876 CONFIG_SHELL='$SHELL'
21877 export CONFIG_SHELL
21878 exec "\$@"
21879 fi
21880
21881 _ACEOF
21882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21883 exec 5>>config.log
21884 {
21885 echo
21886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21887 ## Running $as_me. ##
21888 _ASBOX
21889 printf "%s\n" "$ac_log"
21890 } >&5
21891
21892 _ACEOF
21893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21894 #
21895 # INIT-COMMANDS
21896 #
21897 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21898
21899
21900 # The HP-UX ksh and POSIX shell print the target directory to stdout
21901 # if CDPATH is set.
21902 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21903
21904 sed_quote_subst='$sed_quote_subst'
21905 double_quote_subst='$double_quote_subst'
21906 delay_variable_subst='$delay_variable_subst'
21907 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21908 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21909 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21910 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21911 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21912 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21913 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21914 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21915 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21916 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21917 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21918 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21919 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21920 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21921 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21922 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21923 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21924 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21925 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21926 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21927 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21928 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21929 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21930 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21931 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21932 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21933 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21934 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21935 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21936 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21937 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21938 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21939 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21940 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21941 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21942 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21943 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21944 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21945 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21946 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21947 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21948 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21949 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21950 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21951 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21952 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21953 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21954 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21955 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21956 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21957 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21958 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21959 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21960 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21961 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21962 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21963 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21964 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21965 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21966 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21967 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"`'
21968 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21969 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21970 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21971 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21972 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21973 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21974 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21975 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21976 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21977 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21978 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21979 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21980 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21981 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21982 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21983 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21984 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21985 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21986 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21987 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21988 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21989 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21990 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21991 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21992 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21993 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21994 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21995 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21996 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21997 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21998 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21999 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22000 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22001 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22002 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22003 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22004 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22005 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22006 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22007 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22008 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22009 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22010 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22011 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22012 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22013 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22014 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22015 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22016 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22017 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22018 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22019 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22020 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22021 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22022 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22023 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22024 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22025 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22026 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22027 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22028 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22029 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22030 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22031 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22032 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22033 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22034 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22035 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22036 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22037 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22038 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22039 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22040 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22041 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22042 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22043 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22044
22045 LTCC='$LTCC'
22046 LTCFLAGS='$LTCFLAGS'
22047 compiler='$compiler_DEFAULT'
22048
22049 # A function that is used when there is no print builtin or printf.
22050 func_fallback_echo ()
22051 {
22052 eval 'cat <<_LTECHO_EOF
22053 \$1
22054 _LTECHO_EOF'
22055 }
22056
22057 # Quote evaled strings.
22058 for var in SHELL \
22059 ECHO \
22060 PATH_SEPARATOR \
22061 SED \
22062 GREP \
22063 EGREP \
22064 FGREP \
22065 LD \
22066 NM \
22067 LN_S \
22068 lt_SP2NL \
22069 lt_NL2SP \
22070 reload_flag \
22071 FILECMD \
22072 OBJDUMP \
22073 deplibs_check_method \
22074 file_magic_cmd \
22075 file_magic_glob \
22076 want_nocaseglob \
22077 DLLTOOL \
22078 sharedlib_from_linklib_cmd \
22079 AR \
22080 archiver_list_spec \
22081 STRIP \
22082 RANLIB \
22083 CC \
22084 CFLAGS \
22085 compiler \
22086 lt_cv_sys_global_symbol_pipe \
22087 lt_cv_sys_global_symbol_to_cdecl \
22088 lt_cv_sys_global_symbol_to_import \
22089 lt_cv_sys_global_symbol_to_c_name_address \
22090 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22091 lt_cv_nm_interface \
22092 nm_file_list_spec \
22093 lt_cv_truncate_bin \
22094 lt_prog_compiler_no_builtin_flag \
22095 lt_prog_compiler_pic \
22096 lt_prog_compiler_wl \
22097 lt_prog_compiler_static \
22098 lt_cv_prog_compiler_c_o \
22099 need_locks \
22100 MANIFEST_TOOL \
22101 DSYMUTIL \
22102 NMEDIT \
22103 LIPO \
22104 OTOOL \
22105 OTOOL64 \
22106 shrext_cmds \
22107 export_dynamic_flag_spec \
22108 whole_archive_flag_spec \
22109 compiler_needs_object \
22110 with_gnu_ld \
22111 allow_undefined_flag \
22112 no_undefined_flag \
22113 hardcode_libdir_flag_spec \
22114 hardcode_libdir_separator \
22115 exclude_expsyms \
22116 include_expsyms \
22117 file_list_spec \
22118 variables_saved_for_relink \
22119 libname_spec \
22120 library_names_spec \
22121 soname_spec \
22122 install_override_mode \
22123 finish_eval \
22124 old_striplib \
22125 striplib; do
22126 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22127 *[\\\\\\\`\\"\\\$]*)
22128 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22129 ;;
22130 *)
22131 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22132 ;;
22133 esac
22134 done
22135
22136 # Double-quote double-evaled strings.
22137 for var in reload_cmds \
22138 old_postinstall_cmds \
22139 old_postuninstall_cmds \
22140 old_archive_cmds \
22141 extract_expsyms_cmds \
22142 old_archive_from_new_cmds \
22143 old_archive_from_expsyms_cmds \
22144 archive_cmds \
22145 archive_expsym_cmds \
22146 module_cmds \
22147 module_expsym_cmds \
22148 export_symbols_cmds \
22149 prelink_cmds \
22150 postlink_cmds \
22151 postinstall_cmds \
22152 postuninstall_cmds \
22153 finish_cmds \
22154 sys_lib_search_path_spec \
22155 configure_time_dlsearch_path \
22156 configure_time_lt_sys_library_path; do
22157 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22158 *[\\\\\\\`\\"\\\$]*)
22159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22160 ;;
22161 *)
22162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22163 ;;
22164 esac
22165 done
22166
22167 ac_aux_dir='$ac_aux_dir'
22168
22169 # See if we are running on zsh, and set the options that allow our
22170 # commands through without removal of \ escapes INIT.
22171 if test -n "\${ZSH_VERSION+set}"; then
22172 setopt NO_GLOB_SUBST
22173 fi
22174
22175
22176 PACKAGE='$PACKAGE'
22177 VERSION='$VERSION'
22178 RM='$RM'
22179 ofile='$ofile'
22180
22181
22182
22183
22184 _ACEOF
22185
22186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22187
22188 # Handling of arguments.
22189 for ac_config_target in $ac_config_targets
22190 do
22191 case $ac_config_target in
22192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22194 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22196 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22197 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22198 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22199 "ice.pc") CONFIG_FILES="$CONFIG_FILES ice.pc" ;;
22200
22201 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22202 esac
22203 done
22204
22205
22206 # If the user did not use the arguments to specify the items to instantiate,
22207 # then the envvar interface is used. Set only those that are not.
22208 # We use the long form for the default assignment because of an extremely
22209 # bizarre bug on SunOS 4.1.3.
22210 if $ac_need_defaults; then
22211 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22212 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22213 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22214 fi
22215
22216 # Have a temporary directory for convenience. Make it in the build tree
22217 # simply because there is no reason against having it here, and in addition,
22218 # creating and moving files from /tmp can sometimes cause problems.
22219 # Hook for its removal unless debugging.
22220 # Note that there is a small window in which the directory will not be cleaned:
22221 # after its creation but before its name has been assigned to `$tmp'.
22222 $debug ||
22223 {
22224 tmp= ac_tmp=
22225 trap 'exit_status=$?
22226 : "${ac_tmp:=$tmp}"
22227 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22228 ' 0
22229 trap 'as_fn_exit 1' 1 2 13 15
22230 }
22231 # Create a (secure) tmp directory for tmp files.
22232
22233 {
22234 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22235 test -d "$tmp"
22236 } ||
22237 {
22238 tmp=./conf$$-$RANDOM
22239 (umask 077 && mkdir "$tmp")
22240 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22241 ac_tmp=$tmp
22242
22243 # Set up the scripts for CONFIG_FILES section.
22244 # No need to generate them if there are no CONFIG_FILES.
22245 # This happens for instance with `./config.status config.h'.
22246 if test -n "$CONFIG_FILES"; then
22247
22248
22249 ac_cr=`echo X | tr X '\015'`
22250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22251 # But we know of no other shell where ac_cr would be empty at this
22252 # point, so we can use a bashism as a fallback.
22253 if test "x$ac_cr" = x; then
22254 eval ac_cr=\$\'\\r\'
22255 fi
22256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22258 ac_cs_awk_cr='\\r'
22259 else
22260 ac_cs_awk_cr=$ac_cr
22261 fi
22262
22263 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22264 _ACEOF
22265
22266
22267 {
22268 echo "cat >conf$$subs.awk <<_ACEOF" &&
22269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22270 echo "_ACEOF"
22271 } >conf$$subs.sh ||
22272 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22273 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22274 ac_delim='%!_!# '
22275 for ac_last_try in false false false false false :; do
22276 . ./conf$$subs.sh ||
22277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22278
22279 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22280 if test $ac_delim_n = $ac_delim_num; then
22281 break
22282 elif $ac_last_try; then
22283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22284 else
22285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22286 fi
22287 done
22288 rm -f conf$$subs.sh
22289
22290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22291 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22292 _ACEOF
22293 sed -n '
22294 h
22295 s/^/S["/; s/!.*/"]=/
22296 p
22297 g
22298 s/^[^!]*!//
22299 :repl
22300 t repl
22301 s/'"$ac_delim"'$//
22302 t delim
22303 :nl
22304 h
22305 s/\(.\{148\}\)..*/\1/
22306 t more1
22307 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22308 p
22309 n
22310 b repl
22311 :more1
22312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22313 p
22314 g
22315 s/.\{148\}//
22316 t nl
22317 :delim
22318 h
22319 s/\(.\{148\}\)..*/\1/
22320 t more2
22321 s/["\\]/\\&/g; s/^/"/; s/$/"/
22322 p
22323 b
22324 :more2
22325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22326 p
22327 g
22328 s/.\{148\}//
22329 t delim
22330 ' <conf$$subs.awk | sed '
22331 /^[^""]/{
22332 N
22333 s/\n//
22334 }
22335 ' >>$CONFIG_STATUS || ac_write_fail=1
22336 rm -f conf$$subs.awk
22337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22338 _ACAWK
22339 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22340 for (key in S) S_is_set[key] = 1
22341 FS = ""
22342
22343 }
22344 {
22345 line = $ 0
22346 nfields = split(line, field, "@")
22347 substed = 0
22348 len = length(field[1])
22349 for (i = 2; i < nfields; i++) {
22350 key = field[i]
22351 keylen = length(key)
22352 if (S_is_set[key]) {
22353 value = S[key]
22354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22355 len += length(value) + length(field[++i])
22356 substed = 1
22357 } else
22358 len += 1 + keylen
22359 }
22360
22361 print line
22362 }
22363
22364 _ACAWK
22365 _ACEOF
22366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22367 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22368 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22369 else
22370 cat
22371 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22372 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22373 _ACEOF
22374
22375 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22376 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22377 # trailing colons and then remove the whole line if VPATH becomes empty
22378 # (actually we leave an empty line to preserve line numbers).
22379 if test "x$srcdir" = x.; then
22380 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22381 h
22382 s///
22383 s/^/:/
22384 s/[ ]*$/:/
22385 s/:\$(srcdir):/:/g
22386 s/:\${srcdir}:/:/g
22387 s/:@srcdir@:/:/g
22388 s/^:*//
22389 s/:*$//
22390 x
22391 s/\(=[ ]*\).*/\1/
22392 G
22393 s/\n//
22394 s/^[^=]*=[ ]*$//
22395 }'
22396 fi
22397
22398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22399 fi # test -n "$CONFIG_FILES"
22400
22401 # Set up the scripts for CONFIG_HEADERS section.
22402 # No need to generate them if there are no CONFIG_HEADERS.
22403 # This happens for instance with `./config.status Makefile'.
22404 if test -n "$CONFIG_HEADERS"; then
22405 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22406 BEGIN {
22407 _ACEOF
22408
22409 # Transform confdefs.h into an awk script `defines.awk', embedded as
22410 # here-document in config.status, that substitutes the proper values into
22411 # config.h.in to produce config.h.
22412
22413 # Create a delimiter string that does not exist in confdefs.h, to ease
22414 # handling of long lines.
22415 ac_delim='%!_!# '
22416 for ac_last_try in false false :; do
22417 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22418 if test -z "$ac_tt"; then
22419 break
22420 elif $ac_last_try; then
22421 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22422 else
22423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22424 fi
22425 done
22426
22427 # For the awk script, D is an array of macro values keyed by name,
22428 # likewise P contains macro parameters if any. Preserve backslash
22429 # newline sequences.
22430
22431 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22432 sed -n '
22433 s/.\{148\}/&'"$ac_delim"'/g
22434 t rset
22435 :rset
22436 s/^[ ]*#[ ]*define[ ][ ]*/ /
22437 t def
22438 d
22439 :def
22440 s/\\$//
22441 t bsnl
22442 s/["\\]/\\&/g
22443 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22444 D["\1"]=" \3"/p
22445 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22446 d
22447 :bsnl
22448 s/["\\]/\\&/g
22449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22450 D["\1"]=" \3\\\\\\n"\\/p
22451 t cont
22452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22453 t cont
22454 d
22455 :cont
22456 n
22457 s/.\{148\}/&'"$ac_delim"'/g
22458 t clear
22459 :clear
22460 s/\\$//
22461 t bsnlc
22462 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22463 d
22464 :bsnlc
22465 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22466 b cont
22467 ' <confdefs.h | sed '
22468 s/'"$ac_delim"'/"\\\
22469 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22470
22471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22472 for (key in D) D_is_set[key] = 1
22473 FS = ""
22474 }
22475 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22476 line = \$ 0
22477 split(line, arg, " ")
22478 if (arg[1] == "#") {
22479 defundef = arg[2]
22480 mac1 = arg[3]
22481 } else {
22482 defundef = substr(arg[1], 2)
22483 mac1 = arg[2]
22484 }
22485 split(mac1, mac2, "(") #)
22486 macro = mac2[1]
22487 prefix = substr(line, 1, index(line, defundef) - 1)
22488 if (D_is_set[macro]) {
22489 # Preserve the white space surrounding the "#".
22490 print prefix "define", macro P[macro] D[macro]
22491 next
22492 } else {
22493 # Replace #undef with comments. This is necessary, for example,
22494 # in the case of _POSIX_SOURCE, which is predefined and required
22495 # on some systems where configure will not decide to define it.
22496 if (defundef == "undef") {
22497 print "/*", prefix defundef, macro, "*/"
22498 next
22499 }
22500 }
22501 }
22502 { print }
22503 _ACAWK
22504 _ACEOF
22505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22506 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22507 fi # test -n "$CONFIG_HEADERS"
22508
22509
22510 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22511 shift
22512 for ac_tag
22513 do
22514 case $ac_tag in
22515 :[FHLC]) ac_mode=$ac_tag; continue;;
22516 esac
22517 case $ac_mode$ac_tag in
22518 :[FHL]*:*);;
22519 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22520 :[FH]-) ac_tag=-:-;;
22521 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22522 esac
22523 ac_save_IFS=$IFS
22524 IFS=:
22525 set x $ac_tag
22526 IFS=$ac_save_IFS
22527 shift
22528 ac_file=$1
22529 shift
22530
22531 case $ac_mode in
22532 :L) ac_source=$1;;
22533 :[FH])
22534 ac_file_inputs=
22535 for ac_f
22536 do
22537 case $ac_f in
22538 -) ac_f="$ac_tmp/stdin";;
22539 *) # Look for the file first in the build tree, then in the source tree
22540 # (if the path is not absolute). The absolute path cannot be DOS-style,
22541 # because $ac_f cannot contain `:'.
22542 test -f "$ac_f" ||
22543 case $ac_f in
22544 [\\/$]*) false;;
22545 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22546 esac ||
22547 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22548 esac
22549 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22550 as_fn_append ac_file_inputs " '$ac_f'"
22551 done
22552
22553 # Let's still pretend it is `configure' which instantiates (i.e., don't
22554 # use $as_me), people would be surprised to read:
22555 # /* config.h. Generated by config.status. */
22556 configure_input='Generated from '`
22557 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22558 `' by configure.'
22559 if test x"$ac_file" != x-; then
22560 configure_input="$ac_file. $configure_input"
22561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22562 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22563 fi
22564 # Neutralize special characters interpreted by sed in replacement strings.
22565 case $configure_input in #(
22566 *\&* | *\|* | *\\* )
22567 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22568 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22569 *) ac_sed_conf_input=$configure_input;;
22570 esac
22571
22572 case $ac_tag in
22573 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22575 esac
22576 ;;
22577 esac
22578
22579 ac_dir=`$as_dirname -- "$ac_file" ||
22580 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22581 X"$ac_file" : 'X\(//\)[^/]' \| \
22582 X"$ac_file" : 'X\(//\)$' \| \
22583 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22584 printf "%s\n" X"$ac_file" |
22585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22586 s//\1/
22587 q
22588 }
22589 /^X\(\/\/\)[^/].*/{
22590 s//\1/
22591 q
22592 }
22593 /^X\(\/\/\)$/{
22594 s//\1/
22595 q
22596 }
22597 /^X\(\/\).*/{
22598 s//\1/
22599 q
22600 }
22601 s/.*/./; q'`
22602 as_dir="$ac_dir"; as_fn_mkdir_p
22603 ac_builddir=.
22604
22605 case "$ac_dir" in
22606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22607 *)
22608 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22609 # A ".." for each directory in $ac_dir_suffix.
22610 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22611 case $ac_top_builddir_sub in
22612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22614 esac ;;
22615 esac
22616 ac_abs_top_builddir=$ac_pwd
22617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22618 # for backward compatibility:
22619 ac_top_builddir=$ac_top_build_prefix
22620
22621 case $srcdir in
22622 .) # We are building in place.
22623 ac_srcdir=.
22624 ac_top_srcdir=$ac_top_builddir_sub
22625 ac_abs_top_srcdir=$ac_pwd ;;
22626 [\\/]* | ?:[\\/]* ) # Absolute name.
22627 ac_srcdir=$srcdir$ac_dir_suffix;
22628 ac_top_srcdir=$srcdir
22629 ac_abs_top_srcdir=$srcdir ;;
22630 *) # Relative name.
22631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22632 ac_top_srcdir=$ac_top_build_prefix$srcdir
22633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22634 esac
22635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22636
22637
22638 case $ac_mode in
22639 :F)
22640 #
22641 # CONFIG_FILE
22642 #
22643
22644 case $INSTALL in
22645 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22646 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22647 esac
22648 ac_MKDIR_P=$MKDIR_P
22649 case $MKDIR_P in
22650 [\\/$]* | ?:[\\/]* ) ;;
22651 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22652 esac
22653 _ACEOF
22654
22655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22656 # If the template does not know about datarootdir, expand it.
22657 # FIXME: This hack should be removed a few years after 2.60.
22658 ac_datarootdir_hack=; ac_datarootdir_seen=
22659 ac_sed_dataroot='
22660 /datarootdir/ {
22661 p
22662 q
22663 }
22664 /@datadir@/p
22665 /@docdir@/p
22666 /@infodir@/p
22667 /@localedir@/p
22668 /@mandir@/p'
22669 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22670 *datarootdir*) ac_datarootdir_seen=yes;;
22671 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22673 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22674 _ACEOF
22675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22676 ac_datarootdir_hack='
22677 s&@datadir@&$datadir&g
22678 s&@docdir@&$docdir&g
22679 s&@infodir@&$infodir&g
22680 s&@localedir@&$localedir&g
22681 s&@mandir@&$mandir&g
22682 s&\\\${datarootdir}&$datarootdir&g' ;;
22683 esac
22684 _ACEOF
22685
22686 # Neutralize VPATH when `$srcdir' = `.'.
22687 # Shell code in configure.ac might set extrasub.
22688 # FIXME: do we really want to maintain this feature?
22689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22690 ac_sed_extra="$ac_vpsub
22691 $extrasub
22692 _ACEOF
22693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22694 :t
22695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22696 s|@configure_input@|$ac_sed_conf_input|;t t
22697 s&@top_builddir@&$ac_top_builddir_sub&;t t
22698 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22699 s&@srcdir@&$ac_srcdir&;t t
22700 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22701 s&@top_srcdir@&$ac_top_srcdir&;t t
22702 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22703 s&@builddir@&$ac_builddir&;t t
22704 s&@abs_builddir@&$ac_abs_builddir&;t t
22705 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22706 s&@INSTALL@&$ac_INSTALL&;t t
22707 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22708 $ac_datarootdir_hack
22709 "
22710 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22711 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22712
22713 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22714 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22715 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22716 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22718 which seems to be undefined. Please make sure it is defined" >&5
22719 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22720 which seems to be undefined. Please make sure it is defined" >&2;}
22721
22722 rm -f "$ac_tmp/stdin"
22723 case $ac_file in
22724 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22725 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22726 esac \
22727 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22728 ;;
22729 :H)
22730 #
22731 # CONFIG_HEADER
22732 #
22733 if test x"$ac_file" != x-; then
22734 {
22735 printf "%s\n" "/* $configure_input */" >&1 \
22736 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22737 } >"$ac_tmp/config.h" \
22738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22739 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22741 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22742 else
22743 rm -f "$ac_file"
22744 mv "$ac_tmp/config.h" "$ac_file" \
22745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22746 fi
22747 else
22748 printf "%s\n" "/* $configure_input */" >&1 \
22749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22750 || as_fn_error $? "could not create -" "$LINENO" 5
22751 fi
22752 # Compute "$ac_file"'s index in $config_headers.
22753 _am_arg="$ac_file"
22754 _am_stamp_count=1
22755 for _am_header in $config_headers :; do
22756 case $_am_header in
22757 $_am_arg | $_am_arg:* )
22758 break ;;
22759 * )
22760 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22761 esac
22762 done
22763 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22764 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22765 X"$_am_arg" : 'X\(//\)[^/]' \| \
22766 X"$_am_arg" : 'X\(//\)$' \| \
22767 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22768 printf "%s\n" X"$_am_arg" |
22769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22770 s//\1/
22771 q
22772 }
22773 /^X\(\/\/\)[^/].*/{
22774 s//\1/
22775 q
22776 }
22777 /^X\(\/\/\)$/{
22778 s//\1/
22779 q
22780 }
22781 /^X\(\/\).*/{
22782 s//\1/
22783 q
22784 }
22785 s/.*/./; q'`/stamp-h$_am_stamp_count
22786 ;;
22787
22788 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22789 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22790 ;;
22791 esac
22792
22793
22794 case $ac_file$ac_mode in
22795 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22796 # Older Autoconf quotes --file arguments for eval, but not when files
22797 # are listed without --file. Let's play safe and only enable the eval
22798 # if we detect the quoting.
22799 # TODO: see whether this extra hack can be removed once we start
22800 # requiring Autoconf 2.70 or later.
22801 case $CONFIG_FILES in #(
22802 *\'*) :
22803 eval set x "$CONFIG_FILES" ;; #(
22804 *) :
22805 set x $CONFIG_FILES ;; #(
22806 *) :
22807 ;;
22808 esac
22809 shift
22810 # Used to flag and report bootstrapping failures.
22811 am_rc=0
22812 for am_mf
22813 do
22814 # Strip MF so we end up with the name of the file.
22815 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22816 # Check whether this is an Automake generated Makefile which includes
22817 # dependency-tracking related rules and includes.
22818 # Grep'ing the whole file directly is not great: AIX grep has a line
22819 # limit of 2048, but all sed's we know have understand at least 4000.
22820 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22821 || continue
22822 am_dirpart=`$as_dirname -- "$am_mf" ||
22823 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$am_mf" : 'X\(//\)[^/]' \| \
22825 X"$am_mf" : 'X\(//\)$' \| \
22826 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22827 printf "%s\n" X"$am_mf" |
22828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22829 s//\1/
22830 q
22831 }
22832 /^X\(\/\/\)[^/].*/{
22833 s//\1/
22834 q
22835 }
22836 /^X\(\/\/\)$/{
22837 s//\1/
22838 q
22839 }
22840 /^X\(\/\).*/{
22841 s//\1/
22842 q
22843 }
22844 s/.*/./; q'`
22845 am_filepart=`$as_basename -- "$am_mf" ||
22846 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22847 X"$am_mf" : 'X\(//\)$' \| \
22848 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22849 printf "%s\n" X/"$am_mf" |
22850 sed '/^.*\/\([^/][^/]*\)\/*$/{
22851 s//\1/
22852 q
22853 }
22854 /^X\/\(\/\/\)$/{
22855 s//\1/
22856 q
22857 }
22858 /^X\/\(\/\).*/{
22859 s//\1/
22860 q
22861 }
22862 s/.*/./; q'`
22863 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22864 && sed -e '/# am--include-marker/d' "$am_filepart" \
22865 | $MAKE -f - am--depfiles" >&5
22866 (cd "$am_dirpart" \
22867 && sed -e '/# am--include-marker/d' "$am_filepart" \
22868 | $MAKE -f - am--depfiles) >&5 2>&5
22869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } || am_rc=$?
22872 done
22873 if test $am_rc -ne 0; then
22874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22875 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22876 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22877 for automatic dependency tracking. If GNU make was not used, consider
22878 re-running the configure script with MAKE=\"gmake\" (or whatever is
22879 necessary). You can also try re-running configure with the
22880 '--disable-dependency-tracking' option to at least be able to build
22881 the package (albeit without support for automatic dependency tracking).
22882 See \`config.log' for more details" "$LINENO" 5; }
22883 fi
22884 { am_dirpart=; unset am_dirpart;}
22885 { am_filepart=; unset am_filepart;}
22886 { am_mf=; unset am_mf;}
22887 { am_rc=; unset am_rc;}
22888 rm -f conftest-deps.mk
22889 }
22890 ;;
22891 "libtool":C)
22892
22893 # See if we are running on zsh, and set the options that allow our
22894 # commands through without removal of \ escapes.
22895 if test -n "${ZSH_VERSION+set}"; then
22896 setopt NO_GLOB_SUBST
22897 fi
22898
22899 cfgfile=${ofile}T
22900 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22901 $RM "$cfgfile"
22902
22903 cat <<_LT_EOF >> "$cfgfile"
22904 #! $SHELL
22905 # Generated automatically by $as_me ($PACKAGE) $VERSION
22906 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22907 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22908
22909 # Provide generalized library-building support services.
22910 # Written by Gordon Matzigkeit, 1996
22911
22912 # Copyright (C) 2014 Free Software Foundation, Inc.
22913 # This is free software; see the source for copying conditions. There is NO
22914 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22915
22916 # GNU Libtool is free software; you can redistribute it and/or modify
22917 # it under the terms of the GNU General Public License as published by
22918 # the Free Software Foundation; either version 2 of of the License, or
22919 # (at your option) any later version.
22920 #
22921 # As a special exception to the GNU General Public License, if you
22922 # distribute this file as part of a program or library that is built
22923 # using GNU Libtool, you may include this file under the same
22924 # distribution terms that you use for the rest of that program.
22925 #
22926 # GNU Libtool is distributed in the hope that it will be useful, but
22927 # WITHOUT ANY WARRANTY; without even the implied warranty of
22928 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22929 # GNU General Public License for more details.
22930 #
22931 # You should have received a copy of the GNU General Public License
22932 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22933
22934
22935 # The names of the tagged configurations supported by this script.
22936 available_tags=''
22937
22938 # Configured defaults for sys_lib_dlsearch_path munging.
22939 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22940
22941 # ### BEGIN LIBTOOL CONFIG
22942
22943 # Which release of libtool.m4 was used?
22944 macro_version=$macro_version
22945 macro_revision=$macro_revision
22946
22947 # Whether or not to build shared libraries.
22948 build_libtool_libs=$enable_shared
22949
22950 # Whether or not to build static libraries.
22951 build_old_libs=$enable_static
22952
22953 # What type of objects to build.
22954 pic_mode=$pic_mode
22955
22956 # Whether or not to optimize for fast installation.
22957 fast_install=$enable_fast_install
22958
22959 # Shared archive member basename,for filename based shared library versioning on AIX.
22960 shared_archive_member_spec=$shared_archive_member_spec
22961
22962 # Shell to use when invoking shell scripts.
22963 SHELL=$lt_SHELL
22964
22965 # An echo program that protects backslashes.
22966 ECHO=$lt_ECHO
22967
22968 # The PATH separator for the build system.
22969 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22970
22971 # The host system.
22972 host_alias=$host_alias
22973 host=$host
22974 host_os=$host_os
22975
22976 # The build system.
22977 build_alias=$build_alias
22978 build=$build
22979 build_os=$build_os
22980
22981 # A sed program that does not truncate output.
22982 SED=$lt_SED
22983
22984 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22985 Xsed="\$SED -e 1s/^X//"
22986
22987 # A grep program that handles long lines.
22988 GREP=$lt_GREP
22989
22990 # An ERE matcher.
22991 EGREP=$lt_EGREP
22992
22993 # A literal string matcher.
22994 FGREP=$lt_FGREP
22995
22996 # A BSD- or MS-compatible name lister.
22997 NM=$lt_NM
22998
22999 # Whether we need soft or hard links.
23000 LN_S=$lt_LN_S
23001
23002 # What is the maximum length of a command?
23003 max_cmd_len=$max_cmd_len
23004
23005 # Object file suffix (normally "o").
23006 objext=$ac_objext
23007
23008 # Executable file suffix (normally "").
23009 exeext=$exeext
23010
23011 # whether the shell understands "unset".
23012 lt_unset=$lt_unset
23013
23014 # turn spaces into newlines.
23015 SP2NL=$lt_lt_SP2NL
23016
23017 # turn newlines into spaces.
23018 NL2SP=$lt_lt_NL2SP
23019
23020 # convert \$build file names to \$host format.
23021 to_host_file_cmd=$lt_cv_to_host_file_cmd
23022
23023 # convert \$build files to toolchain format.
23024 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23025
23026 # A file(cmd) program that detects file types.
23027 FILECMD=$lt_FILECMD
23028
23029 # An object symbol dumper.
23030 OBJDUMP=$lt_OBJDUMP
23031
23032 # Method to check whether dependent libraries are shared objects.
23033 deplibs_check_method=$lt_deplibs_check_method
23034
23035 # Command to use when deplibs_check_method = "file_magic".
23036 file_magic_cmd=$lt_file_magic_cmd
23037
23038 # How to find potential files when deplibs_check_method = "file_magic".
23039 file_magic_glob=$lt_file_magic_glob
23040
23041 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23042 want_nocaseglob=$lt_want_nocaseglob
23043
23044 # DLL creation program.
23045 DLLTOOL=$lt_DLLTOOL
23046
23047 # Command to associate shared and link libraries.
23048 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23049
23050 # The archiver.
23051 AR=$lt_AR
23052
23053 # Flags to create an archive (by configure).
23054 lt_ar_flags=$lt_ar_flags
23055
23056 # Flags to create an archive.
23057 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23058
23059 # How to feed a file listing to the archiver.
23060 archiver_list_spec=$lt_archiver_list_spec
23061
23062 # A symbol stripping program.
23063 STRIP=$lt_STRIP
23064
23065 # Commands used to install an old-style archive.
23066 RANLIB=$lt_RANLIB
23067 old_postinstall_cmds=$lt_old_postinstall_cmds
23068 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23069
23070 # Whether to use a lock for old archive extraction.
23071 lock_old_archive_extraction=$lock_old_archive_extraction
23072
23073 # A C compiler.
23074 LTCC=$lt_CC
23075
23076 # LTCC compiler flags.
23077 LTCFLAGS=$lt_CFLAGS
23078
23079 # Take the output of nm and produce a listing of raw symbols and C names.
23080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23081
23082 # Transform the output of nm in a proper C declaration.
23083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23084
23085 # Transform the output of nm into a list of symbols to manually relocate.
23086 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23087
23088 # Transform the output of nm in a C name address pair.
23089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23090
23091 # Transform the output of nm in a C name address pair when lib prefix is needed.
23092 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23093
23094 # The name lister interface.
23095 nm_interface=$lt_lt_cv_nm_interface
23096
23097 # Specify filename containing input files for \$NM.
23098 nm_file_list_spec=$lt_nm_file_list_spec
23099
23100 # The root where to search for dependent libraries,and where our libraries should be installed.
23101 lt_sysroot=$lt_sysroot
23102
23103 # Command to truncate a binary pipe.
23104 lt_truncate_bin=$lt_lt_cv_truncate_bin
23105
23106 # The name of the directory that contains temporary libtool files.
23107 objdir=$objdir
23108
23109 # Used to examine libraries when file_magic_cmd begins with "file".
23110 MAGIC_CMD=$MAGIC_CMD
23111
23112 # Must we lock files when doing compilation?
23113 need_locks=$lt_need_locks
23114
23115 # Manifest tool.
23116 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23117
23118 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23119 DSYMUTIL=$lt_DSYMUTIL
23120
23121 # Tool to change global to local symbols on Mac OS X.
23122 NMEDIT=$lt_NMEDIT
23123
23124 # Tool to manipulate fat objects and archives on Mac OS X.
23125 LIPO=$lt_LIPO
23126
23127 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23128 OTOOL=$lt_OTOOL
23129
23130 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23131 OTOOL64=$lt_OTOOL64
23132
23133 # Old archive suffix (normally "a").
23134 libext=$libext
23135
23136 # Shared library suffix (normally ".so").
23137 shrext_cmds=$lt_shrext_cmds
23138
23139 # The commands to extract the exported symbol list from a shared archive.
23140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23141
23142 # Variables whose values should be saved in libtool wrapper scripts and
23143 # restored at link time.
23144 variables_saved_for_relink=$lt_variables_saved_for_relink
23145
23146 # Do we need the "lib" prefix for modules?
23147 need_lib_prefix=$need_lib_prefix
23148
23149 # Do we need a version for libraries?
23150 need_version=$need_version
23151
23152 # Library versioning type.
23153 version_type=$version_type
23154
23155 # Shared library runtime path variable.
23156 runpath_var=$runpath_var
23157
23158 # Shared library path variable.
23159 shlibpath_var=$shlibpath_var
23160
23161 # Is shlibpath searched before the hard-coded library search path?
23162 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23163
23164 # Format of library name prefix.
23165 libname_spec=$lt_libname_spec
23166
23167 # List of archive names. First name is the real one, the rest are links.
23168 # The last name is the one that the linker finds with -lNAME
23169 library_names_spec=$lt_library_names_spec
23170
23171 # The coded name of the library, if different from the real name.
23172 soname_spec=$lt_soname_spec
23173
23174 # Permission mode override for installation of shared libraries.
23175 install_override_mode=$lt_install_override_mode
23176
23177 # Command to use after installation of a shared archive.
23178 postinstall_cmds=$lt_postinstall_cmds
23179
23180 # Command to use after uninstallation of a shared archive.
23181 postuninstall_cmds=$lt_postuninstall_cmds
23182
23183 # Commands used to finish a libtool library installation in a directory.
23184 finish_cmds=$lt_finish_cmds
23185
23186 # As "finish_cmds", except a single script fragment to be evaled but
23187 # not shown.
23188 finish_eval=$lt_finish_eval
23189
23190 # Whether we should hardcode library paths into libraries.
23191 hardcode_into_libs=$hardcode_into_libs
23192
23193 # Compile-time system search path for libraries.
23194 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23195
23196 # Detected run-time system search path for libraries.
23197 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23198
23199 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23200 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23201
23202 # Whether dlopen is supported.
23203 dlopen_support=$enable_dlopen
23204
23205 # Whether dlopen of programs is supported.
23206 dlopen_self=$enable_dlopen_self
23207
23208 # Whether dlopen of statically linked programs is supported.
23209 dlopen_self_static=$enable_dlopen_self_static
23210
23211 # Commands to strip libraries.
23212 old_striplib=$lt_old_striplib
23213 striplib=$lt_striplib
23214
23215
23216 # The linker used to build libraries.
23217 LD=$lt_LD
23218
23219 # How to create reloadable object files.
23220 reload_flag=$lt_reload_flag
23221 reload_cmds=$lt_reload_cmds
23222
23223 # Commands used to build an old-style archive.
23224 old_archive_cmds=$lt_old_archive_cmds
23225
23226 # A language specific compiler.
23227 CC=$lt_compiler
23228
23229 # Is the compiler the GNU compiler?
23230 with_gcc=$GCC
23231
23232 # Compiler flag to turn off builtin functions.
23233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23234
23235 # Additional compiler flags for building library objects.
23236 pic_flag=$lt_lt_prog_compiler_pic
23237
23238 # How to pass a linker flag through the compiler.
23239 wl=$lt_lt_prog_compiler_wl
23240
23241 # Compiler flag to prevent dynamic linking.
23242 link_static_flag=$lt_lt_prog_compiler_static
23243
23244 # Does compiler simultaneously support -c and -o options?
23245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23246
23247 # Whether or not to add -lc for building shared libraries.
23248 build_libtool_need_lc=$archive_cmds_need_lc
23249
23250 # Whether or not to disallow shared libs when runtime libs are static.
23251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23252
23253 # Compiler flag to allow reflexive dlopens.
23254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23255
23256 # Compiler flag to generate shared objects directly from archives.
23257 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23258
23259 # Whether the compiler copes with passing no objects directly.
23260 compiler_needs_object=$lt_compiler_needs_object
23261
23262 # Create an old-style archive from a shared archive.
23263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23264
23265 # Create a temporary old-style archive to link instead of a shared archive.
23266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23267
23268 # Commands used to build a shared archive.
23269 archive_cmds=$lt_archive_cmds
23270 archive_expsym_cmds=$lt_archive_expsym_cmds
23271
23272 # Commands used to build a loadable module if different from building
23273 # a shared archive.
23274 module_cmds=$lt_module_cmds
23275 module_expsym_cmds=$lt_module_expsym_cmds
23276
23277 # Whether we are building with GNU ld or not.
23278 with_gnu_ld=$lt_with_gnu_ld
23279
23280 # Flag that allows shared libraries with undefined symbols to be built.
23281 allow_undefined_flag=$lt_allow_undefined_flag
23282
23283 # Flag that enforces no undefined symbols.
23284 no_undefined_flag=$lt_no_undefined_flag
23285
23286 # Flag to hardcode \$libdir into a binary during linking.
23287 # This must work even if \$libdir does not exist
23288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23289
23290 # Whether we need a single "-rpath" flag with a separated argument.
23291 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23292
23293 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23294 # DIR into the resulting binary.
23295 hardcode_direct=$hardcode_direct
23296
23297 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23298 # DIR into the resulting binary and the resulting library dependency is
23299 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23300 # library is relocated.
23301 hardcode_direct_absolute=$hardcode_direct_absolute
23302
23303 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23304 # into the resulting binary.
23305 hardcode_minus_L=$hardcode_minus_L
23306
23307 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23308 # into the resulting binary.
23309 hardcode_shlibpath_var=$hardcode_shlibpath_var
23310
23311 # Set to "yes" if building a shared library automatically hardcodes DIR
23312 # into the library and all subsequent libraries and executables linked
23313 # against it.
23314 hardcode_automatic=$hardcode_automatic
23315
23316 # Set to yes if linker adds runtime paths of dependent libraries
23317 # to runtime path list.
23318 inherit_rpath=$inherit_rpath
23319
23320 # Whether libtool must link a program against all its dependency libraries.
23321 link_all_deplibs=$link_all_deplibs
23322
23323 # Set to "yes" if exported symbols are required.
23324 always_export_symbols=$always_export_symbols
23325
23326 # The commands to list exported symbols.
23327 export_symbols_cmds=$lt_export_symbols_cmds
23328
23329 # Symbols that should not be listed in the preloaded symbols.
23330 exclude_expsyms=$lt_exclude_expsyms
23331
23332 # Symbols that must always be exported.
23333 include_expsyms=$lt_include_expsyms
23334
23335 # Commands necessary for linking programs (against libraries) with templates.
23336 prelink_cmds=$lt_prelink_cmds
23337
23338 # Commands necessary for finishing linking programs.
23339 postlink_cmds=$lt_postlink_cmds
23340
23341 # Specify filename containing input files.
23342 file_list_spec=$lt_file_list_spec
23343
23344 # How to hardcode a shared library path into an executable.
23345 hardcode_action=$hardcode_action
23346
23347 # ### END LIBTOOL CONFIG
23348
23349 _LT_EOF
23350
23351 cat <<'_LT_EOF' >> "$cfgfile"
23352
23353 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23354
23355 # func_munge_path_list VARIABLE PATH
23356 # -----------------------------------
23357 # VARIABLE is name of variable containing _space_ separated list of
23358 # directories to be munged by the contents of PATH, which is string
23359 # having a format:
23360 # "DIR[:DIR]:"
23361 # string "DIR[ DIR]" will be prepended to VARIABLE
23362 # ":DIR[:DIR]"
23363 # string "DIR[ DIR]" will be appended to VARIABLE
23364 # "DIRP[:DIRP]::[DIRA:]DIRA"
23365 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23366 # "DIRA[ DIRA]" will be appended to VARIABLE
23367 # "DIR[:DIR]"
23368 # VARIABLE will be replaced by "DIR[ DIR]"
23369 func_munge_path_list ()
23370 {
23371 case x$2 in
23372 x)
23373 ;;
23374 *:)
23375 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23376 ;;
23377 x:*)
23378 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23379 ;;
23380 *::*)
23381 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23382 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23383 ;;
23384 *)
23385 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23386 ;;
23387 esac
23388 }
23389
23390
23391 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23392 func_cc_basename ()
23393 {
23394 for cc_temp in $*""; do
23395 case $cc_temp in
23396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23398 \-*) ;;
23399 *) break;;
23400 esac
23401 done
23402 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23403 }
23404
23405
23406 # ### END FUNCTIONS SHARED WITH CONFIGURE
23407
23408 _LT_EOF
23409
23410 case $host_os in
23411 aix3*)
23412 cat <<\_LT_EOF >> "$cfgfile"
23413 # AIX sometimes has problems with the GCC collect2 program. For some
23414 # reason, if we set the COLLECT_NAMES environment variable, the problems
23415 # vanish in a puff of smoke.
23416 if test set != "${COLLECT_NAMES+set}"; then
23417 COLLECT_NAMES=
23418 export COLLECT_NAMES
23419 fi
23420 _LT_EOF
23421 ;;
23422 esac
23423
23424
23425
23426 ltmain=$ac_aux_dir/ltmain.sh
23427
23428
23429 # We use sed instead of cat because bash on DJGPP gets confused if
23430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23431 # text mode, it properly converts lines to CR/LF. This bash problem
23432 # is reportedly fixed, but why not run on old versions too?
23433 $SED '$q' "$ltmain" >> "$cfgfile" \
23434 || (rm -f "$cfgfile"; exit 1)
23435
23436 mv -f "$cfgfile" "$ofile" ||
23437 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23438 chmod +x "$ofile"
23439
23440 ;;
23441
23442 esac
23443 done # for ac_tag
23444
23445
23446 as_fn_exit 0
23447 _ACEOF
23448 ac_clean_files=$ac_clean_files_save
23449
23450 test $ac_write_fail = 0 ||
23451 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23452
23453
23454 # configure is writing to config.log, and then calls config.status.
23455 # config.status does its own redirection, appending to config.log.
23456 # Unfortunately, on DOS this fails, as config.log is still kept open
23457 # by configure, so config.status won't be able to write to it; its
23458 # output is simply discarded. So we exec the FD to /dev/null,
23459 # effectively closing config.log, so it can be properly (re)opened and
23460 # appended to by config.status. When coming back to configure, we
23461 # need to make the FD available again.
23462 if test "$no_create" != yes; then
23463 ac_cs_success=:
23464 ac_config_status_args=
23465 test "$silent" = yes &&
23466 ac_config_status_args="$ac_config_status_args --quiet"
23467 exec 5>/dev/null
23468 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23469 exec 5>>config.log
23470 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23471 # would make configure fail if this is the last instruction.
23472 $ac_cs_success || as_fn_exit 1
23473 fi
23474 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23476 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23477 fi
23478
23479
23480