configure revision 1.1.1.27.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libX11 1.8.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/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/libx11/-/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='libX11'
684 PACKAGE_TARNAME='libX11'
685 PACKAGE_VERSION='1.8.3'
686 PACKAGE_STRING='libX11 1.8.3'
687 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/-/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_func_c_list=
724 ac_subst_vars='am__EXEEXT_FALSE
725 am__EXEEXT_TRUE
726 LTLIBOBJS
727 XTMALLOC_ZERO_CFLAGS
728 XMALLOC_ZERO_CFLAGS
729 MALLOC_ZERO_CFLAGS
730 XERRORDB
731 XKEYSYMDB
732 locales
733 X11_LOCALEDIR
734 XLOCALEDIR
735 X11_LOCALELIBDIR
736 XLOCALELIBDIR
737 X11_LOCALEDATADIR
738 XLOCALEDATADIR
739 X11_LIBS
740 X11_CFLAGS
741 X11_LIBDIR
742 X11_DATADIR
743 MAKE_LINT_LIB_FALSE
744 MAKE_LINT_LIB_TRUE
745 LINTLIB
746 LINT_FALSE
747 LINT_TRUE
748 LINT_FLAGS
749 LINT
750 XKBPROTO_REQUIRES
751 XKB_FALSE
752 XKB_TRUE
753 BIGFONT_LIBS
754 BIGFONT_CFLAGS
755 XLOCALE_FALSE
756 XLOCALE_TRUE
757 XCMS_FALSE
758 XCMS_TRUE
759 KEYSYMDEFS
760 USE_THREAD_LIBS
761 XTHREAD_CFLAGS
762 XTHREADLIB
763 LAUNCHD
764 OS2_FALSE
765 OS2_TRUE
766 WCHAR32
767 LIBOBJS
768 XLIB_LOADABLE_I18N_FALSE
769 XLIB_LOADABLE_I18N_TRUE
770 I18N_MODULE_LIBS
771 X11_EXTRA_DEPS
772 EXEEXT_FOR_BUILD
773 LDFLAGS_FOR_BUILD
774 CFLAGS_FOR_BUILD
775 CPPFLAGS_FOR_BUILD
776 CC_FOR_BUILD
777 HAVE_PERL_FALSE
778 HAVE_PERL_TRUE
779 PERL
780 TRADITIONALCPPFLAGS
781 RAWCPPFLAGS
782 RAWCPP
783 CPP
784 HAVE_STYLESHEETS_FALSE
785 HAVE_STYLESHEETS_TRUE
786 XSL_STYLESHEET
787 STYLESHEET_SRCDIR
788 XORG_SGML_PATH
789 HAVE_XSLTPROC_FALSE
790 HAVE_XSLTPROC_TRUE
791 XSLTPROC
792 HAVE_FOP_FALSE
793 HAVE_FOP_TRUE
794 FOP
795 HAVE_XMLTO_FALSE
796 HAVE_XMLTO_TRUE
797 HAVE_XMLTO_TEXT_FALSE
798 HAVE_XMLTO_TEXT_TRUE
799 XMLTO
800 ENABLE_SPECS_FALSE
801 ENABLE_SPECS_TRUE
802 MAN_SUBSTS
803 XORG_MAN_PAGE
804 ADMIN_MAN_DIR
805 DRIVER_MAN_DIR
806 MISC_MAN_DIR
807 FILE_MAN_DIR
808 LIB_MAN_DIR
809 APP_MAN_DIR
810 ADMIN_MAN_SUFFIX
811 DRIVER_MAN_SUFFIX
812 MISC_MAN_SUFFIX
813 FILE_MAN_SUFFIX
814 LIB_MAN_SUFFIX
815 APP_MAN_SUFFIX
816 INSTALL_CMD
817 PKG_CONFIG_LIBDIR
818 PKG_CONFIG_PATH
819 PKG_CONFIG
820 CHANGELOG_CMD
821 STRICT_CFLAGS
822 CWARNFLAGS
823 BASE_CFLAGS
824 LT_SYS_LIBRARY_PATH
825 OTOOL64
826 OTOOL
827 LIPO
828 NMEDIT
829 DSYMUTIL
830 MANIFEST_TOOL
831 RANLIB
832 ac_ct_AR
833 AR
834 DLLTOOL
835 OBJDUMP
836 FILECMD
837 LN_S
838 NM
839 ac_ct_DUMPBIN
840 DUMPBIN
841 LD
842 FGREP
843 EGREP
844 GREP
845 SED
846 LIBTOOL
847 AM_BACKSLASH
848 AM_DEFAULT_VERBOSITY
849 AM_DEFAULT_V
850 AM_V
851 CSCOPE
852 ETAGS
853 CTAGS
854 am__fastdepCC_FALSE
855 am__fastdepCC_TRUE
856 CCDEPMODE
857 am__nodep
858 AMDEPBACKSLASH
859 AMDEP_FALSE
860 AMDEP_TRUE
861 am__include
862 DEPDIR
863 am__untar
864 am__tar
865 AMTAR
866 am__leading_dot
867 SET_MAKE
868 AWK
869 mkdir_p
870 MKDIR_P
871 INSTALL_STRIP_PROGRAM
872 STRIP
873 install_sh
874 MAKEINFO
875 AUTOHEADER
876 AUTOMAKE
877 AUTOCONF
878 ACLOCAL
879 VERSION
880 PACKAGE
881 CYGPATH_W
882 am__isrc
883 INSTALL_DATA
884 INSTALL_SCRIPT
885 INSTALL_PROGRAM
886 OBJEXT
887 EXEEXT
888 ac_ct_CC
889 CPPFLAGS
890 LDFLAGS
891 CFLAGS
892 CC
893 host_os
894 host_vendor
895 host_cpu
896 host
897 build_os
898 build_vendor
899 build_cpu
900 build
901 target_alias
902 host_alias
903 build_alias
904 LIBS
905 ECHO_T
906 ECHO_N
907 ECHO_C
908 DEFS
909 mandir
910 localedir
911 libdir
912 psdir
913 pdfdir
914 dvidir
915 htmldir
916 infodir
917 docdir
918 oldincludedir
919 includedir
920 runstatedir
921 localstatedir
922 sharedstatedir
923 sysconfdir
924 datadir
925 datarootdir
926 libexecdir
927 sbindir
928 bindir
929 program_transform_name
930 prefix
931 exec_prefix
932 PACKAGE_URL
933 PACKAGE_BUGREPORT
934 PACKAGE_STRING
935 PACKAGE_VERSION
936 PACKAGE_TARNAME
937 PACKAGE_NAME
938 PATH_SEPARATOR
939 SHELL
940 am__quote'
941 ac_subst_files=''
942 ac_user_opts='
943 enable_option_checking
944 enable_dependency_tracking
945 enable_silent_rules
946 enable_shared
947 enable_static
948 with_pic
949 enable_fast_install
950 with_aix_soname
951 with_gnu_ld
952 with_sysroot
953 enable_libtool_lock
954 enable_largefile
955 enable_selective_werror
956 enable_strict_compilation
957 enable_specs
958 with_xmlto
959 with_fop
960 with_xsltproc
961 with_perl
962 enable_unix_transport
963 enable_tcp_transport
964 enable_ipv6
965 enable_local_transport
966 enable_loadable_i18n
967 enable_loadable_xcursor
968 enable_thread_safety_constructor
969 with_launchd
970 enable_xthreads
971 with_keysymdefdir
972 enable_xcms
973 enable_xlocale
974 enable_xlocaledir
975 enable_xf86bigfont
976 enable_xkb
977 enable_composecache
978 with_lint
979 enable_lint_library
980 with_locale_lib_dir
981 enable_malloc0returnsnull
982 '
983 ac_precious_vars='build_alias
984 host_alias
985 target_alias
986 CC
987 CFLAGS
988 LDFLAGS
989 LIBS
990 CPPFLAGS
991 LT_SYS_LIBRARY_PATH
992 PKG_CONFIG
993 PKG_CONFIG_PATH
994 PKG_CONFIG_LIBDIR
995 XMLTO
996 FOP
997 XSLTPROC
998 CPP
999 PERL
1000 BIGFONT_CFLAGS
1001 BIGFONT_LIBS
1002 LINT
1003 LINT_FLAGS
1004 X11_CFLAGS
1005 X11_LIBS'
1006
1007
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1029
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 runstatedir='${localstatedir}/run'
1045 includedir='${prefix}/include'
1046 oldincludedir='/usr/include'
1047 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1048 infodir='${datarootdir}/info'
1049 htmldir='${docdir}'
1050 dvidir='${docdir}'
1051 pdfdir='${docdir}'
1052 psdir='${docdir}'
1053 libdir='${exec_prefix}/lib'
1054 localedir='${datarootdir}/locale'
1055 mandir='${datarootdir}/man'
1056
1057 ac_prev=
1058 ac_dashdash=
1059 for ac_option
1060 do
1061 # If the previous option needs an argument, assign it.
1062 if test -n "$ac_prev"; then
1063 eval $ac_prev=\$ac_option
1064 ac_prev=
1065 continue
1066 fi
1067
1068 case $ac_option in
1069 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070 *=) ac_optarg= ;;
1071 *) ac_optarg=yes ;;
1072 esac
1073
1074 case $ac_dashdash$ac_option in
1075 --)
1076 ac_dashdash=yes ;;
1077
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079 ac_prev=bindir ;;
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1082
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1087
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1094
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1097
1098 -datadir | --datadir | --datadi | --datad)
1099 ac_prev=datadir ;;
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1102
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1109
1110 -disable-* | --disable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "enable_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval enable_$ac_useropt=no ;;
1125
1126 -docdir | --docdir | --docdi | --doc | --do)
1127 ac_prev=docdir ;;
1128 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1129 docdir=$ac_optarg ;;
1130
1131 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1132 ac_prev=dvidir ;;
1133 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1134 dvidir=$ac_optarg ;;
1135
1136 -enable-* | --enable-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "enable_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval enable_$ac_useropt=\$ac_optarg ;;
1151
1152 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154 | --exec | --exe | --ex)
1155 ac_prev=exec_prefix ;;
1156 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158 | --exec=* | --exe=* | --ex=*)
1159 exec_prefix=$ac_optarg ;;
1160
1161 -gas | --gas | --ga | --g)
1162 # Obsolete; use --with-gas.
1163 with_gas=yes ;;
1164
1165 -help | --help | --hel | --he | -h)
1166 ac_init_help=long ;;
1167 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168 ac_init_help=recursive ;;
1169 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170 ac_init_help=short ;;
1171
1172 -host | --host | --hos | --ho)
1173 ac_prev=host_alias ;;
1174 -host=* | --host=* | --hos=* | --ho=*)
1175 host_alias=$ac_optarg ;;
1176
1177 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1178 ac_prev=htmldir ;;
1179 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1180 | --ht=*)
1181 htmldir=$ac_optarg ;;
1182
1183 -includedir | --includedir | --includedi | --included | --include \
1184 | --includ | --inclu | --incl | --inc)
1185 ac_prev=includedir ;;
1186 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187 | --includ=* | --inclu=* | --incl=* | --inc=*)
1188 includedir=$ac_optarg ;;
1189
1190 -infodir | --infodir | --infodi | --infod | --info | --inf)
1191 ac_prev=infodir ;;
1192 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193 infodir=$ac_optarg ;;
1194
1195 -libdir | --libdir | --libdi | --libd)
1196 ac_prev=libdir ;;
1197 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198 libdir=$ac_optarg ;;
1199
1200 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201 | --libexe | --libex | --libe)
1202 ac_prev=libexecdir ;;
1203 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204 | --libexe=* | --libex=* | --libe=*)
1205 libexecdir=$ac_optarg ;;
1206
1207 -localedir | --localedir | --localedi | --localed | --locale)
1208 ac_prev=localedir ;;
1209 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210 localedir=$ac_optarg ;;
1211
1212 -localstatedir | --localstatedir | --localstatedi | --localstated \
1213 | --localstate | --localstat | --localsta | --localst | --locals)
1214 ac_prev=localstatedir ;;
1215 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217 localstatedir=$ac_optarg ;;
1218
1219 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1220 ac_prev=mandir ;;
1221 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222 mandir=$ac_optarg ;;
1223
1224 -nfp | --nfp | --nf)
1225 # Obsolete; use --without-fp.
1226 with_fp=no ;;
1227
1228 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229 | --no-cr | --no-c | -n)
1230 no_create=yes ;;
1231
1232 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1234 no_recursion=yes ;;
1235
1236 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238 | --oldin | --oldi | --old | --ol | --o)
1239 ac_prev=oldincludedir ;;
1240 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243 oldincludedir=$ac_optarg ;;
1244
1245 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1246 ac_prev=prefix ;;
1247 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248 prefix=$ac_optarg ;;
1249
1250 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251 | --program-pre | --program-pr | --program-p)
1252 ac_prev=program_prefix ;;
1253 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255 program_prefix=$ac_optarg ;;
1256
1257 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258 | --program-suf | --program-su | --program-s)
1259 ac_prev=program_suffix ;;
1260 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262 program_suffix=$ac_optarg ;;
1263
1264 -program-transform-name | --program-transform-name \
1265 | --program-transform-nam | --program-transform-na \
1266 | --program-transform-n | --program-transform- \
1267 | --program-transform | --program-transfor \
1268 | --program-transfo | --program-transf \
1269 | --program-trans | --program-tran \
1270 | --progr-tra | --program-tr | --program-t)
1271 ac_prev=program_transform_name ;;
1272 -program-transform-name=* | --program-transform-name=* \
1273 | --program-transform-nam=* | --program-transform-na=* \
1274 | --program-transform-n=* | --program-transform-=* \
1275 | --program-transform=* | --program-transfor=* \
1276 | --program-transfo=* | --program-transf=* \
1277 | --program-trans=* | --program-tran=* \
1278 | --progr-tra=* | --program-tr=* | --program-t=*)
1279 program_transform_name=$ac_optarg ;;
1280
1281 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1282 ac_prev=pdfdir ;;
1283 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284 pdfdir=$ac_optarg ;;
1285
1286 -psdir | --psdir | --psdi | --psd | --ps)
1287 ac_prev=psdir ;;
1288 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1289 psdir=$ac_optarg ;;
1290
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1293 silent=yes ;;
1294
1295 -runstatedir | --runstatedir | --runstatedi | --runstated \
1296 | --runstate | --runstat | --runsta | --runst | --runs \
1297 | --run | --ru | --r)
1298 ac_prev=runstatedir ;;
1299 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1300 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1301 | --run=* | --ru=* | --r=*)
1302 runstatedir=$ac_optarg ;;
1303
1304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305 ac_prev=sbindir ;;
1306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307 | --sbi=* | --sb=*)
1308 sbindir=$ac_optarg ;;
1309
1310 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1312 | --sharedst | --shareds | --shared | --share | --shar \
1313 | --sha | --sh)
1314 ac_prev=sharedstatedir ;;
1315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318 | --sha=* | --sh=*)
1319 sharedstatedir=$ac_optarg ;;
1320
1321 -site | --site | --sit)
1322 ac_prev=site ;;
1323 -site=* | --site=* | --sit=*)
1324 site=$ac_optarg ;;
1325
1326 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327 ac_prev=srcdir ;;
1328 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1329 srcdir=$ac_optarg ;;
1330
1331 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1332 | --syscon | --sysco | --sysc | --sys | --sy)
1333 ac_prev=sysconfdir ;;
1334 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1335 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1336 sysconfdir=$ac_optarg ;;
1337
1338 -target | --target | --targe | --targ | --tar | --ta | --t)
1339 ac_prev=target_alias ;;
1340 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1341 target_alias=$ac_optarg ;;
1342
1343 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344 verbose=yes ;;
1345
1346 -version | --version | --versio | --versi | --vers | -V)
1347 ac_init_version=: ;;
1348
1349 -with-* | --with-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error $? "invalid package name: \`$ac_useropt'"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358 "with_$ac_useropt"
1359 "*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval with_$ac_useropt=\$ac_optarg ;;
1364
1365 -without-* | --without-*)
1366 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1367 # Reject names that are not valid shell variable names.
1368 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369 as_fn_error $? "invalid package name: \`$ac_useropt'"
1370 ac_useropt_orig=$ac_useropt
1371 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1372 case $ac_user_opts in
1373 *"
1374 "with_$ac_useropt"
1375 "*) ;;
1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377 ac_unrecognized_sep=', ';;
1378 esac
1379 eval with_$ac_useropt=no ;;
1380
1381 --x)
1382 # Obsolete; use --with-x.
1383 with_x=yes ;;
1384
1385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386 | --x-incl | --x-inc | --x-in | --x-i)
1387 ac_prev=x_includes ;;
1388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390 x_includes=$ac_optarg ;;
1391
1392 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394 ac_prev=x_libraries ;;
1395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397 x_libraries=$ac_optarg ;;
1398
1399 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1400 Try \`$0 --help' for more information"
1401 ;;
1402
1403 *=*)
1404 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1405 # Reject names that are not valid shell variable names.
1406 case $ac_envvar in #(
1407 '' | [0-9]* | *[!_$as_cr_alnum]* )
1408 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1409 esac
1410 eval $ac_envvar=\$ac_optarg
1411 export $ac_envvar ;;
1412
1413 *)
1414 # FIXME: should be removed in autoconf 3.0.
1415 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1416 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1418 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1419 ;;
1420
1421 esac
1422 done
1423
1424 if test -n "$ac_prev"; then
1425 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426 as_fn_error $? "missing argument to $ac_option"
1427 fi
1428
1429 if test -n "$ac_unrecognized_opts"; then
1430 case $enable_option_checking in
1431 no) ;;
1432 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1433 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434 esac
1435 fi
1436
1437 # Check all directory arguments for consistency.
1438 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1439 datadir sysconfdir sharedstatedir localstatedir includedir \
1440 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1441 libdir localedir mandir runstatedir
1442 do
1443 eval ac_val=\$$ac_var
1444 # Remove trailing slashes.
1445 case $ac_val in
1446 */ )
1447 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1448 eval $ac_var=\$ac_val;;
1449 esac
1450 # Be sure to have absolute directory names.
1451 case $ac_val in
1452 [\\/$]* | ?:[\\/]* ) continue;;
1453 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454 esac
1455 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1456 done
1457
1458 # There might be people who depend on the old broken behavior: `$host'
1459 # used to hold the argument of --host etc.
1460 # FIXME: To remove some day.
1461 build=$build_alias
1462 host=$host_alias
1463 target=$target_alias
1464
1465 # FIXME: To remove some day.
1466 if test "x$host_alias" != x; then
1467 if test "x$build_alias" = x; then
1468 cross_compiling=maybe
1469 elif test "x$build_alias" != "x$host_alias"; then
1470 cross_compiling=yes
1471 fi
1472 fi
1473
1474 ac_tool_prefix=
1475 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476
1477 test "$silent" = yes && exec 6>/dev/null
1478
1479
1480 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1481 ac_ls_di=`ls -di .` &&
1482 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1483 as_fn_error $? "working directory cannot be determined"
1484 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1485 as_fn_error $? "pwd does not report name of working directory"
1486
1487
1488 # Find the source files, if location was not specified.
1489 if test -z "$srcdir"; then
1490 ac_srcdir_defaulted=yes
1491 # Try the directory containing this script, then the parent directory.
1492 ac_confdir=`$as_dirname -- "$as_myself" ||
1493 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1494 X"$as_myself" : 'X\(//\)[^/]' \| \
1495 X"$as_myself" : 'X\(//\)$' \| \
1496 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1497 printf "%s\n" X"$as_myself" |
1498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1499 s//\1/
1500 q
1501 }
1502 /^X\(\/\/\)[^/].*/{
1503 s//\1/
1504 q
1505 }
1506 /^X\(\/\/\)$/{
1507 s//\1/
1508 q
1509 }
1510 /^X\(\/\).*/{
1511 s//\1/
1512 q
1513 }
1514 s/.*/./; q'`
1515 srcdir=$ac_confdir
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517 srcdir=..
1518 fi
1519 else
1520 ac_srcdir_defaulted=no
1521 fi
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1523 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1524 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1525 fi
1526 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1527 ac_abs_confdir=`(
1528 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1529 pwd)`
1530 # When building in place, set srcdir=.
1531 if test "$ac_abs_confdir" = "$ac_pwd"; then
1532 srcdir=.
1533 fi
1534 # Remove unnecessary trailing slashes from srcdir.
1535 # Double slashes in file names in object file debugging info
1536 # mess up M-x gdb in Emacs.
1537 case $srcdir in
1538 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1539 esac
1540 for ac_var in $ac_precious_vars; do
1541 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1542 eval ac_env_${ac_var}_value=\$${ac_var}
1543 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1544 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1545 done
1546
1547 #
1548 # Report the --help message.
1549 #
1550 if test "$ac_init_help" = "long"; then
1551 # Omit some internal or obsolete options to make the list less imposing.
1552 # This message is too long to be a string in the A/UX 3.1 sh.
1553 cat <<_ACEOF
1554 \`configure' configures libX11 1.8.3 to adapt to many kinds of systems.
1555
1556 Usage: $0 [OPTION]... [VAR=VALUE]...
1557
1558 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1559 VAR=VALUE. See below for descriptions of some of the useful variables.
1560
1561 Defaults for the options are specified in brackets.
1562
1563 Configuration:
1564 -h, --help display this help and exit
1565 --help=short display options specific to this package
1566 --help=recursive display the short help of all the included packages
1567 -V, --version display version information and exit
1568 -q, --quiet, --silent do not print \`checking ...' messages
1569 --cache-file=FILE cache test results in FILE [disabled]
1570 -C, --config-cache alias for \`--cache-file=config.cache'
1571 -n, --no-create do not create output files
1572 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1573
1574 Installation directories:
1575 --prefix=PREFIX install architecture-independent files in PREFIX
1576 [$ac_default_prefix]
1577 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1578 [PREFIX]
1579
1580 By default, \`make install' will install all the files in
1581 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1582 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1583 for instance \`--prefix=\$HOME'.
1584
1585 For better control, use the options below.
1586
1587 Fine tuning of the installation directories:
1588 --bindir=DIR user executables [EPREFIX/bin]
1589 --sbindir=DIR system admin executables [EPREFIX/sbin]
1590 --libexecdir=DIR program executables [EPREFIX/libexec]
1591 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1592 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1593 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1594 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1608 _ACEOF
1609
1610 cat <<\_ACEOF
1611
1612 Program names:
1613 --program-prefix=PREFIX prepend PREFIX to installed program names
1614 --program-suffix=SUFFIX append SUFFIX to installed program names
1615 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1616
1617 System types:
1618 --build=BUILD configure for building on BUILD [guessed]
1619 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1620 _ACEOF
1621 fi
1622
1623 if test -n "$ac_init_help"; then
1624 case $ac_init_help in
1625 short | recursive ) echo "Configuration of libX11 1.8.3:";;
1626 esac
1627 cat <<\_ACEOF
1628
1629 Optional Features:
1630 --disable-option-checking ignore unrecognized --enable/--with options
1631 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1632 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1633 --enable-dependency-tracking
1634 do not reject slow dependency extractors
1635 --disable-dependency-tracking
1636 speeds up one-time build
1637 --enable-silent-rules less verbose build output (undo: "make V=1")
1638 --disable-silent-rules verbose build output (undo: "make V=0")
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=yes]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --disable-largefile omit support for large files
1645 --disable-selective-werror
1646 Turn off selective compiler errors. (default:
1647 enabled)
1648 --enable-strict-compilation
1649 Enable all warnings from compiler and make them
1650 errors (default: disabled)
1651 --enable-specs Enable building the specs (default: yes)
1652 --enable-unix-transport Enable UNIX domain socket transport
1653 --enable-tcp-transport Enable TCP socket transport
1654 --enable-ipv6 Enable IPv6 support
1655 --enable-local-transport
1656 Enable os-specific local transport
1657 --enable-loadable-i18n Controls loadable i18n module support
1658 --disable-loadable-xcursor
1659 Controls loadable xcursor library support
1660 --disable-thread-safety-constructor
1661 Controls mandatory thread safety support
1662 --disable-xthreads Disable Xlib support for Multithreading
1663 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL*
1664 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL*
1665 --enable-xlocaledir Enable XLOCALEDIR environment variable support
1666 --disable-xf86bigfont Disable XF86BigFont extension support
1667 --disable-xkb Disable XKB support *EXPERIMENTAL*
1668 --disable-composecache Disable compose table cache support
1669 --enable-lint-library Create lint library (default: disabled)
1670 --enable-malloc0returnsnull
1671 malloc(0) returns NULL (default: auto)
1672
1673 Optional Packages:
1674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1676 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1677 both]
1678 --with-aix-soname=aix|svr4|both
1679 shared library versioning (aka "SONAME") variant to
1680 provide on AIX, [default=aix].
1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1682 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1683 compiler's sysroot if not specified).
1684 --with-xmlto Use xmlto to regenerate documentation (default:
1685 auto)
1686 --with-fop Use fop to regenerate documentation (default: no)
1687 --with-xsltproc Use xsltproc for the transformation of XML documents
1688 (default: auto)
1689 --with-perl Use perl for extracting information from files
1690 (default: auto)
1691 --with-launchd Build with support for Apple's launchd (default:
1692 auto)
1693 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1694 include dir)
1695 --with-lint Use a lint-style source code checker (default:
1696 disabled)
1697 --with-locale-lib-dir=DIR
1698 Directory where locale libraries files are installed
1699 (default: $libdir/X11/locale)
1700
1701 Some influential environment variables:
1702 CC C compiler command
1703 CFLAGS C compiler flags
1704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1705 nonstandard directory <lib dir>
1706 LIBS libraries to pass to the linker, e.g. -l<library>
1707 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1708 you have headers in a nonstandard directory <include dir>
1709 LT_SYS_LIBRARY_PATH
1710 User-defined run-time library search path.
1711 PKG_CONFIG path to pkg-config utility
1712 PKG_CONFIG_PATH
1713 directories to add to pkg-config's search path
1714 PKG_CONFIG_LIBDIR
1715 path overriding pkg-config's built-in search path
1716 XMLTO Path to xmlto command
1717 FOP Path to fop command
1718 XSLTPROC Path to xsltproc command
1719 CPP C preprocessor
1720 PERL Path to perl command
1721 BIGFONT_CFLAGS
1722 C compiler flags for BIGFONT, overriding pkg-config
1723 BIGFONT_LIBS
1724 linker flags for BIGFONT, overriding pkg-config
1725 LINT Path to a lint-style command
1726 LINT_FLAGS Flags for the lint-style command
1727 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1728 X11_LIBS linker flags for X11, overriding pkg-config
1729
1730 Use these variables to override the choices made by `configure' or to help
1731 it to find libraries and programs with nonstandard names/locations.
1732
1733 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>.
1734 _ACEOF
1735 ac_status=$?
1736 fi
1737
1738 if test "$ac_init_help" = "recursive"; then
1739 # If there are subdirs, report their specific --help.
1740 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1741 test -d "$ac_dir" ||
1742 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1743 continue
1744 ac_builddir=.
1745
1746 case "$ac_dir" in
1747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 *)
1749 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1750 # A ".." for each directory in $ac_dir_suffix.
1751 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1752 case $ac_top_builddir_sub in
1753 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1755 esac ;;
1756 esac
1757 ac_abs_top_builddir=$ac_pwd
1758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1759 # for backward compatibility:
1760 ac_top_builddir=$ac_top_build_prefix
1761
1762 case $srcdir in
1763 .) # We are building in place.
1764 ac_srcdir=.
1765 ac_top_srcdir=$ac_top_builddir_sub
1766 ac_abs_top_srcdir=$ac_pwd ;;
1767 [\\/]* | ?:[\\/]* ) # Absolute name.
1768 ac_srcdir=$srcdir$ac_dir_suffix;
1769 ac_top_srcdir=$srcdir
1770 ac_abs_top_srcdir=$srcdir ;;
1771 *) # Relative name.
1772 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1773 ac_top_srcdir=$ac_top_build_prefix$srcdir
1774 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1775 esac
1776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1777
1778 cd "$ac_dir" || { ac_status=$?; continue; }
1779 # Check for configure.gnu first; this name is used for a wrapper for
1780 # Metaconfig's "Configure" on case-insensitive file systems.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1787 else
1788 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789 fi || ac_status=$?
1790 cd "$ac_pwd" || { ac_status=$?; break; }
1791 done
1792 fi
1793
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1796 cat <<\_ACEOF
1797 libX11 configure 1.8.3
1798 generated by GNU Autoconf 2.71
1799
1800 Copyright (C) 2021 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1803 _ACEOF
1804 exit
1805 fi
1806
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1810
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext conftest.beam
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 printf "%s\n" "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext
1837 then :
1838 ac_retval=0
1839 else $as_nop
1840 printf "%s\n" "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_compile
1849
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 printf %s "checking for $2... " >&6; }
1859 if eval test \${$3+y}
1860 then :
1861 printf %s "(cached) " >&6
1862 else $as_nop
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"
1869 then :
1870 eval "$3=yes"
1871 else $as_nop
1872 eval "$3=no"
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 printf "%s\n" "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880
1881 } # ac_fn_c_check_header_compile
1882
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_link ()
1887 {
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 printf "%s\n" "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1903 fi
1904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 test -x conftest$ac_exeext
1911 }
1912 then :
1913 ac_retval=0
1914 else $as_nop
1915 printf "%s\n" "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919 fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_link
1929
1930 # ac_fn_c_check_func LINENO FUNC VAR
1931 # ----------------------------------
1932 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1933 ac_fn_c_check_func ()
1934 {
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 printf %s "checking for $2... " >&6; }
1938 if eval test \${$3+y}
1939 then :
1940 printf %s "(cached) " >&6
1941 else $as_nop
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1946 #define $2 innocuous_$2
1947
1948 /* System header to define __stub macros and hopefully few prototypes,
1949 which can conflict with char $2 (); below. */
1950
1951 #include <limits.h>
1952 #undef $2
1953
1954 /* Override any GCC internal prototype to avoid an error.
1955 Use char because int might match the return type of a GCC
1956 builtin and then its argument prototype would still apply. */
1957 #ifdef __cplusplus
1958 extern "C"
1959 #endif
1960 char $2 ();
1961 /* The GNU C library defines this for functions which it implements
1962 to always fail with ENOSYS. Some functions are actually named
1963 something starting with __ and the normal name is an alias. */
1964 #if defined __stub_$2 || defined __stub___$2
1965 choke me
1966 #endif
1967
1968 int
1969 main (void)
1970 {
1971 return $2 ();
1972 ;
1973 return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_link "$LINENO"
1977 then :
1978 eval "$3=yes"
1979 else $as_nop
1980 eval "$3=no"
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1983 conftest$ac_exeext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 printf "%s\n" "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990 } # ac_fn_c_check_func
1991
1992 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1993 # ------------------------------------------------------------------
1994 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1996 ac_fn_check_decl ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 as_decl_name=`echo $2|sed 's/ *(.*//'`
2000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2001 printf %s "checking whether $as_decl_name is declared... " >&6; }
2002 if eval test \${$3+y}
2003 then :
2004 printf %s "(cached) " >&6
2005 else $as_nop
2006 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2007 eval ac_save_FLAGS=\$$6
2008 as_fn_append $6 " $5"
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 int
2013 main (void)
2014 {
2015 #ifndef $as_decl_name
2016 #ifdef __cplusplus
2017 (void) $as_decl_use;
2018 #else
2019 (void) $as_decl_name;
2020 #endif
2021 #endif
2022
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"
2028 then :
2029 eval "$3=yes"
2030 else $as_nop
2031 eval "$3=no"
2032 fi
2033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2034 eval $6=\$ac_save_FLAGS
2035
2036 fi
2037 eval ac_res=\$$3
2038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 printf "%s\n" "$ac_res" >&6; }
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042 } # ac_fn_check_decl
2043
2044 # ac_fn_c_try_cpp LINENO
2045 # ----------------------
2046 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2047 ac_fn_c_try_cpp ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 if { { ac_try="$ac_cpp conftest.$ac_ext"
2051 case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2054 esac
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 printf "%s\n" "$ac_try_echo"; } >&5
2057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2058 ac_status=$?
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2063 fi
2064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } > conftest.i && {
2066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2067 test ! -s conftest.err
2068 }
2069 then :
2070 ac_retval=0
2071 else $as_nop
2072 printf "%s\n" "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075 ac_retval=1
2076 fi
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_try_cpp
2081
2082 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2083 # ----------------------------------------------------
2084 # Tries to find if the field MEMBER exists in type AGGR, after including
2085 # INCLUDES, setting cache variable VAR accordingly.
2086 ac_fn_c_check_member ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2090 printf %s "checking for $2.$3... " >&6; }
2091 if eval test \${$4+y}
2092 then :
2093 printf %s "(cached) " >&6
2094 else $as_nop
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $5
2098 int
2099 main (void)
2100 {
2101 static $2 ac_aggr;
2102 if (ac_aggr.$3)
2103 return 0;
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"
2109 then :
2110 eval "$4=yes"
2111 else $as_nop
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $5
2115 int
2116 main (void)
2117 {
2118 static $2 ac_aggr;
2119 if (sizeof ac_aggr.$3)
2120 return 0;
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"
2126 then :
2127 eval "$4=yes"
2128 else $as_nop
2129 eval "$4=no"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 fi
2135 eval ac_res=\$$4
2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 printf "%s\n" "$ac_res" >&6; }
2138 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139
2140 } # ac_fn_c_check_member
2141
2142 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2143 # -------------------------------------------
2144 # Tests whether TYPE exists after having included INCLUDES, setting cache
2145 # variable VAR accordingly.
2146 ac_fn_c_check_type ()
2147 {
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 printf %s "checking for $2... " >&6; }
2151 if eval test \${$3+y}
2152 then :
2153 printf %s "(cached) " >&6
2154 else $as_nop
2155 eval "$3=no"
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $4
2159 int
2160 main (void)
2161 {
2162 if (sizeof ($2))
2163 return 0;
2164 ;
2165 return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"
2169 then :
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 int
2174 main (void)
2175 {
2176 if (sizeof (($2)))
2177 return 0;
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"
2183 then :
2184
2185 else $as_nop
2186 eval "$3=yes"
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 fi
2192 eval ac_res=\$$3
2193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 printf "%s\n" "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197 } # ac_fn_c_check_type
2198
2199 # ac_fn_c_try_run LINENO
2200 # ----------------------
2201 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2202 # executables *can* be run.
2203 ac_fn_c_try_run ()
2204 {
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { { ac_try="$ac_link"
2207 case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 printf "%s\n" "$ac_try_echo"; } >&5
2213 (eval "$ac_link") 2>&5
2214 ac_status=$?
2215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2217 { { case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 printf "%s\n" "$ac_try_echo"; } >&5
2223 (eval "$ac_try") 2>&5
2224 ac_status=$?
2225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; }; }
2227 then :
2228 ac_retval=0
2229 else $as_nop
2230 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2231 printf "%s\n" "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2233
2234 ac_retval=$ac_status
2235 fi
2236 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2239
2240 } # ac_fn_c_try_run
2241 ac_configure_args_raw=
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 *\'*)
2246 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2247 esac
2248 as_fn_append ac_configure_args_raw " '$ac_arg'"
2249 done
2250
2251 case $ac_configure_args_raw in
2252 *$as_nl*)
2253 ac_safe_unquote= ;;
2254 *)
2255 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2256 ac_unsafe_a="$ac_unsafe_z#~"
2257 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2258 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2259 esac
2260
2261 cat >config.log <<_ACEOF
2262 This file contains any messages produced by compilers while
2263 running configure, to aid debugging if configure makes a mistake.
2264
2265 It was created by libX11 $as_me 1.8.3, which was
2266 generated by GNU Autoconf 2.71. Invocation command line was
2267
2268 $ $0$ac_configure_args_raw
2269
2270 _ACEOF
2271 exec 5>>config.log
2272 {
2273 cat <<_ASUNAME
2274 ## --------- ##
2275 ## Platform. ##
2276 ## --------- ##
2277
2278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2283
2284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2285 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2286
2287 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2288 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2290 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2291 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2292 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2293 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2294
2295 _ASUNAME
2296
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300 IFS=$as_save_IFS
2301 case $as_dir in #(((
2302 '') as_dir=./ ;;
2303 */) ;;
2304 *) as_dir=$as_dir/ ;;
2305 esac
2306 printf "%s\n" "PATH: $as_dir"
2307 done
2308 IFS=$as_save_IFS
2309
2310 } >&5
2311
2312 cat >&5 <<_ACEOF
2313
2314
2315 ## ----------- ##
2316 ## Core tests. ##
2317 ## ----------- ##
2318
2319 _ACEOF
2320
2321
2322 # Keep a trace of the command line.
2323 # Strip out --no-create and --no-recursion so they do not pile up.
2324 # Strip out --silent because we don't want to record it for future runs.
2325 # Also quote any args containing shell meta-characters.
2326 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_configure_args=
2328 ac_configure_args0=
2329 ac_configure_args1=
2330 ac_must_keep_next=false
2331 for ac_pass in 1 2
2332 do
2333 for ac_arg
2334 do
2335 case $ac_arg in
2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338 | -silent | --silent | --silen | --sile | --sil)
2339 continue ;;
2340 *\'*)
2341 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2342 esac
2343 case $ac_pass in
2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2345 2)
2346 as_fn_append ac_configure_args1 " '$ac_arg'"
2347 if test $ac_must_keep_next = true; then
2348 ac_must_keep_next=false # Got value, back to normal.
2349 else
2350 case $ac_arg in
2351 *=* | --config-cache | -C | -disable-* | --disable-* \
2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354 | -with-* | --with-* | -without-* | --without-* | --x)
2355 case "$ac_configure_args0 " in
2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2357 esac
2358 ;;
2359 -* ) ac_must_keep_next=true ;;
2360 esac
2361 fi
2362 as_fn_append ac_configure_args " '$ac_arg'"
2363 ;;
2364 esac
2365 done
2366 done
2367 { ac_configure_args0=; unset ac_configure_args0;}
2368 { ac_configure_args1=; unset ac_configure_args1;}
2369
2370 # When interrupted or exit'd, cleanup temporary files, and complete
2371 # config.log. We remove comments because anyway the quotes in there
2372 # would cause problems or look ugly.
2373 # WARNING: Use '\'' to represent an apostrophe within the trap.
2374 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375 trap 'exit_status=$?
2376 # Sanitize IFS.
2377 IFS=" "" $as_nl"
2378 # Save into config.log some information that might help in debugging.
2379 {
2380 echo
2381
2382 printf "%s\n" "## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##"
2385 echo
2386 # The following way of writing the cache mishandles newlines in values,
2387 (
2388 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389 eval ac_val=\$$ac_var
2390 case $ac_val in #(
2391 *${as_nl}*)
2392 case $ac_var in #(
2393 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395 esac
2396 case $ac_var in #(
2397 _ | IFS | as_nl) ;; #(
2398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399 *) { eval $ac_var=; unset $ac_var;} ;;
2400 esac ;;
2401 esac
2402 done
2403 (set) 2>&1 |
2404 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405 *${as_nl}ac_space=\ *)
2406 sed -n \
2407 "s/'\''/'\''\\\\'\'''\''/g;
2408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409 ;; #(
2410 *)
2411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412 ;;
2413 esac |
2414 sort
2415 )
2416 echo
2417
2418 printf "%s\n" "## ----------------- ##
2419 ## Output variables. ##
2420 ## ----------------- ##"
2421 echo
2422 for ac_var in $ac_subst_vars
2423 do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 printf "%s\n" "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2431
2432 if test -n "$ac_subst_files"; then
2433 printf "%s\n" "## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##"
2436 echo
2437 for ac_var in $ac_subst_files
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 printf "%s\n" "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446 fi
2447
2448 if test -s confdefs.h; then
2449 printf "%s\n" "## ----------- ##
2450 ## confdefs.h. ##
2451 ## ----------- ##"
2452 echo
2453 cat confdefs.h
2454 echo
2455 fi
2456 test "$ac_signal" != 0 &&
2457 printf "%s\n" "$as_me: caught signal $ac_signal"
2458 printf "%s\n" "$as_me: exit $exit_status"
2459 } >&5
2460 rm -f core *.core core.conftest.* &&
2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462 exit $exit_status
2463 ' 0
2464 for ac_signal in 1 2 13 15; do
2465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2466 done
2467 ac_signal=0
2468
2469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2470 rm -f -r conftest* confdefs.h
2471
2472 printf "%s\n" "/* confdefs.h */" > confdefs.h
2473
2474 # Predefined preprocessor variables.
2475
2476 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2477
2478 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2479
2480 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2481
2482 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2483
2484 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2485
2486 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2487
2488
2489 # Let the site file select an alternate cache file if it wants to.
2490 # Prefer an explicitly selected file to automatically selected ones.
2491 if test -n "$CONFIG_SITE"; then
2492 ac_site_files="$CONFIG_SITE"
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2495 else
2496 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2497 fi
2498
2499 for ac_site_file in $ac_site_files
2500 do
2501 case $ac_site_file in #(
2502 */*) :
2503 ;; #(
2504 *) :
2505 ac_site_file=./$ac_site_file ;;
2506 esac
2507 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2511 . "$ac_site_file" \
2512 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error $? "failed to load site script $ac_site_file
2515 See \`config.log' for more details" "$LINENO" 5; }
2516 fi
2517 done
2518
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special files
2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2525 case $cache_file in
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
2528 esac
2529 fi
2530 else
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2533 >$cache_file
2534 fi
2535
2536 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2537 # Test code for whether the C compiler supports C89 (global declarations)
2538 ac_c_conftest_c89_globals='
2539 /* Does the compiler advertise C89 conformance?
2540 Do not test the value of __STDC__, because some compilers set it to 0
2541 while being otherwise adequately conformant. */
2542 #if !defined __STDC__
2543 # error "Compiler does not advertise C89 conformance"
2544 #endif
2545
2546 #include <stddef.h>
2547 #include <stdarg.h>
2548 struct stat;
2549 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2550 struct buf { int x; };
2551 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2552 static char *e (p, i)
2553 char **p;
2554 int i;
2555 {
2556 return p[i];
2557 }
2558 static char *f (char * (*g) (char **, int), char **p, ...)
2559 {
2560 char *s;
2561 va_list v;
2562 va_start (v,p);
2563 s = g (p, va_arg (v,int));
2564 va_end (v);
2565 return s;
2566 }
2567
2568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2569 function prototypes and stuff, but not \xHH hex character constants.
2570 These do not provoke an error unfortunately, instead are silently treated
2571 as an "x". The following induces an error, until -std is added to get
2572 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2573 array size at least. It is necessary to write \x00 == 0 to get something
2574 that is true only with -std. */
2575 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2576
2577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2578 inside strings and character constants. */
2579 #define FOO(x) '\''x'\''
2580 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2581
2582 int test (int i, double x);
2583 struct s1 {int (*f) (int a);};
2584 struct s2 {int (*f) (double a);};
2585 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2586 int, int);'
2587
2588 # Test code for whether the C compiler supports C89 (body of main).
2589 ac_c_conftest_c89_main='
2590 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2591 '
2592
2593 # Test code for whether the C compiler supports C99 (global declarations)
2594 ac_c_conftest_c99_globals='
2595 // Does the compiler advertise C99 conformance?
2596 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2597 # error "Compiler does not advertise C99 conformance"
2598 #endif
2599
2600 #include <stdbool.h>
2601 extern int puts (const char *);
2602 extern int printf (const char *, ...);
2603 extern int dprintf (int, const char *, ...);
2604 extern void *malloc (size_t);
2605
2606 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2607 // dprintf is used instead of fprintf to avoid needing to declare
2608 // FILE and stderr.
2609 #define debug(...) dprintf (2, __VA_ARGS__)
2610 #define showlist(...) puts (#__VA_ARGS__)
2611 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2612 static void
2613 test_varargs_macros (void)
2614 {
2615 int x = 1234;
2616 int y = 5678;
2617 debug ("Flag");
2618 debug ("X = %d\n", x);
2619 showlist (The first, second, and third items.);
2620 report (x>y, "x is %d but y is %d", x, y);
2621 }
2622
2623 // Check long long types.
2624 #define BIG64 18446744073709551615ull
2625 #define BIG32 4294967295ul
2626 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2627 #if !BIG_OK
2628 #error "your preprocessor is broken"
2629 #endif
2630 #if BIG_OK
2631 #else
2632 #error "your preprocessor is broken"
2633 #endif
2634 static long long int bignum = -9223372036854775807LL;
2635 static unsigned long long int ubignum = BIG64;
2636
2637 struct incomplete_array
2638 {
2639 int datasize;
2640 double data[];
2641 };
2642
2643 struct named_init {
2644 int number;
2645 const wchar_t *name;
2646 double average;
2647 };
2648
2649 typedef const char *ccp;
2650
2651 static inline int
2652 test_restrict (ccp restrict text)
2653 {
2654 // See if C++-style comments work.
2655 // Iterate through items via the restricted pointer.
2656 // Also check for declarations in for loops.
2657 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2658 continue;
2659 return 0;
2660 }
2661
2662 // Check varargs and va_copy.
2663 static bool
2664 test_varargs (const char *format, ...)
2665 {
2666 va_list args;
2667 va_start (args, format);
2668 va_list args_copy;
2669 va_copy (args_copy, args);
2670
2671 const char *str = "";
2672 int number = 0;
2673 float fnumber = 0;
2674
2675 while (*format)
2676 {
2677 switch (*format++)
2678 {
2679 case '\''s'\'': // string
2680 str = va_arg (args_copy, const char *);
2681 break;
2682 case '\''d'\'': // int
2683 number = va_arg (args_copy, int);
2684 break;
2685 case '\''f'\'': // float
2686 fnumber = va_arg (args_copy, double);
2687 break;
2688 default:
2689 break;
2690 }
2691 }
2692 va_end (args_copy);
2693 va_end (args);
2694
2695 return *str && number && fnumber;
2696 }
2697 '
2698
2699 # Test code for whether the C compiler supports C99 (body of main).
2700 ac_c_conftest_c99_main='
2701 // Check bool.
2702 _Bool success = false;
2703 success |= (argc != 0);
2704
2705 // Check restrict.
2706 if (test_restrict ("String literal") == 0)
2707 success = true;
2708 char *restrict newvar = "Another string";
2709
2710 // Check varargs.
2711 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2712 test_varargs_macros ();
2713
2714 // Check flexible array members.
2715 struct incomplete_array *ia =
2716 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2717 ia->datasize = 10;
2718 for (int i = 0; i < ia->datasize; ++i)
2719 ia->data[i] = i * 1.234;
2720
2721 // Check named initializers.
2722 struct named_init ni = {
2723 .number = 34,
2724 .name = L"Test wide string",
2725 .average = 543.34343,
2726 };
2727
2728 ni.number = 58;
2729
2730 int dynamic_array[ni.number];
2731 dynamic_array[0] = argv[0][0];
2732 dynamic_array[ni.number - 1] = 543;
2733
2734 // work around unused variable warnings
2735 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2736 || dynamic_array[ni.number - 1] != 543);
2737 '
2738
2739 # Test code for whether the C compiler supports C11 (global declarations)
2740 ac_c_conftest_c11_globals='
2741 // Does the compiler advertise C11 conformance?
2742 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2743 # error "Compiler does not advertise C11 conformance"
2744 #endif
2745
2746 // Check _Alignas.
2747 char _Alignas (double) aligned_as_double;
2748 char _Alignas (0) no_special_alignment;
2749 extern char aligned_as_int;
2750 char _Alignas (0) _Alignas (int) aligned_as_int;
2751
2752 // Check _Alignof.
2753 enum
2754 {
2755 int_alignment = _Alignof (int),
2756 int_array_alignment = _Alignof (int[100]),
2757 char_alignment = _Alignof (char)
2758 };
2759 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2760
2761 // Check _Noreturn.
2762 int _Noreturn does_not_return (void) { for (;;) continue; }
2763
2764 // Check _Static_assert.
2765 struct test_static_assert
2766 {
2767 int x;
2768 _Static_assert (sizeof (int) <= sizeof (long int),
2769 "_Static_assert does not work in struct");
2770 long int y;
2771 };
2772
2773 // Check UTF-8 literals.
2774 #define u8 syntax error!
2775 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2776
2777 // Check duplicate typedefs.
2778 typedef long *long_ptr;
2779 typedef long int *long_ptr;
2780 typedef long_ptr long_ptr;
2781
2782 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2783 struct anonymous
2784 {
2785 union {
2786 struct { int i; int j; };
2787 struct { int k; long int l; } w;
2788 };
2789 int m;
2790 } v1;
2791 '
2792
2793 # Test code for whether the C compiler supports C11 (body of main).
2794 ac_c_conftest_c11_main='
2795 _Static_assert ((offsetof (struct anonymous, i)
2796 == offsetof (struct anonymous, w.k)),
2797 "Anonymous union alignment botch");
2798 v1.i = 2;
2799 v1.w.k = 5;
2800 ok |= v1.i != 5;
2801 '
2802
2803 # Test code for whether the C compiler supports C11 (complete).
2804 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2805 ${ac_c_conftest_c99_globals}
2806 ${ac_c_conftest_c11_globals}
2807
2808 int
2809 main (int argc, char **argv)
2810 {
2811 int ok = 0;
2812 ${ac_c_conftest_c89_main}
2813 ${ac_c_conftest_c99_main}
2814 ${ac_c_conftest_c11_main}
2815 return ok;
2816 }
2817 "
2818
2819 # Test code for whether the C compiler supports C99 (complete).
2820 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2821 ${ac_c_conftest_c99_globals}
2822
2823 int
2824 main (int argc, char **argv)
2825 {
2826 int ok = 0;
2827 ${ac_c_conftest_c89_main}
2828 ${ac_c_conftest_c99_main}
2829 return ok;
2830 }
2831 "
2832
2833 # Test code for whether the C compiler supports C89 (complete).
2834 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2835
2836 int
2837 main (int argc, char **argv)
2838 {
2839 int ok = 0;
2840 ${ac_c_conftest_c89_main}
2841 return ok;
2842 }
2843 "
2844
2845 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2846 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2847 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2848 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2849 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2850 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2851 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2852 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2853 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2854 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2855 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2856 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2857
2858 # Auxiliary files required by this configure script.
2859 ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2860
2861 # Locations in which to look for auxiliary files.
2862 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2863
2864 # Search for a directory containing all of the required auxiliary files,
2865 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2866 # If we don't find one directory that contains all the files we need,
2867 # we report the set of missing files from the *first* directory in
2868 # $ac_aux_dir_candidates and give up.
2869 ac_missing_aux_files=""
2870 ac_first_candidate=:
2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 as_found=false
2874 for as_dir in $ac_aux_dir_candidates
2875 do
2876 IFS=$as_save_IFS
2877 case $as_dir in #(((
2878 '') as_dir=./ ;;
2879 */) ;;
2880 *) as_dir=$as_dir/ ;;
2881 esac
2882 as_found=:
2883
2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2885 ac_aux_dir_found=yes
2886 ac_install_sh=
2887 for ac_aux in $ac_aux_files
2888 do
2889 # As a special case, if "install-sh" is required, that requirement
2890 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2891 # and $ac_install_sh is set appropriately for whichever one is found.
2892 if test x"$ac_aux" = x"install-sh"
2893 then
2894 if test -f "${as_dir}install-sh"; then
2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2896 ac_install_sh="${as_dir}install-sh -c"
2897 elif test -f "${as_dir}install.sh"; then
2898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2899 ac_install_sh="${as_dir}install.sh -c"
2900 elif test -f "${as_dir}shtool"; then
2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2902 ac_install_sh="${as_dir}shtool install -c"
2903 else
2904 ac_aux_dir_found=no
2905 if $ac_first_candidate; then
2906 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2907 else
2908 break
2909 fi
2910 fi
2911 else
2912 if test -f "${as_dir}${ac_aux}"; then
2913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2914 else
2915 ac_aux_dir_found=no
2916 if $ac_first_candidate; then
2917 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2918 else
2919 break
2920 fi
2921 fi
2922 fi
2923 done
2924 if test "$ac_aux_dir_found" = yes; then
2925 ac_aux_dir="$as_dir"
2926 break
2927 fi
2928 ac_first_candidate=false
2929
2930 as_found=false
2931 done
2932 IFS=$as_save_IFS
2933 if $as_found
2934 then :
2935
2936 else $as_nop
2937 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2938 fi
2939
2940
2941 # These three variables are undocumented and unsupported,
2942 # and are intended to be withdrawn in a future Autoconf release.
2943 # They can cause serious problems if a builder's source tree is in a directory
2944 # whose full name contains unusual characters.
2945 if test -f "${ac_aux_dir}config.guess"; then
2946 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2947 fi
2948 if test -f "${ac_aux_dir}config.sub"; then
2949 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2950 fi
2951 if test -f "$ac_aux_dir/configure"; then
2952 ac_configure="$SHELL ${ac_aux_dir}configure"
2953 fi
2954
2955 # Check that the precious variables saved in the cache have kept the same
2956 # value.
2957 ac_cache_corrupted=false
2958 for ac_var in $ac_precious_vars; do
2959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2960 eval ac_new_set=\$ac_env_${ac_var}_set
2961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2962 eval ac_new_val=\$ac_env_${ac_var}_value
2963 case $ac_old_set,$ac_new_set in
2964 set,)
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2966 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2967 ac_cache_corrupted=: ;;
2968 ,set)
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2970 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2971 ac_cache_corrupted=: ;;
2972 ,);;
2973 *)
2974 if test "x$ac_old_val" != "x$ac_new_val"; then
2975 # differences in whitespace do not lead to failure.
2976 ac_old_val_w=`echo x $ac_old_val`
2977 ac_new_val_w=`echo x $ac_new_val`
2978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2980 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2981 ac_cache_corrupted=:
2982 else
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2984 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2985 eval $ac_var=\$ac_old_val
2986 fi
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2988 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2990 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2991 fi;;
2992 esac
2993 # Pass precious variables to config.status.
2994 if test "$ac_new_set" = set; then
2995 case $ac_new_val in
2996 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2997 *) ac_arg=$ac_var=$ac_new_val ;;
2998 esac
2999 case " $ac_configure_args " in
3000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3001 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3002 esac
3003 fi
3004 done
3005 if $ac_cache_corrupted; then
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3009 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3010 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3011 and start over" "$LINENO" 5
3012 fi
3013 ## -------------------- ##
3014 ## Main body of script. ##
3015 ## -------------------- ##
3016
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
3023
3024
3025 ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
3026
3027
3028
3029
3030
3031 # Make sure we can run config.sub.
3032 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3033 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3034
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3036 printf %s "checking build system type... " >&6; }
3037 if test ${ac_cv_build+y}
3038 then :
3039 printf %s "(cached) " >&6
3040 else $as_nop
3041 ac_build_alias=$build_alias
3042 test "x$ac_build_alias" = x &&
3043 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3044 test "x$ac_build_alias" = x &&
3045 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3046 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3047 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3048
3049 fi
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3051 printf "%s\n" "$ac_cv_build" >&6; }
3052 case $ac_cv_build in
3053 *-*-*) ;;
3054 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3055 esac
3056 build=$ac_cv_build
3057 ac_save_IFS=$IFS; IFS='-'
3058 set x $ac_cv_build
3059 shift
3060 build_cpu=$1
3061 build_vendor=$2
3062 shift; shift
3063 # Remember, the first character of IFS is used to create $*,
3064 # except with old shells:
3065 build_os=$*
3066 IFS=$ac_save_IFS
3067 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3068
3069
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3071 printf %s "checking host system type... " >&6; }
3072 if test ${ac_cv_host+y}
3073 then :
3074 printf %s "(cached) " >&6
3075 else $as_nop
3076 if test "x$host_alias" = x; then
3077 ac_cv_host=$ac_cv_build
3078 else
3079 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3080 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3081 fi
3082
3083 fi
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3085 printf "%s\n" "$ac_cv_host" >&6; }
3086 case $ac_cv_host in
3087 *-*-*) ;;
3088 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3089 esac
3090 host=$ac_cv_host
3091 ac_save_IFS=$IFS; IFS='-'
3092 set x $ac_cv_host
3093 shift
3094 host_cpu=$1
3095 host_vendor=$2
3096 shift; shift
3097 # Remember, the first character of IFS is used to create $*,
3098 # except with old shells:
3099 host_os=$*
3100 IFS=$ac_save_IFS
3101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3102
3103
3104 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3105 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3106 # to avoid autoconf errors.
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117 # Expand $ac_aux_dir to an absolute path.
3118 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3119
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 printf %s "checking for $ac_word... " >&6; }
3130 if test ${ac_cv_prog_CC+y}
3131 then :
3132 printf %s "(cached) " >&6
3133 else $as_nop
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 case $as_dir in #(((
3142 '') as_dir=./ ;;
3143 */) ;;
3144 *) as_dir=$as_dir/ ;;
3145 esac
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 printf "%s\n" "$CC" >&6; }
3162 else
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 printf "%s\n" "no" >&6; }
3165 fi
3166
3167
3168 fi
3169 if test -z "$ac_cv_prog_CC"; then
3170 ac_ct_CC=$CC
3171 # Extract the first word of "gcc", so it can be a program name with args.
3172 set dummy gcc; ac_word=$2
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 printf %s "checking for $ac_word... " >&6; }
3175 if test ${ac_cv_prog_ac_ct_CC+y}
3176 then :
3177 printf %s "(cached) " >&6
3178 else $as_nop
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 case $as_dir in #(((
3187 '') as_dir=./ ;;
3188 */) ;;
3189 *) as_dir=$as_dir/ ;;
3190 esac
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_ac_ct_CC="gcc"
3194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206 printf "%s\n" "$ac_ct_CC" >&6; }
3207 else
3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 printf "%s\n" "no" >&6; }
3210 fi
3211
3212 if test "x$ac_ct_CC" = x; then
3213 CC=""
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3220 esac
3221 CC=$ac_ct_CC
3222 fi
3223 else
3224 CC="$ac_cv_prog_CC"
3225 fi
3226
3227 if test -z "$CC"; then
3228 if test -n "$ac_tool_prefix"; then
3229 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3230 set dummy ${ac_tool_prefix}cc; ac_word=$2
3231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 printf %s "checking for $ac_word... " >&6; }
3233 if test ${ac_cv_prog_CC+y}
3234 then :
3235 printf %s "(cached) " >&6
3236 else $as_nop
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 case $as_dir in #(((
3245 '') as_dir=./ ;;
3246 */) ;;
3247 *) as_dir=$as_dir/ ;;
3248 esac
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_CC="${ac_tool_prefix}cc"
3252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3253 break 2
3254 fi
3255 done
3256 done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 CC=$ac_cv_prog_CC
3262 if test -n "$CC"; then
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3264 printf "%s\n" "$CC" >&6; }
3265 else
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 printf "%s\n" "no" >&6; }
3268 fi
3269
3270
3271 fi
3272 fi
3273 if test -z "$CC"; then
3274 # Extract the first word of "cc", so it can be a program name with args.
3275 set dummy cc; ac_word=$2
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 printf %s "checking for $ac_word... " >&6; }
3278 if test ${ac_cv_prog_CC+y}
3279 then :
3280 printf %s "(cached) " >&6
3281 else $as_nop
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 else
3285 ac_prog_rejected=no
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 case $as_dir in #(((
3291 '') as_dir=./ ;;
3292 */) ;;
3293 *) as_dir=$as_dir/ ;;
3294 esac
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3297 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298 ac_prog_rejected=yes
3299 continue
3300 fi
3301 ac_cv_prog_CC="cc"
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305 done
3306 done
3307 IFS=$as_save_IFS
3308
3309 if test $ac_prog_rejected = yes; then
3310 # We found a bogon in the path, so make sure we never use it.
3311 set dummy $ac_cv_prog_CC
3312 shift
3313 if test $# != 0; then
3314 # We chose a different compiler from the bogus one.
3315 # However, it has the same basename, so the bogon will be chosen
3316 # first if we set CC to just the basename; use the full file name.
3317 shift
3318 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3319 fi
3320 fi
3321 fi
3322 fi
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 printf "%s\n" "$CC" >&6; }
3327 else
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 printf "%s\n" "no" >&6; }
3330 fi
3331
3332
3333 fi
3334 if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 for ac_prog in cl.exe
3337 do
3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 printf %s "checking for $ac_word... " >&6; }
3342 if test ${ac_cv_prog_CC+y}
3343 then :
3344 printf %s "(cached) " >&6
3345 else $as_nop
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC="$CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 case $as_dir in #(((
3354 '') as_dir=./ ;;
3355 */) ;;
3356 *) as_dir=$as_dir/ ;;
3357 esac
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 CC=$ac_cv_prog_CC
3371 if test -n "$CC"; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373 printf "%s\n" "$CC" >&6; }
3374 else
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 fi
3378
3379
3380 test -n "$CC" && break
3381 done
3382 fi
3383 if test -z "$CC"; then
3384 ac_ct_CC=$CC
3385 for ac_prog in cl.exe
3386 do
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 printf %s "checking for $ac_word... " >&6; }
3391 if test ${ac_cv_prog_ac_ct_CC+y}
3392 then :
3393 printf %s "(cached) " >&6
3394 else $as_nop
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 case $as_dir in #(((
3403 '') as_dir=./ ;;
3404 */) ;;
3405 *) as_dir=$as_dir/ ;;
3406 esac
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420 if test -n "$ac_ct_CC"; then
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422 printf "%s\n" "$ac_ct_CC" >&6; }
3423 else
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 printf "%s\n" "no" >&6; }
3426 fi
3427
3428
3429 test -n "$ac_ct_CC" && break
3430 done
3431
3432 if test "x$ac_ct_CC" = x; then
3433 CC=""
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436 yes:)
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439 ac_tool_warned=yes ;;
3440 esac
3441 CC=$ac_ct_CC
3442 fi
3443 fi
3444
3445 fi
3446 if test -z "$CC"; then
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3449 set dummy ${ac_tool_prefix}clang; ac_word=$2
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 printf %s "checking for $ac_word... " >&6; }
3452 if test ${ac_cv_prog_CC+y}
3453 then :
3454 printf %s "(cached) " >&6
3455 else $as_nop
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 case $as_dir in #(((
3464 '') as_dir=./ ;;
3465 */) ;;
3466 *) as_dir=$as_dir/ ;;
3467 esac
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3470 ac_cv_prog_CC="${ac_tool_prefix}clang"
3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 printf "%s\n" "$CC" >&6; }
3484 else
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 printf "%s\n" "no" >&6; }
3487 fi
3488
3489
3490 fi
3491 if test -z "$ac_cv_prog_CC"; then
3492 ac_ct_CC=$CC
3493 # Extract the first word of "clang", so it can be a program name with args.
3494 set dummy clang; ac_word=$2
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 printf %s "checking for $ac_word... " >&6; }
3497 if test ${ac_cv_prog_ac_ct_CC+y}
3498 then :
3499 printf %s "(cached) " >&6
3500 else $as_nop
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 case $as_dir in #(((
3509 '') as_dir=./ ;;
3510 */) ;;
3511 *) as_dir=$as_dir/ ;;
3512 esac
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_ac_ct_CC="clang"
3516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517 break 2
3518 fi
3519 done
3520 done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 printf "%s\n" "$ac_ct_CC" >&6; }
3529 else
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 printf "%s\n" "no" >&6; }
3532 fi
3533
3534 if test "x$ac_ct_CC" = x; then
3535 CC=""
3536 else
3537 case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3544 fi
3545 else
3546 CC="$ac_cv_prog_CC"
3547 fi
3548
3549 fi
3550
3551
3552 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3553 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3554 as_fn_error $? "no acceptable C compiler found in \$PATH
3555 See \`config.log' for more details" "$LINENO" 5; }
3556
3557 # Provide some information about the compiler.
3558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559 set X $ac_compile
3560 ac_compiler=$2
3561 for ac_option in --version -v -V -qversion -version; do
3562 { { ac_try="$ac_compiler $ac_option >&5"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 printf "%s\n" "$ac_try_echo"; } >&5
3569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3570 ac_status=$?
3571 if test -s conftest.err; then
3572 sed '10a\
3573 ... rest of stderr output deleted ...
3574 10q' conftest.err >conftest.er1
3575 cat conftest.er1 >&5
3576 fi
3577 rm -f conftest.er1 conftest.err
3578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }
3580 done
3581
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main (void)
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 ac_clean_files_save=$ac_clean_files
3594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3595 # Try to create an executable without -o first, disregard a.out.
3596 # It will help us diagnose broken compilers, and finding out an intuition
3597 # of exeext.
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3599 printf %s "checking whether the C compiler works... " >&6; }
3600 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3601
3602 # The possible output files:
3603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604
3605 ac_rmfiles=
3606 for ac_file in $ac_files
3607 do
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3611 esac
3612 done
3613 rm -f $ac_rmfiles
3614
3615 if { { ac_try="$ac_link_default"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 printf "%s\n" "$ac_try_echo"; } >&5
3622 (eval "$ac_link_default") 2>&5
3623 ac_status=$?
3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3626 then :
3627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3630 # so that the user can short-circuit this test for compilers unknown to
3631 # Autoconf.
3632 for ac_file in $ac_files ''
3633 do
3634 test -f "$ac_file" || continue
3635 case $ac_file in
3636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3637 ;;
3638 [ab].out )
3639 # We found the default executable, but exeext='' is most
3640 # certainly right.
3641 break;;
3642 *.* )
3643 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3644 then :; else
3645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 fi
3647 # We set ac_cv_exeext here because the later test for it is not
3648 # safe: cross compilers may not add the suffix if given an `-o'
3649 # argument, so we may need to know it at that point already.
3650 # Even if this section looks crufty: it has the advantage of
3651 # actually working.
3652 break;;
3653 * )
3654 break;;
3655 esac
3656 done
3657 test "$ac_cv_exeext" = no && ac_cv_exeext=
3658
3659 else $as_nop
3660 ac_file=''
3661 fi
3662 if test -z "$ac_file"
3663 then :
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 printf "%s\n" "no" >&6; }
3666 printf "%s\n" "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error 77 "C compiler cannot create executables
3672 See \`config.log' for more details" "$LINENO" 5; }
3673 else $as_nop
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 printf "%s\n" "yes" >&6; }
3676 fi
3677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678 printf %s "checking for C compiler default output file name... " >&6; }
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680 printf "%s\n" "$ac_file" >&6; }
3681 ac_exeext=$ac_cv_exeext
3682
3683 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684 ac_clean_files=$ac_clean_files_save
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 printf %s "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 printf "%s\n" "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3695 ac_status=$?
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }
3698 then :
3699 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3701 # work properly (i.e., refer to `conftest.exe'), while it won't with
3702 # `rm'.
3703 for ac_file in conftest.exe conftest conftest.*; do
3704 test -f "$ac_file" || continue
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708 break;;
3709 * ) break;;
3710 esac
3711 done
3712 else $as_nop
3713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716 See \`config.log' for more details" "$LINENO" 5; }
3717 fi
3718 rm -f conftest conftest$ac_cv_exeext
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720 printf "%s\n" "$ac_cv_exeext" >&6; }
3721
3722 rm -f conftest.$ac_ext
3723 EXEEXT=$ac_cv_exeext
3724 ac_exeext=$EXEEXT
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <stdio.h>
3728 int
3729 main (void)
3730 {
3731 FILE *f = fopen ("conftest.out", "w");
3732 return ferror (f) || fclose (f) != 0;
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 ac_clean_files="$ac_clean_files conftest.out"
3739 # Check that the compiler produces executables we can run. If not, either
3740 # the compiler is broken, or we cross compile.
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742 printf %s "checking whether we are cross compiling... " >&6; }
3743 if test "$cross_compiling" != yes; then
3744 { { ac_try="$ac_link"
3745 case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748 esac
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 printf "%s\n" "$ac_try_echo"; } >&5
3751 (eval "$ac_link") 2>&5
3752 ac_status=$?
3753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }
3755 if { ac_try='./conftest$ac_cv_exeext'
3756 { { case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 printf "%s\n" "$ac_try_echo"; } >&5
3762 (eval "$ac_try") 2>&5
3763 ac_status=$?
3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; }; then
3766 cross_compiling=no
3767 else
3768 if test "$cross_compiling" = maybe; then
3769 cross_compiling=yes
3770 else
3771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error 77 "cannot run C compiled programs.
3774 If you meant to cross compile, use \`--host'.
3775 See \`config.log' for more details" "$LINENO" 5; }
3776 fi
3777 fi
3778 fi
3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780 printf "%s\n" "$cross_compiling" >&6; }
3781
3782 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783 ac_clean_files=$ac_clean_files_save
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785 printf %s "checking for suffix of object files... " >&6; }
3786 if test ${ac_cv_objext+y}
3787 then :
3788 printf %s "(cached) " >&6
3789 else $as_nop
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main (void)
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.o conftest.obj
3802 if { { ac_try="$ac_compile"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 printf "%s\n" "$ac_try_echo"; } >&5
3809 (eval "$ac_compile") 2>&5
3810 ac_status=$?
3811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }
3813 then :
3814 for ac_file in conftest.o conftest.obj conftest.*; do
3815 test -f "$ac_file" || continue;
3816 case $ac_file in
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3818 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3819 break;;
3820 esac
3821 done
3822 else $as_nop
3823 printf "%s\n" "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error $? "cannot compute suffix of object files: cannot compile
3829 See \`config.log' for more details" "$LINENO" 5; }
3830 fi
3831 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3832 fi
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3834 printf "%s\n" "$ac_cv_objext" >&6; }
3835 OBJEXT=$ac_cv_objext
3836 ac_objext=$OBJEXT
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3838 printf %s "checking whether the compiler supports GNU C... " >&6; }
3839 if test ${ac_cv_c_compiler_gnu+y}
3840 then :
3841 printf %s "(cached) " >&6
3842 else $as_nop
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845
3846 int
3847 main (void)
3848 {
3849 #ifndef __GNUC__
3850 choke me
3851 #endif
3852
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_compile "$LINENO"
3858 then :
3859 ac_compiler_gnu=yes
3860 else $as_nop
3861 ac_compiler_gnu=no
3862 fi
3863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3864 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3865
3866 fi
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3868 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871 if test $ac_compiler_gnu = yes; then
3872 GCC=yes
3873 else
3874 GCC=
3875 fi
3876 ac_test_CFLAGS=${CFLAGS+y}
3877 ac_save_CFLAGS=$CFLAGS
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879 printf %s "checking whether $CC accepts -g... " >&6; }
3880 if test ${ac_cv_prog_cc_g+y}
3881 then :
3882 printf %s "(cached) " >&6
3883 else $as_nop
3884 ac_save_c_werror_flag=$ac_c_werror_flag
3885 ac_c_werror_flag=yes
3886 ac_cv_prog_cc_g=no
3887 CFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main (void)
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"
3900 then :
3901 ac_cv_prog_cc_g=yes
3902 else $as_nop
3903 CFLAGS=""
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906
3907 int
3908 main (void)
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"
3916 then :
3917
3918 else $as_nop
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3920 CFLAGS="-g"
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main (void)
3926 {
3927
3928 ;
3929 return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_compile "$LINENO"
3933 then :
3934 ac_cv_prog_cc_g=yes
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3937 fi
3938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3941 ac_c_werror_flag=$ac_save_c_werror_flag
3942 fi
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3944 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3945 if test $ac_test_CFLAGS; then
3946 CFLAGS=$ac_save_CFLAGS
3947 elif test $ac_cv_prog_cc_g = yes; then
3948 if test "$GCC" = yes; then
3949 CFLAGS="-g -O2"
3950 else
3951 CFLAGS="-g"
3952 fi
3953 else
3954 if test "$GCC" = yes; then
3955 CFLAGS="-O2"
3956 else
3957 CFLAGS=
3958 fi
3959 fi
3960 ac_prog_cc_stdc=no
3961 if test x$ac_prog_cc_stdc = xno
3962 then :
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3964 printf %s "checking for $CC option to enable C11 features... " >&6; }
3965 if test ${ac_cv_prog_cc_c11+y}
3966 then :
3967 printf %s "(cached) " >&6
3968 else $as_nop
3969 ac_cv_prog_cc_c11=no
3970 ac_save_CC=$CC
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3973 $ac_c_conftest_c11_program
3974 _ACEOF
3975 for ac_arg in '' -std=gnu11
3976 do
3977 CC="$ac_save_CC $ac_arg"
3978 if ac_fn_c_try_compile "$LINENO"
3979 then :
3980 ac_cv_prog_cc_c11=$ac_arg
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.beam
3983 test "x$ac_cv_prog_cc_c11" != "xno" && break
3984 done
3985 rm -f conftest.$ac_ext
3986 CC=$ac_save_CC
3987 fi
3988
3989 if test "x$ac_cv_prog_cc_c11" = xno
3990 then :
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3992 printf "%s\n" "unsupported" >&6; }
3993 else $as_nop
3994 if test "x$ac_cv_prog_cc_c11" = x
3995 then :
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 printf "%s\n" "none needed" >&6; }
3998 else $as_nop
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4000 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4001 CC="$CC $ac_cv_prog_cc_c11"
4002 fi
4003 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4004 ac_prog_cc_stdc=c11
4005 fi
4006 fi
4007 if test x$ac_prog_cc_stdc = xno
4008 then :
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4010 printf %s "checking for $CC option to enable C99 features... " >&6; }
4011 if test ${ac_cv_prog_cc_c99+y}
4012 then :
4013 printf %s "(cached) " >&6
4014 else $as_nop
4015 ac_cv_prog_cc_c99=no
4016 ac_save_CC=$CC
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 $ac_c_conftest_c99_program
4020 _ACEOF
4021 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4022 do
4023 CC="$ac_save_CC $ac_arg"
4024 if ac_fn_c_try_compile "$LINENO"
4025 then :
4026 ac_cv_prog_cc_c99=$ac_arg
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.beam
4029 test "x$ac_cv_prog_cc_c99" != "xno" && break
4030 done
4031 rm -f conftest.$ac_ext
4032 CC=$ac_save_CC
4033 fi
4034
4035 if test "x$ac_cv_prog_cc_c99" = xno
4036 then :
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038 printf "%s\n" "unsupported" >&6; }
4039 else $as_nop
4040 if test "x$ac_cv_prog_cc_c99" = x
4041 then :
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4043 printf "%s\n" "none needed" >&6; }
4044 else $as_nop
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4046 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4047 CC="$CC $ac_cv_prog_cc_c99"
4048 fi
4049 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4050 ac_prog_cc_stdc=c99
4051 fi
4052 fi
4053 if test x$ac_prog_cc_stdc = xno
4054 then :
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4056 printf %s "checking for $CC option to enable C89 features... " >&6; }
4057 if test ${ac_cv_prog_cc_c89+y}
4058 then :
4059 printf %s "(cached) " >&6
4060 else $as_nop
4061 ac_cv_prog_cc_c89=no
4062 ac_save_CC=$CC
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 $ac_c_conftest_c89_program
4066 _ACEOF
4067 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4068 do
4069 CC="$ac_save_CC $ac_arg"
4070 if ac_fn_c_try_compile "$LINENO"
4071 then :
4072 ac_cv_prog_cc_c89=$ac_arg
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.beam
4075 test "x$ac_cv_prog_cc_c89" != "xno" && break
4076 done
4077 rm -f conftest.$ac_ext
4078 CC=$ac_save_CC
4079 fi
4080
4081 if test "x$ac_cv_prog_cc_c89" = xno
4082 then :
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4084 printf "%s\n" "unsupported" >&6; }
4085 else $as_nop
4086 if test "x$ac_cv_prog_cc_c89" = x
4087 then :
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4089 printf "%s\n" "none needed" >&6; }
4090 else $as_nop
4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4092 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4093 CC="$CC $ac_cv_prog_cc_c89"
4094 fi
4095 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4096 ac_prog_cc_stdc=c89
4097 fi
4098 fi
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4113 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4114 if test ${am_cv_prog_cc_c_o+y}
4115 then :
4116 printf %s "(cached) " >&6
4117 else $as_nop
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4120
4121 int
4122 main (void)
4123 {
4124
4125 ;
4126 return 0;
4127 }
4128 _ACEOF
4129 # Make sure it works both with $CC and with simple cc.
4130 # Following AC_PROG_CC_C_O, we do the test twice because some
4131 # compilers refuse to overwrite an existing .o file with -o,
4132 # though they will create one.
4133 am_cv_prog_cc_c_o=yes
4134 for am_i in 1 2; do
4135 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4136 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } \
4140 && test -f conftest2.$ac_objext; then
4141 : OK
4142 else
4143 am_cv_prog_cc_c_o=no
4144 break
4145 fi
4146 done
4147 rm -f core conftest*
4148 unset am_i
4149 fi
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4151 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4152 if test "$am_cv_prog_cc_c_o" != yes; then
4153 # Losing compiler, so override with the script.
4154 # FIXME: It is wrong to rewrite CC.
4155 # But if we don't then we get into trouble of one sort or another.
4156 # A longer-term fix would be to have automake use am__CC in this case,
4157 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4158 CC="$am_aux_dir/compile $CC"
4159 fi
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167
4168 ac_header= ac_cache=
4169 for ac_item in $ac_header_c_list
4170 do
4171 if test $ac_cache; then
4172 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4173 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4174 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4175 fi
4176 ac_header= ac_cache=
4177 elif test $ac_header; then
4178 ac_cache=$ac_item
4179 else
4180 ac_header=$ac_item
4181 fi
4182 done
4183
4184
4185
4186
4187
4188
4189
4190
4191 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4192 then :
4193
4194 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4195
4196 fi
4197
4198
4199
4200
4201
4202
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4204 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4205 if test ${ac_cv_safe_to_define___extensions__+y}
4206 then :
4207 printf %s "(cached) " >&6
4208 else $as_nop
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211
4212 # define __EXTENSIONS__ 1
4213 $ac_includes_default
4214 int
4215 main (void)
4216 {
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224 ac_cv_safe_to_define___extensions__=yes
4225 else $as_nop
4226 ac_cv_safe_to_define___extensions__=no
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4229 fi
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4231 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4232
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4234 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4235 if test ${ac_cv_should_define__xopen_source+y}
4236 then :
4237 printf %s "(cached) " >&6
4238 else $as_nop
4239 ac_cv_should_define__xopen_source=no
4240 if test $ac_cv_header_wchar_h = yes
4241 then :
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4244
4245 #include <wchar.h>
4246 mbstate_t x;
4247 int
4248 main (void)
4249 {
4250
4251 ;
4252 return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"
4256 then :
4257
4258 else $as_nop
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261
4262 #define _XOPEN_SOURCE 500
4263 #include <wchar.h>
4264 mbstate_t x;
4265 int
4266 main (void)
4267 {
4268
4269 ;
4270 return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_c_try_compile "$LINENO"
4274 then :
4275 ac_cv_should_define__xopen_source=yes
4276 fi
4277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4280 fi
4281 fi
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4283 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4284
4285 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4286
4287 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4288
4289 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4290
4291 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4292
4293 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4294
4295 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4296
4297 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4298
4299 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4300
4301 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4302
4303 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4304
4305 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4306
4307 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4308
4309 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4310
4311 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4312
4313 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4314
4315 if test $ac_cv_header_minix_config_h = yes
4316 then :
4317 MINIX=yes
4318 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4319
4320 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4321
4322 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4323
4324 else $as_nop
4325 MINIX=
4326 fi
4327 if test $ac_cv_safe_to_define___extensions__ = yes
4328 then :
4329 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4330
4331 fi
4332 if test $ac_cv_should_define__xopen_source = yes
4333 then :
4334 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4335
4336 fi
4337
4338
4339 # Initialize Automake
4340 am__api_version='1.16'
4341
4342
4343 # Find a good install program. We prefer a C program (faster),
4344 # so one script is as good as another. But avoid the broken or
4345 # incompatible versions:
4346 # SysV /etc/install, /usr/sbin/install
4347 # SunOS /usr/etc/install
4348 # IRIX /sbin/install
4349 # AIX /bin/install
4350 # AmigaOS /C/install, which installs bootblocks on floppy discs
4351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4354 # OS/2's system install, which has a completely different semantic
4355 # ./install, which can be erroneously created by make from ./install.sh.
4356 # Reject install programs that cannot install multiple files.
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4358 printf %s "checking for a BSD-compatible install... " >&6; }
4359 if test -z "$INSTALL"; then
4360 if test ${ac_cv_path_install+y}
4361 then :
4362 printf %s "(cached) " >&6
4363 else $as_nop
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 case $as_dir in #(((
4369 '') as_dir=./ ;;
4370 */) ;;
4371 *) as_dir=$as_dir/ ;;
4372 esac
4373 # Account for fact that we put trailing slashes in our PATH walk.
4374 case $as_dir in #((
4375 ./ | /[cC]/* | \
4376 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4377 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4378 /usr/ucb/* ) ;;
4379 *)
4380 # OSF1 and SCO ODT 3.0 have their own names for install.
4381 # Don't use installbsd from OSF since it installs stuff as root
4382 # by default.
4383 for ac_prog in ginstall scoinst install; do
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4386 if test $ac_prog = install &&
4387 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4388 # AIX install. It has an incompatible calling convention.
4389 :
4390 elif test $ac_prog = install &&
4391 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4392 # program-specific install script used by HP pwplus--don't use.
4393 :
4394 else
4395 rm -rf conftest.one conftest.two conftest.dir
4396 echo one > conftest.one
4397 echo two > conftest.two
4398 mkdir conftest.dir
4399 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4400 test -s conftest.one && test -s conftest.two &&
4401 test -s conftest.dir/conftest.one &&
4402 test -s conftest.dir/conftest.two
4403 then
4404 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4405 break 3
4406 fi
4407 fi
4408 fi
4409 done
4410 done
4411 ;;
4412 esac
4413
4414 done
4415 IFS=$as_save_IFS
4416
4417 rm -rf conftest.one conftest.two conftest.dir
4418
4419 fi
4420 if test ${ac_cv_path_install+y}; then
4421 INSTALL=$ac_cv_path_install
4422 else
4423 # As a last resort, use the slow shell script. Don't cache a
4424 # value for INSTALL within a source directory, because that will
4425 # break other packages using the cache if that directory is
4426 # removed, or if the value is a relative name.
4427 INSTALL=$ac_install_sh
4428 fi
4429 fi
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4431 printf "%s\n" "$INSTALL" >&6; }
4432
4433 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4434 # It thinks the first close brace ends the variable substitution.
4435 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4436
4437 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4438
4439 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4440
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4442 printf %s "checking whether build environment is sane... " >&6; }
4443 # Reject unsafe characters in $srcdir or the absolute working directory
4444 # name. Accept space and tab only in the latter.
4445 am_lf='
4446 '
4447 case `pwd` in
4448 *[\\\"\#\$\&\'\`$am_lf]*)
4449 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4450 esac
4451 case $srcdir in
4452 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4453 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4454 esac
4455
4456 # Do 'set' in a subshell so we don't clobber the current shell's
4457 # arguments. Must try -L first in case configure is actually a
4458 # symlink; some systems play weird games with the mod time of symlinks
4459 # (eg FreeBSD returns the mod time of the symlink's containing
4460 # directory).
4461 if (
4462 am_has_slept=no
4463 for am_try in 1 2; do
4464 echo "timestamp, slept: $am_has_slept" > conftest.file
4465 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4466 if test "$*" = "X"; then
4467 # -L didn't work.
4468 set X `ls -t "$srcdir/configure" conftest.file`
4469 fi
4470 if test "$*" != "X $srcdir/configure conftest.file" \
4471 && test "$*" != "X conftest.file $srcdir/configure"; then
4472
4473 # If neither matched, then we have a broken ls. This can happen
4474 # if, for instance, CONFIG_SHELL is bash and it inherits a
4475 # broken ls alias from the environment. This has actually
4476 # happened. Such a system could not be considered "sane".
4477 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4478 alias in your environment" "$LINENO" 5
4479 fi
4480 if test "$2" = conftest.file || test $am_try -eq 2; then
4481 break
4482 fi
4483 # Just in case.
4484 sleep 1
4485 am_has_slept=yes
4486 done
4487 test "$2" = conftest.file
4488 )
4489 then
4490 # Ok.
4491 :
4492 else
4493 as_fn_error $? "newly created file is older than distributed files!
4494 Check your system clock" "$LINENO" 5
4495 fi
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4497 printf "%s\n" "yes" >&6; }
4498 # If we didn't sleep, we still need to ensure time stamps of config.status and
4499 # generated files are strictly newer.
4500 am_sleep_pid=
4501 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4502 ( sleep 1 ) &
4503 am_sleep_pid=$!
4504 fi
4505
4506 rm -f conftest.file
4507
4508 test "$program_prefix" != NONE &&
4509 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4510 # Use a double $ so make ignores it.
4511 test "$program_suffix" != NONE &&
4512 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4513 # Double any \ or $.
4514 # By default was `s,x,x', remove it if useless.
4515 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4516 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4517
4518
4519 if test x"${MISSING+set}" != xset; then
4520 MISSING="\${SHELL} '$am_aux_dir/missing'"
4521 fi
4522 # Use eval to expand $SHELL
4523 if eval "$MISSING --is-lightweight"; then
4524 am_missing_run="$MISSING "
4525 else
4526 am_missing_run=
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4528 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4529 fi
4530
4531 if test x"${install_sh+set}" != xset; then
4532 case $am_aux_dir in
4533 *\ * | *\ *)
4534 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4535 *)
4536 install_sh="\${SHELL} $am_aux_dir/install-sh"
4537 esac
4538 fi
4539
4540 # Installed binaries are usually stripped using 'strip' when the user
4541 # run "make install-strip". However 'strip' might not be the right
4542 # tool to use in cross-compilation environments, therefore Automake
4543 # will honor the 'STRIP' environment variable to overrule this program.
4544 if test "$cross_compiling" != no; then
4545 if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4547 set dummy ${ac_tool_prefix}strip; ac_word=$2
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 printf %s "checking for $ac_word... " >&6; }
4550 if test ${ac_cv_prog_STRIP+y}
4551 then :
4552 printf %s "(cached) " >&6
4553 else $as_nop
4554 if test -n "$STRIP"; then
4555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 case $as_dir in #(((
4562 '') as_dir=./ ;;
4563 */) ;;
4564 *) as_dir=$as_dir/ ;;
4565 esac
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 STRIP=$ac_cv_prog_STRIP
4579 if test -n "$STRIP"; then
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4581 printf "%s\n" "$STRIP" >&6; }
4582 else
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 printf "%s\n" "no" >&6; }
4585 fi
4586
4587
4588 fi
4589 if test -z "$ac_cv_prog_STRIP"; then
4590 ac_ct_STRIP=$STRIP
4591 # Extract the first word of "strip", so it can be a program name with args.
4592 set dummy strip; ac_word=$2
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 printf %s "checking for $ac_word... " >&6; }
4595 if test ${ac_cv_prog_ac_ct_STRIP+y}
4596 then :
4597 printf %s "(cached) " >&6
4598 else $as_nop
4599 if test -n "$ac_ct_STRIP"; then
4600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 case $as_dir in #(((
4607 '') as_dir=./ ;;
4608 */) ;;
4609 *) as_dir=$as_dir/ ;;
4610 esac
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4613 ac_cv_prog_ac_ct_STRIP="strip"
4614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617 done
4618 done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4624 if test -n "$ac_ct_STRIP"; then
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4626 printf "%s\n" "$ac_ct_STRIP" >&6; }
4627 else
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 printf "%s\n" "no" >&6; }
4630 fi
4631
4632 if test "x$ac_ct_STRIP" = x; then
4633 STRIP=":"
4634 else
4635 case $cross_compiling:$ac_tool_warned in
4636 yes:)
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4638 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4639 ac_tool_warned=yes ;;
4640 esac
4641 STRIP=$ac_ct_STRIP
4642 fi
4643 else
4644 STRIP="$ac_cv_prog_STRIP"
4645 fi
4646
4647 fi
4648 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4649
4650
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4652 printf %s "checking for a race-free mkdir -p... " >&6; }
4653 if test -z "$MKDIR_P"; then
4654 if test ${ac_cv_path_mkdir+y}
4655 then :
4656 printf %s "(cached) " >&6
4657 else $as_nop
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4660 do
4661 IFS=$as_save_IFS
4662 case $as_dir in #(((
4663 '') as_dir=./ ;;
4664 */) ;;
4665 *) as_dir=$as_dir/ ;;
4666 esac
4667 for ac_prog in mkdir gmkdir; do
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4670 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4671 'mkdir ('*'coreutils) '* | \
4672 'BusyBox '* | \
4673 'mkdir (fileutils) '4.1*)
4674 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4675 break 3;;
4676 esac
4677 done
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682 fi
4683
4684 test -d ./--version && rmdir ./--version
4685 if test ${ac_cv_path_mkdir+y}; then
4686 MKDIR_P="$ac_cv_path_mkdir -p"
4687 else
4688 # As a last resort, use the slow shell script. Don't cache a
4689 # value for MKDIR_P within a source directory, because that will
4690 # break other packages using the cache if that directory is
4691 # removed, or if the value is a relative name.
4692 MKDIR_P="$ac_install_sh -d"
4693 fi
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4696 printf "%s\n" "$MKDIR_P" >&6; }
4697
4698 for ac_prog in gawk mawk nawk awk
4699 do
4700 # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy $ac_prog; ac_word=$2
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 printf %s "checking for $ac_word... " >&6; }
4704 if test ${ac_cv_prog_AWK+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else $as_nop
4708 if test -n "$AWK"; then
4709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 case $as_dir in #(((
4716 '') as_dir=./ ;;
4717 */) ;;
4718 *) as_dir=$as_dir/ ;;
4719 esac
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_AWK="$ac_prog"
4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4729
4730 fi
4731 fi
4732 AWK=$ac_cv_prog_AWK
4733 if test -n "$AWK"; then
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4735 printf "%s\n" "$AWK" >&6; }
4736 else
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 printf "%s\n" "no" >&6; }
4739 fi
4740
4741
4742 test -n "$AWK" && break
4743 done
4744
4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4746 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4747 set x ${MAKE-make}
4748 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4749 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4750 then :
4751 printf %s "(cached) " >&6
4752 else $as_nop
4753 cat >conftest.make <<\_ACEOF
4754 SHELL = /bin/sh
4755 all:
4756 @echo '@@@%%%=$(MAKE)=@@@%%%'
4757 _ACEOF
4758 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4759 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4760 *@@@%%%=?*=@@@%%%*)
4761 eval ac_cv_prog_make_${ac_make}_set=yes;;
4762 *)
4763 eval ac_cv_prog_make_${ac_make}_set=no;;
4764 esac
4765 rm -f conftest.make
4766 fi
4767 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769 printf "%s\n" "yes" >&6; }
4770 SET_MAKE=
4771 else
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 printf "%s\n" "no" >&6; }
4774 SET_MAKE="MAKE=${MAKE-make}"
4775 fi
4776
4777 rm -rf .tst 2>/dev/null
4778 mkdir .tst 2>/dev/null
4779 if test -d .tst; then
4780 am__leading_dot=.
4781 else
4782 am__leading_dot=_
4783 fi
4784 rmdir .tst 2>/dev/null
4785
4786 DEPDIR="${am__leading_dot}deps"
4787
4788 ac_config_commands="$ac_config_commands depfiles"
4789
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4791 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4792 cat > confinc.mk << 'END'
4793 am__doit:
4794 @echo this is the am__doit target >confinc.out
4795 .PHONY: am__doit
4796 END
4797 am__include="#"
4798 am__quote=
4799 # BSD make does it like this.
4800 echo '.include "confinc.mk" # ignored' > confmf.BSD
4801 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4802 echo 'include confinc.mk # ignored' > confmf.GNU
4803 _am_result=no
4804 for s in GNU BSD; do
4805 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4806 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4807 ac_status=$?
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }
4810 case $?:`cat confinc.out 2>/dev/null` in #(
4811 '0:this is the am__doit target') :
4812 case $s in #(
4813 BSD) :
4814 am__include='.include' am__quote='"' ;; #(
4815 *) :
4816 am__include='include' am__quote='' ;;
4817 esac ;; #(
4818 *) :
4819 ;;
4820 esac
4821 if test "$am__include" != "#"; then
4822 _am_result="yes ($s style)"
4823 break
4824 fi
4825 done
4826 rm -f confinc.* confmf.*
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4828 printf "%s\n" "${_am_result}" >&6; }
4829
4830 # Check whether --enable-dependency-tracking was given.
4831 if test ${enable_dependency_tracking+y}
4832 then :
4833 enableval=$enable_dependency_tracking;
4834 fi
4835
4836 if test "x$enable_dependency_tracking" != xno; then
4837 am_depcomp="$ac_aux_dir/depcomp"
4838 AMDEPBACKSLASH='\'
4839 am__nodep='_no'
4840 fi
4841 if test "x$enable_dependency_tracking" != xno; then
4842 AMDEP_TRUE=
4843 AMDEP_FALSE='#'
4844 else
4845 AMDEP_TRUE='#'
4846 AMDEP_FALSE=
4847 fi
4848
4849
4850 # Check whether --enable-silent-rules was given.
4851 if test ${enable_silent_rules+y}
4852 then :
4853 enableval=$enable_silent_rules;
4854 fi
4855
4856 case $enable_silent_rules in # (((
4857 yes) AM_DEFAULT_VERBOSITY=0;;
4858 no) AM_DEFAULT_VERBOSITY=1;;
4859 *) AM_DEFAULT_VERBOSITY=1;;
4860 esac
4861 am_make=${MAKE-make}
4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4863 printf %s "checking whether $am_make supports nested variables... " >&6; }
4864 if test ${am_cv_make_support_nested_variables+y}
4865 then :
4866 printf %s "(cached) " >&6
4867 else $as_nop
4868 if printf "%s\n" 'TRUE=$(BAR$(V))
4869 BAR0=false
4870 BAR1=true
4871 V=1
4872 am__doit:
4873 @$(TRUE)
4874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4875 am_cv_make_support_nested_variables=yes
4876 else
4877 am_cv_make_support_nested_variables=no
4878 fi
4879 fi
4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4881 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4882 if test $am_cv_make_support_nested_variables = yes; then
4883 AM_V='$(V)'
4884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4885 else
4886 AM_V=$AM_DEFAULT_VERBOSITY
4887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4888 fi
4889 AM_BACKSLASH='\'
4890
4891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4893 # is not polluted with repeated "-I."
4894 am__isrc=' -I$(srcdir)'
4895 # test to see if srcdir already configured
4896 if test -f $srcdir/config.status; then
4897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4898 fi
4899 fi
4900
4901 # test whether we have cygpath
4902 if test -z "$CYGPATH_W"; then
4903 if (cygpath --version) >/dev/null 2>/dev/null; then
4904 CYGPATH_W='cygpath -w'
4905 else
4906 CYGPATH_W=echo
4907 fi
4908 fi
4909
4910
4911 # Define the identity of the package.
4912 PACKAGE='libX11'
4913 VERSION='1.8.3'
4914
4915
4916 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4917
4918
4919 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4920
4921 # Some tools Automake needs.
4922
4923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4924
4925
4926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4927
4928
4929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4930
4931
4932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4933
4934
4935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4936
4937 # For better backward compatibility. To be removed once Automake 1.9.x
4938 # dies out for good. For more background, see:
4939 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4940 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4941 mkdir_p='$(MKDIR_P)'
4942
4943 # We need awk for the "check" target (and possibly the TAP driver). The
4944 # system "awk" is bad on some platforms.
4945 # Always define AMTAR for backward compatibility. Yes, it's still used
4946 # in the wild :-( We should find a proper way to deprecate it ...
4947 AMTAR='$${TAR-tar}'
4948
4949
4950 # We'll loop over all known methods to create a tar archive until one works.
4951 _am_tools='gnutar pax cpio none'
4952
4953 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4954
4955
4956
4957
4958
4959 depcc="$CC" am_compiler_list=
4960
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962 printf %s "checking dependency style of $depcc... " >&6; }
4963 if test ${am_cv_CC_dependencies_compiler_type+y}
4964 then :
4965 printf %s "(cached) " >&6
4966 else $as_nop
4967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4968 # We make a subdir and do the tests there. Otherwise we can end up
4969 # making bogus files that we don't know about and never remove. For
4970 # instance it was reported that on HP-UX the gcc test will end up
4971 # making a dummy file named 'D' -- because '-MD' means "put the output
4972 # in D".
4973 rm -rf conftest.dir
4974 mkdir conftest.dir
4975 # Copy depcomp to subdir because otherwise we won't find it if we're
4976 # using a relative directory.
4977 cp "$am_depcomp" conftest.dir
4978 cd conftest.dir
4979 # We will build objects and dependencies in a subdirectory because
4980 # it helps to detect inapplicable dependency modes. For instance
4981 # both Tru64's cc and ICC support -MD to output dependencies as a
4982 # side effect of compilation, but ICC will put the dependencies in
4983 # the current directory while Tru64 will put them in the object
4984 # directory.
4985 mkdir sub
4986
4987 am_cv_CC_dependencies_compiler_type=none
4988 if test "$am_compiler_list" = ""; then
4989 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 fi
4991 am__universal=false
4992 case " $depcc " in #(
4993 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4994 esac
4995
4996 for depmode in $am_compiler_list; do
4997 # Setup a source with many dependencies, because some compilers
4998 # like to wrap large dependency lists on column 80 (with \), and
4999 # we should not choose a depcomp mode which is confused by this.
5000 #
5001 # We need to recreate these files for each test, as the compiler may
5002 # overwrite some of them when testing with obscure command lines.
5003 # This happens at least with the AIX C compiler.
5004 : > sub/conftest.c
5005 for i in 1 2 3 4 5 6; do
5006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5008 # Solaris 10 /bin/sh.
5009 echo '/* dummy */' > sub/conftst$i.h
5010 done
5011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5014 # mode. It turns out that the SunPro C++ compiler does not properly
5015 # handle '-M -o', and we need to detect this. Also, some Intel
5016 # versions had trouble with output in subdirs.
5017 am__obj=sub/conftest.${OBJEXT-o}
5018 am__minus_obj="-o $am__obj"
5019 case $depmode in
5020 gcc)
5021 # This depmode causes a compiler race in universal mode.
5022 test "$am__universal" = false || continue
5023 ;;
5024 nosideeffect)
5025 # After this tag, mechanisms are not by side-effect, so they'll
5026 # only be used when explicitly requested.
5027 if test "x$enable_dependency_tracking" = xyes; then
5028 continue
5029 else
5030 break
5031 fi
5032 ;;
5033 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5034 # This compiler won't grok '-c -o', but also, the minuso test has
5035 # not run yet. These depmodes are late enough in the game, and
5036 # so weak that their functioning should not be impacted.
5037 am__obj=conftest.${OBJEXT-o}
5038 am__minus_obj=
5039 ;;
5040 none) break ;;
5041 esac
5042 if depmode=$depmode \
5043 source=sub/conftest.c object=$am__obj \
5044 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5045 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5046 >/dev/null 2>conftest.err &&
5047 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5048 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5050 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5051 # icc doesn't choke on unknown options, it will just issue warnings
5052 # or remarks (even with -Werror). So we grep stderr for any message
5053 # that says an option was ignored or not supported.
5054 # When given -MP, icc 7.0 and 7.1 complain thusly:
5055 # icc: Command line warning: ignoring option '-M'; no argument required
5056 # The diagnosis changed in icc 8.0:
5057 # icc: Command line remark: option '-MP' not supported
5058 if (grep 'ignoring option' conftest.err ||
5059 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5060 am_cv_CC_dependencies_compiler_type=$depmode
5061 break
5062 fi
5063 fi
5064 done
5065
5066 cd ..
5067 rm -rf conftest.dir
5068 else
5069 am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076
5077 if
5078 test "x$enable_dependency_tracking" != xno \
5079 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5080 am__fastdepCC_TRUE=
5081 am__fastdepCC_FALSE='#'
5082 else
5083 am__fastdepCC_TRUE='#'
5084 am__fastdepCC_FALSE=
5085 fi
5086
5087
5088 # Variables for tags utilities; see am/tags.am
5089 if test -z "$CTAGS"; then
5090 CTAGS=ctags
5091 fi
5092
5093 if test -z "$ETAGS"; then
5094 ETAGS=etags
5095 fi
5096
5097 if test -z "$CSCOPE"; then
5098 CSCOPE=cscope
5099 fi
5100
5101
5102
5103 # POSIX will say in a future version that running "rm -f" with no argument
5104 # is OK; and we want to be able to make that assumption in our Makefile
5105 # recipes. So use an aggressive probe to check that the usage we want is
5106 # actually supported "in the wild" to an acceptable degree.
5107 # See automake bug#10828.
5108 # To make any issue more visible, cause the running configure to be aborted
5109 # by default if the 'rm' program in use doesn't match our expectations; the
5110 # user can still override this though.
5111 if rm -f && rm -fr && rm -rf; then : OK; else
5112 cat >&2 <<'END'
5113 Oops!
5114
5115 Your 'rm' program seems unable to run without file operands specified
5116 on the command line, even when the '-f' option is present. This is contrary
5117 to the behaviour of most rm programs out there, and not conforming with
5118 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5119
5120 Please tell bug-automake@gnu.org about your system, including the value
5121 of your $PATH and any error possibly output before this message. This
5122 can help us improve future automake versions.
5123
5124 END
5125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5126 echo 'Configuration will proceed anyway, since you have set the' >&2
5127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5128 echo >&2
5129 else
5130 cat >&2 <<'END'
5131 Aborting the configuration process, to ensure you take notice of the issue.
5132
5133 You can download and install GNU coreutils to get an 'rm' implementation
5134 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5135
5136 If you want to complete the configuration process using your problematic
5137 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5138 to "yes", and re-run configure.
5139
5140 END
5141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5142 fi
5143 fi
5144
5145
5146 # Initialize libtool
5147 case `pwd` in
5148 *\ * | *\ *)
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5150 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5151 esac
5152
5153
5154
5155 macro_version='2.4.7'
5156 macro_revision='2.4.7'
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171 ltmain=$ac_aux_dir/ltmain.sh
5172
5173 # Backslashify metacharacters that are still active within
5174 # double-quoted strings.
5175 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5176
5177 # Same as above, but do not quote variable references.
5178 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5179
5180 # Sed substitution to delay expansion of an escaped shell variable in a
5181 # double_quote_subst'ed string.
5182 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5183
5184 # Sed substitution to delay expansion of an escaped single quote.
5185 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5186
5187 # Sed substitution to avoid accidental globbing in evaled expressions
5188 no_glob_subst='s/\*/\\\*/g'
5189
5190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5191 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5193
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5195 printf %s "checking how to print strings... " >&6; }
5196 # Test print first, because it will be a builtin if present.
5197 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5198 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5199 ECHO='print -r --'
5200 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5201 ECHO='printf %s\n'
5202 else
5203 # Use this function as a fallback that always works.
5204 func_fallback_echo ()
5205 {
5206 eval 'cat <<_LTECHO_EOF
5207 $1
5208 _LTECHO_EOF'
5209 }
5210 ECHO='func_fallback_echo'
5211 fi
5212
5213 # func_echo_all arg...
5214 # Invoke $ECHO with all args, space-separated.
5215 func_echo_all ()
5216 {
5217 $ECHO ""
5218 }
5219
5220 case $ECHO in
5221 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5222 printf "%s\n" "printf" >&6; } ;;
5223 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5224 printf "%s\n" "print -r" >&6; } ;;
5225 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5226 printf "%s\n" "cat" >&6; } ;;
5227 esac
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5243 printf %s "checking for a sed that does not truncate output... " >&6; }
5244 if test ${ac_cv_path_SED+y}
5245 then :
5246 printf %s "(cached) " >&6
5247 else $as_nop
5248 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5249 for ac_i in 1 2 3 4 5 6 7; do
5250 ac_script="$ac_script$as_nl$ac_script"
5251 done
5252 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5253 { ac_script=; unset ac_script;}
5254 if test -z "$SED"; then
5255 ac_path_SED_found=false
5256 # Loop through the user's path and test for each of PROGNAME-LIST
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 case $as_dir in #(((
5262 '') as_dir=./ ;;
5263 */) ;;
5264 *) as_dir=$as_dir/ ;;
5265 esac
5266 for ac_prog in sed gsed
5267 do
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5270 as_fn_executable_p "$ac_path_SED" || continue
5271 # Check for GNU ac_path_SED and select it if it is found.
5272 # Check for GNU $ac_path_SED
5273 case `"$ac_path_SED" --version 2>&1` in
5274 *GNU*)
5275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5276 *)
5277 ac_count=0
5278 printf %s 0123456789 >"conftest.in"
5279 while :
5280 do
5281 cat "conftest.in" "conftest.in" >"conftest.tmp"
5282 mv "conftest.tmp" "conftest.in"
5283 cp "conftest.in" "conftest.nl"
5284 printf "%s\n" '' >> "conftest.nl"
5285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287 as_fn_arith $ac_count + 1 && ac_count=$as_val
5288 if test $ac_count -gt ${ac_path_SED_max-0}; then
5289 # Best one so far, save it but keep looking for a better one
5290 ac_cv_path_SED="$ac_path_SED"
5291 ac_path_SED_max=$ac_count
5292 fi
5293 # 10*(2^10) chars as input seems more than enough
5294 test $ac_count -gt 10 && break
5295 done
5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297 esac
5298
5299 $ac_path_SED_found && break 3
5300 done
5301 done
5302 done
5303 IFS=$as_save_IFS
5304 if test -z "$ac_cv_path_SED"; then
5305 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5306 fi
5307 else
5308 ac_cv_path_SED=$SED
5309 fi
5310
5311 fi
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313 printf "%s\n" "$ac_cv_path_SED" >&6; }
5314 SED="$ac_cv_path_SED"
5315 rm -f conftest.sed
5316
5317 test -z "$SED" && SED=sed
5318 Xsed="$SED -e 1s/^X//"
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5331 printf %s "checking for grep that handles long lines and -e... " >&6; }
5332 if test ${ac_cv_path_GREP+y}
5333 then :
5334 printf %s "(cached) " >&6
5335 else $as_nop
5336 if test -z "$GREP"; then
5337 ac_path_GREP_found=false
5338 # Loop through the user's path and test for each of PROGNAME-LIST
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5341 do
5342 IFS=$as_save_IFS
5343 case $as_dir in #(((
5344 '') as_dir=./ ;;
5345 */) ;;
5346 *) as_dir=$as_dir/ ;;
5347 esac
5348 for ac_prog in grep ggrep
5349 do
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5352 as_fn_executable_p "$ac_path_GREP" || continue
5353 # Check for GNU ac_path_GREP and select it if it is found.
5354 # Check for GNU $ac_path_GREP
5355 case `"$ac_path_GREP" --version 2>&1` in
5356 *GNU*)
5357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5358 *)
5359 ac_count=0
5360 printf %s 0123456789 >"conftest.in"
5361 while :
5362 do
5363 cat "conftest.in" "conftest.in" >"conftest.tmp"
5364 mv "conftest.tmp" "conftest.in"
5365 cp "conftest.in" "conftest.nl"
5366 printf "%s\n" 'GREP' >> "conftest.nl"
5367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5369 as_fn_arith $ac_count + 1 && ac_count=$as_val
5370 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5371 # Best one so far, save it but keep looking for a better one
5372 ac_cv_path_GREP="$ac_path_GREP"
5373 ac_path_GREP_max=$ac_count
5374 fi
5375 # 10*(2^10) chars as input seems more than enough
5376 test $ac_count -gt 10 && break
5377 done
5378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5379 esac
5380
5381 $ac_path_GREP_found && break 3
5382 done
5383 done
5384 done
5385 IFS=$as_save_IFS
5386 if test -z "$ac_cv_path_GREP"; then
5387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5388 fi
5389 else
5390 ac_cv_path_GREP=$GREP
5391 fi
5392
5393 fi
5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5395 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5396 GREP="$ac_cv_path_GREP"
5397
5398
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5400 printf %s "checking for egrep... " >&6; }
5401 if test ${ac_cv_path_EGREP+y}
5402 then :
5403 printf %s "(cached) " >&6
5404 else $as_nop
5405 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5406 then ac_cv_path_EGREP="$GREP -E"
5407 else
5408 if test -z "$EGREP"; then
5409 ac_path_EGREP_found=false
5410 # Loop through the user's path and test for each of PROGNAME-LIST
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5413 do
5414 IFS=$as_save_IFS
5415 case $as_dir in #(((
5416 '') as_dir=./ ;;
5417 */) ;;
5418 *) as_dir=$as_dir/ ;;
5419 esac
5420 for ac_prog in egrep
5421 do
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5424 as_fn_executable_p "$ac_path_EGREP" || continue
5425 # Check for GNU ac_path_EGREP and select it if it is found.
5426 # Check for GNU $ac_path_EGREP
5427 case `"$ac_path_EGREP" --version 2>&1` in
5428 *GNU*)
5429 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5430 *)
5431 ac_count=0
5432 printf %s 0123456789 >"conftest.in"
5433 while :
5434 do
5435 cat "conftest.in" "conftest.in" >"conftest.tmp"
5436 mv "conftest.tmp" "conftest.in"
5437 cp "conftest.in" "conftest.nl"
5438 printf "%s\n" 'EGREP' >> "conftest.nl"
5439 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5441 as_fn_arith $ac_count + 1 && ac_count=$as_val
5442 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5443 # Best one so far, save it but keep looking for a better one
5444 ac_cv_path_EGREP="$ac_path_EGREP"
5445 ac_path_EGREP_max=$ac_count
5446 fi
5447 # 10*(2^10) chars as input seems more than enough
5448 test $ac_count -gt 10 && break
5449 done
5450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5451 esac
5452
5453 $ac_path_EGREP_found && break 3
5454 done
5455 done
5456 done
5457 IFS=$as_save_IFS
5458 if test -z "$ac_cv_path_EGREP"; then
5459 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5460 fi
5461 else
5462 ac_cv_path_EGREP=$EGREP
5463 fi
5464
5465 fi
5466 fi
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5468 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5469 EGREP="$ac_cv_path_EGREP"
5470
5471
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5473 printf %s "checking for fgrep... " >&6; }
5474 if test ${ac_cv_path_FGREP+y}
5475 then :
5476 printf %s "(cached) " >&6
5477 else $as_nop
5478 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5479 then ac_cv_path_FGREP="$GREP -F"
5480 else
5481 if test -z "$FGREP"; then
5482 ac_path_FGREP_found=false
5483 # Loop through the user's path and test for each of PROGNAME-LIST
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5486 do
5487 IFS=$as_save_IFS
5488 case $as_dir in #(((
5489 '') as_dir=./ ;;
5490 */) ;;
5491 *) as_dir=$as_dir/ ;;
5492 esac
5493 for ac_prog in fgrep
5494 do
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5497 as_fn_executable_p "$ac_path_FGREP" || continue
5498 # Check for GNU ac_path_FGREP and select it if it is found.
5499 # Check for GNU $ac_path_FGREP
5500 case `"$ac_path_FGREP" --version 2>&1` in
5501 *GNU*)
5502 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5503 *)
5504 ac_count=0
5505 printf %s 0123456789 >"conftest.in"
5506 while :
5507 do
5508 cat "conftest.in" "conftest.in" >"conftest.tmp"
5509 mv "conftest.tmp" "conftest.in"
5510 cp "conftest.in" "conftest.nl"
5511 printf "%s\n" 'FGREP' >> "conftest.nl"
5512 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5514 as_fn_arith $ac_count + 1 && ac_count=$as_val
5515 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5516 # Best one so far, save it but keep looking for a better one
5517 ac_cv_path_FGREP="$ac_path_FGREP"
5518 ac_path_FGREP_max=$ac_count
5519 fi
5520 # 10*(2^10) chars as input seems more than enough
5521 test $ac_count -gt 10 && break
5522 done
5523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5524 esac
5525
5526 $ac_path_FGREP_found && break 3
5527 done
5528 done
5529 done
5530 IFS=$as_save_IFS
5531 if test -z "$ac_cv_path_FGREP"; then
5532 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5533 fi
5534 else
5535 ac_cv_path_FGREP=$FGREP
5536 fi
5537
5538 fi
5539 fi
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5541 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5542 FGREP="$ac_cv_path_FGREP"
5543
5544
5545 test -z "$GREP" && GREP=grep
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565 # Check whether --with-gnu-ld was given.
5566 if test ${with_gnu_ld+y}
5567 then :
5568 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5569 else $as_nop
5570 with_gnu_ld=no
5571 fi
5572
5573 ac_prog=ld
5574 if test yes = "$GCC"; then
5575 # Check if gcc -print-prog-name=ld gives a path.
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5577 printf %s "checking for ld used by $CC... " >&6; }
5578 case $host in
5579 *-*-mingw*)
5580 # gcc leaves a trailing carriage return, which upsets mingw
5581 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5582 *)
5583 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5584 esac
5585 case $ac_prog in
5586 # Accept absolute paths.
5587 [\\/]* | ?:[\\/]*)
5588 re_direlt='/[^/][^/]*/\.\./'
5589 # Canonicalize the pathname of ld
5590 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5591 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5592 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5593 done
5594 test -z "$LD" && LD=$ac_prog
5595 ;;
5596 "")
5597 # If it fails, then pretend we aren't using GCC.
5598 ac_prog=ld
5599 ;;
5600 *)
5601 # If it is relative, then search for the first ld in PATH.
5602 with_gnu_ld=unknown
5603 ;;
5604 esac
5605 elif test yes = "$with_gnu_ld"; then
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5607 printf %s "checking for GNU ld... " >&6; }
5608 else
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5610 printf %s "checking for non-GNU ld... " >&6; }
5611 fi
5612 if test ${lt_cv_path_LD+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else $as_nop
5616 if test -z "$LD"; then
5617 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5618 for ac_dir in $PATH; do
5619 IFS=$lt_save_ifs
5620 test -z "$ac_dir" && ac_dir=.
5621 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5622 lt_cv_path_LD=$ac_dir/$ac_prog
5623 # Check to see if the program is GNU ld. I'd rather use --version,
5624 # but apparently some variants of GNU ld only accept -v.
5625 # Break only if it was the GNU/non-GNU ld that we prefer.
5626 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5627 *GNU* | *'with BFD'*)
5628 test no != "$with_gnu_ld" && break
5629 ;;
5630 *)
5631 test yes != "$with_gnu_ld" && break
5632 ;;
5633 esac
5634 fi
5635 done
5636 IFS=$lt_save_ifs
5637 else
5638 lt_cv_path_LD=$LD # Let the user override the test with a path.
5639 fi
5640 fi
5641
5642 LD=$lt_cv_path_LD
5643 if test -n "$LD"; then
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5645 printf "%s\n" "$LD" >&6; }
5646 else
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 printf "%s\n" "no" >&6; }
5649 fi
5650 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5652 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5653 if test ${lt_cv_prog_gnu_ld+y}
5654 then :
5655 printf %s "(cached) " >&6
5656 else $as_nop
5657 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5658 case `$LD -v 2>&1 </dev/null` in
5659 *GNU* | *'with BFD'*)
5660 lt_cv_prog_gnu_ld=yes
5661 ;;
5662 *)
5663 lt_cv_prog_gnu_ld=no
5664 ;;
5665 esac
5666 fi
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5668 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5669 with_gnu_ld=$lt_cv_prog_gnu_ld
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5680 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5681 if test ${lt_cv_path_NM+y}
5682 then :
5683 printf %s "(cached) " >&6
5684 else $as_nop
5685 if test -n "$NM"; then
5686 # Let the user override the test.
5687 lt_cv_path_NM=$NM
5688 else
5689 lt_nm_to_check=${ac_tool_prefix}nm
5690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5691 lt_nm_to_check="$lt_nm_to_check nm"
5692 fi
5693 for lt_tmp_nm in $lt_nm_to_check; do
5694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5695 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5696 IFS=$lt_save_ifs
5697 test -z "$ac_dir" && ac_dir=.
5698 tmp_nm=$ac_dir/$lt_tmp_nm
5699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5700 # Check to see if the nm accepts a BSD-compat flag.
5701 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5702 # nm: unknown option "B" ignored
5703 # Tru64's nm complains that /dev/null is an invalid object file
5704 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5705 case $build_os in
5706 mingw*) lt_bad_file=conftest.nm/nofile ;;
5707 *) lt_bad_file=/dev/null ;;
5708 esac
5709 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5710 *$lt_bad_file* | *'Invalid file or object type'*)
5711 lt_cv_path_NM="$tmp_nm -B"
5712 break 2
5713 ;;
5714 *)
5715 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5716 */dev/null*)
5717 lt_cv_path_NM="$tmp_nm -p"
5718 break 2
5719 ;;
5720 *)
5721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5722 continue # so that we can try to find one that supports BSD flags
5723 ;;
5724 esac
5725 ;;
5726 esac
5727 fi
5728 done
5729 IFS=$lt_save_ifs
5730 done
5731 : ${lt_cv_path_NM=no}
5732 fi
5733 fi
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5735 printf "%s\n" "$lt_cv_path_NM" >&6; }
5736 if test no != "$lt_cv_path_NM"; then
5737 NM=$lt_cv_path_NM
5738 else
5739 # Didn't find any BSD compatible name lister, look for dumpbin.
5740 if test -n "$DUMPBIN"; then :
5741 # Let the user override the test.
5742 else
5743 if test -n "$ac_tool_prefix"; then
5744 for ac_prog in dumpbin "link -dump"
5745 do
5746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 printf %s "checking for $ac_word... " >&6; }
5750 if test ${ac_cv_prog_DUMPBIN+y}
5751 then :
5752 printf %s "(cached) " >&6
5753 else $as_nop
5754 if test -n "$DUMPBIN"; then
5755 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760 IFS=$as_save_IFS
5761 case $as_dir in #(((
5762 '') as_dir=./ ;;
5763 */) ;;
5764 *) as_dir=$as_dir/ ;;
5765 esac
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5768 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5770 break 2
5771 fi
5772 done
5773 done
5774 IFS=$as_save_IFS
5775
5776 fi
5777 fi
5778 DUMPBIN=$ac_cv_prog_DUMPBIN
5779 if test -n "$DUMPBIN"; then
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5781 printf "%s\n" "$DUMPBIN" >&6; }
5782 else
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 printf "%s\n" "no" >&6; }
5785 fi
5786
5787
5788 test -n "$DUMPBIN" && break
5789 done
5790 fi
5791 if test -z "$DUMPBIN"; then
5792 ac_ct_DUMPBIN=$DUMPBIN
5793 for ac_prog in dumpbin "link -dump"
5794 do
5795 # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 printf %s "checking for $ac_word... " >&6; }
5799 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5800 then :
5801 printf %s "(cached) " >&6
5802 else $as_nop
5803 if test -n "$ac_ct_DUMPBIN"; then
5804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5808 do
5809 IFS=$as_save_IFS
5810 case $as_dir in #(((
5811 '') as_dir=./ ;;
5812 */) ;;
5813 *) as_dir=$as_dir/ ;;
5814 esac
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821 done
5822 done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5828 if test -n "$ac_ct_DUMPBIN"; then
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5830 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5831 else
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 printf "%s\n" "no" >&6; }
5834 fi
5835
5836
5837 test -n "$ac_ct_DUMPBIN" && break
5838 done
5839
5840 if test "x$ac_ct_DUMPBIN" = x; then
5841 DUMPBIN=":"
5842 else
5843 case $cross_compiling:$ac_tool_warned in
5844 yes:)
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5846 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5847 ac_tool_warned=yes ;;
5848 esac
5849 DUMPBIN=$ac_ct_DUMPBIN
5850 fi
5851 fi
5852
5853 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5854 *COFF*)
5855 DUMPBIN="$DUMPBIN -symbols -headers"
5856 ;;
5857 *)
5858 DUMPBIN=:
5859 ;;
5860 esac
5861 fi
5862
5863 if test : != "$DUMPBIN"; then
5864 NM=$DUMPBIN
5865 fi
5866 fi
5867 test -z "$NM" && NM=nm
5868
5869
5870
5871
5872
5873
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5875 printf %s "checking the name lister ($NM) interface... " >&6; }
5876 if test ${lt_cv_nm_interface+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else $as_nop
5880 lt_cv_nm_interface="BSD nm"
5881 echo "int some_variable = 0;" > conftest.$ac_ext
5882 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5883 (eval "$ac_compile" 2>conftest.err)
5884 cat conftest.err >&5
5885 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5886 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5887 cat conftest.err >&5
5888 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5889 cat conftest.out >&5
5890 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5891 lt_cv_nm_interface="MS dumpbin"
5892 fi
5893 rm -f conftest*
5894 fi
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5896 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5897
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5899 printf %s "checking whether ln -s works... " >&6; }
5900 LN_S=$as_ln_s
5901 if test "$LN_S" = "ln -s"; then
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5903 printf "%s\n" "yes" >&6; }
5904 else
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5906 printf "%s\n" "no, using $LN_S" >&6; }
5907 fi
5908
5909 # find the maximum length of command line arguments
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5911 printf %s "checking the maximum length of command line arguments... " >&6; }
5912 if test ${lt_cv_sys_max_cmd_len+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else $as_nop
5916 i=0
5917 teststring=ABCD
5918
5919 case $build_os in
5920 msdosdjgpp*)
5921 # On DJGPP, this test can blow up pretty badly due to problems in libc
5922 # (any single argument exceeding 2000 bytes causes a buffer overrun
5923 # during glob expansion). Even if it were fixed, the result of this
5924 # check would be larger than it should be.
5925 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5926 ;;
5927
5928 gnu*)
5929 # Under GNU Hurd, this test is not required because there is
5930 # no limit to the length of command line arguments.
5931 # Libtool will interpret -1 as no limit whatsoever
5932 lt_cv_sys_max_cmd_len=-1;
5933 ;;
5934
5935 cygwin* | mingw* | cegcc*)
5936 # On Win9x/ME, this test blows up -- it succeeds, but takes
5937 # about 5 minutes as the teststring grows exponentially.
5938 # Worse, since 9x/ME are not pre-emptively multitasking,
5939 # you end up with a "frozen" computer, even though with patience
5940 # the test eventually succeeds (with a max line length of 256k).
5941 # Instead, let's just punt: use the minimum linelength reported by
5942 # all of the supported platforms: 8192 (on NT/2K/XP).
5943 lt_cv_sys_max_cmd_len=8192;
5944 ;;
5945
5946 mint*)
5947 # On MiNT this can take a long time and run out of memory.
5948 lt_cv_sys_max_cmd_len=8192;
5949 ;;
5950
5951 amigaos*)
5952 # On AmigaOS with pdksh, this test takes hours, literally.
5953 # So we just punt and use a minimum line length of 8192.
5954 lt_cv_sys_max_cmd_len=8192;
5955 ;;
5956
5957 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5958 # This has been around since 386BSD, at least. Likely further.
5959 if test -x /sbin/sysctl; then
5960 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5961 elif test -x /usr/sbin/sysctl; then
5962 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5963 else
5964 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5965 fi
5966 # And add a safety zone
5967 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5969 ;;
5970
5971 interix*)
5972 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5973 lt_cv_sys_max_cmd_len=196608
5974 ;;
5975
5976 os2*)
5977 # The test takes a long time on OS/2.
5978 lt_cv_sys_max_cmd_len=8192
5979 ;;
5980
5981 osf*)
5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984 # nice to cause kernel panics so lets avoid the loop below.
5985 # First set a reasonable default.
5986 lt_cv_sys_max_cmd_len=16384
5987 #
5988 if test -x /sbin/sysconfig; then
5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991 esac
5992 fi
5993 ;;
5994 sco3.2v5*)
5995 lt_cv_sys_max_cmd_len=102400
5996 ;;
5997 sysv5* | sco5v6* | sysv4.2uw2*)
5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999 if test -n "$kargmax"; then
6000 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6001 else
6002 lt_cv_sys_max_cmd_len=32768
6003 fi
6004 ;;
6005 *)
6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6007 if test -n "$lt_cv_sys_max_cmd_len" && \
6008 test undefined != "$lt_cv_sys_max_cmd_len"; then
6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6011 else
6012 # Make teststring a little bigger before we do anything with it.
6013 # a 1K string should be a reasonable start.
6014 for i in 1 2 3 4 5 6 7 8; do
6015 teststring=$teststring$teststring
6016 done
6017 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6018 # If test is not a shell built-in, we'll probably end up computing a
6019 # maximum length that is only half of the actual maximum length, but
6020 # we can't tell.
6021 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6022 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6023 test 17 != "$i" # 1/2 MB should be enough
6024 do
6025 i=`expr $i + 1`
6026 teststring=$teststring$teststring
6027 done
6028 # Only check the string length outside the loop.
6029 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6030 teststring=
6031 # Add a significant safety factor because C++ compilers can tack on
6032 # massive amounts of additional arguments before passing them to the
6033 # linker. It appears as though 1/2 is a usable value.
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6035 fi
6036 ;;
6037 esac
6038
6039 fi
6040
6041 if test -n "$lt_cv_sys_max_cmd_len"; then
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6043 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6044 else
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6046 printf "%s\n" "none" >&6; }
6047 fi
6048 max_cmd_len=$lt_cv_sys_max_cmd_len
6049
6050
6051
6052
6053
6054
6055 : ${CP="cp -f"}
6056 : ${MV="mv -f"}
6057 : ${RM="rm -f"}
6058
6059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6060 lt_unset=unset
6061 else
6062 lt_unset=false
6063 fi
6064
6065
6066
6067
6068
6069 # test EBCDIC or ASCII
6070 case `echo X|tr X '\101'` in
6071 A) # ASCII based system
6072 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6073 lt_SP2NL='tr \040 \012'
6074 lt_NL2SP='tr \015\012 \040\040'
6075 ;;
6076 *) # EBCDIC based system
6077 lt_SP2NL='tr \100 \n'
6078 lt_NL2SP='tr \r\n \100\100'
6079 ;;
6080 esac
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6091 printf %s "checking how to convert $build file names to $host format... " >&6; }
6092 if test ${lt_cv_to_host_file_cmd+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else $as_nop
6096 case $host in
6097 *-*-mingw* )
6098 case $build in
6099 *-*-mingw* ) # actually msys
6100 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6101 ;;
6102 *-*-cygwin* )
6103 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6104 ;;
6105 * ) # otherwise, assume *nix
6106 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6107 ;;
6108 esac
6109 ;;
6110 *-*-cygwin* )
6111 case $build in
6112 *-*-mingw* ) # actually msys
6113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6114 ;;
6115 *-*-cygwin* )
6116 lt_cv_to_host_file_cmd=func_convert_file_noop
6117 ;;
6118 * ) # otherwise, assume *nix
6119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6120 ;;
6121 esac
6122 ;;
6123 * ) # unhandled hosts (and "normal" native builds)
6124 lt_cv_to_host_file_cmd=func_convert_file_noop
6125 ;;
6126 esac
6127
6128 fi
6129
6130 to_host_file_cmd=$lt_cv_to_host_file_cmd
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6132 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6133
6134
6135
6136
6137
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6139 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6140 if test ${lt_cv_to_tool_file_cmd+y}
6141 then :
6142 printf %s "(cached) " >&6
6143 else $as_nop
6144 #assume ordinary cross tools, or native build.
6145 lt_cv_to_tool_file_cmd=func_convert_file_noop
6146 case $host in
6147 *-*-mingw* )
6148 case $build in
6149 *-*-mingw* ) # actually msys
6150 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6151 ;;
6152 esac
6153 ;;
6154 esac
6155
6156 fi
6157
6158 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6160 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6161
6162
6163
6164
6165
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6167 printf %s "checking for $LD option to reload object files... " >&6; }
6168 if test ${lt_cv_ld_reload_flag+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else $as_nop
6172 lt_cv_ld_reload_flag='-r'
6173 fi
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6175 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6176 reload_flag=$lt_cv_ld_reload_flag
6177 case $reload_flag in
6178 "" | " "*) ;;
6179 *) reload_flag=" $reload_flag" ;;
6180 esac
6181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6182 case $host_os in
6183 cygwin* | mingw* | pw32* | cegcc*)
6184 if test yes != "$GCC"; then
6185 reload_cmds=false
6186 fi
6187 ;;
6188 darwin*)
6189 if test yes = "$GCC"; then
6190 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6191 else
6192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 fi
6194 ;;
6195 esac
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}file; ac_word=$2
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 printf %s "checking for $ac_word... " >&6; }
6210 if test ${ac_cv_prog_FILECMD+y}
6211 then :
6212 printf %s "(cached) " >&6
6213 else $as_nop
6214 if test -n "$FILECMD"; then
6215 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 case $as_dir in #(((
6222 '') as_dir=./ ;;
6223 */) ;;
6224 *) as_dir=$as_dir/ ;;
6225 esac
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6228 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 FILECMD=$ac_cv_prog_FILECMD
6239 if test -n "$FILECMD"; then
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6241 printf "%s\n" "$FILECMD" >&6; }
6242 else
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 printf "%s\n" "no" >&6; }
6245 fi
6246
6247
6248 fi
6249 if test -z "$ac_cv_prog_FILECMD"; then
6250 ac_ct_FILECMD=$FILECMD
6251 # Extract the first word of "file", so it can be a program name with args.
6252 set dummy file; ac_word=$2
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254 printf %s "checking for $ac_word... " >&6; }
6255 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6256 then :
6257 printf %s "(cached) " >&6
6258 else $as_nop
6259 if test -n "$ac_ct_FILECMD"; then
6260 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 case $as_dir in #(((
6267 '') as_dir=./ ;;
6268 */) ;;
6269 *) as_dir=$as_dir/ ;;
6270 esac
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_ac_ct_FILECMD="file"
6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6284 if test -n "$ac_ct_FILECMD"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6286 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6287 else
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 printf "%s\n" "no" >&6; }
6290 fi
6291
6292 if test "x$ac_ct_FILECMD" = x; then
6293 FILECMD=":"
6294 else
6295 case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301 FILECMD=$ac_ct_FILECMD
6302 fi
6303 else
6304 FILECMD="$ac_cv_prog_FILECMD"
6305 fi
6306
6307
6308
6309
6310
6311
6312
6313 if test -n "$ac_tool_prefix"; then
6314 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6315 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 printf %s "checking for $ac_word... " >&6; }
6318 if test ${ac_cv_prog_OBJDUMP+y}
6319 then :
6320 printf %s "(cached) " >&6
6321 else $as_nop
6322 if test -n "$OBJDUMP"; then
6323 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328 IFS=$as_save_IFS
6329 case $as_dir in #(((
6330 '') as_dir=./ ;;
6331 */) ;;
6332 *) as_dir=$as_dir/ ;;
6333 esac
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6336 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 OBJDUMP=$ac_cv_prog_OBJDUMP
6347 if test -n "$OBJDUMP"; then
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6349 printf "%s\n" "$OBJDUMP" >&6; }
6350 else
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6352 printf "%s\n" "no" >&6; }
6353 fi
6354
6355
6356 fi
6357 if test -z "$ac_cv_prog_OBJDUMP"; then
6358 ac_ct_OBJDUMP=$OBJDUMP
6359 # Extract the first word of "objdump", so it can be a program name with args.
6360 set dummy objdump; ac_word=$2
6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 printf %s "checking for $ac_word... " >&6; }
6363 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6364 then :
6365 printf %s "(cached) " >&6
6366 else $as_nop
6367 if test -n "$ac_ct_OBJDUMP"; then
6368 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373 IFS=$as_save_IFS
6374 case $as_dir in #(((
6375 '') as_dir=./ ;;
6376 */) ;;
6377 *) as_dir=$as_dir/ ;;
6378 esac
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6383 break 2
6384 fi
6385 done
6386 done
6387 IFS=$as_save_IFS
6388
6389 fi
6390 fi
6391 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6392 if test -n "$ac_ct_OBJDUMP"; then
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6394 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6395 else
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 printf "%s\n" "no" >&6; }
6398 fi
6399
6400 if test "x$ac_ct_OBJDUMP" = x; then
6401 OBJDUMP="false"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409 OBJDUMP=$ac_ct_OBJDUMP
6410 fi
6411 else
6412 OBJDUMP="$ac_cv_prog_OBJDUMP"
6413 fi
6414
6415 test -z "$OBJDUMP" && OBJDUMP=objdump
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6426 printf %s "checking how to recognize dependent libraries... " >&6; }
6427 if test ${lt_cv_deplibs_check_method+y}
6428 then :
6429 printf %s "(cached) " >&6
6430 else $as_nop
6431 lt_cv_file_magic_cmd='$MAGIC_CMD'
6432 lt_cv_file_magic_test_file=
6433 lt_cv_deplibs_check_method='unknown'
6434 # Need to set the preceding variable on all platforms that support
6435 # interlibrary dependencies.
6436 # 'none' -- dependencies not supported.
6437 # 'unknown' -- same as none, but documents that we really don't know.
6438 # 'pass_all' -- all dependencies passed with no checks.
6439 # 'test_compile' -- check by making test program.
6440 # 'file_magic [[regex]]' -- check by looking for files in library path
6441 # that responds to the $file_magic_cmd with a given extended regex.
6442 # If you have 'file' or equivalent on your system and you're not sure
6443 # whether 'pass_all' will *always* work, you probably want this one.
6444
6445 case $host_os in
6446 aix[4-9]*)
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
6449
6450 beos*)
6451 lt_cv_deplibs_check_method=pass_all
6452 ;;
6453
6454 bsdi[45]*)
6455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6456 lt_cv_file_magic_cmd='$FILECMD -L'
6457 lt_cv_file_magic_test_file=/shlib/libc.so
6458 ;;
6459
6460 cygwin*)
6461 # func_win32_libid is a shell function defined in ltmain.sh
6462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6463 lt_cv_file_magic_cmd='func_win32_libid'
6464 ;;
6465
6466 mingw* | pw32*)
6467 # Base MSYS/MinGW do not provide the 'file' command needed by
6468 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6469 # unless we find 'file', for example because we are cross-compiling.
6470 if ( file / ) >/dev/null 2>&1; then
6471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6472 lt_cv_file_magic_cmd='func_win32_libid'
6473 else
6474 # Keep this pattern in sync with the one in func_win32_libid.
6475 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6476 lt_cv_file_magic_cmd='$OBJDUMP -f'
6477 fi
6478 ;;
6479
6480 cegcc*)
6481 # use the weaker test based on 'objdump'. See mingw*.
6482 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6483 lt_cv_file_magic_cmd='$OBJDUMP -f'
6484 ;;
6485
6486 darwin* | rhapsody*)
6487 lt_cv_deplibs_check_method=pass_all
6488 ;;
6489
6490 freebsd* | dragonfly* | midnightbsd*)
6491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6492 case $host_cpu in
6493 i*86 )
6494 # Not sure whether the presence of OpenBSD here was a mistake.
6495 # Let's accept both of them until this is cleared up.
6496 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6497 lt_cv_file_magic_cmd=$FILECMD
6498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6499 ;;
6500 esac
6501 else
6502 lt_cv_deplibs_check_method=pass_all
6503 fi
6504 ;;
6505
6506 haiku*)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509
6510 hpux10.20* | hpux11*)
6511 lt_cv_file_magic_cmd=$FILECMD
6512 case $host_cpu in
6513 ia64*)
6514 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6515 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6516 ;;
6517 hppa*64*)
6518 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]'
6519 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6520 ;;
6521 *)
6522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6523 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6524 ;;
6525 esac
6526 ;;
6527
6528 interix[3-9]*)
6529 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6531 ;;
6532
6533 irix5* | irix6* | nonstopux*)
6534 case $LD in
6535 *-32|*"-32 ") libmagic=32-bit;;
6536 *-n32|*"-n32 ") libmagic=N32;;
6537 *-64|*"-64 ") libmagic=64-bit;;
6538 *) libmagic=never-match;;
6539 esac
6540 lt_cv_deplibs_check_method=pass_all
6541 ;;
6542
6543 # This must be glibc/ELF.
6544 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6545 lt_cv_deplibs_check_method=pass_all
6546 ;;
6547
6548 netbsd*)
6549 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6551 else
6552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6553 fi
6554 ;;
6555
6556 newos6*)
6557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6558 lt_cv_file_magic_cmd=$FILECMD
6559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6560 ;;
6561
6562 *nto* | *qnx*)
6563 lt_cv_deplibs_check_method=pass_all
6564 ;;
6565
6566 openbsd* | bitrig*)
6567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6569 else
6570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6571 fi
6572 ;;
6573
6574 osf3* | osf4* | osf5*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578 rdos*)
6579 lt_cv_deplibs_check_method=pass_all
6580 ;;
6581
6582 solaris*)
6583 lt_cv_deplibs_check_method=pass_all
6584 ;;
6585
6586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6587 lt_cv_deplibs_check_method=pass_all
6588 ;;
6589
6590 sysv4 | sysv4.3*)
6591 case $host_vendor in
6592 motorola)
6593 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]'
6594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6595 ;;
6596 ncr)
6597 lt_cv_deplibs_check_method=pass_all
6598 ;;
6599 sequent)
6600 lt_cv_file_magic_cmd='/bin/file'
6601 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6602 ;;
6603 sni)
6604 lt_cv_file_magic_cmd='/bin/file'
6605 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6606 lt_cv_file_magic_test_file=/lib/libc.so
6607 ;;
6608 siemens)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611 pc)
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614 esac
6615 ;;
6616
6617 tpf*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620 os2*)
6621 lt_cv_deplibs_check_method=pass_all
6622 ;;
6623 esac
6624
6625 fi
6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6627 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6628
6629 file_magic_glob=
6630 want_nocaseglob=no
6631 if test "$build" = "$host"; then
6632 case $host_os in
6633 mingw* | pw32*)
6634 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6635 want_nocaseglob=yes
6636 else
6637 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6638 fi
6639 ;;
6640 esac
6641 fi
6642
6643 file_magic_cmd=$lt_cv_file_magic_cmd
6644 deplibs_check_method=$lt_cv_deplibs_check_method
6645 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 if test -n "$ac_tool_prefix"; then
6669 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 printf %s "checking for $ac_word... " >&6; }
6673 if test ${ac_cv_prog_DLLTOOL+y}
6674 then :
6675 printf %s "(cached) " >&6
6676 else $as_nop
6677 if test -n "$DLLTOOL"; then
6678 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 case $as_dir in #(((
6685 '') as_dir=./ ;;
6686 */) ;;
6687 *) as_dir=$as_dir/ ;;
6688 esac
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6693 break 2
6694 fi
6695 done
6696 done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 DLLTOOL=$ac_cv_prog_DLLTOOL
6702 if test -n "$DLLTOOL"; then
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6704 printf "%s\n" "$DLLTOOL" >&6; }
6705 else
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 printf "%s\n" "no" >&6; }
6708 fi
6709
6710
6711 fi
6712 if test -z "$ac_cv_prog_DLLTOOL"; then
6713 ac_ct_DLLTOOL=$DLLTOOL
6714 # Extract the first word of "dlltool", so it can be a program name with args.
6715 set dummy dlltool; ac_word=$2
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 printf %s "checking for $ac_word... " >&6; }
6718 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6719 then :
6720 printf %s "(cached) " >&6
6721 else $as_nop
6722 if test -n "$ac_ct_DLLTOOL"; then
6723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728 IFS=$as_save_IFS
6729 case $as_dir in #(((
6730 '') as_dir=./ ;;
6731 */) ;;
6732 *) as_dir=$as_dir/ ;;
6733 esac
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6747 if test -n "$ac_ct_DLLTOOL"; then
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6749 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6750 else
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 printf "%s\n" "no" >&6; }
6753 fi
6754
6755 if test "x$ac_ct_DLLTOOL" = x; then
6756 DLLTOOL="false"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764 DLLTOOL=$ac_ct_DLLTOOL
6765 fi
6766 else
6767 DLLTOOL="$ac_cv_prog_DLLTOOL"
6768 fi
6769
6770 test -z "$DLLTOOL" && DLLTOOL=dlltool
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6782 printf %s "checking how to associate runtime and link libraries... " >&6; }
6783 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6784 then :
6785 printf %s "(cached) " >&6
6786 else $as_nop
6787 lt_cv_sharedlib_from_linklib_cmd='unknown'
6788
6789 case $host_os in
6790 cygwin* | mingw* | pw32* | cegcc*)
6791 # two different shell functions defined in ltmain.sh;
6792 # decide which one to use based on capabilities of $DLLTOOL
6793 case `$DLLTOOL --help 2>&1` in
6794 *--identify-strict*)
6795 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6796 ;;
6797 *)
6798 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6799 ;;
6800 esac
6801 ;;
6802 *)
6803 # fallback: assume linklib IS sharedlib
6804 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6805 ;;
6806 esac
6807
6808 fi
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6810 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6811 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6812 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821 for ac_prog in ar
6822 do
6823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 printf %s "checking for $ac_word... " >&6; }
6827 if test ${ac_cv_prog_AR+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else $as_nop
6831 if test -n "$AR"; then
6832 ac_cv_prog_AR="$AR" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837 IFS=$as_save_IFS
6838 case $as_dir in #(((
6839 '') as_dir=./ ;;
6840 */) ;;
6841 *) as_dir=$as_dir/ ;;
6842 esac
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 AR=$ac_cv_prog_AR
6856 if test -n "$AR"; then
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6858 printf "%s\n" "$AR" >&6; }
6859 else
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 printf "%s\n" "no" >&6; }
6862 fi
6863
6864
6865 test -n "$AR" && break
6866 done
6867 fi
6868 if test -z "$AR"; then
6869 ac_ct_AR=$AR
6870 for ac_prog in ar
6871 do
6872 # Extract the first word of "$ac_prog", so it can be a program name with args.
6873 set dummy $ac_prog; ac_word=$2
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 printf %s "checking for $ac_word... " >&6; }
6876 if test ${ac_cv_prog_ac_ct_AR+y}
6877 then :
6878 printf %s "(cached) " >&6
6879 else $as_nop
6880 if test -n "$ac_ct_AR"; then
6881 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 case $as_dir in #(((
6888 '') as_dir=./ ;;
6889 */) ;;
6890 *) as_dir=$as_dir/ ;;
6891 esac
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_ac_ct_AR="$ac_prog"
6895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6905 if test -n "$ac_ct_AR"; then
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6907 printf "%s\n" "$ac_ct_AR" >&6; }
6908 else
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 printf "%s\n" "no" >&6; }
6911 fi
6912
6913
6914 test -n "$ac_ct_AR" && break
6915 done
6916
6917 if test "x$ac_ct_AR" = x; then
6918 AR="false"
6919 else
6920 case $cross_compiling:$ac_tool_warned in
6921 yes:)
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6925 esac
6926 AR=$ac_ct_AR
6927 fi
6928 fi
6929
6930 : ${AR=ar}
6931
6932
6933
6934
6935
6936
6937 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6938 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6939 # higher priority because thats what people were doing historically (setting
6940 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6941 # variable obsoleted/removed.
6942
6943 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6944 lt_ar_flags=$AR_FLAGS
6945
6946
6947
6948
6949
6950
6951 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6952 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6953
6954
6955
6956
6957
6958
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6960 printf %s "checking for archiver @FILE support... " >&6; }
6961 if test ${lt_cv_ar_at_file+y}
6962 then :
6963 printf %s "(cached) " >&6
6964 else $as_nop
6965 lt_cv_ar_at_file=no
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968
6969 int
6970 main (void)
6971 {
6972
6973 ;
6974 return 0;
6975 }
6976 _ACEOF
6977 if ac_fn_c_try_compile "$LINENO"
6978 then :
6979 echo conftest.$ac_objext > conftest.lst
6980 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6982 (eval $lt_ar_try) 2>&5
6983 ac_status=$?
6984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6985 test $ac_status = 0; }
6986 if test 0 -eq "$ac_status"; then
6987 # Ensure the archiver fails upon bogus file names.
6988 rm -f conftest.$ac_objext libconftest.a
6989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6990 (eval $lt_ar_try) 2>&5
6991 ac_status=$?
6992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6993 test $ac_status = 0; }
6994 if test 0 -ne "$ac_status"; then
6995 lt_cv_ar_at_file=@
6996 fi
6997 fi
6998 rm -f conftest.* libconftest.a
6999
7000 fi
7001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7002
7003 fi
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7005 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7006
7007 if test no = "$lt_cv_ar_at_file"; then
7008 archiver_list_spec=
7009 else
7010 archiver_list_spec=$lt_cv_ar_at_file
7011 fi
7012
7013
7014
7015
7016
7017
7018
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}strip; ac_word=$2
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 printf %s "checking for $ac_word... " >&6; }
7024 if test ${ac_cv_prog_STRIP+y}
7025 then :
7026 printf %s "(cached) " >&6
7027 else $as_nop
7028 if test -n "$STRIP"; then
7029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034 IFS=$as_save_IFS
7035 case $as_dir in #(((
7036 '') as_dir=./ ;;
7037 */) ;;
7038 *) as_dir=$as_dir/ ;;
7039 esac
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7044 break 2
7045 fi
7046 done
7047 done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 STRIP=$ac_cv_prog_STRIP
7053 if test -n "$STRIP"; then
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7055 printf "%s\n" "$STRIP" >&6; }
7056 else
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 printf "%s\n" "no" >&6; }
7059 fi
7060
7061
7062 fi
7063 if test -z "$ac_cv_prog_STRIP"; then
7064 ac_ct_STRIP=$STRIP
7065 # Extract the first word of "strip", so it can be a program name with args.
7066 set dummy strip; ac_word=$2
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 printf %s "checking for $ac_word... " >&6; }
7069 if test ${ac_cv_prog_ac_ct_STRIP+y}
7070 then :
7071 printf %s "(cached) " >&6
7072 else $as_nop
7073 if test -n "$ac_ct_STRIP"; then
7074 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079 IFS=$as_save_IFS
7080 case $as_dir in #(((
7081 '') as_dir=./ ;;
7082 */) ;;
7083 *) as_dir=$as_dir/ ;;
7084 esac
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_ac_ct_STRIP="strip"
7088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7098 if test -n "$ac_ct_STRIP"; then
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7100 printf "%s\n" "$ac_ct_STRIP" >&6; }
7101 else
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 printf "%s\n" "no" >&6; }
7104 fi
7105
7106 if test "x$ac_ct_STRIP" = x; then
7107 STRIP=":"
7108 else
7109 case $cross_compiling:$ac_tool_warned in
7110 yes:)
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7112 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7113 ac_tool_warned=yes ;;
7114 esac
7115 STRIP=$ac_ct_STRIP
7116 fi
7117 else
7118 STRIP="$ac_cv_prog_STRIP"
7119 fi
7120
7121 test -z "$STRIP" && STRIP=:
7122
7123
7124
7125
7126
7127
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 printf %s "checking for $ac_word... " >&6; }
7133 if test ${ac_cv_prog_RANLIB+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else $as_nop
7137 if test -n "$RANLIB"; then
7138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139 else
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7142 do
7143 IFS=$as_save_IFS
7144 case $as_dir in #(((
7145 '') as_dir=./ ;;
7146 */) ;;
7147 *) as_dir=$as_dir/ ;;
7148 esac
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 RANLIB=$ac_cv_prog_RANLIB
7162 if test -n "$RANLIB"; then
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7164 printf "%s\n" "$RANLIB" >&6; }
7165 else
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 printf "%s\n" "no" >&6; }
7168 fi
7169
7170
7171 fi
7172 if test -z "$ac_cv_prog_RANLIB"; then
7173 ac_ct_RANLIB=$RANLIB
7174 # Extract the first word of "ranlib", so it can be a program name with args.
7175 set dummy ranlib; ac_word=$2
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 printf %s "checking for $ac_word... " >&6; }
7178 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7179 then :
7180 printf %s "(cached) " >&6
7181 else $as_nop
7182 if test -n "$ac_ct_RANLIB"; then
7183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188 IFS=$as_save_IFS
7189 case $as_dir in #(((
7190 '') as_dir=./ ;;
7191 */) ;;
7192 *) as_dir=$as_dir/ ;;
7193 esac
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_ac_ct_RANLIB="ranlib"
7197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7207 if test -n "$ac_ct_RANLIB"; then
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7209 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7210 else
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 printf "%s\n" "no" >&6; }
7213 fi
7214
7215 if test "x$ac_ct_RANLIB" = x; then
7216 RANLIB=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224 RANLIB=$ac_ct_RANLIB
7225 fi
7226 else
7227 RANLIB="$ac_cv_prog_RANLIB"
7228 fi
7229
7230 test -z "$RANLIB" && RANLIB=:
7231
7232
7233
7234
7235
7236
7237 # Determine commands to create old-style static archives.
7238 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7239 old_postinstall_cmds='chmod 644 $oldlib'
7240 old_postuninstall_cmds=
7241
7242 if test -n "$RANLIB"; then
7243 case $host_os in
7244 bitrig* | openbsd*)
7245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7246 ;;
7247 *)
7248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7249 ;;
7250 esac
7251 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7252 fi
7253
7254 case $host_os in
7255 darwin*)
7256 lock_old_archive_extraction=yes ;;
7257 *)
7258 lock_old_archive_extraction=no ;;
7259 esac
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299 # If no C compiler was specified, use CC.
7300 LTCC=${LTCC-"$CC"}
7301
7302 # If no C compiler flags were specified, use CFLAGS.
7303 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7304
7305 # Allow CC to be a program name with arguments.
7306 compiler=$CC
7307
7308
7309 # Check for command to grab the raw symbol name followed by C symbol from nm.
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7311 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7312 if test ${lt_cv_sys_global_symbol_pipe+y}
7313 then :
7314 printf %s "(cached) " >&6
7315 else $as_nop
7316
7317 # These are sane defaults that work on at least a few old systems.
7318 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7319
7320 # Character class describing NM global symbol codes.
7321 symcode='[BCDEGRST]'
7322
7323 # Regexp to match symbols that can be accessed directly from C.
7324 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7325
7326 # Define system-specific variables.
7327 case $host_os in
7328 aix*)
7329 symcode='[BCDT]'
7330 ;;
7331 cygwin* | mingw* | pw32* | cegcc*)
7332 symcode='[ABCDGISTW]'
7333 ;;
7334 hpux*)
7335 if test ia64 = "$host_cpu"; then
7336 symcode='[ABCDEGRST]'
7337 fi
7338 ;;
7339 irix* | nonstopux*)
7340 symcode='[BCDEGRST]'
7341 ;;
7342 osf*)
7343 symcode='[BCDEGQRST]'
7344 ;;
7345 solaris*)
7346 symcode='[BDRT]'
7347 ;;
7348 sco3.2v5*)
7349 symcode='[DT]'
7350 ;;
7351 sysv4.2uw2*)
7352 symcode='[DT]'
7353 ;;
7354 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7355 symcode='[ABDT]'
7356 ;;
7357 sysv4)
7358 symcode='[DFNSTU]'
7359 ;;
7360 esac
7361
7362 # If we're using GNU nm, then use its standard symbol codes.
7363 case `$NM -V 2>&1` in
7364 *GNU* | *'with BFD'*)
7365 symcode='[ABCDGIRSTW]' ;;
7366 esac
7367
7368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7369 # Gets list of data symbols to import.
7370 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7371 # Adjust the below global symbol transforms to fixup imported variables.
7372 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7373 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7374 lt_c_name_lib_hook="\
7375 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7376 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7377 else
7378 # Disable hooks by default.
7379 lt_cv_sys_global_symbol_to_import=
7380 lt_cdecl_hook=
7381 lt_c_name_hook=
7382 lt_c_name_lib_hook=
7383 fi
7384
7385 # Transform an extracted symbol line into a proper C declaration.
7386 # Some systems (esp. on ia64) link data and code symbols differently,
7387 # so use this general approach.
7388 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7389 $lt_cdecl_hook\
7390 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7391 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7392
7393 # Transform an extracted symbol line into symbol name and symbol address
7394 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7395 $lt_c_name_hook\
7396 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7397 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7398
7399 # Transform an extracted symbol line into symbol name with lib prefix and
7400 # symbol address.
7401 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7402 $lt_c_name_lib_hook\
7403 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7404 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7405 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7406
7407 # Handle CRLF in mingw tool chain
7408 opt_cr=
7409 case $build_os in
7410 mingw*)
7411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7412 ;;
7413 esac
7414
7415 # Try without a prefix underscore, then with it.
7416 for ac_symprfx in "" "_"; do
7417
7418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7419 symxfrm="\\1 $ac_symprfx\\2 \\2"
7420
7421 # Write the raw and C identifiers.
7422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7423 # Fake it for dumpbin and say T for any non-static function,
7424 # D for any global variable and I for any imported variable.
7425 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7426 # which start with @ or ?.
7427 lt_cv_sys_global_symbol_pipe="$AWK '"\
7428 " {last_section=section; section=\$ 3};"\
7429 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7430 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7431 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7432 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7433 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7434 " \$ 0!~/External *\|/{next};"\
7435 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7436 " {if(hide[section]) next};"\
7437 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7438 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7439 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7440 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7441 " ' prfx=^$ac_symprfx"
7442 else
7443 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7444 fi
7445 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7446
7447 # Check to see that the pipe works correctly.
7448 pipe_works=no
7449
7450 rm -f conftest*
7451 cat > conftest.$ac_ext <<_LT_EOF
7452 #ifdef __cplusplus
7453 extern "C" {
7454 #endif
7455 char nm_test_var;
7456 void nm_test_func(void);
7457 void nm_test_func(void){}
7458 #ifdef __cplusplus
7459 }
7460 #endif
7461 int main(){nm_test_var='a';nm_test_func();return(0);}
7462 _LT_EOF
7463
7464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7465 (eval $ac_compile) 2>&5
7466 ac_status=$?
7467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }; then
7469 # Now try to grab the symbols.
7470 nlist=conftest.nm
7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7472 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7473 ac_status=$?
7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7475 test $ac_status = 0; } && test -s "$nlist"; then
7476 # Try sorting and uniquifying the output.
7477 if sort "$nlist" | uniq > "$nlist"T; then
7478 mv -f "$nlist"T "$nlist"
7479 else
7480 rm -f "$nlist"T
7481 fi
7482
7483 # Make sure that we snagged all the symbols we need.
7484 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7485 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7486 cat <<_LT_EOF > conftest.$ac_ext
7487 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7488 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7489 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7490 relocations are performed -- see ld's documentation on pseudo-relocs. */
7491 # define LT_DLSYM_CONST
7492 #elif defined __osf__
7493 /* This system does not cope well with relocations in const data. */
7494 # define LT_DLSYM_CONST
7495 #else
7496 # define LT_DLSYM_CONST const
7497 #endif
7498
7499 #ifdef __cplusplus
7500 extern "C" {
7501 #endif
7502
7503 _LT_EOF
7504 # Now generate the symbol file.
7505 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7506
7507 cat <<_LT_EOF >> conftest.$ac_ext
7508
7509 /* The mapping between symbol names and symbols. */
7510 LT_DLSYM_CONST struct {
7511 const char *name;
7512 void *address;
7513 }
7514 lt__PROGRAM__LTX_preloaded_symbols[] =
7515 {
7516 { "@PROGRAM@", (void *) 0 },
7517 _LT_EOF
7518 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7519 cat <<\_LT_EOF >> conftest.$ac_ext
7520 {0, (void *) 0}
7521 };
7522
7523 /* This works around a problem in FreeBSD linker */
7524 #ifdef FREEBSD_WORKAROUND
7525 static const void *lt_preloaded_setup() {
7526 return lt__PROGRAM__LTX_preloaded_symbols;
7527 }
7528 #endif
7529
7530 #ifdef __cplusplus
7531 }
7532 #endif
7533 _LT_EOF
7534 # Now try linking the two files.
7535 mv conftest.$ac_objext conftstm.$ac_objext
7536 lt_globsym_save_LIBS=$LIBS
7537 lt_globsym_save_CFLAGS=$CFLAGS
7538 LIBS=conftstm.$ac_objext
7539 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7541 (eval $ac_link) 2>&5
7542 ac_status=$?
7543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7545 pipe_works=yes
7546 fi
7547 LIBS=$lt_globsym_save_LIBS
7548 CFLAGS=$lt_globsym_save_CFLAGS
7549 else
7550 echo "cannot find nm_test_func in $nlist" >&5
7551 fi
7552 else
7553 echo "cannot find nm_test_var in $nlist" >&5
7554 fi
7555 else
7556 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7557 fi
7558 else
7559 echo "$progname: failed program was:" >&5
7560 cat conftest.$ac_ext >&5
7561 fi
7562 rm -rf conftest* conftst*
7563
7564 # Do not use the global_symbol_pipe unless it works.
7565 if test yes = "$pipe_works"; then
7566 break
7567 else
7568 lt_cv_sys_global_symbol_pipe=
7569 fi
7570 done
7571
7572 fi
7573
7574 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7575 lt_cv_sys_global_symbol_to_cdecl=
7576 fi
7577 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7579 printf "%s\n" "failed" >&6; }
7580 else
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7582 printf "%s\n" "ok" >&6; }
7583 fi
7584
7585 # Response file support.
7586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7587 nm_file_list_spec='@'
7588 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7589 nm_file_list_spec='@'
7590 fi
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7629 printf %s "checking for sysroot... " >&6; }
7630
7631 # Check whether --with-sysroot was given.
7632 if test ${with_sysroot+y}
7633 then :
7634 withval=$with_sysroot;
7635 else $as_nop
7636 with_sysroot=no
7637 fi
7638
7639
7640 lt_sysroot=
7641 case $with_sysroot in #(
7642 yes)
7643 if test yes = "$GCC"; then
7644 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7645 fi
7646 ;; #(
7647 /*)
7648 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7649 ;; #(
7650 no|'')
7651 ;; #(
7652 *)
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7654 printf "%s\n" "$with_sysroot" >&6; }
7655 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7656 ;;
7657 esac
7658
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7660 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7661
7662
7663
7664
7665
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7667 printf %s "checking for a working dd... " >&6; }
7668 if test ${ac_cv_path_lt_DD+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
7672 printf 0123456789abcdef0123456789abcdef >conftest.i
7673 cat conftest.i conftest.i >conftest2.i
7674 : ${lt_DD:=$DD}
7675 if test -z "$lt_DD"; then
7676 ac_path_lt_DD_found=false
7677 # Loop through the user's path and test for each of PROGNAME-LIST
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681 IFS=$as_save_IFS
7682 case $as_dir in #(((
7683 '') as_dir=./ ;;
7684 */) ;;
7685 *) as_dir=$as_dir/ ;;
7686 esac
7687 for ac_prog in dd
7688 do
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7691 as_fn_executable_p "$ac_path_lt_DD" || continue
7692 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7693 cmp -s conftest.i conftest.out \
7694 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7695 fi
7696 $ac_path_lt_DD_found && break 3
7697 done
7698 done
7699 done
7700 IFS=$as_save_IFS
7701 if test -z "$ac_cv_path_lt_DD"; then
7702 :
7703 fi
7704 else
7705 ac_cv_path_lt_DD=$lt_DD
7706 fi
7707
7708 rm -f conftest.i conftest2.i conftest.out
7709 fi
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7711 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7712
7713
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7715 printf %s "checking how to truncate binary pipes... " >&6; }
7716 if test ${lt_cv_truncate_bin+y}
7717 then :
7718 printf %s "(cached) " >&6
7719 else $as_nop
7720 printf 0123456789abcdef0123456789abcdef >conftest.i
7721 cat conftest.i conftest.i >conftest2.i
7722 lt_cv_truncate_bin=
7723 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7724 cmp -s conftest.i conftest.out \
7725 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7726 fi
7727 rm -f conftest.i conftest2.i conftest.out
7728 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7729 fi
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7731 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7732
7733
7734
7735
7736
7737
7738
7739 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7740 func_cc_basename ()
7741 {
7742 for cc_temp in $*""; do
7743 case $cc_temp in
7744 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7745 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7746 \-*) ;;
7747 *) break;;
7748 esac
7749 done
7750 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7751 }
7752
7753 # Check whether --enable-libtool-lock was given.
7754 if test ${enable_libtool_lock+y}
7755 then :
7756 enableval=$enable_libtool_lock;
7757 fi
7758
7759 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7760
7761 # Some flags need to be propagated to the compiler or linker for good
7762 # libtool support.
7763 case $host in
7764 ia64-*-hpux*)
7765 # Find out what ABI is being produced by ac_compile, and set mode
7766 # options accordingly.
7767 echo 'int i;' > conftest.$ac_ext
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769 (eval $ac_compile) 2>&5
7770 ac_status=$?
7771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; }; then
7773 case `$FILECMD conftest.$ac_objext` in
7774 *ELF-32*)
7775 HPUX_IA64_MODE=32
7776 ;;
7777 *ELF-64*)
7778 HPUX_IA64_MODE=64
7779 ;;
7780 esac
7781 fi
7782 rm -rf conftest*
7783 ;;
7784 *-*-irix6*)
7785 # Find out what ABI is being produced by ac_compile, and set linker
7786 # options accordingly.
7787 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7789 (eval $ac_compile) 2>&5
7790 ac_status=$?
7791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; }; then
7793 if test yes = "$lt_cv_prog_gnu_ld"; then
7794 case `$FILECMD conftest.$ac_objext` in
7795 *32-bit*)
7796 LD="${LD-ld} -melf32bsmip"
7797 ;;
7798 *N32*)
7799 LD="${LD-ld} -melf32bmipn32"
7800 ;;
7801 *64-bit*)
7802 LD="${LD-ld} -melf64bmip"
7803 ;;
7804 esac
7805 else
7806 case `$FILECMD conftest.$ac_objext` in
7807 *32-bit*)
7808 LD="${LD-ld} -32"
7809 ;;
7810 *N32*)
7811 LD="${LD-ld} -n32"
7812 ;;
7813 *64-bit*)
7814 LD="${LD-ld} -64"
7815 ;;
7816 esac
7817 fi
7818 fi
7819 rm -rf conftest*
7820 ;;
7821
7822 mips64*-*linux*)
7823 # Find out what ABI is being produced by ac_compile, and set linker
7824 # options accordingly.
7825 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7827 (eval $ac_compile) 2>&5
7828 ac_status=$?
7829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830 test $ac_status = 0; }; then
7831 emul=elf
7832 case `$FILECMD conftest.$ac_objext` in
7833 *32-bit*)
7834 emul="${emul}32"
7835 ;;
7836 *64-bit*)
7837 emul="${emul}64"
7838 ;;
7839 esac
7840 case `$FILECMD conftest.$ac_objext` in
7841 *MSB*)
7842 emul="${emul}btsmip"
7843 ;;
7844 *LSB*)
7845 emul="${emul}ltsmip"
7846 ;;
7847 esac
7848 case `$FILECMD conftest.$ac_objext` in
7849 *N32*)
7850 emul="${emul}n32"
7851 ;;
7852 esac
7853 LD="${LD-ld} -m $emul"
7854 fi
7855 rm -rf conftest*
7856 ;;
7857
7858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7860 # Find out what ABI is being produced by ac_compile, and set linker
7861 # options accordingly. Note that the listed cases only cover the
7862 # situations where additional linker options are needed (such as when
7863 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7864 # vice versa); the common cases where no linker options are needed do
7865 # not appear in the list.
7866 echo 'int i;' > conftest.$ac_ext
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7868 (eval $ac_compile) 2>&5
7869 ac_status=$?
7870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 case `$FILECMD conftest.o` in
7873 *32-bit*)
7874 case $host in
7875 x86_64-*kfreebsd*-gnu)
7876 LD="${LD-ld} -m elf_i386_fbsd"
7877 ;;
7878 x86_64-*linux*)
7879 case `$FILECMD conftest.o` in
7880 *x86-64*)
7881 LD="${LD-ld} -m elf32_x86_64"
7882 ;;
7883 *)
7884 LD="${LD-ld} -m elf_i386"
7885 ;;
7886 esac
7887 ;;
7888 powerpc64le-*linux*)
7889 LD="${LD-ld} -m elf32lppclinux"
7890 ;;
7891 powerpc64-*linux*)
7892 LD="${LD-ld} -m elf32ppclinux"
7893 ;;
7894 s390x-*linux*)
7895 LD="${LD-ld} -m elf_s390"
7896 ;;
7897 sparc64-*linux*)
7898 LD="${LD-ld} -m elf32_sparc"
7899 ;;
7900 esac
7901 ;;
7902 *64-bit*)
7903 case $host in
7904 x86_64-*kfreebsd*-gnu)
7905 LD="${LD-ld} -m elf_x86_64_fbsd"
7906 ;;
7907 x86_64-*linux*)
7908 LD="${LD-ld} -m elf_x86_64"
7909 ;;
7910 powerpcle-*linux*)
7911 LD="${LD-ld} -m elf64lppc"
7912 ;;
7913 powerpc-*linux*)
7914 LD="${LD-ld} -m elf64ppc"
7915 ;;
7916 s390*-*linux*|s390*-*tpf*)
7917 LD="${LD-ld} -m elf64_s390"
7918 ;;
7919 sparc*-*linux*)
7920 LD="${LD-ld} -m elf64_sparc"
7921 ;;
7922 esac
7923 ;;
7924 esac
7925 fi
7926 rm -rf conftest*
7927 ;;
7928
7929 *-*-sco3.2v5*)
7930 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7931 SAVE_CFLAGS=$CFLAGS
7932 CFLAGS="$CFLAGS -belf"
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7934 printf %s "checking whether the C compiler needs -belf... " >&6; }
7935 if test ${lt_cv_cc_needs_belf+y}
7936 then :
7937 printf %s "(cached) " >&6
7938 else $as_nop
7939 ac_ext=c
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947
7948 int
7949 main (void)
7950 {
7951
7952 ;
7953 return 0;
7954 }
7955 _ACEOF
7956 if ac_fn_c_try_link "$LINENO"
7957 then :
7958 lt_cv_cc_needs_belf=yes
7959 else $as_nop
7960 lt_cv_cc_needs_belf=no
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7963 conftest$ac_exeext conftest.$ac_ext
7964 ac_ext=c
7965 ac_cpp='$CPP $CPPFLAGS'
7966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969
7970 fi
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7972 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7973 if test yes != "$lt_cv_cc_needs_belf"; then
7974 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7975 CFLAGS=$SAVE_CFLAGS
7976 fi
7977 ;;
7978 *-*solaris*)
7979 # Find out what ABI is being produced by ac_compile, and set linker
7980 # options accordingly.
7981 echo 'int i;' > conftest.$ac_ext
7982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7983 (eval $ac_compile) 2>&5
7984 ac_status=$?
7985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986 test $ac_status = 0; }; then
7987 case `$FILECMD conftest.o` in
7988 *64-bit*)
7989 case $lt_cv_prog_gnu_ld in
7990 yes*)
7991 case $host in
7992 i?86-*-solaris*|x86_64-*-solaris*)
7993 LD="${LD-ld} -m elf_x86_64"
7994 ;;
7995 sparc*-*-solaris*)
7996 LD="${LD-ld} -m elf64_sparc"
7997 ;;
7998 esac
7999 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8000 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8001 LD=${LD-ld}_sol2
8002 fi
8003 ;;
8004 *)
8005 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8006 LD="${LD-ld} -64"
8007 fi
8008 ;;
8009 esac
8010 ;;
8011 esac
8012 fi
8013 rm -rf conftest*
8014 ;;
8015 esac
8016
8017 need_locks=$enable_libtool_lock
8018
8019 if test -n "$ac_tool_prefix"; then
8020 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}mt; ac_word=$2
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 printf %s "checking for $ac_word... " >&6; }
8024 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else $as_nop
8028 if test -n "$MANIFEST_TOOL"; then
8029 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 case $as_dir in #(((
8036 '') as_dir=./ ;;
8037 */) ;;
8038 *) as_dir=$as_dir/ ;;
8039 esac
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi
8051 fi
8052 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8053 if test -n "$MANIFEST_TOOL"; then
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8055 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8056 else
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 printf "%s\n" "no" >&6; }
8059 fi
8060
8061
8062 fi
8063 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8064 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8065 # Extract the first word of "mt", so it can be a program name with args.
8066 set dummy mt; ac_word=$2
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 printf %s "checking for $ac_word... " >&6; }
8069 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8070 then :
8071 printf %s "(cached) " >&6
8072 else $as_nop
8073 if test -n "$ac_ct_MANIFEST_TOOL"; then
8074 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079 IFS=$as_save_IFS
8080 case $as_dir in #(((
8081 '') as_dir=./ ;;
8082 */) ;;
8083 *) as_dir=$as_dir/ ;;
8084 esac
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi
8096 fi
8097 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8098 if test -n "$ac_ct_MANIFEST_TOOL"; then
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8100 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8101 else
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 printf "%s\n" "no" >&6; }
8104 fi
8105
8106 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8107 MANIFEST_TOOL=":"
8108 else
8109 case $cross_compiling:$ac_tool_warned in
8110 yes:)
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8112 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8113 ac_tool_warned=yes ;;
8114 esac
8115 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8116 fi
8117 else
8118 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8119 fi
8120
8121 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8123 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8124 if test ${lt_cv_path_mainfest_tool+y}
8125 then :
8126 printf %s "(cached) " >&6
8127 else $as_nop
8128 lt_cv_path_mainfest_tool=no
8129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8131 cat conftest.err >&5
8132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8133 lt_cv_path_mainfest_tool=yes
8134 fi
8135 rm -f conftest*
8136 fi
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8138 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8139 if test yes != "$lt_cv_path_mainfest_tool"; then
8140 MANIFEST_TOOL=:
8141 fi
8142
8143
8144
8145
8146
8147
8148 case $host_os in
8149 rhapsody* | darwin*)
8150 if test -n "$ac_tool_prefix"; then
8151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 printf %s "checking for $ac_word... " >&6; }
8155 if test ${ac_cv_prog_DSYMUTIL+y}
8156 then :
8157 printf %s "(cached) " >&6
8158 else $as_nop
8159 if test -n "$DSYMUTIL"; then
8160 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165 IFS=$as_save_IFS
8166 case $as_dir in #(((
8167 '') as_dir=./ ;;
8168 */) ;;
8169 *) as_dir=$as_dir/ ;;
8170 esac
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8175 break 2
8176 fi
8177 done
8178 done
8179 IFS=$as_save_IFS
8180
8181 fi
8182 fi
8183 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8184 if test -n "$DSYMUTIL"; then
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8186 printf "%s\n" "$DSYMUTIL" >&6; }
8187 else
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 printf "%s\n" "no" >&6; }
8190 fi
8191
8192
8193 fi
8194 if test -z "$ac_cv_prog_DSYMUTIL"; then
8195 ac_ct_DSYMUTIL=$DSYMUTIL
8196 # Extract the first word of "dsymutil", so it can be a program name with args.
8197 set dummy dsymutil; ac_word=$2
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 printf %s "checking for $ac_word... " >&6; }
8200 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8201 then :
8202 printf %s "(cached) " >&6
8203 else $as_nop
8204 if test -n "$ac_ct_DSYMUTIL"; then
8205 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8206 else
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 for as_dir in $PATH
8209 do
8210 IFS=$as_save_IFS
8211 case $as_dir in #(((
8212 '') as_dir=./ ;;
8213 */) ;;
8214 *) as_dir=$as_dir/ ;;
8215 esac
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8218 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8220 break 2
8221 fi
8222 done
8223 done
8224 IFS=$as_save_IFS
8225
8226 fi
8227 fi
8228 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8229 if test -n "$ac_ct_DSYMUTIL"; then
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8231 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8232 else
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 printf "%s\n" "no" >&6; }
8235 fi
8236
8237 if test "x$ac_ct_DSYMUTIL" = x; then
8238 DSYMUTIL=":"
8239 else
8240 case $cross_compiling:$ac_tool_warned in
8241 yes:)
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8244 ac_tool_warned=yes ;;
8245 esac
8246 DSYMUTIL=$ac_ct_DSYMUTIL
8247 fi
8248 else
8249 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8250 fi
8251
8252 if test -n "$ac_tool_prefix"; then
8253 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8254 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8256 printf %s "checking for $ac_word... " >&6; }
8257 if test ${ac_cv_prog_NMEDIT+y}
8258 then :
8259 printf %s "(cached) " >&6
8260 else $as_nop
8261 if test -n "$NMEDIT"; then
8262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267 IFS=$as_save_IFS
8268 case $as_dir in #(((
8269 '') as_dir=./ ;;
8270 */) ;;
8271 *) as_dir=$as_dir/ ;;
8272 esac
8273 for ac_exec_ext in '' $ac_executable_extensions; do
8274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8275 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8277 break 2
8278 fi
8279 done
8280 done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 NMEDIT=$ac_cv_prog_NMEDIT
8286 if test -n "$NMEDIT"; then
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8288 printf "%s\n" "$NMEDIT" >&6; }
8289 else
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 printf "%s\n" "no" >&6; }
8292 fi
8293
8294
8295 fi
8296 if test -z "$ac_cv_prog_NMEDIT"; then
8297 ac_ct_NMEDIT=$NMEDIT
8298 # Extract the first word of "nmedit", so it can be a program name with args.
8299 set dummy nmedit; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8303 then :
8304 printf %s "(cached) " >&6
8305 else $as_nop
8306 if test -n "$ac_ct_NMEDIT"; then
8307 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8308 else
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 for as_dir in $PATH
8311 do
8312 IFS=$as_save_IFS
8313 case $as_dir in #(((
8314 '') as_dir=./ ;;
8315 */) ;;
8316 *) as_dir=$as_dir/ ;;
8317 esac
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8320 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8322 break 2
8323 fi
8324 done
8325 done
8326 IFS=$as_save_IFS
8327
8328 fi
8329 fi
8330 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8331 if test -n "$ac_ct_NMEDIT"; then
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8333 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8334 else
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 printf "%s\n" "no" >&6; }
8337 fi
8338
8339 if test "x$ac_ct_NMEDIT" = x; then
8340 NMEDIT=":"
8341 else
8342 case $cross_compiling:$ac_tool_warned in
8343 yes:)
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8346 ac_tool_warned=yes ;;
8347 esac
8348 NMEDIT=$ac_ct_NMEDIT
8349 fi
8350 else
8351 NMEDIT="$ac_cv_prog_NMEDIT"
8352 fi
8353
8354 if test -n "$ac_tool_prefix"; then
8355 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8356 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 printf %s "checking for $ac_word... " >&6; }
8359 if test ${ac_cv_prog_LIPO+y}
8360 then :
8361 printf %s "(cached) " >&6
8362 else $as_nop
8363 if test -n "$LIPO"; then
8364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8365 else
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369 IFS=$as_save_IFS
8370 case $as_dir in #(((
8371 '') as_dir=./ ;;
8372 */) ;;
8373 *) as_dir=$as_dir/ ;;
8374 esac
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8377 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379 break 2
8380 fi
8381 done
8382 done
8383 IFS=$as_save_IFS
8384
8385 fi
8386 fi
8387 LIPO=$ac_cv_prog_LIPO
8388 if test -n "$LIPO"; then
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8390 printf "%s\n" "$LIPO" >&6; }
8391 else
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 printf "%s\n" "no" >&6; }
8394 fi
8395
8396
8397 fi
8398 if test -z "$ac_cv_prog_LIPO"; then
8399 ac_ct_LIPO=$LIPO
8400 # Extract the first word of "lipo", so it can be a program name with args.
8401 set dummy lipo; ac_word=$2
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 printf %s "checking for $ac_word... " >&6; }
8404 if test ${ac_cv_prog_ac_ct_LIPO+y}
8405 then :
8406 printf %s "(cached) " >&6
8407 else $as_nop
8408 if test -n "$ac_ct_LIPO"; then
8409 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414 IFS=$as_save_IFS
8415 case $as_dir in #(((
8416 '') as_dir=./ ;;
8417 */) ;;
8418 *) as_dir=$as_dir/ ;;
8419 esac
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8422 ac_cv_prog_ac_ct_LIPO="lipo"
8423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8424 break 2
8425 fi
8426 done
8427 done
8428 IFS=$as_save_IFS
8429
8430 fi
8431 fi
8432 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8433 if test -n "$ac_ct_LIPO"; then
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8435 printf "%s\n" "$ac_ct_LIPO" >&6; }
8436 else
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 printf "%s\n" "no" >&6; }
8439 fi
8440
8441 if test "x$ac_ct_LIPO" = x; then
8442 LIPO=":"
8443 else
8444 case $cross_compiling:$ac_tool_warned in
8445 yes:)
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8447 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8448 ac_tool_warned=yes ;;
8449 esac
8450 LIPO=$ac_ct_LIPO
8451 fi
8452 else
8453 LIPO="$ac_cv_prog_LIPO"
8454 fi
8455
8456 if test -n "$ac_tool_prefix"; then
8457 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8458 set dummy ${ac_tool_prefix}otool; ac_word=$2
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8460 printf %s "checking for $ac_word... " >&6; }
8461 if test ${ac_cv_prog_OTOOL+y}
8462 then :
8463 printf %s "(cached) " >&6
8464 else $as_nop
8465 if test -n "$OTOOL"; then
8466 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8467 else
8468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469 for as_dir in $PATH
8470 do
8471 IFS=$as_save_IFS
8472 case $as_dir in #(((
8473 '') as_dir=./ ;;
8474 */) ;;
8475 *) as_dir=$as_dir/ ;;
8476 esac
8477 for ac_exec_ext in '' $ac_executable_extensions; do
8478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8481 break 2
8482 fi
8483 done
8484 done
8485 IFS=$as_save_IFS
8486
8487 fi
8488 fi
8489 OTOOL=$ac_cv_prog_OTOOL
8490 if test -n "$OTOOL"; then
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8492 printf "%s\n" "$OTOOL" >&6; }
8493 else
8494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 printf "%s\n" "no" >&6; }
8496 fi
8497
8498
8499 fi
8500 if test -z "$ac_cv_prog_OTOOL"; then
8501 ac_ct_OTOOL=$OTOOL
8502 # Extract the first word of "otool", so it can be a program name with args.
8503 set dummy otool; ac_word=$2
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 printf %s "checking for $ac_word... " >&6; }
8506 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8507 then :
8508 printf %s "(cached) " >&6
8509 else $as_nop
8510 if test -n "$ac_ct_OTOOL"; then
8511 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516 IFS=$as_save_IFS
8517 case $as_dir in #(((
8518 '') as_dir=./ ;;
8519 */) ;;
8520 *) as_dir=$as_dir/ ;;
8521 esac
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_ac_ct_OTOOL="otool"
8525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8526 break 2
8527 fi
8528 done
8529 done
8530 IFS=$as_save_IFS
8531
8532 fi
8533 fi
8534 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8535 if test -n "$ac_ct_OTOOL"; then
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8537 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8538 else
8539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 printf "%s\n" "no" >&6; }
8541 fi
8542
8543 if test "x$ac_ct_OTOOL" = x; then
8544 OTOOL=":"
8545 else
8546 case $cross_compiling:$ac_tool_warned in
8547 yes:)
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8549 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8550 ac_tool_warned=yes ;;
8551 esac
8552 OTOOL=$ac_ct_OTOOL
8553 fi
8554 else
8555 OTOOL="$ac_cv_prog_OTOOL"
8556 fi
8557
8558 if test -n "$ac_tool_prefix"; then
8559 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8560 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 printf %s "checking for $ac_word... " >&6; }
8563 if test ${ac_cv_prog_OTOOL64+y}
8564 then :
8565 printf %s "(cached) " >&6
8566 else $as_nop
8567 if test -n "$OTOOL64"; then
8568 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8572 do
8573 IFS=$as_save_IFS
8574 case $as_dir in #(((
8575 '') as_dir=./ ;;
8576 */) ;;
8577 *) as_dir=$as_dir/ ;;
8578 esac
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8583 break 2
8584 fi
8585 done
8586 done
8587 IFS=$as_save_IFS
8588
8589 fi
8590 fi
8591 OTOOL64=$ac_cv_prog_OTOOL64
8592 if test -n "$OTOOL64"; then
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8594 printf "%s\n" "$OTOOL64" >&6; }
8595 else
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 printf "%s\n" "no" >&6; }
8598 fi
8599
8600
8601 fi
8602 if test -z "$ac_cv_prog_OTOOL64"; then
8603 ac_ct_OTOOL64=$OTOOL64
8604 # Extract the first word of "otool64", so it can be a program name with args.
8605 set dummy otool64; ac_word=$2
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 printf %s "checking for $ac_word... " >&6; }
8608 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8609 then :
8610 printf %s "(cached) " >&6
8611 else $as_nop
8612 if test -n "$ac_ct_OTOOL64"; then
8613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618 IFS=$as_save_IFS
8619 case $as_dir in #(((
8620 '') as_dir=./ ;;
8621 */) ;;
8622 *) as_dir=$as_dir/ ;;
8623 esac
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8626 ac_cv_prog_ac_ct_OTOOL64="otool64"
8627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8628 break 2
8629 fi
8630 done
8631 done
8632 IFS=$as_save_IFS
8633
8634 fi
8635 fi
8636 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8637 if test -n "$ac_ct_OTOOL64"; then
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8639 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8640 else
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 printf "%s\n" "no" >&6; }
8643 fi
8644
8645 if test "x$ac_ct_OTOOL64" = x; then
8646 OTOOL64=":"
8647 else
8648 case $cross_compiling:$ac_tool_warned in
8649 yes:)
8650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8651 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8652 ac_tool_warned=yes ;;
8653 esac
8654 OTOOL64=$ac_ct_OTOOL64
8655 fi
8656 else
8657 OTOOL64="$ac_cv_prog_OTOOL64"
8658 fi
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8687 printf %s "checking for -single_module linker flag... " >&6; }
8688 if test ${lt_cv_apple_cc_single_mod+y}
8689 then :
8690 printf %s "(cached) " >&6
8691 else $as_nop
8692 lt_cv_apple_cc_single_mod=no
8693 if test -z "$LT_MULTI_MODULE"; then
8694 # By default we will add the -single_module flag. You can override
8695 # by either setting the environment variable LT_MULTI_MODULE
8696 # non-empty at configure time, or by adding -multi_module to the
8697 # link flags.
8698 rm -rf libconftest.dylib*
8699 echo "int foo(void){return 1;}" > conftest.c
8700 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8701 -dynamiclib -Wl,-single_module conftest.c" >&5
8702 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8704 _lt_result=$?
8705 # If there is a non-empty error log, and "single_module"
8706 # appears in it, assume the flag caused a linker warning
8707 if test -s conftest.err && $GREP single_module conftest.err; then
8708 cat conftest.err >&5
8709 # Otherwise, if the output was created with a 0 exit code from
8710 # the compiler, it worked.
8711 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8712 lt_cv_apple_cc_single_mod=yes
8713 else
8714 cat conftest.err >&5
8715 fi
8716 rm -rf libconftest.dylib*
8717 rm -f conftest.*
8718 fi
8719 fi
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8721 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8722
8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8724 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8725 if test ${lt_cv_ld_exported_symbols_list+y}
8726 then :
8727 printf %s "(cached) " >&6
8728 else $as_nop
8729 lt_cv_ld_exported_symbols_list=no
8730 save_LDFLAGS=$LDFLAGS
8731 echo "_main" > conftest.sym
8732 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735
8736 int
8737 main (void)
8738 {
8739
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_link "$LINENO"
8745 then :
8746 lt_cv_ld_exported_symbols_list=yes
8747 else $as_nop
8748 lt_cv_ld_exported_symbols_list=no
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8751 conftest$ac_exeext conftest.$ac_ext
8752 LDFLAGS=$save_LDFLAGS
8753
8754 fi
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8756 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8757
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8759 printf %s "checking for -force_load linker flag... " >&6; }
8760 if test ${lt_cv_ld_force_load+y}
8761 then :
8762 printf %s "(cached) " >&6
8763 else $as_nop
8764 lt_cv_ld_force_load=no
8765 cat > conftest.c << _LT_EOF
8766 int forced_loaded() { return 2;}
8767 _LT_EOF
8768 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8769 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8770 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8771 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8772 echo "$RANLIB libconftest.a" >&5
8773 $RANLIB libconftest.a 2>&5
8774 cat > conftest.c << _LT_EOF
8775 int main() { return 0;}
8776 _LT_EOF
8777 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8778 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8779 _lt_result=$?
8780 if test -s conftest.err && $GREP force_load conftest.err; then
8781 cat conftest.err >&5
8782 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8783 lt_cv_ld_force_load=yes
8784 else
8785 cat conftest.err >&5
8786 fi
8787 rm -f conftest.err libconftest.a conftest conftest.c
8788 rm -rf conftest.dSYM
8789
8790 fi
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8792 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8793 case $host_os in
8794 rhapsody* | darwin1.[012])
8795 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8796 darwin1.*)
8797 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8798 darwin*)
8799 case $MACOSX_DEPLOYMENT_TARGET,$host in
8800 10.[012],*|,*powerpc*-darwin[5-8]*)
8801 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8802 *)
8803 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8804 esac
8805 ;;
8806 esac
8807 if test yes = "$lt_cv_apple_cc_single_mod"; then
8808 _lt_dar_single_mod='$single_module'
8809 fi
8810 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8811 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8812 else
8813 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8814 fi
8815 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8816 _lt_dsymutil='~$DSYMUTIL $lib || :'
8817 else
8818 _lt_dsymutil=
8819 fi
8820 ;;
8821 esac
8822
8823 # func_munge_path_list VARIABLE PATH
8824 # -----------------------------------
8825 # VARIABLE is name of variable containing _space_ separated list of
8826 # directories to be munged by the contents of PATH, which is string
8827 # having a format:
8828 # "DIR[:DIR]:"
8829 # string "DIR[ DIR]" will be prepended to VARIABLE
8830 # ":DIR[:DIR]"
8831 # string "DIR[ DIR]" will be appended to VARIABLE
8832 # "DIRP[:DIRP]::[DIRA:]DIRA"
8833 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8834 # "DIRA[ DIRA]" will be appended to VARIABLE
8835 # "DIR[:DIR]"
8836 # VARIABLE will be replaced by "DIR[ DIR]"
8837 func_munge_path_list ()
8838 {
8839 case x$2 in
8840 x)
8841 ;;
8842 *:)
8843 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8844 ;;
8845 x:*)
8846 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8847 ;;
8848 *::*)
8849 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8850 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8851 ;;
8852 *)
8853 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8854 ;;
8855 esac
8856 }
8857
8858 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8859 "
8860 if test "x$ac_cv_header_dlfcn_h" = xyes
8861 then :
8862 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8863
8864 fi
8865
8866
8867
8868
8869
8870 # Set options
8871
8872
8873
8874 enable_dlopen=no
8875
8876
8877 enable_win32_dll=no
8878
8879
8880 # Check whether --enable-shared was given.
8881 if test ${enable_shared+y}
8882 then :
8883 enableval=$enable_shared; p=${PACKAGE-default}
8884 case $enableval in
8885 yes) enable_shared=yes ;;
8886 no) enable_shared=no ;;
8887 *)
8888 enable_shared=no
8889 # Look at the argument we got. We use all the common list separators.
8890 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8891 for pkg in $enableval; do
8892 IFS=$lt_save_ifs
8893 if test "X$pkg" = "X$p"; then
8894 enable_shared=yes
8895 fi
8896 done
8897 IFS=$lt_save_ifs
8898 ;;
8899 esac
8900 else $as_nop
8901 enable_shared=yes
8902 fi
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 # Check whether --enable-static was given.
8913 if test ${enable_static+y}
8914 then :
8915 enableval=$enable_static; p=${PACKAGE-default}
8916 case $enableval in
8917 yes) enable_static=yes ;;
8918 no) enable_static=no ;;
8919 *)
8920 enable_static=no
8921 # Look at the argument we got. We use all the common list separators.
8922 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8923 for pkg in $enableval; do
8924 IFS=$lt_save_ifs
8925 if test "X$pkg" = "X$p"; then
8926 enable_static=yes
8927 fi
8928 done
8929 IFS=$lt_save_ifs
8930 ;;
8931 esac
8932 else $as_nop
8933 enable_static=yes
8934 fi
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945 # Check whether --with-pic was given.
8946 if test ${with_pic+y}
8947 then :
8948 withval=$with_pic; lt_p=${PACKAGE-default}
8949 case $withval in
8950 yes|no) pic_mode=$withval ;;
8951 *)
8952 pic_mode=default
8953 # Look at the argument we got. We use all the common list separators.
8954 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8955 for lt_pkg in $withval; do
8956 IFS=$lt_save_ifs
8957 if test "X$lt_pkg" = "X$lt_p"; then
8958 pic_mode=yes
8959 fi
8960 done
8961 IFS=$lt_save_ifs
8962 ;;
8963 esac
8964 else $as_nop
8965 pic_mode=default
8966 fi
8967
8968
8969
8970
8971
8972
8973
8974
8975 # Check whether --enable-fast-install was given.
8976 if test ${enable_fast_install+y}
8977 then :
8978 enableval=$enable_fast_install; p=${PACKAGE-default}
8979 case $enableval in
8980 yes) enable_fast_install=yes ;;
8981 no) enable_fast_install=no ;;
8982 *)
8983 enable_fast_install=no
8984 # Look at the argument we got. We use all the common list separators.
8985 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8986 for pkg in $enableval; do
8987 IFS=$lt_save_ifs
8988 if test "X$pkg" = "X$p"; then
8989 enable_fast_install=yes
8990 fi
8991 done
8992 IFS=$lt_save_ifs
8993 ;;
8994 esac
8995 else $as_nop
8996 enable_fast_install=yes
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006 shared_archive_member_spec=
9007 case $host,$enable_shared in
9008 power*-*-aix[5-9]*,yes)
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9010 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9011
9012 # Check whether --with-aix-soname was given.
9013 if test ${with_aix_soname+y}
9014 then :
9015 withval=$with_aix_soname; case $withval in
9016 aix|svr4|both)
9017 ;;
9018 *)
9019 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9020 ;;
9021 esac
9022 lt_cv_with_aix_soname=$with_aix_soname
9023 else $as_nop
9024 if test ${lt_cv_with_aix_soname+y}
9025 then :
9026 printf %s "(cached) " >&6
9027 else $as_nop
9028 lt_cv_with_aix_soname=aix
9029 fi
9030
9031 with_aix_soname=$lt_cv_with_aix_soname
9032 fi
9033
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9035 printf "%s\n" "$with_aix_soname" >&6; }
9036 if test aix != "$with_aix_soname"; then
9037 # For the AIX way of multilib, we name the shared archive member
9038 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9039 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9040 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9041 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9042 if test 64 = "${OBJECT_MODE-32}"; then
9043 shared_archive_member_spec=shr_64
9044 else
9045 shared_archive_member_spec=shr
9046 fi
9047 fi
9048 ;;
9049 *)
9050 with_aix_soname=aix
9051 ;;
9052 esac
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063 # This can be used to rebuild libtool when needed
9064 LIBTOOL_DEPS=$ltmain
9065
9066 # Always use our own libtool.
9067 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 test -z "$LN_S" && LN_S="ln -s"
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113 if test -n "${ZSH_VERSION+set}"; then
9114 setopt NO_GLOB_SUBST
9115 fi
9116
9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9118 printf %s "checking for objdir... " >&6; }
9119 if test ${lt_cv_objdir+y}
9120 then :
9121 printf %s "(cached) " >&6
9122 else $as_nop
9123 rm -f .libs 2>/dev/null
9124 mkdir .libs 2>/dev/null
9125 if test -d .libs; then
9126 lt_cv_objdir=.libs
9127 else
9128 # MS-DOS does not allow filenames that begin with a dot.
9129 lt_cv_objdir=_libs
9130 fi
9131 rmdir .libs 2>/dev/null
9132 fi
9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9134 printf "%s\n" "$lt_cv_objdir" >&6; }
9135 objdir=$lt_cv_objdir
9136
9137
9138
9139
9140
9141 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9142
9143
9144
9145
9146 case $host_os in
9147 aix3*)
9148 # AIX sometimes has problems with the GCC collect2 program. For some
9149 # reason, if we set the COLLECT_NAMES environment variable, the problems
9150 # vanish in a puff of smoke.
9151 if test set != "${COLLECT_NAMES+set}"; then
9152 COLLECT_NAMES=
9153 export COLLECT_NAMES
9154 fi
9155 ;;
9156 esac
9157
9158 # Global variables:
9159 ofile=libtool
9160 can_build_shared=yes
9161
9162 # All known linkers require a '.a' archive for static linking (except MSVC and
9163 # ICC, which need '.lib').
9164 libext=a
9165
9166 with_gnu_ld=$lt_cv_prog_gnu_ld
9167
9168 old_CC=$CC
9169 old_CFLAGS=$CFLAGS
9170
9171 # Set sane defaults for various variables
9172 test -z "$CC" && CC=cc
9173 test -z "$LTCC" && LTCC=$CC
9174 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9175 test -z "$LD" && LD=ld
9176 test -z "$ac_objext" && ac_objext=o
9177
9178 func_cc_basename $compiler
9179 cc_basename=$func_cc_basename_result
9180
9181
9182 # Only perform the check for file, if the check method requires it
9183 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9184 case $deplibs_check_method in
9185 file_magic*)
9186 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9188 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9189 if test ${lt_cv_path_MAGIC_CMD+y}
9190 then :
9191 printf %s "(cached) " >&6
9192 else $as_nop
9193 case $MAGIC_CMD in
9194 [\\/*] | ?:[\\/]*)
9195 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9196 ;;
9197 *)
9198 lt_save_MAGIC_CMD=$MAGIC_CMD
9199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9201 for ac_dir in $ac_dummy; do
9202 IFS=$lt_save_ifs
9203 test -z "$ac_dir" && ac_dir=.
9204 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9205 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9206 if test -n "$file_magic_test_file"; then
9207 case $deplibs_check_method in
9208 "file_magic "*)
9209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9212 $EGREP "$file_magic_regex" > /dev/null; then
9213 :
9214 else
9215 cat <<_LT_EOF 1>&2
9216
9217 *** Warning: the command libtool uses to detect shared libraries,
9218 *** $file_magic_cmd, produces output that libtool cannot recognize.
9219 *** The result is that libtool may fail to recognize shared libraries
9220 *** as such. This will affect the creation of libtool libraries that
9221 *** depend on shared libraries, but programs linked with such libtool
9222 *** libraries will work regardless of this problem. Nevertheless, you
9223 *** may want to report the problem to your system manager and/or to
9224 *** bug-libtool@gnu.org
9225
9226 _LT_EOF
9227 fi ;;
9228 esac
9229 fi
9230 break
9231 fi
9232 done
9233 IFS=$lt_save_ifs
9234 MAGIC_CMD=$lt_save_MAGIC_CMD
9235 ;;
9236 esac
9237 fi
9238
9239 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9240 if test -n "$MAGIC_CMD"; then
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9242 printf "%s\n" "$MAGIC_CMD" >&6; }
9243 else
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9245 printf "%s\n" "no" >&6; }
9246 fi
9247
9248
9249
9250
9251
9252 if test -z "$lt_cv_path_MAGIC_CMD"; then
9253 if test -n "$ac_tool_prefix"; then
9254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9255 printf %s "checking for file... " >&6; }
9256 if test ${lt_cv_path_MAGIC_CMD+y}
9257 then :
9258 printf %s "(cached) " >&6
9259 else $as_nop
9260 case $MAGIC_CMD in
9261 [\\/*] | ?:[\\/]*)
9262 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9263 ;;
9264 *)
9265 lt_save_MAGIC_CMD=$MAGIC_CMD
9266 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9268 for ac_dir in $ac_dummy; do
9269 IFS=$lt_save_ifs
9270 test -z "$ac_dir" && ac_dir=.
9271 if test -f "$ac_dir/file"; then
9272 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9273 if test -n "$file_magic_test_file"; then
9274 case $deplibs_check_method in
9275 "file_magic "*)
9276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9277 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9279 $EGREP "$file_magic_regex" > /dev/null; then
9280 :
9281 else
9282 cat <<_LT_EOF 1>&2
9283
9284 *** Warning: the command libtool uses to detect shared libraries,
9285 *** $file_magic_cmd, produces output that libtool cannot recognize.
9286 *** The result is that libtool may fail to recognize shared libraries
9287 *** as such. This will affect the creation of libtool libraries that
9288 *** depend on shared libraries, but programs linked with such libtool
9289 *** libraries will work regardless of this problem. Nevertheless, you
9290 *** may want to report the problem to your system manager and/or to
9291 *** bug-libtool@gnu.org
9292
9293 _LT_EOF
9294 fi ;;
9295 esac
9296 fi
9297 break
9298 fi
9299 done
9300 IFS=$lt_save_ifs
9301 MAGIC_CMD=$lt_save_MAGIC_CMD
9302 ;;
9303 esac
9304 fi
9305
9306 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9307 if test -n "$MAGIC_CMD"; then
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9309 printf "%s\n" "$MAGIC_CMD" >&6; }
9310 else
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 printf "%s\n" "no" >&6; }
9313 fi
9314
9315
9316 else
9317 MAGIC_CMD=:
9318 fi
9319 fi
9320
9321 fi
9322 ;;
9323 esac
9324
9325 # Use C for the default configuration in the libtool script
9326
9327 lt_save_CC=$CC
9328 ac_ext=c
9329 ac_cpp='$CPP $CPPFLAGS'
9330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9333
9334
9335 # Source file extension for C test sources.
9336 ac_ext=c
9337
9338 # Object file extension for compiled C test sources.
9339 objext=o
9340 objext=$objext
9341
9342 # Code to be used in simple compile tests
9343 lt_simple_compile_test_code="int some_variable = 0;"
9344
9345 # Code to be used in simple link tests
9346 lt_simple_link_test_code='int main(){return(0);}'
9347
9348
9349
9350
9351
9352
9353
9354 # If no C compiler was specified, use CC.
9355 LTCC=${LTCC-"$CC"}
9356
9357 # If no C compiler flags were specified, use CFLAGS.
9358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9359
9360 # Allow CC to be a program name with arguments.
9361 compiler=$CC
9362
9363 # Save the default compiler, since it gets overwritten when the other
9364 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9365 compiler_DEFAULT=$CC
9366
9367 # save warnings/boilerplate of simple test code
9368 ac_outfile=conftest.$ac_objext
9369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9371 _lt_compiler_boilerplate=`cat conftest.err`
9372 $RM conftest*
9373
9374 ac_outfile=conftest.$ac_objext
9375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9377 _lt_linker_boilerplate=`cat conftest.err`
9378 $RM -r conftest*
9379
9380
9381 ## CAVEAT EMPTOR:
9382 ## There is no encapsulation within the following macros, do not change
9383 ## the running order or otherwise move them around unless you know exactly
9384 ## what you are doing...
9385 if test -n "$compiler"; then
9386
9387 lt_prog_compiler_no_builtin_flag=
9388
9389 if test yes = "$GCC"; then
9390 case $cc_basename in
9391 nvcc*)
9392 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9393 *)
9394 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9395 esac
9396
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9398 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9399 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9400 then :
9401 printf %s "(cached) " >&6
9402 else $as_nop
9403 lt_cv_prog_compiler_rtti_exceptions=no
9404 ac_outfile=conftest.$ac_objext
9405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9406 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9407 # Insert the option either (1) after the last *FLAGS variable, or
9408 # (2) before a word containing "conftest.", or (3) at the end.
9409 # Note that $ac_compile itself does not contain backslashes and begins
9410 # with a dollar sign (not a hyphen), so the echo should work correctly.
9411 # The option is referenced via a variable to avoid confusing sed.
9412 lt_compile=`echo "$ac_compile" | $SED \
9413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9415 -e 's:$: $lt_compiler_flag:'`
9416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9417 (eval "$lt_compile" 2>conftest.err)
9418 ac_status=$?
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 if (exit $ac_status) && test -s "$ac_outfile"; then
9422 # The compiler can only warn and ignore the option if not recognized
9423 # So say no if there are warnings other than the usual output.
9424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9427 lt_cv_prog_compiler_rtti_exceptions=yes
9428 fi
9429 fi
9430 $RM conftest*
9431
9432 fi
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9434 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9435
9436 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9437 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9438 else
9439 :
9440 fi
9441
9442 fi
9443
9444
9445
9446
9447
9448
9449 lt_prog_compiler_wl=
9450 lt_prog_compiler_pic=
9451 lt_prog_compiler_static=
9452
9453
9454 if test yes = "$GCC"; then
9455 lt_prog_compiler_wl='-Wl,'
9456 lt_prog_compiler_static='-static'
9457
9458 case $host_os in
9459 aix*)
9460 # All AIX code is PIC.
9461 if test ia64 = "$host_cpu"; then
9462 # AIX 5 now supports IA64 processor
9463 lt_prog_compiler_static='-Bstatic'
9464 fi
9465 lt_prog_compiler_pic='-fPIC'
9466 ;;
9467
9468 amigaos*)
9469 case $host_cpu in
9470 powerpc)
9471 # see comment about AmigaOS4 .so support
9472 lt_prog_compiler_pic='-fPIC'
9473 ;;
9474 m68k)
9475 # FIXME: we need at least 68020 code to build shared libraries, but
9476 # adding the '-m68020' flag to GCC prevents building anything better,
9477 # like '-m68040'.
9478 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9479 ;;
9480 esac
9481 ;;
9482
9483 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9484 # PIC is the default for these OSes.
9485 ;;
9486
9487 mingw* | cygwin* | pw32* | os2* | cegcc*)
9488 # This hack is so that the source file can tell whether it is being
9489 # built for inclusion in a dll (and should export symbols for example).
9490 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9491 # (--disable-auto-import) libraries
9492 lt_prog_compiler_pic='-DDLL_EXPORT'
9493 case $host_os in
9494 os2*)
9495 lt_prog_compiler_static='$wl-static'
9496 ;;
9497 esac
9498 ;;
9499
9500 darwin* | rhapsody*)
9501 # PIC is the default on this platform
9502 # Common symbols not allowed in MH_DYLIB files
9503 lt_prog_compiler_pic='-fno-common'
9504 ;;
9505
9506 haiku*)
9507 # PIC is the default for Haiku.
9508 # The "-static" flag exists, but is broken.
9509 lt_prog_compiler_static=
9510 ;;
9511
9512 hpux*)
9513 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9514 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9515 # sets the default TLS model and affects inlining.
9516 case $host_cpu in
9517 hppa*64*)
9518 # +Z the default
9519 ;;
9520 *)
9521 lt_prog_compiler_pic='-fPIC'
9522 ;;
9523 esac
9524 ;;
9525
9526 interix[3-9]*)
9527 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9528 # Instead, we relocate shared libraries at runtime.
9529 ;;
9530
9531 msdosdjgpp*)
9532 # Just because we use GCC doesn't mean we suddenly get shared libraries
9533 # on systems that don't support them.
9534 lt_prog_compiler_can_build_shared=no
9535 enable_shared=no
9536 ;;
9537
9538 *nto* | *qnx*)
9539 # QNX uses GNU C++, but need to define -shared option too, otherwise
9540 # it will coredump.
9541 lt_prog_compiler_pic='-fPIC -shared'
9542 ;;
9543
9544 sysv4*MP*)
9545 if test -d /usr/nec; then
9546 lt_prog_compiler_pic=-Kconform_pic
9547 fi
9548 ;;
9549
9550 *)
9551 lt_prog_compiler_pic='-fPIC'
9552 ;;
9553 esac
9554
9555 case $cc_basename in
9556 nvcc*) # Cuda Compiler Driver 2.2
9557 lt_prog_compiler_wl='-Xlinker '
9558 if test -n "$lt_prog_compiler_pic"; then
9559 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9560 fi
9561 ;;
9562 esac
9563 else
9564 # PORTME Check for flag to pass linker flags through the system compiler.
9565 case $host_os in
9566 aix*)
9567 lt_prog_compiler_wl='-Wl,'
9568 if test ia64 = "$host_cpu"; then
9569 # AIX 5 now supports IA64 processor
9570 lt_prog_compiler_static='-Bstatic'
9571 else
9572 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9573 fi
9574 ;;
9575
9576 darwin* | rhapsody*)
9577 # PIC is the default on this platform
9578 # Common symbols not allowed in MH_DYLIB files
9579 lt_prog_compiler_pic='-fno-common'
9580 case $cc_basename in
9581 nagfor*)
9582 # NAG Fortran compiler
9583 lt_prog_compiler_wl='-Wl,-Wl,,'
9584 lt_prog_compiler_pic='-PIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 ;;
9587 esac
9588 ;;
9589
9590 mingw* | cygwin* | pw32* | os2* | cegcc*)
9591 # This hack is so that the source file can tell whether it is being
9592 # built for inclusion in a dll (and should export symbols for example).
9593 lt_prog_compiler_pic='-DDLL_EXPORT'
9594 case $host_os in
9595 os2*)
9596 lt_prog_compiler_static='$wl-static'
9597 ;;
9598 esac
9599 ;;
9600
9601 hpux9* | hpux10* | hpux11*)
9602 lt_prog_compiler_wl='-Wl,'
9603 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9604 # not for PA HP-UX.
9605 case $host_cpu in
9606 hppa*64*|ia64*)
9607 # +Z the default
9608 ;;
9609 *)
9610 lt_prog_compiler_pic='+Z'
9611 ;;
9612 esac
9613 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9614 lt_prog_compiler_static='$wl-a ${wl}archive'
9615 ;;
9616
9617 irix5* | irix6* | nonstopux*)
9618 lt_prog_compiler_wl='-Wl,'
9619 # PIC (with -KPIC) is the default.
9620 lt_prog_compiler_static='-non_shared'
9621 ;;
9622
9623 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9624 case $cc_basename in
9625 # old Intel for x86_64, which still supported -KPIC.
9626 ecc*)
9627 lt_prog_compiler_wl='-Wl,'
9628 lt_prog_compiler_pic='-KPIC'
9629 lt_prog_compiler_static='-static'
9630 ;;
9631 # icc used to be incompatible with GCC.
9632 # ICC 10 doesn't accept -KPIC any more.
9633 icc* | ifort*)
9634 lt_prog_compiler_wl='-Wl,'
9635 lt_prog_compiler_pic='-fPIC'
9636 lt_prog_compiler_static='-static'
9637 ;;
9638 # Lahey Fortran 8.1.
9639 lf95*)
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_pic='--shared'
9642 lt_prog_compiler_static='--static'
9643 ;;
9644 nagfor*)
9645 # NAG Fortran compiler
9646 lt_prog_compiler_wl='-Wl,-Wl,,'
9647 lt_prog_compiler_pic='-PIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650 tcc*)
9651 # Fabrice Bellard et al's Tiny C Compiler
9652 lt_prog_compiler_wl='-Wl,'
9653 lt_prog_compiler_pic='-fPIC'
9654 lt_prog_compiler_static='-static'
9655 ;;
9656 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9657 # Portland Group compilers (*not* the Pentium gcc compiler,
9658 # which looks to be a dead project)
9659 lt_prog_compiler_wl='-Wl,'
9660 lt_prog_compiler_pic='-fpic'
9661 lt_prog_compiler_static='-Bstatic'
9662 ;;
9663 ccc*)
9664 lt_prog_compiler_wl='-Wl,'
9665 # All Alpha code is PIC.
9666 lt_prog_compiler_static='-non_shared'
9667 ;;
9668 xl* | bgxl* | bgf* | mpixl*)
9669 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9670 lt_prog_compiler_wl='-Wl,'
9671 lt_prog_compiler_pic='-qpic'
9672 lt_prog_compiler_static='-qstaticlink'
9673 ;;
9674 *)
9675 case `$CC -V 2>&1 | $SED 5q` in
9676 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9677 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-Bstatic'
9680 lt_prog_compiler_wl=''
9681 ;;
9682 *Sun\ F* | *Sun*Fortran*)
9683 lt_prog_compiler_pic='-KPIC'
9684 lt_prog_compiler_static='-Bstatic'
9685 lt_prog_compiler_wl='-Qoption ld '
9686 ;;
9687 *Sun\ C*)
9688 # Sun C 5.9
9689 lt_prog_compiler_pic='-KPIC'
9690 lt_prog_compiler_static='-Bstatic'
9691 lt_prog_compiler_wl='-Wl,'
9692 ;;
9693 *Intel*\ [CF]*Compiler*)
9694 lt_prog_compiler_wl='-Wl,'
9695 lt_prog_compiler_pic='-fPIC'
9696 lt_prog_compiler_static='-static'
9697 ;;
9698 *Portland\ Group*)
9699 lt_prog_compiler_wl='-Wl,'
9700 lt_prog_compiler_pic='-fpic'
9701 lt_prog_compiler_static='-Bstatic'
9702 ;;
9703 esac
9704 ;;
9705 esac
9706 ;;
9707
9708 newsos6)
9709 lt_prog_compiler_pic='-KPIC'
9710 lt_prog_compiler_static='-Bstatic'
9711 ;;
9712
9713 *nto* | *qnx*)
9714 # QNX uses GNU C++, but need to define -shared option too, otherwise
9715 # it will coredump.
9716 lt_prog_compiler_pic='-fPIC -shared'
9717 ;;
9718
9719 osf3* | osf4* | osf5*)
9720 lt_prog_compiler_wl='-Wl,'
9721 # All OSF/1 code is PIC.
9722 lt_prog_compiler_static='-non_shared'
9723 ;;
9724
9725 rdos*)
9726 lt_prog_compiler_static='-non_shared'
9727 ;;
9728
9729 solaris*)
9730 lt_prog_compiler_pic='-KPIC'
9731 lt_prog_compiler_static='-Bstatic'
9732 case $cc_basename in
9733 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9734 lt_prog_compiler_wl='-Qoption ld ';;
9735 *)
9736 lt_prog_compiler_wl='-Wl,';;
9737 esac
9738 ;;
9739
9740 sunos4*)
9741 lt_prog_compiler_wl='-Qoption ld '
9742 lt_prog_compiler_pic='-PIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 ;;
9745
9746 sysv4 | sysv4.2uw2* | sysv4.3*)
9747 lt_prog_compiler_wl='-Wl,'
9748 lt_prog_compiler_pic='-KPIC'
9749 lt_prog_compiler_static='-Bstatic'
9750 ;;
9751
9752 sysv4*MP*)
9753 if test -d /usr/nec; then
9754 lt_prog_compiler_pic='-Kconform_pic'
9755 lt_prog_compiler_static='-Bstatic'
9756 fi
9757 ;;
9758
9759 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9760 lt_prog_compiler_wl='-Wl,'
9761 lt_prog_compiler_pic='-KPIC'
9762 lt_prog_compiler_static='-Bstatic'
9763 ;;
9764
9765 unicos*)
9766 lt_prog_compiler_wl='-Wl,'
9767 lt_prog_compiler_can_build_shared=no
9768 ;;
9769
9770 uts4*)
9771 lt_prog_compiler_pic='-pic'
9772 lt_prog_compiler_static='-Bstatic'
9773 ;;
9774
9775 *)
9776 lt_prog_compiler_can_build_shared=no
9777 ;;
9778 esac
9779 fi
9780
9781 case $host_os in
9782 # For platforms that do not support PIC, -DPIC is meaningless:
9783 *djgpp*)
9784 lt_prog_compiler_pic=
9785 ;;
9786 *)
9787 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9788 ;;
9789 esac
9790
9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9792 printf %s "checking for $compiler option to produce PIC... " >&6; }
9793 if test ${lt_cv_prog_compiler_pic+y}
9794 then :
9795 printf %s "(cached) " >&6
9796 else $as_nop
9797 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9798 fi
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9800 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9801 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9802
9803 #
9804 # Check to make sure the PIC flag actually works.
9805 #
9806 if test -n "$lt_prog_compiler_pic"; then
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9808 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9809 if test ${lt_cv_prog_compiler_pic_works+y}
9810 then :
9811 printf %s "(cached) " >&6
9812 else $as_nop
9813 lt_cv_prog_compiler_pic_works=no
9814 ac_outfile=conftest.$ac_objext
9815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9817 # Insert the option either (1) after the last *FLAGS variable, or
9818 # (2) before a word containing "conftest.", or (3) at the end.
9819 # Note that $ac_compile itself does not contain backslashes and begins
9820 # with a dollar sign (not a hyphen), so the echo should work correctly.
9821 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
9828 ac_status=$?
9829 cat conftest.err >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 if (exit $ac_status) && test -s "$ac_outfile"; then
9832 # The compiler can only warn and ignore the option if not recognized
9833 # So say no if there are warnings other than the usual output.
9834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_pic_works=yes
9838 fi
9839 fi
9840 $RM conftest*
9841
9842 fi
9843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9844 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9845
9846 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9847 case $lt_prog_compiler_pic in
9848 "" | " "*) ;;
9849 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9850 esac
9851 else
9852 lt_prog_compiler_pic=
9853 lt_prog_compiler_can_build_shared=no
9854 fi
9855
9856 fi
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868 #
9869 # Check to make sure the static flag actually works.
9870 #
9871 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9873 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9874 if test ${lt_cv_prog_compiler_static_works+y}
9875 then :
9876 printf %s "(cached) " >&6
9877 else $as_nop
9878 lt_cv_prog_compiler_static_works=no
9879 save_LDFLAGS=$LDFLAGS
9880 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9881 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9883 # The linker can only warn and ignore the option if not recognized
9884 # So say no if there are warnings
9885 if test -s conftest.err; then
9886 # Append any errors to the config.log.
9887 cat conftest.err 1>&5
9888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9890 if diff conftest.exp conftest.er2 >/dev/null; then
9891 lt_cv_prog_compiler_static_works=yes
9892 fi
9893 else
9894 lt_cv_prog_compiler_static_works=yes
9895 fi
9896 fi
9897 $RM -r conftest*
9898 LDFLAGS=$save_LDFLAGS
9899
9900 fi
9901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9902 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9903
9904 if test yes = "$lt_cv_prog_compiler_static_works"; then
9905 :
9906 else
9907 lt_prog_compiler_static=
9908 fi
9909
9910
9911
9912
9913
9914
9915
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9917 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9918 if test ${lt_cv_prog_compiler_c_o+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else $as_nop
9922 lt_cv_prog_compiler_c_o=no
9923 $RM -r conftest 2>/dev/null
9924 mkdir conftest
9925 cd conftest
9926 mkdir out
9927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9928
9929 lt_compiler_flag="-o out/conftest2.$ac_objext"
9930 # Insert the option either (1) after the last *FLAGS variable, or
9931 # (2) before a word containing "conftest.", or (3) at the end.
9932 # Note that $ac_compile itself does not contain backslashes and begins
9933 # with a dollar sign (not a hyphen), so the echo should work correctly.
9934 lt_compile=`echo "$ac_compile" | $SED \
9935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937 -e 's:$: $lt_compiler_flag:'`
9938 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9939 (eval "$lt_compile" 2>out/conftest.err)
9940 ac_status=$?
9941 cat out/conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9944 then
9945 # The compiler can only warn and ignore the option if not recognized
9946 # So say no if there are warnings
9947 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9948 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9949 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9950 lt_cv_prog_compiler_c_o=yes
9951 fi
9952 fi
9953 chmod u+w . 2>&5
9954 $RM conftest*
9955 # SGI C++ compiler will create directory out/ii_files/ for
9956 # template instantiation
9957 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9958 $RM out/* && rmdir out
9959 cd ..
9960 $RM -r conftest
9961 $RM conftest*
9962
9963 fi
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9965 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9966
9967
9968
9969
9970
9971
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9973 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9974 if test ${lt_cv_prog_compiler_c_o+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else $as_nop
9978 lt_cv_prog_compiler_c_o=no
9979 $RM -r conftest 2>/dev/null
9980 mkdir conftest
9981 cd conftest
9982 mkdir out
9983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9984
9985 lt_compiler_flag="-o out/conftest2.$ac_objext"
9986 # Insert the option either (1) after the last *FLAGS variable, or
9987 # (2) before a word containing "conftest.", or (3) at the end.
9988 # Note that $ac_compile itself does not contain backslashes and begins
9989 # with a dollar sign (not a hyphen), so the echo should work correctly.
9990 lt_compile=`echo "$ac_compile" | $SED \
9991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9993 -e 's:$: $lt_compiler_flag:'`
9994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9995 (eval "$lt_compile" 2>out/conftest.err)
9996 ac_status=$?
9997 cat out/conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10000 then
10001 # The compiler can only warn and ignore the option if not recognized
10002 # So say no if there are warnings
10003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10006 lt_cv_prog_compiler_c_o=yes
10007 fi
10008 fi
10009 chmod u+w . 2>&5
10010 $RM conftest*
10011 # SGI C++ compiler will create directory out/ii_files/ for
10012 # template instantiation
10013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10014 $RM out/* && rmdir out
10015 cd ..
10016 $RM -r conftest
10017 $RM conftest*
10018
10019 fi
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10021 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10022
10023
10024
10025
10026 hard_links=nottested
10027 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10028 # do not overwrite the value of need_locks provided by the user
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10030 printf %s "checking if we can lock with hard links... " >&6; }
10031 hard_links=yes
10032 $RM conftest*
10033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10034 touch conftest.a
10035 ln conftest.a conftest.b 2>&5 || hard_links=no
10036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10038 printf "%s\n" "$hard_links" >&6; }
10039 if test no = "$hard_links"; then
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10041 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10042 need_locks=warn
10043 fi
10044 else
10045 need_locks=no
10046 fi
10047
10048
10049
10050
10051
10052
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10054 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10055
10056 runpath_var=
10057 allow_undefined_flag=
10058 always_export_symbols=no
10059 archive_cmds=
10060 archive_expsym_cmds=
10061 compiler_needs_object=no
10062 enable_shared_with_static_runtimes=no
10063 export_dynamic_flag_spec=
10064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10065 hardcode_automatic=no
10066 hardcode_direct=no
10067 hardcode_direct_absolute=no
10068 hardcode_libdir_flag_spec=
10069 hardcode_libdir_separator=
10070 hardcode_minus_L=no
10071 hardcode_shlibpath_var=unsupported
10072 inherit_rpath=no
10073 link_all_deplibs=unknown
10074 module_cmds=
10075 module_expsym_cmds=
10076 old_archive_from_new_cmds=
10077 old_archive_from_expsyms_cmds=
10078 thread_safe_flag_spec=
10079 whole_archive_flag_spec=
10080 # include_expsyms should be a list of space-separated symbols to be *always*
10081 # included in the symbol list
10082 include_expsyms=
10083 # exclude_expsyms can be an extended regexp of symbols to exclude
10084 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10085 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10086 # as well as any symbol that contains 'd'.
10087 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10089 # platforms (ab)use it in PIC code, but their linkers get confused if
10090 # the symbol is explicitly referenced. Since portable code cannot
10091 # rely on this symbol name, it's probably fine to never include it in
10092 # preloaded symbol tables.
10093 # Exclude shared library initialization/finalization symbols.
10094 extract_expsyms_cmds=
10095
10096 case $host_os in
10097 cygwin* | mingw* | pw32* | cegcc*)
10098 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10099 # When not using gcc, we currently assume that we are using
10100 # Microsoft Visual C++ or Intel C++ Compiler.
10101 if test yes != "$GCC"; then
10102 with_gnu_ld=no
10103 fi
10104 ;;
10105 interix*)
10106 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10107 with_gnu_ld=yes
10108 ;;
10109 openbsd* | bitrig*)
10110 with_gnu_ld=no
10111 ;;
10112 esac
10113
10114 ld_shlibs=yes
10115
10116 # On some targets, GNU ld is compatible enough with the native linker
10117 # that we're better off using the native interface for both.
10118 lt_use_gnu_ld_interface=no
10119 if test yes = "$with_gnu_ld"; then
10120 case $host_os in
10121 aix*)
10122 # The AIX port of GNU ld has always aspired to compatibility
10123 # with the native linker. However, as the warning in the GNU ld
10124 # block says, versions before 2.19.5* couldn't really create working
10125 # shared libraries, regardless of the interface used.
10126 case `$LD -v 2>&1` in
10127 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10128 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10129 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10130 *)
10131 lt_use_gnu_ld_interface=yes
10132 ;;
10133 esac
10134 ;;
10135 *)
10136 lt_use_gnu_ld_interface=yes
10137 ;;
10138 esac
10139 fi
10140
10141 if test yes = "$lt_use_gnu_ld_interface"; then
10142 # If archive_cmds runs LD, not CC, wlarc should be empty
10143 wlarc='$wl'
10144
10145 # Set some defaults for GNU ld with shared library support. These
10146 # are reset later if shared libraries are not supported. Putting them
10147 # here allows them to be overridden if necessary.
10148 runpath_var=LD_RUN_PATH
10149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10150 export_dynamic_flag_spec='$wl--export-dynamic'
10151 # ancient GNU ld didn't support --whole-archive et. al.
10152 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10153 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10154 else
10155 whole_archive_flag_spec=
10156 fi
10157 supports_anon_versioning=no
10158 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10159 *GNU\ gold*) supports_anon_versioning=yes ;;
10160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10163 *\ 2.11.*) ;; # other 2.11 versions
10164 *) supports_anon_versioning=yes ;;
10165 esac
10166
10167 # See if GNU ld supports shared libraries.
10168 case $host_os in
10169 aix[3-9]*)
10170 # On AIX/PPC, the GNU linker is very broken
10171 if test ia64 != "$host_cpu"; then
10172 ld_shlibs=no
10173 cat <<_LT_EOF 1>&2
10174
10175 *** Warning: the GNU linker, at least up to release 2.19, is reported
10176 *** to be unable to reliably create shared libraries on AIX.
10177 *** Therefore, libtool is disabling shared libraries support. If you
10178 *** really care for shared libraries, you may want to install binutils
10179 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10180 *** You will then need to restart the configuration process.
10181
10182 _LT_EOF
10183 fi
10184 ;;
10185
10186 amigaos*)
10187 case $host_cpu in
10188 powerpc)
10189 # see comment about AmigaOS4 .so support
10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191 archive_expsym_cmds=''
10192 ;;
10193 m68k)
10194 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)'
10195 hardcode_libdir_flag_spec='-L$libdir'
10196 hardcode_minus_L=yes
10197 ;;
10198 esac
10199 ;;
10200
10201 beos*)
10202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10203 allow_undefined_flag=unsupported
10204 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10205 # support --undefined. This deserves some investigation. FIXME
10206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10207 else
10208 ld_shlibs=no
10209 fi
10210 ;;
10211
10212 cygwin* | mingw* | pw32* | cegcc*)
10213 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10214 # as there is no search path for DLLs.
10215 hardcode_libdir_flag_spec='-L$libdir'
10216 export_dynamic_flag_spec='$wl--export-all-symbols'
10217 allow_undefined_flag=unsupported
10218 always_export_symbols=no
10219 enable_shared_with_static_runtimes=yes
10220 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'
10221 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10222
10223 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10224 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10225 # If the export-symbols file already is a .def file, use it as
10226 # is; otherwise, prepend EXPORTS...
10227 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10228 cp $export_symbols $output_objdir/$soname.def;
10229 else
10230 echo EXPORTS > $output_objdir/$soname.def;
10231 cat $export_symbols >> $output_objdir/$soname.def;
10232 fi~
10233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10234 else
10235 ld_shlibs=no
10236 fi
10237 ;;
10238
10239 haiku*)
10240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10241 link_all_deplibs=yes
10242 ;;
10243
10244 os2*)
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_minus_L=yes
10247 allow_undefined_flag=unsupported
10248 shrext_cmds=.dll
10249 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10250 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10251 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10252 $ECHO EXPORTS >> $output_objdir/$libname.def~
10253 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10255 emximp -o $lib $output_objdir/$libname.def'
10256 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10257 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10258 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10259 $ECHO EXPORTS >> $output_objdir/$libname.def~
10260 prefix_cmds="$SED"~
10261 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10262 prefix_cmds="$prefix_cmds -e 1d";
10263 fi~
10264 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10265 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10266 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10267 emximp -o $lib $output_objdir/$libname.def'
10268 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10269 enable_shared_with_static_runtimes=yes
10270 file_list_spec='@'
10271 ;;
10272
10273 interix[3-9]*)
10274 hardcode_direct=no
10275 hardcode_shlibpath_var=no
10276 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10277 export_dynamic_flag_spec='$wl-E'
10278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10279 # Instead, shared libraries are loaded at an image base (0x10000000 by
10280 # default) and relocated if they conflict, which is a slow very memory
10281 # consuming and fragmenting process. To avoid this, we pick a random,
10282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10285 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'
10286 ;;
10287
10288 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10289 tmp_diet=no
10290 if test linux-dietlibc = "$host_os"; then
10291 case $cc_basename in
10292 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10293 esac
10294 fi
10295 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10296 && test no = "$tmp_diet"
10297 then
10298 tmp_addflag=' $pic_flag'
10299 tmp_sharedflag='-shared'
10300 case $cc_basename,$host_cpu in
10301 pgcc*) # Portland Group C compiler
10302 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10303 tmp_addflag=' $pic_flag'
10304 ;;
10305 pgf77* | pgf90* | pgf95* | pgfortran*)
10306 # Portland Group f77 and f90 compilers
10307 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'
10308 tmp_addflag=' $pic_flag -Mnomain' ;;
10309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10310 tmp_addflag=' -i_dynamic' ;;
10311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10312 tmp_addflag=' -i_dynamic -nofor_main' ;;
10313 ifc* | ifort*) # Intel Fortran compiler
10314 tmp_addflag=' -nofor_main' ;;
10315 lf95*) # Lahey Fortran 8.1
10316 whole_archive_flag_spec=
10317 tmp_sharedflag='--shared' ;;
10318 nagfor*) # NAGFOR 5.3
10319 tmp_sharedflag='-Wl,-shared' ;;
10320 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10321 tmp_sharedflag='-qmkshrobj'
10322 tmp_addflag= ;;
10323 nvcc*) # Cuda Compiler Driver 2.2
10324 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'
10325 compiler_needs_object=yes
10326 ;;
10327 esac
10328 case `$CC -V 2>&1 | $SED 5q` in
10329 *Sun\ C*) # Sun C 5.9
10330 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'
10331 compiler_needs_object=yes
10332 tmp_sharedflag='-G' ;;
10333 *Sun\ F*) # Sun Fortran 8.3
10334 tmp_sharedflag='-G' ;;
10335 esac
10336 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10337
10338 if test yes = "$supports_anon_versioning"; then
10339 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10340 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10341 echo "local: *; };" >> $output_objdir/$libname.ver~
10342 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10343 fi
10344
10345 case $cc_basename in
10346 tcc*)
10347 export_dynamic_flag_spec='-rdynamic'
10348 ;;
10349 xlf* | bgf* | bgxlf* | mpixlf*)
10350 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10351 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10353 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10354 if test yes = "$supports_anon_versioning"; then
10355 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10356 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10357 echo "local: *; };" >> $output_objdir/$libname.ver~
10358 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10359 fi
10360 ;;
10361 esac
10362 else
10363 ld_shlibs=no
10364 fi
10365 ;;
10366
10367 netbsd*)
10368 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10369 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10370 wlarc=
10371 else
10372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10373 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10374 fi
10375 ;;
10376
10377 solaris*)
10378 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10379 ld_shlibs=no
10380 cat <<_LT_EOF 1>&2
10381
10382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10383 *** create shared libraries on Solaris systems. Therefore, libtool
10384 *** is disabling shared libraries support. We urge you to upgrade GNU
10385 *** binutils to release 2.9.1 or newer. Another option is to modify
10386 *** your PATH or compiler configuration so that the native linker is
10387 *** used, and then restart.
10388
10389 _LT_EOF
10390 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10392 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10393 else
10394 ld_shlibs=no
10395 fi
10396 ;;
10397
10398 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10399 case `$LD -v 2>&1` in
10400 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10401 ld_shlibs=no
10402 cat <<_LT_EOF 1>&2
10403
10404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10405 *** reliably create shared libraries on SCO systems. Therefore, libtool
10406 *** is disabling shared libraries support. We urge you to upgrade GNU
10407 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10408 *** your PATH or compiler configuration so that the native linker is
10409 *** used, and then restart.
10410
10411 _LT_EOF
10412 ;;
10413 *)
10414 # For security reasons, it is highly recommended that you always
10415 # use absolute paths for naming shared libraries, and exclude the
10416 # DT_RUNPATH tag from executables and libraries. But doing so
10417 # requires that you compile everything twice, which is a pain.
10418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10422 else
10423 ld_shlibs=no
10424 fi
10425 ;;
10426 esac
10427 ;;
10428
10429 sunos4*)
10430 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10431 wlarc=
10432 hardcode_direct=yes
10433 hardcode_shlibpath_var=no
10434 ;;
10435
10436 *)
10437 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10438 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10439 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10440 else
10441 ld_shlibs=no
10442 fi
10443 ;;
10444 esac
10445
10446 if test no = "$ld_shlibs"; then
10447 runpath_var=
10448 hardcode_libdir_flag_spec=
10449 export_dynamic_flag_spec=
10450 whole_archive_flag_spec=
10451 fi
10452 else
10453 # PORTME fill in a description of your system's linker (not GNU ld)
10454 case $host_os in
10455 aix3*)
10456 allow_undefined_flag=unsupported
10457 always_export_symbols=yes
10458 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'
10459 # Note: this linker hardcodes the directories in LIBPATH if there
10460 # are no directories specified by -L.
10461 hardcode_minus_L=yes
10462 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10463 # Neither direct hardcoding nor static linking is supported with a
10464 # broken collect2.
10465 hardcode_direct=unsupported
10466 fi
10467 ;;
10468
10469 aix[4-9]*)
10470 if test ia64 = "$host_cpu"; then
10471 # On IA64, the linker does run time linking by default, so we don't
10472 # have to do anything special.
10473 aix_use_runtimelinking=no
10474 exp_sym_flag='-Bexport'
10475 no_entry_flag=
10476 else
10477 # If we're using GNU nm, then we don't want the "-C" option.
10478 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10479 # Without the "-l" option, or with the "-B" option, AIX nm treats
10480 # weak defined symbols like other global defined symbols, whereas
10481 # GNU nm marks them as "W".
10482 # While the 'weak' keyword is ignored in the Export File, we need
10483 # it in the Import File for the 'aix-soname' feature, so we have
10484 # to replace the "-B" option with "-P" for AIX nm.
10485 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10486 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'
10487 else
10488 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'
10489 fi
10490 aix_use_runtimelinking=no
10491
10492 # Test if we are trying to use run time linking or normal
10493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10494 # have runtime linking enabled, and use it for executables.
10495 # For shared libraries, we enable/disable runtime linking
10496 # depending on the kind of the shared library created -
10497 # when "with_aix_soname,aix_use_runtimelinking" is:
10498 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10499 # "aix,yes" lib.so shared, rtl:yes, for executables
10500 # lib.a static archive
10501 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10502 # lib.a(lib.so.V) shared, rtl:no, for executables
10503 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10504 # lib.a(lib.so.V) shared, rtl:no
10505 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10506 # lib.a static archive
10507 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10508 for ld_flag in $LDFLAGS; do
10509 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10510 aix_use_runtimelinking=yes
10511 break
10512 fi
10513 done
10514 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10515 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10516 # so we don't have lib.a shared libs to link our executables.
10517 # We have to force runtime linking in this case.
10518 aix_use_runtimelinking=yes
10519 LDFLAGS="$LDFLAGS -Wl,-brtl"
10520 fi
10521 ;;
10522 esac
10523
10524 exp_sym_flag='-bexport'
10525 no_entry_flag='-bnoentry'
10526 fi
10527
10528 # When large executables or shared objects are built, AIX ld can
10529 # have problems creating the table of contents. If linking a library
10530 # or program results in "error TOC overflow" add -mminimal-toc to
10531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10533
10534 archive_cmds=''
10535 hardcode_direct=yes
10536 hardcode_direct_absolute=yes
10537 hardcode_libdir_separator=':'
10538 link_all_deplibs=yes
10539 file_list_spec='$wl-f,'
10540 case $with_aix_soname,$aix_use_runtimelinking in
10541 aix,*) ;; # traditional, no import file
10542 svr4,* | *,yes) # use import file
10543 # The Import File defines what to hardcode.
10544 hardcode_direct=no
10545 hardcode_direct_absolute=no
10546 ;;
10547 esac
10548
10549 if test yes = "$GCC"; then
10550 case $host_os in aix4.[012]|aix4.[012].*)
10551 # We only want to do this on AIX 4.2 and lower, the check
10552 # below for broken collect2 doesn't work under 4.3+
10553 collect2name=`$CC -print-prog-name=collect2`
10554 if test -f "$collect2name" &&
10555 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10556 then
10557 # We have reworked collect2
10558 :
10559 else
10560 # We have old collect2
10561 hardcode_direct=unsupported
10562 # It fails to find uninstalled libraries when the uninstalled
10563 # path is not listed in the libpath. Setting hardcode_minus_L
10564 # to unsupported forces relinking
10565 hardcode_minus_L=yes
10566 hardcode_libdir_flag_spec='-L$libdir'
10567 hardcode_libdir_separator=
10568 fi
10569 ;;
10570 esac
10571 shared_flag='-shared'
10572 if test yes = "$aix_use_runtimelinking"; then
10573 shared_flag="$shared_flag "'$wl-G'
10574 fi
10575 # Need to ensure runtime linking is disabled for the traditional
10576 # shared library, or the linker may eventually find shared libraries
10577 # /with/ Import File - we do not want to mix them.
10578 shared_flag_aix='-shared'
10579 shared_flag_svr4='-shared $wl-G'
10580 else
10581 # not using gcc
10582 if test ia64 = "$host_cpu"; then
10583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10584 # chokes on -Wl,-G. The following line is correct:
10585 shared_flag='-G'
10586 else
10587 if test yes = "$aix_use_runtimelinking"; then
10588 shared_flag='$wl-G'
10589 else
10590 shared_flag='$wl-bM:SRE'
10591 fi
10592 shared_flag_aix='$wl-bM:SRE'
10593 shared_flag_svr4='$wl-G'
10594 fi
10595 fi
10596
10597 export_dynamic_flag_spec='$wl-bexpall'
10598 # It seems that -bexpall does not export symbols beginning with
10599 # underscore (_), so it is better to generate a list of symbols to export.
10600 always_export_symbols=yes
10601 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10602 # Warning - without using the other runtime loading flags (-brtl),
10603 # -berok will link without error, but may produce a broken library.
10604 allow_undefined_flag='-berok'
10605 # Determine the default libpath from the value encoded in an
10606 # empty executable.
10607 if test set = "${lt_cv_aix_libpath+set}"; then
10608 aix_libpath=$lt_cv_aix_libpath
10609 else
10610 if test ${lt_cv_aix_libpath_+y}
10611 then :
10612 printf %s "(cached) " >&6
10613 else $as_nop
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10616
10617 int
10618 main (void)
10619 {
10620
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"
10626 then :
10627
10628 lt_aix_libpath_sed='
10629 /Import File Strings/,/^$/ {
10630 /^0/ {
10631 s/^0 *\([^ ]*\) *$/\1/
10632 p
10633 }
10634 }'
10635 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10636 # Check for a 64-bit object if we didn't find anything.
10637 if test -z "$lt_cv_aix_libpath_"; then
10638 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10639 fi
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10642 conftest$ac_exeext conftest.$ac_ext
10643 if test -z "$lt_cv_aix_libpath_"; then
10644 lt_cv_aix_libpath_=/usr/lib:/lib
10645 fi
10646
10647 fi
10648
10649 aix_libpath=$lt_cv_aix_libpath_
10650 fi
10651
10652 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10653 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
10654 else
10655 if test ia64 = "$host_cpu"; then
10656 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10657 allow_undefined_flag="-z nodefs"
10658 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"
10659 else
10660 # Determine the default libpath from the value encoded in an
10661 # empty executable.
10662 if test set = "${lt_cv_aix_libpath+set}"; then
10663 aix_libpath=$lt_cv_aix_libpath
10664 else
10665 if test ${lt_cv_aix_libpath_+y}
10666 then :
10667 printf %s "(cached) " >&6
10668 else $as_nop
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671
10672 int
10673 main (void)
10674 {
10675
10676 ;
10677 return 0;
10678 }
10679 _ACEOF
10680 if ac_fn_c_try_link "$LINENO"
10681 then :
10682
10683 lt_aix_libpath_sed='
10684 /Import File Strings/,/^$/ {
10685 /^0/ {
10686 s/^0 *\([^ ]*\) *$/\1/
10687 p
10688 }
10689 }'
10690 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10691 # Check for a 64-bit object if we didn't find anything.
10692 if test -z "$lt_cv_aix_libpath_"; then
10693 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10694 fi
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10697 conftest$ac_exeext conftest.$ac_ext
10698 if test -z "$lt_cv_aix_libpath_"; then
10699 lt_cv_aix_libpath_=/usr/lib:/lib
10700 fi
10701
10702 fi
10703
10704 aix_libpath=$lt_cv_aix_libpath_
10705 fi
10706
10707 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10708 # Warning - without using the other run time loading flags,
10709 # -berok will link without error, but may produce a broken library.
10710 no_undefined_flag=' $wl-bernotok'
10711 allow_undefined_flag=' $wl-berok'
10712 if test yes = "$with_gnu_ld"; then
10713 # We only use this code for GNU lds that support --whole-archive.
10714 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10715 else
10716 # Exported symbols can be pulled into shared objects from archives
10717 whole_archive_flag_spec='$convenience'
10718 fi
10719 archive_cmds_need_lc=yes
10720 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10721 # -brtl affects multiple linker settings, -berok does not and is overridden later
10722 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10723 if test svr4 != "$with_aix_soname"; then
10724 # This is similar to how AIX traditionally builds its shared libraries.
10725 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'
10726 fi
10727 if test aix != "$with_aix_soname"; then
10728 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'
10729 else
10730 # used by -dlpreopen to get the symbols
10731 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10732 fi
10733 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10734 fi
10735 fi
10736 ;;
10737
10738 amigaos*)
10739 case $host_cpu in
10740 powerpc)
10741 # see comment about AmigaOS4 .so support
10742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10743 archive_expsym_cmds=''
10744 ;;
10745 m68k)
10746 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)'
10747 hardcode_libdir_flag_spec='-L$libdir'
10748 hardcode_minus_L=yes
10749 ;;
10750 esac
10751 ;;
10752
10753 bsdi[45]*)
10754 export_dynamic_flag_spec=-rdynamic
10755 ;;
10756
10757 cygwin* | mingw* | pw32* | cegcc*)
10758 # When not using gcc, we currently assume that we are using
10759 # Microsoft Visual C++ or Intel C++ Compiler.
10760 # hardcode_libdir_flag_spec is actually meaningless, as there is
10761 # no search path for DLLs.
10762 case $cc_basename in
10763 cl* | icl*)
10764 # Native MSVC or ICC
10765 hardcode_libdir_flag_spec=' '
10766 allow_undefined_flag=unsupported
10767 always_export_symbols=yes
10768 file_list_spec='@'
10769 # Tell ltmain to make .lib files, not .a files.
10770 libext=lib
10771 # Tell ltmain to make .dll files, not .so files.
10772 shrext_cmds=.dll
10773 # FIXME: Setting linknames here is a bad hack.
10774 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10775 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10776 cp "$export_symbols" "$output_objdir/$soname.def";
10777 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10778 else
10779 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10780 fi~
10781 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10782 linknames='
10783 # The linker will not automatically build a static lib if we build a DLL.
10784 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10785 enable_shared_with_static_runtimes=yes
10786 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10787 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10788 # Don't use ranlib
10789 old_postinstall_cmds='chmod 644 $oldlib'
10790 postlink_cmds='lt_outputfile="@OUTPUT@"~
10791 lt_tool_outputfile="@TOOL_OUTPUT@"~
10792 case $lt_outputfile in
10793 *.exe|*.EXE) ;;
10794 *)
10795 lt_outputfile=$lt_outputfile.exe
10796 lt_tool_outputfile=$lt_tool_outputfile.exe
10797 ;;
10798 esac~
10799 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10800 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10801 $RM "$lt_outputfile.manifest";
10802 fi'
10803 ;;
10804 *)
10805 # Assume MSVC and ICC wrapper
10806 hardcode_libdir_flag_spec=' '
10807 allow_undefined_flag=unsupported
10808 # Tell ltmain to make .lib files, not .a files.
10809 libext=lib
10810 # Tell ltmain to make .dll files, not .so files.
10811 shrext_cmds=.dll
10812 # FIXME: Setting linknames here is a bad hack.
10813 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10814 # The linker will automatically build a .lib file if we build a DLL.
10815 old_archive_from_new_cmds='true'
10816 # FIXME: Should let the user specify the lib program.
10817 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10818 enable_shared_with_static_runtimes=yes
10819 ;;
10820 esac
10821 ;;
10822
10823 darwin* | rhapsody*)
10824
10825
10826 archive_cmds_need_lc=no
10827 hardcode_direct=no
10828 hardcode_automatic=yes
10829 hardcode_shlibpath_var=unsupported
10830 if test yes = "$lt_cv_ld_force_load"; then
10831 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\"`'
10832
10833 else
10834 whole_archive_flag_spec=''
10835 fi
10836 link_all_deplibs=yes
10837 allow_undefined_flag=$_lt_dar_allow_undefined
10838 case $cc_basename in
10839 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10840 *) _lt_dar_can_shared=$GCC ;;
10841 esac
10842 if test yes = "$_lt_dar_can_shared"; then
10843 output_verbose_link_cmd=func_echo_all
10844 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10845 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10846 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"
10847 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"
10848
10849 else
10850 ld_shlibs=no
10851 fi
10852
10853 ;;
10854
10855 dgux*)
10856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857 hardcode_libdir_flag_spec='-L$libdir'
10858 hardcode_shlibpath_var=no
10859 ;;
10860
10861 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10862 # support. Future versions do this automatically, but an explicit c++rt0.o
10863 # does not break anything, and helps significantly (at the cost of a little
10864 # extra space).
10865 freebsd2.2*)
10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10867 hardcode_libdir_flag_spec='-R$libdir'
10868 hardcode_direct=yes
10869 hardcode_shlibpath_var=no
10870 ;;
10871
10872 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10873 freebsd2.*)
10874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10875 hardcode_direct=yes
10876 hardcode_minus_L=yes
10877 hardcode_shlibpath_var=no
10878 ;;
10879
10880 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10881 freebsd* | dragonfly* | midnightbsd*)
10882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10883 hardcode_libdir_flag_spec='-R$libdir'
10884 hardcode_direct=yes
10885 hardcode_shlibpath_var=no
10886 ;;
10887
10888 hpux9*)
10889 if test yes = "$GCC"; then
10890 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'
10891 else
10892 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'
10893 fi
10894 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10895 hardcode_libdir_separator=:
10896 hardcode_direct=yes
10897
10898 # hardcode_minus_L: Not really in the search PATH,
10899 # but as the default location of the library.
10900 hardcode_minus_L=yes
10901 export_dynamic_flag_spec='$wl-E'
10902 ;;
10903
10904 hpux10*)
10905 if test yes,no = "$GCC,$with_gnu_ld"; then
10906 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10907 else
10908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10909 fi
10910 if test no = "$with_gnu_ld"; then
10911 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10912 hardcode_libdir_separator=:
10913 hardcode_direct=yes
10914 hardcode_direct_absolute=yes
10915 export_dynamic_flag_spec='$wl-E'
10916 # hardcode_minus_L: Not really in the search PATH,
10917 # but as the default location of the library.
10918 hardcode_minus_L=yes
10919 fi
10920 ;;
10921
10922 hpux11*)
10923 if test yes,no = "$GCC,$with_gnu_ld"; then
10924 case $host_cpu in
10925 hppa*64*)
10926 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 ;;
10928 ia64*)
10929 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10930 ;;
10931 *)
10932 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10933 ;;
10934 esac
10935 else
10936 case $host_cpu in
10937 hppa*64*)
10938 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 ;;
10940 ia64*)
10941 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10942 ;;
10943 *)
10944
10945 # Older versions of the 11.00 compiler do not understand -b yet
10946 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10948 printf %s "checking if $CC understands -b... " >&6; }
10949 if test ${lt_cv_prog_compiler__b+y}
10950 then :
10951 printf %s "(cached) " >&6
10952 else $as_nop
10953 lt_cv_prog_compiler__b=no
10954 save_LDFLAGS=$LDFLAGS
10955 LDFLAGS="$LDFLAGS -b"
10956 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10957 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10958 # The linker can only warn and ignore the option if not recognized
10959 # So say no if there are warnings
10960 if test -s conftest.err; then
10961 # Append any errors to the config.log.
10962 cat conftest.err 1>&5
10963 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10965 if diff conftest.exp conftest.er2 >/dev/null; then
10966 lt_cv_prog_compiler__b=yes
10967 fi
10968 else
10969 lt_cv_prog_compiler__b=yes
10970 fi
10971 fi
10972 $RM -r conftest*
10973 LDFLAGS=$save_LDFLAGS
10974
10975 fi
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10977 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10978
10979 if test yes = "$lt_cv_prog_compiler__b"; then
10980 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10981 else
10982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10983 fi
10984
10985 ;;
10986 esac
10987 fi
10988 if test no = "$with_gnu_ld"; then
10989 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10990 hardcode_libdir_separator=:
10991
10992 case $host_cpu in
10993 hppa*64*|ia64*)
10994 hardcode_direct=no
10995 hardcode_shlibpath_var=no
10996 ;;
10997 *)
10998 hardcode_direct=yes
10999 hardcode_direct_absolute=yes
11000 export_dynamic_flag_spec='$wl-E'
11001
11002 # hardcode_minus_L: Not really in the search PATH,
11003 # but as the default location of the library.
11004 hardcode_minus_L=yes
11005 ;;
11006 esac
11007 fi
11008 ;;
11009
11010 irix5* | irix6* | nonstopux*)
11011 if test yes = "$GCC"; then
11012 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'
11013 # Try to use the -exported_symbol ld option, if it does not
11014 # work, assume that -exports_file does not work either and
11015 # implicitly export all symbols.
11016 # This should be the same for all languages, so no per-tag cache variable.
11017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11018 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11019 if test ${lt_cv_irix_exported_symbol+y}
11020 then :
11021 printf %s "(cached) " >&6
11022 else $as_nop
11023 save_LDFLAGS=$LDFLAGS
11024 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 int foo (void) { return 0; }
11028 _ACEOF
11029 if ac_fn_c_try_link "$LINENO"
11030 then :
11031 lt_cv_irix_exported_symbol=yes
11032 else $as_nop
11033 lt_cv_irix_exported_symbol=no
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11036 conftest$ac_exeext conftest.$ac_ext
11037 LDFLAGS=$save_LDFLAGS
11038 fi
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11040 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11041 if test yes = "$lt_cv_irix_exported_symbol"; then
11042 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'
11043 fi
11044 else
11045 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'
11046 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'
11047 fi
11048 archive_cmds_need_lc='no'
11049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11050 hardcode_libdir_separator=:
11051 inherit_rpath=yes
11052 link_all_deplibs=yes
11053 ;;
11054
11055 linux*)
11056 case $cc_basename in
11057 tcc*)
11058 # Fabrice Bellard et al's Tiny C Compiler
11059 ld_shlibs=yes
11060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11061 ;;
11062 esac
11063 ;;
11064
11065 netbsd*)
11066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11068 else
11069 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11070 fi
11071 hardcode_libdir_flag_spec='-R$libdir'
11072 hardcode_direct=yes
11073 hardcode_shlibpath_var=no
11074 ;;
11075
11076 newsos6)
11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078 hardcode_direct=yes
11079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11080 hardcode_libdir_separator=:
11081 hardcode_shlibpath_var=no
11082 ;;
11083
11084 *nto* | *qnx*)
11085 ;;
11086
11087 openbsd* | bitrig*)
11088 if test -f /usr/libexec/ld.so; then
11089 hardcode_direct=yes
11090 hardcode_shlibpath_var=no
11091 hardcode_direct_absolute=yes
11092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11094 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11095 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11096 export_dynamic_flag_spec='$wl-E'
11097 else
11098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11099 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11100 fi
11101 else
11102 ld_shlibs=no
11103 fi
11104 ;;
11105
11106 os2*)
11107 hardcode_libdir_flag_spec='-L$libdir'
11108 hardcode_minus_L=yes
11109 allow_undefined_flag=unsupported
11110 shrext_cmds=.dll
11111 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11114 $ECHO EXPORTS >> $output_objdir/$libname.def~
11115 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11117 emximp -o $lib $output_objdir/$libname.def'
11118 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11121 $ECHO EXPORTS >> $output_objdir/$libname.def~
11122 prefix_cmds="$SED"~
11123 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11124 prefix_cmds="$prefix_cmds -e 1d";
11125 fi~
11126 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11127 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11128 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11129 emximp -o $lib $output_objdir/$libname.def'
11130 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11131 enable_shared_with_static_runtimes=yes
11132 file_list_spec='@'
11133 ;;
11134
11135 osf3*)
11136 if test yes = "$GCC"; then
11137 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11138 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'
11139 else
11140 allow_undefined_flag=' -expect_unresolved \*'
11141 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'
11142 fi
11143 archive_cmds_need_lc='no'
11144 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11145 hardcode_libdir_separator=:
11146 ;;
11147
11148 osf4* | osf5*) # as osf3* with the addition of -msym flag
11149 if test yes = "$GCC"; then
11150 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11151 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'
11152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11153 else
11154 allow_undefined_flag=' -expect_unresolved \*'
11155 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'
11156 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~
11157 $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'
11158
11159 # Both c and cxx compiler support -rpath directly
11160 hardcode_libdir_flag_spec='-rpath $libdir'
11161 fi
11162 archive_cmds_need_lc='no'
11163 hardcode_libdir_separator=:
11164 ;;
11165
11166 solaris*)
11167 no_undefined_flag=' -z defs'
11168 if test yes = "$GCC"; then
11169 wlarc='$wl'
11170 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11172 $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'
11173 else
11174 case `$CC -V 2>&1` in
11175 *"Compilers 5.0"*)
11176 wlarc=''
11177 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11179 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11180 ;;
11181 *)
11182 wlarc='$wl'
11183 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11185 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11186 ;;
11187 esac
11188 fi
11189 hardcode_libdir_flag_spec='-R$libdir'
11190 hardcode_shlibpath_var=no
11191 case $host_os in
11192 solaris2.[0-5] | solaris2.[0-5].*) ;;
11193 *)
11194 # The compiler driver will combine and reorder linker options,
11195 # but understands '-z linker_flag'. GCC discards it without '$wl',
11196 # but is careful enough not to reorder.
11197 # Supported since Solaris 2.6 (maybe 2.5.1?)
11198 if test yes = "$GCC"; then
11199 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11200 else
11201 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11202 fi
11203 ;;
11204 esac
11205 link_all_deplibs=yes
11206 ;;
11207
11208 sunos4*)
11209 if test sequent = "$host_vendor"; then
11210 # Use $CC to link under sequent, because it throws in some extra .o
11211 # files that make .init and .fini sections work.
11212 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11213 else
11214 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11215 fi
11216 hardcode_libdir_flag_spec='-L$libdir'
11217 hardcode_direct=yes
11218 hardcode_minus_L=yes
11219 hardcode_shlibpath_var=no
11220 ;;
11221
11222 sysv4)
11223 case $host_vendor in
11224 sni)
11225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11226 hardcode_direct=yes # is this really true???
11227 ;;
11228 siemens)
11229 ## LD is ld it makes a PLAMLIB
11230 ## CC just makes a GrossModule.
11231 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11232 reload_cmds='$CC -r -o $output$reload_objs'
11233 hardcode_direct=no
11234 ;;
11235 motorola)
11236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11237 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11238 ;;
11239 esac
11240 runpath_var='LD_RUN_PATH'
11241 hardcode_shlibpath_var=no
11242 ;;
11243
11244 sysv4.3*)
11245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11246 hardcode_shlibpath_var=no
11247 export_dynamic_flag_spec='-Bexport'
11248 ;;
11249
11250 sysv4*MP*)
11251 if test -d /usr/nec; then
11252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11253 hardcode_shlibpath_var=no
11254 runpath_var=LD_RUN_PATH
11255 hardcode_runpath_var=yes
11256 ld_shlibs=yes
11257 fi
11258 ;;
11259
11260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11261 no_undefined_flag='$wl-z,text'
11262 archive_cmds_need_lc=no
11263 hardcode_shlibpath_var=no
11264 runpath_var='LD_RUN_PATH'
11265
11266 if test yes = "$GCC"; then
11267 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269 else
11270 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11271 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 fi
11273 ;;
11274
11275 sysv5* | sco3.2v5* | sco5v6*)
11276 # Note: We CANNOT use -z defs as we might desire, because we do not
11277 # link with -lc, and that would cause any symbols used from libc to
11278 # always be unresolved, which means just about no library would
11279 # ever link correctly. If we're not using GNU ld we use -z text
11280 # though, which does catch some bad symbols but isn't as heavy-handed
11281 # as -z defs.
11282 no_undefined_flag='$wl-z,text'
11283 allow_undefined_flag='$wl-z,nodefs'
11284 archive_cmds_need_lc=no
11285 hardcode_shlibpath_var=no
11286 hardcode_libdir_flag_spec='$wl-R,$libdir'
11287 hardcode_libdir_separator=':'
11288 link_all_deplibs=yes
11289 export_dynamic_flag_spec='$wl-Bexport'
11290 runpath_var='LD_RUN_PATH'
11291
11292 if test yes = "$GCC"; then
11293 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 else
11296 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 fi
11299 ;;
11300
11301 uts4*)
11302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303 hardcode_libdir_flag_spec='-L$libdir'
11304 hardcode_shlibpath_var=no
11305 ;;
11306
11307 *)
11308 ld_shlibs=no
11309 ;;
11310 esac
11311
11312 if test sni = "$host_vendor"; then
11313 case $host in
11314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11315 export_dynamic_flag_spec='$wl-Blargedynsym'
11316 ;;
11317 esac
11318 fi
11319 fi
11320
11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11322 printf "%s\n" "$ld_shlibs" >&6; }
11323 test no = "$ld_shlibs" && can_build_shared=no
11324
11325 with_gnu_ld=$with_gnu_ld
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341 #
11342 # Do we need to explicitly link libc?
11343 #
11344 case "x$archive_cmds_need_lc" in
11345 x|xyes)
11346 # Assume -lc should be added
11347 archive_cmds_need_lc=yes
11348
11349 if test yes,yes = "$GCC,$enable_shared"; then
11350 case $archive_cmds in
11351 *'~'*)
11352 # FIXME: we may have to deal with multi-command sequences.
11353 ;;
11354 '$CC '*)
11355 # Test whether the compiler implicitly links with -lc since on some
11356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11357 # to ld, don't add -lc before -lgcc.
11358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11359 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11360 if test ${lt_cv_archive_cmds_need_lc+y}
11361 then :
11362 printf %s "(cached) " >&6
11363 else $as_nop
11364 $RM conftest*
11365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11366
11367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11368 (eval $ac_compile) 2>&5
11369 ac_status=$?
11370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371 test $ac_status = 0; } 2>conftest.err; then
11372 soname=conftest
11373 lib=conftest
11374 libobjs=conftest.$ac_objext
11375 deplibs=
11376 wl=$lt_prog_compiler_wl
11377 pic_flag=$lt_prog_compiler_pic
11378 compiler_flags=-v
11379 linker_flags=-v
11380 verstring=
11381 output_objdir=.
11382 libname=conftest
11383 lt_save_allow_undefined_flag=$allow_undefined_flag
11384 allow_undefined_flag=
11385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11387 ac_status=$?
11388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11389 test $ac_status = 0; }
11390 then
11391 lt_cv_archive_cmds_need_lc=no
11392 else
11393 lt_cv_archive_cmds_need_lc=yes
11394 fi
11395 allow_undefined_flag=$lt_save_allow_undefined_flag
11396 else
11397 cat conftest.err 1>&5
11398 fi
11399 $RM conftest*
11400
11401 fi
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11403 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11405 ;;
11406 esac
11407 fi
11408 ;;
11409 esac
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11563 printf %s "checking dynamic linker characteristics... " >&6; }
11564
11565 if test yes = "$GCC"; then
11566 case $host_os in
11567 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11568 *) lt_awk_arg='/^libraries:/' ;;
11569 esac
11570 case $host_os in
11571 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11572 *) lt_sed_strip_eq='s|=/|/|g' ;;
11573 esac
11574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11575 case $lt_search_path_spec in
11576 *\;*)
11577 # if the path contains ";" then we assume it to be the separator
11578 # otherwise default to the standard path separator (i.e. ":") - it is
11579 # assumed that no part of a normal pathname contains ";" but that should
11580 # okay in the real world where ";" in dirpaths is itself problematic.
11581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11582 ;;
11583 *)
11584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11585 ;;
11586 esac
11587 # Ok, now we have the path, separated by spaces, we can step through it
11588 # and add multilib dir if necessary...
11589 lt_tmp_lt_search_path_spec=
11590 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11591 # ...but if some path component already ends with the multilib dir we assume
11592 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11593 case "$lt_multi_os_dir; $lt_search_path_spec " in
11594 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11595 lt_multi_os_dir=
11596 ;;
11597 esac
11598 for lt_sys_path in $lt_search_path_spec; do
11599 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11601 elif test -n "$lt_multi_os_dir"; then
11602 test -d "$lt_sys_path" && \
11603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11604 fi
11605 done
11606 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11607 BEGIN {RS = " "; FS = "/|\n";} {
11608 lt_foo = "";
11609 lt_count = 0;
11610 for (lt_i = NF; lt_i > 0; lt_i--) {
11611 if ($lt_i != "" && $lt_i != ".") {
11612 if ($lt_i == "..") {
11613 lt_count++;
11614 } else {
11615 if (lt_count == 0) {
11616 lt_foo = "/" $lt_i lt_foo;
11617 } else {
11618 lt_count--;
11619 }
11620 }
11621 }
11622 }
11623 if (lt_foo != "") { lt_freq[lt_foo]++; }
11624 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11625 }'`
11626 # AWK program above erroneously prepends '/' to C:/dos/paths
11627 # for these hosts.
11628 case $host_os in
11629 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11630 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11631 esac
11632 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11633 else
11634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11635 fi
11636 library_names_spec=
11637 libname_spec='lib$name'
11638 soname_spec=
11639 shrext_cmds=.so
11640 postinstall_cmds=
11641 postuninstall_cmds=
11642 finish_cmds=
11643 finish_eval=
11644 shlibpath_var=
11645 shlibpath_overrides_runpath=unknown
11646 version_type=none
11647 dynamic_linker="$host_os ld.so"
11648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11649 need_lib_prefix=unknown
11650 hardcode_into_libs=no
11651
11652 # when you set need_version to no, make sure it does not cause -set_version
11653 # flags to be left without arguments
11654 need_version=unknown
11655
11656
11657
11658 case $host_os in
11659 aix3*)
11660 version_type=linux # correct to gnu/linux during the next big refactor
11661 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11662 shlibpath_var=LIBPATH
11663
11664 # AIX 3 has no versioning support, so we append a major version to the name.
11665 soname_spec='$libname$release$shared_ext$major'
11666 ;;
11667
11668 aix[4-9]*)
11669 version_type=linux # correct to gnu/linux during the next big refactor
11670 need_lib_prefix=no
11671 need_version=no
11672 hardcode_into_libs=yes
11673 if test ia64 = "$host_cpu"; then
11674 # AIX 5 supports IA64
11675 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 else
11678 # With GCC up to 2.95.x, collect2 would create an import file
11679 # for dependence libraries. The import file would start with
11680 # the line '#! .'. This would cause the generated library to
11681 # depend on '.', always an invalid library. This was fixed in
11682 # development snapshots of GCC prior to 3.0.
11683 case $host_os in
11684 aix4 | aix4.[01] | aix4.[01].*)
11685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11686 echo ' yes '
11687 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11688 :
11689 else
11690 can_build_shared=no
11691 fi
11692 ;;
11693 esac
11694 # Using Import Files as archive members, it is possible to support
11695 # filename-based versioning of shared library archives on AIX. While
11696 # this would work for both with and without runtime linking, it will
11697 # prevent static linking of such archives. So we do filename-based
11698 # shared library versioning with .so extension only, which is used
11699 # when both runtime linking and shared linking is enabled.
11700 # Unfortunately, runtime linking may impact performance, so we do
11701 # not want this to be the default eventually. Also, we use the
11702 # versioned .so libs for executables only if there is the -brtl
11703 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11704 # To allow for filename-based versioning support, we need to create
11705 # libNAME.so.V as an archive file, containing:
11706 # *) an Import File, referring to the versioned filename of the
11707 # archive as well as the shared archive member, telling the
11708 # bitwidth (32 or 64) of that shared object, and providing the
11709 # list of exported symbols of that shared object, eventually
11710 # decorated with the 'weak' keyword
11711 # *) the shared object with the F_LOADONLY flag set, to really avoid
11712 # it being seen by the linker.
11713 # At run time we better use the real file rather than another symlink,
11714 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11715
11716 case $with_aix_soname,$aix_use_runtimelinking in
11717 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11718 # soname into executable. Probably we can add versioning support to
11719 # collect2, so additional links can be useful in future.
11720 aix,yes) # traditional libtool
11721 dynamic_linker='AIX unversionable lib.so'
11722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11723 # instead of lib<name>.a to let people know that these are not
11724 # typical AIX shared libraries.
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726 ;;
11727 aix,no) # traditional AIX only
11728 dynamic_linker='AIX lib.a(lib.so.V)'
11729 # We preserve .a as extension for shared libraries through AIX4.2
11730 # and later when we are not doing run time linking.
11731 library_names_spec='$libname$release.a $libname.a'
11732 soname_spec='$libname$release$shared_ext$major'
11733 ;;
11734 svr4,*) # full svr4 only
11735 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11736 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11737 # We do not specify a path in Import Files, so LIBPATH fires.
11738 shlibpath_overrides_runpath=yes
11739 ;;
11740 *,yes) # both, prefer svr4
11741 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11742 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11743 # unpreferred sharedlib libNAME.a needs extra handling
11744 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"'
11745 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"'
11746 # We do not specify a path in Import Files, so LIBPATH fires.
11747 shlibpath_overrides_runpath=yes
11748 ;;
11749 *,no) # both, prefer aix
11750 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11751 library_names_spec='$libname$release.a $libname.a'
11752 soname_spec='$libname$release$shared_ext$major'
11753 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11754 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)'
11755 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"'
11756 ;;
11757 esac
11758 shlibpath_var=LIBPATH
11759 fi
11760 ;;
11761
11762 amigaos*)
11763 case $host_cpu in
11764 powerpc)
11765 # Since July 2007 AmigaOS4 officially supports .so libraries.
11766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768 ;;
11769 m68k)
11770 library_names_spec='$libname.ixlibrary $libname.a'
11771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11772 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'
11773 ;;
11774 esac
11775 ;;
11776
11777 beos*)
11778 library_names_spec='$libname$shared_ext'
11779 dynamic_linker="$host_os ld.so"
11780 shlibpath_var=LIBRARY_PATH
11781 ;;
11782
11783 bsdi[45]*)
11784 version_type=linux # correct to gnu/linux during the next big refactor
11785 need_version=no
11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787 soname_spec='$libname$release$shared_ext$major'
11788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11792 # the default ld.so.conf also contains /usr/contrib/lib and
11793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11794 # libtool to hard-code these into programs
11795 ;;
11796
11797 cygwin* | mingw* | pw32* | cegcc*)
11798 version_type=windows
11799 shrext_cmds=.dll
11800 need_version=no
11801 need_lib_prefix=no
11802
11803 case $GCC,$cc_basename in
11804 yes,*)
11805 # gcc
11806 library_names_spec='$libname.dll.a'
11807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11808 postinstall_cmds='base_file=`basename \$file`~
11809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11810 dldir=$destdir/`dirname \$dlpath`~
11811 test -d \$dldir || mkdir -p \$dldir~
11812 $install_prog $dir/$dlname \$dldir/$dlname~
11813 chmod a+x \$dldir/$dlname~
11814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11816 fi'
11817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11818 dlpath=$dir/\$dldll~
11819 $RM \$dlpath'
11820 shlibpath_overrides_runpath=yes
11821
11822 case $host_os in
11823 cygwin*)
11824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11825 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11826
11827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11828 ;;
11829 mingw* | cegcc*)
11830 # MinGW DLLs use traditional 'lib' prefix
11831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11832 ;;
11833 pw32*)
11834 # pw32 DLLs use 'pw' prefix rather than 'lib'
11835 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11836 ;;
11837 esac
11838 dynamic_linker='Win32 ld.exe'
11839 ;;
11840
11841 *,cl* | *,icl*)
11842 # Native MSVC or ICC
11843 libname_spec='$name'
11844 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11845 library_names_spec='$libname.dll.lib'
11846
11847 case $build_os in
11848 mingw*)
11849 sys_lib_search_path_spec=
11850 lt_save_ifs=$IFS
11851 IFS=';'
11852 for lt_path in $LIB
11853 do
11854 IFS=$lt_save_ifs
11855 # Let DOS variable expansion print the short 8.3 style file name.
11856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11858 done
11859 IFS=$lt_save_ifs
11860 # Convert to MSYS style.
11861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11862 ;;
11863 cygwin*)
11864 # Convert to unix form, then to dos form, then back to unix form
11865 # but this time dos style (no spaces!) so that the unix form looks
11866 # like /cygdrive/c/PROGRA~1:/cygdr...
11867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11870 ;;
11871 *)
11872 sys_lib_search_path_spec=$LIB
11873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11874 # It is most probably a Windows format PATH.
11875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11876 else
11877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11878 fi
11879 # FIXME: find the short name or the path components, as spaces are
11880 # common. (e.g. "Program Files" -> "PROGRA~1")
11881 ;;
11882 esac
11883
11884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11885 postinstall_cmds='base_file=`basename \$file`~
11886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11887 dldir=$destdir/`dirname \$dlpath`~
11888 test -d \$dldir || mkdir -p \$dldir~
11889 $install_prog $dir/$dlname \$dldir/$dlname'
11890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11891 dlpath=$dir/\$dldll~
11892 $RM \$dlpath'
11893 shlibpath_overrides_runpath=yes
11894 dynamic_linker='Win32 link.exe'
11895 ;;
11896
11897 *)
11898 # Assume MSVC and ICC wrapper
11899 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11900 dynamic_linker='Win32 ld.exe'
11901 ;;
11902 esac
11903 # FIXME: first we should search . and the directory the executable is in
11904 shlibpath_var=PATH
11905 ;;
11906
11907 darwin* | rhapsody*)
11908 dynamic_linker="$host_os dyld"
11909 version_type=darwin
11910 need_lib_prefix=no
11911 need_version=no
11912 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11913 soname_spec='$libname$release$major$shared_ext'
11914 shlibpath_overrides_runpath=yes
11915 shlibpath_var=DYLD_LIBRARY_PATH
11916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11917
11918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11920 ;;
11921
11922 dgux*)
11923 version_type=linux # correct to gnu/linux during the next big refactor
11924 need_lib_prefix=no
11925 need_version=no
11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927 soname_spec='$libname$release$shared_ext$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 ;;
11930
11931 freebsd* | dragonfly* | midnightbsd*)
11932 # DragonFly does not have aout. When/if they implement a new
11933 # versioning mechanism, adjust this.
11934 if test -x /usr/bin/objformat; then
11935 objformat=`/usr/bin/objformat`
11936 else
11937 case $host_os in
11938 freebsd[23].*) objformat=aout ;;
11939 *) objformat=elf ;;
11940 esac
11941 fi
11942 version_type=freebsd-$objformat
11943 case $version_type in
11944 freebsd-elf*)
11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11946 soname_spec='$libname$release$shared_ext$major'
11947 need_version=no
11948 need_lib_prefix=no
11949 ;;
11950 freebsd-*)
11951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11952 need_version=yes
11953 ;;
11954 esac
11955 shlibpath_var=LD_LIBRARY_PATH
11956 case $host_os in
11957 freebsd2.*)
11958 shlibpath_overrides_runpath=yes
11959 ;;
11960 freebsd3.[01]* | freebsdelf3.[01]*)
11961 shlibpath_overrides_runpath=yes
11962 hardcode_into_libs=yes
11963 ;;
11964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11966 shlibpath_overrides_runpath=no
11967 hardcode_into_libs=yes
11968 ;;
11969 *) # from 4.6 on, and DragonFly
11970 shlibpath_overrides_runpath=yes
11971 hardcode_into_libs=yes
11972 ;;
11973 esac
11974 ;;
11975
11976 haiku*)
11977 version_type=linux # correct to gnu/linux during the next big refactor
11978 need_lib_prefix=no
11979 need_version=no
11980 dynamic_linker="$host_os runtime_loader"
11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11982 soname_spec='$libname$release$shared_ext$major'
11983 shlibpath_var=LIBRARY_PATH
11984 shlibpath_overrides_runpath=no
11985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11986 hardcode_into_libs=yes
11987 ;;
11988
11989 hpux9* | hpux10* | hpux11*)
11990 # Give a soname corresponding to the major version so that dld.sl refuses to
11991 # link against other versions.
11992 version_type=sunos
11993 need_lib_prefix=no
11994 need_version=no
11995 case $host_cpu in
11996 ia64*)
11997 shrext_cmds='.so'
11998 hardcode_into_libs=yes
11999 dynamic_linker="$host_os dld.so"
12000 shlibpath_var=LD_LIBRARY_PATH
12001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12003 soname_spec='$libname$release$shared_ext$major'
12004 if test 32 = "$HPUX_IA64_MODE"; then
12005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12007 else
12008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12010 fi
12011 ;;
12012 hppa*64*)
12013 shrext_cmds='.sl'
12014 hardcode_into_libs=yes
12015 dynamic_linker="$host_os dld.sl"
12016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019 soname_spec='$libname$release$shared_ext$major'
12020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12022 ;;
12023 *)
12024 shrext_cmds='.sl'
12025 dynamic_linker="$host_os dld.sl"
12026 shlibpath_var=SHLIB_PATH
12027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12029 soname_spec='$libname$release$shared_ext$major'
12030 ;;
12031 esac
12032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12033 postinstall_cmds='chmod 555 $lib'
12034 # or fails outright, so override atomically:
12035 install_override_mode=555
12036 ;;
12037
12038 interix[3-9]*)
12039 version_type=linux # correct to gnu/linux during the next big refactor
12040 need_lib_prefix=no
12041 need_version=no
12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12043 soname_spec='$libname$release$shared_ext$major'
12044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12045 shlibpath_var=LD_LIBRARY_PATH
12046 shlibpath_overrides_runpath=no
12047 hardcode_into_libs=yes
12048 ;;
12049
12050 irix5* | irix6* | nonstopux*)
12051 case $host_os in
12052 nonstopux*) version_type=nonstopux ;;
12053 *)
12054 if test yes = "$lt_cv_prog_gnu_ld"; then
12055 version_type=linux # correct to gnu/linux during the next big refactor
12056 else
12057 version_type=irix
12058 fi ;;
12059 esac
12060 need_lib_prefix=no
12061 need_version=no
12062 soname_spec='$libname$release$shared_ext$major'
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12064 case $host_os in
12065 irix5* | nonstopux*)
12066 libsuff= shlibsuff=
12067 ;;
12068 *)
12069 case $LD in # libtool.m4 will add one of these switches to LD
12070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12071 libsuff= shlibsuff= libmagic=32-bit;;
12072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12073 libsuff=32 shlibsuff=N32 libmagic=N32;;
12074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12075 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12076 *) libsuff= shlibsuff= libmagic=never-match;;
12077 esac
12078 ;;
12079 esac
12080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12081 shlibpath_overrides_runpath=no
12082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12084 hardcode_into_libs=yes
12085 ;;
12086
12087 # No shared lib support for Linux oldld, aout, or coff.
12088 linux*oldld* | linux*aout* | linux*coff*)
12089 dynamic_linker=no
12090 ;;
12091
12092 linux*android*)
12093 version_type=none # Android doesn't support versioned libraries.
12094 need_lib_prefix=no
12095 need_version=no
12096 library_names_spec='$libname$release$shared_ext'
12097 soname_spec='$libname$release$shared_ext'
12098 finish_cmds=
12099 shlibpath_var=LD_LIBRARY_PATH
12100 shlibpath_overrides_runpath=yes
12101
12102 # This implies no fast_install, which is unacceptable.
12103 # Some rework will be needed to allow for fast_install
12104 # before this can be enabled.
12105 hardcode_into_libs=yes
12106
12107 dynamic_linker='Android linker'
12108 # Don't embed -rpath directories since the linker doesn't support them.
12109 hardcode_libdir_flag_spec='-L$libdir'
12110 ;;
12111
12112 # This must be glibc/ELF.
12113 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12114 version_type=linux # correct to gnu/linux during the next big refactor
12115 need_lib_prefix=no
12116 need_version=no
12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118 soname_spec='$libname$release$shared_ext$major'
12119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12120 shlibpath_var=LD_LIBRARY_PATH
12121 shlibpath_overrides_runpath=no
12122
12123 # Some binutils ld are patched to set DT_RUNPATH
12124 if test ${lt_cv_shlibpath_overrides_runpath+y}
12125 then :
12126 printf %s "(cached) " >&6
12127 else $as_nop
12128 lt_cv_shlibpath_overrides_runpath=no
12129 save_LDFLAGS=$LDFLAGS
12130 save_libdir=$libdir
12131 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12132 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135
12136 int
12137 main (void)
12138 {
12139
12140 ;
12141 return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"
12145 then :
12146 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12147 then :
12148 lt_cv_shlibpath_overrides_runpath=yes
12149 fi
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LDFLAGS=$save_LDFLAGS
12154 libdir=$save_libdir
12155
12156 fi
12157
12158 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12159
12160 # This implies no fast_install, which is unacceptable.
12161 # Some rework will be needed to allow for fast_install
12162 # before this can be enabled.
12163 hardcode_into_libs=yes
12164
12165 # Ideally, we could use ldconfig to report *all* directores which are
12166 # searched for libraries, however this is still not possible. Aside from not
12167 # being certain /sbin/ldconfig is available, command
12168 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12169 # even though it is searched at run-time. Try to do the best guess by
12170 # appending ld.so.conf contents (and includes) to the search path.
12171 if test -f /etc/ld.so.conf; then
12172 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' ' '`
12173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12174 fi
12175
12176 # We used to test for /lib/ld.so.1 and disable shared libraries on
12177 # powerpc, because MkLinux only supported shared libraries with the
12178 # GNU dynamic linker. Since this was broken with cross compilers,
12179 # most powerpc-linux boxes support dynamic linking these days and
12180 # people can always --disable-shared, the test was removed, and we
12181 # assume the GNU/Linux dynamic linker is in use.
12182 dynamic_linker='GNU/Linux ld.so'
12183 ;;
12184
12185 netbsd*)
12186 version_type=sunos
12187 need_lib_prefix=no
12188 need_version=no
12189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12192 dynamic_linker='NetBSD (a.out) ld.so'
12193 else
12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12195 soname_spec='$libname$release$shared_ext$major'
12196 dynamic_linker='NetBSD ld.elf_so'
12197 fi
12198 shlibpath_var=LD_LIBRARY_PATH
12199 shlibpath_overrides_runpath=yes
12200 hardcode_into_libs=yes
12201 ;;
12202
12203 newsos6)
12204 version_type=linux # correct to gnu/linux during the next big refactor
12205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=yes
12208 ;;
12209
12210 *nto* | *qnx*)
12211 version_type=qnx
12212 need_lib_prefix=no
12213 need_version=no
12214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12215 soname_spec='$libname$release$shared_ext$major'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=no
12218 hardcode_into_libs=yes
12219 dynamic_linker='ldqnx.so'
12220 ;;
12221
12222 openbsd* | bitrig*)
12223 version_type=sunos
12224 sys_lib_dlsearch_path_spec=/usr/lib
12225 need_lib_prefix=no
12226 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12227 need_version=no
12228 else
12229 need_version=yes
12230 fi
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233 shlibpath_var=LD_LIBRARY_PATH
12234 shlibpath_overrides_runpath=yes
12235 ;;
12236
12237 os2*)
12238 libname_spec='$name'
12239 version_type=windows
12240 shrext_cmds=.dll
12241 need_version=no
12242 need_lib_prefix=no
12243 # OS/2 can only load a DLL with a base name of 8 characters or less.
12244 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12245 v=$($ECHO $release$versuffix | tr -d .-);
12246 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12247 $ECHO $n$v`$shared_ext'
12248 library_names_spec='${libname}_dll.$libext'
12249 dynamic_linker='OS/2 ld.exe'
12250 shlibpath_var=BEGINLIBPATH
12251 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12253 postinstall_cmds='base_file=`basename \$file`~
12254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12255 dldir=$destdir/`dirname \$dlpath`~
12256 test -d \$dldir || mkdir -p \$dldir~
12257 $install_prog $dir/$dlname \$dldir/$dlname~
12258 chmod a+x \$dldir/$dlname~
12259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12261 fi'
12262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12263 dlpath=$dir/\$dldll~
12264 $RM \$dlpath'
12265 ;;
12266
12267 osf3* | osf4* | osf5*)
12268 version_type=osf
12269 need_lib_prefix=no
12270 need_version=no
12271 soname_spec='$libname$release$shared_ext$major'
12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12273 shlibpath_var=LD_LIBRARY_PATH
12274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12276 ;;
12277
12278 rdos*)
12279 dynamic_linker=no
12280 ;;
12281
12282 solaris*)
12283 version_type=linux # correct to gnu/linux during the next big refactor
12284 need_lib_prefix=no
12285 need_version=no
12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12287 soname_spec='$libname$release$shared_ext$major'
12288 shlibpath_var=LD_LIBRARY_PATH
12289 shlibpath_overrides_runpath=yes
12290 hardcode_into_libs=yes
12291 # ldd complains unless libraries are executable
12292 postinstall_cmds='chmod +x $lib'
12293 ;;
12294
12295 sunos4*)
12296 version_type=sunos
12297 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12299 shlibpath_var=LD_LIBRARY_PATH
12300 shlibpath_overrides_runpath=yes
12301 if test yes = "$with_gnu_ld"; then
12302 need_lib_prefix=no
12303 fi
12304 need_version=yes
12305 ;;
12306
12307 sysv4 | sysv4.3*)
12308 version_type=linux # correct to gnu/linux during the next big refactor
12309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12310 soname_spec='$libname$release$shared_ext$major'
12311 shlibpath_var=LD_LIBRARY_PATH
12312 case $host_vendor in
12313 sni)
12314 shlibpath_overrides_runpath=no
12315 need_lib_prefix=no
12316 runpath_var=LD_RUN_PATH
12317 ;;
12318 siemens)
12319 need_lib_prefix=no
12320 ;;
12321 motorola)
12322 need_lib_prefix=no
12323 need_version=no
12324 shlibpath_overrides_runpath=no
12325 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12326 ;;
12327 esac
12328 ;;
12329
12330 sysv4*MP*)
12331 if test -d /usr/nec; then
12332 version_type=linux # correct to gnu/linux during the next big refactor
12333 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12334 soname_spec='$libname$shared_ext.$major'
12335 shlibpath_var=LD_LIBRARY_PATH
12336 fi
12337 ;;
12338
12339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12340 version_type=sco
12341 need_lib_prefix=no
12342 need_version=no
12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12344 soname_spec='$libname$release$shared_ext$major'
12345 shlibpath_var=LD_LIBRARY_PATH
12346 shlibpath_overrides_runpath=yes
12347 hardcode_into_libs=yes
12348 if test yes = "$with_gnu_ld"; then
12349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12350 else
12351 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12352 case $host_os in
12353 sco3.2v5*)
12354 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12355 ;;
12356 esac
12357 fi
12358 sys_lib_dlsearch_path_spec='/usr/lib'
12359 ;;
12360
12361 tpf*)
12362 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12363 version_type=linux # correct to gnu/linux during the next big refactor
12364 need_lib_prefix=no
12365 need_version=no
12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12367 shlibpath_var=LD_LIBRARY_PATH
12368 shlibpath_overrides_runpath=no
12369 hardcode_into_libs=yes
12370 ;;
12371
12372 uts4*)
12373 version_type=linux # correct to gnu/linux during the next big refactor
12374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12375 soname_spec='$libname$release$shared_ext$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 ;;
12378
12379 *)
12380 dynamic_linker=no
12381 ;;
12382 esac
12383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12384 printf "%s\n" "$dynamic_linker" >&6; }
12385 test no = "$dynamic_linker" && can_build_shared=no
12386
12387 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12388 if test yes = "$GCC"; then
12389 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12390 fi
12391
12392 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12393 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12394 fi
12395
12396 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12397 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12398 fi
12399
12400 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12401 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12402
12403 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12404 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12405
12406 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12407 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12506 printf %s "checking how to hardcode library paths into programs... " >&6; }
12507 hardcode_action=
12508 if test -n "$hardcode_libdir_flag_spec" ||
12509 test -n "$runpath_var" ||
12510 test yes = "$hardcode_automatic"; then
12511
12512 # We can hardcode non-existent directories.
12513 if test no != "$hardcode_direct" &&
12514 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12515 # have to relink, otherwise we might link with an installed library
12516 # when we should be linking with a yet-to-be-installed one
12517 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12518 test no != "$hardcode_minus_L"; then
12519 # Linking always hardcodes the temporary library directory.
12520 hardcode_action=relink
12521 else
12522 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12523 hardcode_action=immediate
12524 fi
12525 else
12526 # We cannot hardcode anything, or else we can only hardcode existing
12527 # directories.
12528 hardcode_action=unsupported
12529 fi
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12531 printf "%s\n" "$hardcode_action" >&6; }
12532
12533 if test relink = "$hardcode_action" ||
12534 test yes = "$inherit_rpath"; then
12535 # Fast installation is not supported
12536 enable_fast_install=no
12537 elif test yes = "$shlibpath_overrides_runpath" ||
12538 test no = "$enable_shared"; then
12539 # Fast installation is not necessary
12540 enable_fast_install=needless
12541 fi
12542
12543
12544
12545
12546
12547
12548 if test yes != "$enable_dlopen"; then
12549 enable_dlopen=unknown
12550 enable_dlopen_self=unknown
12551 enable_dlopen_self_static=unknown
12552 else
12553 lt_cv_dlopen=no
12554 lt_cv_dlopen_libs=
12555
12556 case $host_os in
12557 beos*)
12558 lt_cv_dlopen=load_add_on
12559 lt_cv_dlopen_libs=
12560 lt_cv_dlopen_self=yes
12561 ;;
12562
12563 mingw* | pw32* | cegcc*)
12564 lt_cv_dlopen=LoadLibrary
12565 lt_cv_dlopen_libs=
12566 ;;
12567
12568 cygwin*)
12569 lt_cv_dlopen=dlopen
12570 lt_cv_dlopen_libs=
12571 ;;
12572
12573 darwin*)
12574 # if libdl is installed we need to link against it
12575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12576 printf %s "checking for dlopen in -ldl... " >&6; }
12577 if test ${ac_cv_lib_dl_dlopen+y}
12578 then :
12579 printf %s "(cached) " >&6
12580 else $as_nop
12581 ac_check_lib_save_LIBS=$LIBS
12582 LIBS="-ldl $LIBS"
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12589 char dlopen ();
12590 int
12591 main (void)
12592 {
12593 return dlopen ();
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"
12599 then :
12600 ac_cv_lib_dl_dlopen=yes
12601 else $as_nop
12602 ac_cv_lib_dl_dlopen=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12607 fi
12608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12609 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12610 if test "x$ac_cv_lib_dl_dlopen" = xyes
12611 then :
12612 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12613 else $as_nop
12614
12615 lt_cv_dlopen=dyld
12616 lt_cv_dlopen_libs=
12617 lt_cv_dlopen_self=yes
12618
12619 fi
12620
12621 ;;
12622
12623 tpf*)
12624 # Don't try to run any link tests for TPF. We know it's impossible
12625 # because TPF is a cross-compiler, and we know how we open DSOs.
12626 lt_cv_dlopen=dlopen
12627 lt_cv_dlopen_libs=
12628 lt_cv_dlopen_self=no
12629 ;;
12630
12631 *)
12632 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12633 if test "x$ac_cv_func_shl_load" = xyes
12634 then :
12635 lt_cv_dlopen=shl_load
12636 else $as_nop
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12638 printf %s "checking for shl_load in -ldld... " >&6; }
12639 if test ${ac_cv_lib_dld_shl_load+y}
12640 then :
12641 printf %s "(cached) " >&6
12642 else $as_nop
12643 ac_check_lib_save_LIBS=$LIBS
12644 LIBS="-ldld $LIBS"
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 /* Override any GCC internal prototype to avoid an error.
12649 Use char because int might match the return type of a GCC
12650 builtin and then its argument prototype would still apply. */
12651 char shl_load ();
12652 int
12653 main (void)
12654 {
12655 return shl_load ();
12656 ;
12657 return 0;
12658 }
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"
12661 then :
12662 ac_cv_lib_dld_shl_load=yes
12663 else $as_nop
12664 ac_cv_lib_dld_shl_load=no
12665 fi
12666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12667 conftest$ac_exeext conftest.$ac_ext
12668 LIBS=$ac_check_lib_save_LIBS
12669 fi
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12671 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12672 if test "x$ac_cv_lib_dld_shl_load" = xyes
12673 then :
12674 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12675 else $as_nop
12676 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12677 if test "x$ac_cv_func_dlopen" = xyes
12678 then :
12679 lt_cv_dlopen=dlopen
12680 else $as_nop
12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12682 printf %s "checking for dlopen in -ldl... " >&6; }
12683 if test ${ac_cv_lib_dl_dlopen+y}
12684 then :
12685 printf %s "(cached) " >&6
12686 else $as_nop
12687 ac_check_lib_save_LIBS=$LIBS
12688 LIBS="-ldl $LIBS"
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691
12692 /* Override any GCC internal prototype to avoid an error.
12693 Use char because int might match the return type of a GCC
12694 builtin and then its argument prototype would still apply. */
12695 char dlopen ();
12696 int
12697 main (void)
12698 {
12699 return dlopen ();
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_link "$LINENO"
12705 then :
12706 ac_cv_lib_dl_dlopen=yes
12707 else $as_nop
12708 ac_cv_lib_dl_dlopen=no
12709 fi
12710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LIBS=$ac_check_lib_save_LIBS
12713 fi
12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12715 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12716 if test "x$ac_cv_lib_dl_dlopen" = xyes
12717 then :
12718 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12719 else $as_nop
12720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12721 printf %s "checking for dlopen in -lsvld... " >&6; }
12722 if test ${ac_cv_lib_svld_dlopen+y}
12723 then :
12724 printf %s "(cached) " >&6
12725 else $as_nop
12726 ac_check_lib_save_LIBS=$LIBS
12727 LIBS="-lsvld $LIBS"
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12734 char dlopen ();
12735 int
12736 main (void)
12737 {
12738 return dlopen ();
12739 ;
12740 return 0;
12741 }
12742 _ACEOF
12743 if ac_fn_c_try_link "$LINENO"
12744 then :
12745 ac_cv_lib_svld_dlopen=yes
12746 else $as_nop
12747 ac_cv_lib_svld_dlopen=no
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12752 fi
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12754 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12755 if test "x$ac_cv_lib_svld_dlopen" = xyes
12756 then :
12757 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12758 else $as_nop
12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12760 printf %s "checking for dld_link in -ldld... " >&6; }
12761 if test ${ac_cv_lib_dld_dld_link+y}
12762 then :
12763 printf %s "(cached) " >&6
12764 else $as_nop
12765 ac_check_lib_save_LIBS=$LIBS
12766 LIBS="-ldld $LIBS"
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769
12770 /* Override any GCC internal prototype to avoid an error.
12771 Use char because int might match the return type of a GCC
12772 builtin and then its argument prototype would still apply. */
12773 char dld_link ();
12774 int
12775 main (void)
12776 {
12777 return dld_link ();
12778 ;
12779 return 0;
12780 }
12781 _ACEOF
12782 if ac_fn_c_try_link "$LINENO"
12783 then :
12784 ac_cv_lib_dld_dld_link=yes
12785 else $as_nop
12786 ac_cv_lib_dld_dld_link=no
12787 fi
12788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12789 conftest$ac_exeext conftest.$ac_ext
12790 LIBS=$ac_check_lib_save_LIBS
12791 fi
12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12793 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12794 if test "x$ac_cv_lib_dld_dld_link" = xyes
12795 then :
12796 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12797 fi
12798
12799
12800 fi
12801
12802
12803 fi
12804
12805
12806 fi
12807
12808
12809 fi
12810
12811
12812 fi
12813
12814 ;;
12815 esac
12816
12817 if test no = "$lt_cv_dlopen"; then
12818 enable_dlopen=no
12819 else
12820 enable_dlopen=yes
12821 fi
12822
12823 case $lt_cv_dlopen in
12824 dlopen)
12825 save_CPPFLAGS=$CPPFLAGS
12826 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12827
12828 save_LDFLAGS=$LDFLAGS
12829 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12830
12831 save_LIBS=$LIBS
12832 LIBS="$lt_cv_dlopen_libs $LIBS"
12833
12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12835 printf %s "checking whether a program can dlopen itself... " >&6; }
12836 if test ${lt_cv_dlopen_self+y}
12837 then :
12838 printf %s "(cached) " >&6
12839 else $as_nop
12840 if test yes = "$cross_compiling"; then :
12841 lt_cv_dlopen_self=cross
12842 else
12843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844 lt_status=$lt_dlunknown
12845 cat > conftest.$ac_ext <<_LT_EOF
12846 #line $LINENO "configure"
12847 #include "confdefs.h"
12848
12849 #if HAVE_DLFCN_H
12850 #include <dlfcn.h>
12851 #endif
12852
12853 #include <stdio.h>
12854
12855 #ifdef RTLD_GLOBAL
12856 # define LT_DLGLOBAL RTLD_GLOBAL
12857 #else
12858 # ifdef DL_GLOBAL
12859 # define LT_DLGLOBAL DL_GLOBAL
12860 # else
12861 # define LT_DLGLOBAL 0
12862 # endif
12863 #endif
12864
12865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12866 find out it does not work in some platform. */
12867 #ifndef LT_DLLAZY_OR_NOW
12868 # ifdef RTLD_LAZY
12869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12870 # else
12871 # ifdef DL_LAZY
12872 # define LT_DLLAZY_OR_NOW DL_LAZY
12873 # else
12874 # ifdef RTLD_NOW
12875 # define LT_DLLAZY_OR_NOW RTLD_NOW
12876 # else
12877 # ifdef DL_NOW
12878 # define LT_DLLAZY_OR_NOW DL_NOW
12879 # else
12880 # define LT_DLLAZY_OR_NOW 0
12881 # endif
12882 # endif
12883 # endif
12884 # endif
12885 #endif
12886
12887 /* When -fvisibility=hidden is used, assume the code has been annotated
12888 correspondingly for the symbols needed. */
12889 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12890 int fnord () __attribute__((visibility("default")));
12891 #endif
12892
12893 int fnord () { return 42; }
12894 int main ()
12895 {
12896 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12897 int status = $lt_dlunknown;
12898
12899 if (self)
12900 {
12901 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12902 else
12903 {
12904 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12905 else puts (dlerror ());
12906 }
12907 /* dlclose (self); */
12908 }
12909 else
12910 puts (dlerror ());
12911
12912 return status;
12913 }
12914 _LT_EOF
12915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12916 (eval $ac_link) 2>&5
12917 ac_status=$?
12918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12920 (./conftest; exit; ) >&5 2>/dev/null
12921 lt_status=$?
12922 case x$lt_status in
12923 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12924 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12925 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12926 esac
12927 else :
12928 # compilation failed
12929 lt_cv_dlopen_self=no
12930 fi
12931 fi
12932 rm -fr conftest*
12933
12934
12935 fi
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12937 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12938
12939 if test yes = "$lt_cv_dlopen_self"; then
12940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12942 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12943 if test ${lt_cv_dlopen_self_static+y}
12944 then :
12945 printf %s "(cached) " >&6
12946 else $as_nop
12947 if test yes = "$cross_compiling"; then :
12948 lt_cv_dlopen_self_static=cross
12949 else
12950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12951 lt_status=$lt_dlunknown
12952 cat > conftest.$ac_ext <<_LT_EOF
12953 #line $LINENO "configure"
12954 #include "confdefs.h"
12955
12956 #if HAVE_DLFCN_H
12957 #include <dlfcn.h>
12958 #endif
12959
12960 #include <stdio.h>
12961
12962 #ifdef RTLD_GLOBAL
12963 # define LT_DLGLOBAL RTLD_GLOBAL
12964 #else
12965 # ifdef DL_GLOBAL
12966 # define LT_DLGLOBAL DL_GLOBAL
12967 # else
12968 # define LT_DLGLOBAL 0
12969 # endif
12970 #endif
12971
12972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12973 find out it does not work in some platform. */
12974 #ifndef LT_DLLAZY_OR_NOW
12975 # ifdef RTLD_LAZY
12976 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12977 # else
12978 # ifdef DL_LAZY
12979 # define LT_DLLAZY_OR_NOW DL_LAZY
12980 # else
12981 # ifdef RTLD_NOW
12982 # define LT_DLLAZY_OR_NOW RTLD_NOW
12983 # else
12984 # ifdef DL_NOW
12985 # define LT_DLLAZY_OR_NOW DL_NOW
12986 # else
12987 # define LT_DLLAZY_OR_NOW 0
12988 # endif
12989 # endif
12990 # endif
12991 # endif
12992 #endif
12993
12994 /* When -fvisibility=hidden is used, assume the code has been annotated
12995 correspondingly for the symbols needed. */
12996 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12997 int fnord () __attribute__((visibility("default")));
12998 #endif
12999
13000 int fnord () { return 42; }
13001 int main ()
13002 {
13003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13004 int status = $lt_dlunknown;
13005
13006 if (self)
13007 {
13008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13009 else
13010 {
13011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13012 else puts (dlerror ());
13013 }
13014 /* dlclose (self); */
13015 }
13016 else
13017 puts (dlerror ());
13018
13019 return status;
13020 }
13021 _LT_EOF
13022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13023 (eval $ac_link) 2>&5
13024 ac_status=$?
13025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13027 (./conftest; exit; ) >&5 2>/dev/null
13028 lt_status=$?
13029 case x$lt_status in
13030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13033 esac
13034 else :
13035 # compilation failed
13036 lt_cv_dlopen_self_static=no
13037 fi
13038 fi
13039 rm -fr conftest*
13040
13041
13042 fi
13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13044 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13045 fi
13046
13047 CPPFLAGS=$save_CPPFLAGS
13048 LDFLAGS=$save_LDFLAGS
13049 LIBS=$save_LIBS
13050 ;;
13051 esac
13052
13053 case $lt_cv_dlopen_self in
13054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13055 *) enable_dlopen_self=unknown ;;
13056 esac
13057
13058 case $lt_cv_dlopen_self_static in
13059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13060 *) enable_dlopen_self_static=unknown ;;
13061 esac
13062 fi
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080 striplib=
13081 old_striplib=
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13083 printf %s "checking whether stripping libraries is possible... " >&6; }
13084 if test -z "$STRIP"; then
13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086 printf "%s\n" "no" >&6; }
13087 else
13088 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13089 old_striplib="$STRIP --strip-debug"
13090 striplib="$STRIP --strip-unneeded"
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13092 printf "%s\n" "yes" >&6; }
13093 else
13094 case $host_os in
13095 darwin*)
13096 # FIXME - insert some real tests, host_os isn't really good enough
13097 striplib="$STRIP -x"
13098 old_striplib="$STRIP -S"
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13100 printf "%s\n" "yes" >&6; }
13101 ;;
13102 freebsd*)
13103 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13104 old_striplib="$STRIP --strip-debug"
13105 striplib="$STRIP --strip-unneeded"
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 printf "%s\n" "yes" >&6; }
13108 else
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 printf "%s\n" "no" >&6; }
13111 fi
13112 ;;
13113 *)
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 printf "%s\n" "no" >&6; }
13116 ;;
13117 esac
13118 fi
13119 fi
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132 # Report what library types will actually be built
13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13134 printf %s "checking if libtool supports shared libraries... " >&6; }
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13136 printf "%s\n" "$can_build_shared" >&6; }
13137
13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13139 printf %s "checking whether to build shared libraries... " >&6; }
13140 test no = "$can_build_shared" && enable_shared=no
13141
13142 # On AIX, shared libraries and static libraries use the same namespace, and
13143 # are all built from PIC.
13144 case $host_os in
13145 aix3*)
13146 test yes = "$enable_shared" && enable_static=no
13147 if test -n "$RANLIB"; then
13148 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13149 postinstall_cmds='$RANLIB $lib'
13150 fi
13151 ;;
13152
13153 aix[4-9]*)
13154 if test ia64 != "$host_cpu"; then
13155 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13156 yes,aix,yes) ;; # shared object as lib.so file only
13157 yes,svr4,*) ;; # shared object as lib.so archive member only
13158 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13159 esac
13160 fi
13161 ;;
13162 esac
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13164 printf "%s\n" "$enable_shared" >&6; }
13165
13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13167 printf %s "checking whether to build static libraries... " >&6; }
13168 # Make sure either enable_shared or enable_static is yes.
13169 test yes = "$enable_shared" || enable_static=yes
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13171 printf "%s\n" "$enable_static" >&6; }
13172
13173
13174
13175
13176 fi
13177 ac_ext=c
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183 CC=$lt_save_CC
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199 ac_config_commands="$ac_config_commands libtool"
13200
13201
13202
13203
13204 # Only expand once:
13205
13206
13207
13208 # Check whether --enable-largefile was given.
13209 if test ${enable_largefile+y}
13210 then :
13211 enableval=$enable_largefile;
13212 fi
13213
13214 if test "$enable_largefile" != no; then
13215
13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13217 printf %s "checking for special C compiler options needed for large files... " >&6; }
13218 if test ${ac_cv_sys_largefile_CC+y}
13219 then :
13220 printf %s "(cached) " >&6
13221 else $as_nop
13222 ac_cv_sys_largefile_CC=no
13223 if test "$GCC" != yes; then
13224 ac_save_CC=$CC
13225 while :; do
13226 # IRIX 6.2 and later do not support large files by default,
13227 # so use the C compiler's -n32 option if that helps.
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 #include <sys/types.h>
13231 /* Check that off_t can represent 2**63 - 1 correctly.
13232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13233 since some C++ compilers masquerading as C compilers
13234 incorrectly reject 9223372036854775807. */
13235 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13237 && LARGE_OFF_T % 2147483647 == 1)
13238 ? 1 : -1];
13239 int
13240 main (void)
13241 {
13242
13243 ;
13244 return 0;
13245 }
13246 _ACEOF
13247 if ac_fn_c_try_compile "$LINENO"
13248 then :
13249 break
13250 fi
13251 rm -f core conftest.err conftest.$ac_objext conftest.beam
13252 CC="$CC -n32"
13253 if ac_fn_c_try_compile "$LINENO"
13254 then :
13255 ac_cv_sys_largefile_CC=' -n32'; break
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext conftest.beam
13258 break
13259 done
13260 CC=$ac_save_CC
13261 rm -f conftest.$ac_ext
13262 fi
13263 fi
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13265 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13266 if test "$ac_cv_sys_largefile_CC" != no; then
13267 CC=$CC$ac_cv_sys_largefile_CC
13268 fi
13269
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13271 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13272 if test ${ac_cv_sys_file_offset_bits+y}
13273 then :
13274 printf %s "(cached) " >&6
13275 else $as_nop
13276 while :; do
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <sys/types.h>
13280 /* Check that off_t can represent 2**63 - 1 correctly.
13281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13282 since some C++ compilers masquerading as C compilers
13283 incorrectly reject 9223372036854775807. */
13284 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13286 && LARGE_OFF_T % 2147483647 == 1)
13287 ? 1 : -1];
13288 int
13289 main (void)
13290 {
13291
13292 ;
13293 return 0;
13294 }
13295 _ACEOF
13296 if ac_fn_c_try_compile "$LINENO"
13297 then :
13298 ac_cv_sys_file_offset_bits=no; break
13299 fi
13300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #define _FILE_OFFSET_BITS 64
13304 #include <sys/types.h>
13305 /* Check that off_t can represent 2**63 - 1 correctly.
13306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13307 since some C++ compilers masquerading as C compilers
13308 incorrectly reject 9223372036854775807. */
13309 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13311 && LARGE_OFF_T % 2147483647 == 1)
13312 ? 1 : -1];
13313 int
13314 main (void)
13315 {
13316
13317 ;
13318 return 0;
13319 }
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"
13322 then :
13323 ac_cv_sys_file_offset_bits=64; break
13324 fi
13325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13326 ac_cv_sys_file_offset_bits=unknown
13327 break
13328 done
13329 fi
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13331 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13332 case $ac_cv_sys_file_offset_bits in #(
13333 no | unknown) ;;
13334 *)
13335 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13336 ;;
13337 esac
13338 rm -rf conftest*
13339 if test $ac_cv_sys_file_offset_bits = unknown; then
13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13341 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13342 if test ${ac_cv_sys_large_files+y}
13343 then :
13344 printf %s "(cached) " >&6
13345 else $as_nop
13346 while :; do
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 /* Check that off_t can represent 2**63 - 1 correctly.
13351 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13352 since some C++ compilers masquerading as C compilers
13353 incorrectly reject 9223372036854775807. */
13354 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13355 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13356 && LARGE_OFF_T % 2147483647 == 1)
13357 ? 1 : -1];
13358 int
13359 main (void)
13360 {
13361
13362 ;
13363 return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_compile "$LINENO"
13367 then :
13368 ac_cv_sys_large_files=no; break
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372 /* end confdefs.h. */
13373 #define _LARGE_FILES 1
13374 #include <sys/types.h>
13375 /* Check that off_t can represent 2**63 - 1 correctly.
13376 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13377 since some C++ compilers masquerading as C compilers
13378 incorrectly reject 9223372036854775807. */
13379 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13380 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13381 && LARGE_OFF_T % 2147483647 == 1)
13382 ? 1 : -1];
13383 int
13384 main (void)
13385 {
13386
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"
13392 then :
13393 ac_cv_sys_large_files=1; break
13394 fi
13395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13396 ac_cv_sys_large_files=unknown
13397 break
13398 done
13399 fi
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13401 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13402 case $ac_cv_sys_large_files in #(
13403 no | unknown) ;;
13404 *)
13405 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13406 ;;
13407 esac
13408 rm -rf conftest*
13409 fi
13410 fi
13411
13412
13413 # Require xorg-macros minimum of 1.15 for fop minimum version
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13427 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13428 if test ${ac_cv_c_undeclared_builtin_options+y}
13429 then :
13430 printf %s "(cached) " >&6
13431 else $as_nop
13432 ac_save_CFLAGS=$CFLAGS
13433 ac_cv_c_undeclared_builtin_options='cannot detect'
13434 for ac_arg in '' -fno-builtin; do
13435 CFLAGS="$ac_save_CFLAGS $ac_arg"
13436 # This test program should *not* compile successfully.
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439
13440 int
13441 main (void)
13442 {
13443 (void) strchr;
13444 ;
13445 return 0;
13446 }
13447 _ACEOF
13448 if ac_fn_c_try_compile "$LINENO"
13449 then :
13450
13451 else $as_nop
13452 # This test program should compile successfully.
13453 # No library function is consistently available on
13454 # freestanding implementations, so test against a dummy
13455 # declaration. Include always-available headers on the
13456 # off chance that they somehow elicit warnings.
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 #include <float.h>
13460 #include <limits.h>
13461 #include <stdarg.h>
13462 #include <stddef.h>
13463 extern void ac_decl (int, char *);
13464
13465 int
13466 main (void)
13467 {
13468 (void) ac_decl (0, (char *) 0);
13469 (void) ac_decl;
13470
13471 ;
13472 return 0;
13473 }
13474 _ACEOF
13475 if ac_fn_c_try_compile "$LINENO"
13476 then :
13477 if test x"$ac_arg" = x
13478 then :
13479 ac_cv_c_undeclared_builtin_options='none needed'
13480 else $as_nop
13481 ac_cv_c_undeclared_builtin_options=$ac_arg
13482 fi
13483 break
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13486 fi
13487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13488 done
13489 CFLAGS=$ac_save_CFLAGS
13490
13491 fi
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13493 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13494 case $ac_cv_c_undeclared_builtin_options in #(
13495 'cannot detect') :
13496 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13497 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13498 as_fn_error $? "cannot make $CC report undeclared builtins
13499 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13500 'none needed') :
13501 ac_c_undeclared_builtin_options='' ;; #(
13502 *) :
13503 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13504 esac
13505
13506
13507
13508
13509
13510 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13511 if test "x$ac_cv_have_decl___clang__" = xyes
13512 then :
13513 CLANGCC="yes"
13514 else $as_nop
13515 CLANGCC="no"
13516 fi
13517 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13518 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13519 then :
13520 INTELCC="yes"
13521 else $as_nop
13522 INTELCC="no"
13523 fi
13524 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13525 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13526 then :
13527 SUNCC="yes"
13528 else $as_nop
13529 SUNCC="no"
13530 fi
13531
13532
13533
13534
13535
13536
13537
13538
13539 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13540 if test -n "$ac_tool_prefix"; then
13541 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13542 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 printf %s "checking for $ac_word... " >&6; }
13545 if test ${ac_cv_path_PKG_CONFIG+y}
13546 then :
13547 printf %s "(cached) " >&6
13548 else $as_nop
13549 case $PKG_CONFIG in
13550 [\\/]* | ?:[\\/]*)
13551 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13552 ;;
13553 *)
13554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555 for as_dir in $PATH
13556 do
13557 IFS=$as_save_IFS
13558 case $as_dir in #(((
13559 '') as_dir=./ ;;
13560 */) ;;
13561 *) as_dir=$as_dir/ ;;
13562 esac
13563 for ac_exec_ext in '' $ac_executable_extensions; do
13564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13565 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13567 break 2
13568 fi
13569 done
13570 done
13571 IFS=$as_save_IFS
13572
13573 ;;
13574 esac
13575 fi
13576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13577 if test -n "$PKG_CONFIG"; then
13578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13579 printf "%s\n" "$PKG_CONFIG" >&6; }
13580 else
13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 printf "%s\n" "no" >&6; }
13583 fi
13584
13585
13586 fi
13587 if test -z "$ac_cv_path_PKG_CONFIG"; then
13588 ac_pt_PKG_CONFIG=$PKG_CONFIG
13589 # Extract the first word of "pkg-config", so it can be a program name with args.
13590 set dummy pkg-config; ac_word=$2
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 printf %s "checking for $ac_word... " >&6; }
13593 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13594 then :
13595 printf %s "(cached) " >&6
13596 else $as_nop
13597 case $ac_pt_PKG_CONFIG in
13598 [\\/]* | ?:[\\/]*)
13599 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13600 ;;
13601 *)
13602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603 for as_dir in $PATH
13604 do
13605 IFS=$as_save_IFS
13606 case $as_dir in #(((
13607 '') as_dir=./ ;;
13608 */) ;;
13609 *) as_dir=$as_dir/ ;;
13610 esac
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13613 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13615 break 2
13616 fi
13617 done
13618 done
13619 IFS=$as_save_IFS
13620
13621 ;;
13622 esac
13623 fi
13624 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13625 if test -n "$ac_pt_PKG_CONFIG"; then
13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13627 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13628 else
13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 printf "%s\n" "no" >&6; }
13631 fi
13632
13633 if test "x$ac_pt_PKG_CONFIG" = x; then
13634 PKG_CONFIG=""
13635 else
13636 case $cross_compiling:$ac_tool_warned in
13637 yes:)
13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13640 ac_tool_warned=yes ;;
13641 esac
13642 PKG_CONFIG=$ac_pt_PKG_CONFIG
13643 fi
13644 else
13645 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13646 fi
13647
13648 fi
13649 if test -n "$PKG_CONFIG"; then
13650 _pkg_min_version=0.9.0
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13652 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13653 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13655 printf "%s\n" "yes" >&6; }
13656 else
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 printf "%s\n" "no" >&6; }
13659 PKG_CONFIG=""
13660 fi
13661 fi
13662
13663
13664
13665
13666
13667 # Check whether --enable-selective-werror was given.
13668 if test ${enable_selective_werror+y}
13669 then :
13670 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13671 else $as_nop
13672 SELECTIVE_WERROR=yes
13673 fi
13674
13675
13676
13677
13678
13679 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13680 if test "x$SUNCC" = "xyes"; then
13681 BASE_CFLAGS="-v"
13682 else
13683 BASE_CFLAGS=""
13684 fi
13685
13686 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700 xorg_testset_save_CFLAGS="$CFLAGS"
13701
13702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13707 then :
13708 printf %s "(cached) " >&6
13709 else $as_nop
13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13711 /* end confdefs.h. */
13712 int i;
13713 _ACEOF
13714 if ac_fn_c_try_compile "$LINENO"
13715 then :
13716 xorg_cv_cc_flag_unknown_warning_option=yes
13717 else $as_nop
13718 xorg_cv_cc_flag_unknown_warning_option=no
13719 fi
13720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13721 fi
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13723 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13725 CFLAGS="$xorg_testset_save_CFLAGS"
13726 fi
13727
13728 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13731 fi
13732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13734 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13735 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13736 then :
13737 printf %s "(cached) " >&6
13738 else $as_nop
13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13741 int i;
13742 _ACEOF
13743 if ac_fn_c_try_compile "$LINENO"
13744 then :
13745 xorg_cv_cc_flag_unused_command_line_argument=yes
13746 else $as_nop
13747 xorg_cv_cc_flag_unused_command_line_argument=no
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13750 fi
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13754 CFLAGS="$xorg_testset_save_CFLAGS"
13755 fi
13756
13757 found="no"
13758
13759 if test $found = "no" ; then
13760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13762 fi
13763
13764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13766 fi
13767
13768 CFLAGS="$CFLAGS -Wall"
13769
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13771 printf %s "checking if $CC supports -Wall... " >&6; }
13772 cacheid=xorg_cv_cc_flag__Wall
13773 if eval test \${$cacheid+y}
13774 then :
13775 printf %s "(cached) " >&6
13776 else $as_nop
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13779 int i;
13780 int
13781 main (void)
13782 {
13783
13784 ;
13785 return 0;
13786 }
13787 _ACEOF
13788 if ac_fn_c_try_link "$LINENO"
13789 then :
13790 eval $cacheid=yes
13791 else $as_nop
13792 eval $cacheid=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13795 conftest$ac_exeext conftest.$ac_ext
13796 fi
13797
13798
13799 CFLAGS="$xorg_testset_save_CFLAGS"
13800
13801 eval supported=\$$cacheid
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13803 printf "%s\n" "$supported" >&6; }
13804 if test "$supported" = "yes" ; then
13805 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13806 found="yes"
13807 fi
13808 fi
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824 xorg_testset_save_CFLAGS="$CFLAGS"
13825
13826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13831 then :
13832 printf %s "(cached) " >&6
13833 else $as_nop
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13836 int i;
13837 _ACEOF
13838 if ac_fn_c_try_compile "$LINENO"
13839 then :
13840 xorg_cv_cc_flag_unknown_warning_option=yes
13841 else $as_nop
13842 xorg_cv_cc_flag_unknown_warning_option=no
13843 fi
13844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13845 fi
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13849 CFLAGS="$xorg_testset_save_CFLAGS"
13850 fi
13851
13852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13855 fi
13856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13860 then :
13861 printf %s "(cached) " >&6
13862 else $as_nop
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 int i;
13866 _ACEOF
13867 if ac_fn_c_try_compile "$LINENO"
13868 then :
13869 xorg_cv_cc_flag_unused_command_line_argument=yes
13870 else $as_nop
13871 xorg_cv_cc_flag_unused_command_line_argument=no
13872 fi
13873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13874 fi
13875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13878 CFLAGS="$xorg_testset_save_CFLAGS"
13879 fi
13880
13881 found="no"
13882
13883 if test $found = "no" ; then
13884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13886 fi
13887
13888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13890 fi
13891
13892 CFLAGS="$CFLAGS -Wpointer-arith"
13893
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13895 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13896 cacheid=xorg_cv_cc_flag__Wpointer_arith
13897 if eval test \${$cacheid+y}
13898 then :
13899 printf %s "(cached) " >&6
13900 else $as_nop
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 int i;
13904 int
13905 main (void)
13906 {
13907
13908 ;
13909 return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"
13913 then :
13914 eval $cacheid=yes
13915 else $as_nop
13916 eval $cacheid=no
13917 fi
13918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13919 conftest$ac_exeext conftest.$ac_ext
13920 fi
13921
13922
13923 CFLAGS="$xorg_testset_save_CFLAGS"
13924
13925 eval supported=\$$cacheid
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13927 printf "%s\n" "$supported" >&6; }
13928 if test "$supported" = "yes" ; then
13929 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13930 found="yes"
13931 fi
13932 fi
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948 xorg_testset_save_CFLAGS="$CFLAGS"
13949
13950 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13953 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13954 if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
13965 else $as_nop
13966 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
13971 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13973 CFLAGS="$xorg_testset_save_CFLAGS"
13974 fi
13975
13976 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13979 fi
13980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13982 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13983 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else $as_nop
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989 int i;
13990 _ACEOF
13991 if ac_fn_c_try_compile "$LINENO"
13992 then :
13993 xorg_cv_cc_flag_unused_command_line_argument=yes
13994 else $as_nop
13995 xorg_cv_cc_flag_unused_command_line_argument=no
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13998 fi
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14002 CFLAGS="$xorg_testset_save_CFLAGS"
14003 fi
14004
14005 found="no"
14006
14007 if test $found = "no" ; then
14008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010 fi
14011
14012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014 fi
14015
14016 CFLAGS="$CFLAGS -Wmissing-declarations"
14017
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14019 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14020 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14021 if eval test \${$cacheid+y}
14022 then :
14023 printf %s "(cached) " >&6
14024 else $as_nop
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 int i;
14028 int
14029 main (void)
14030 {
14031
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"
14037 then :
14038 eval $cacheid=yes
14039 else $as_nop
14040 eval $cacheid=no
14041 fi
14042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14043 conftest$ac_exeext conftest.$ac_ext
14044 fi
14045
14046
14047 CFLAGS="$xorg_testset_save_CFLAGS"
14048
14049 eval supported=\$$cacheid
14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14051 printf "%s\n" "$supported" >&6; }
14052 if test "$supported" = "yes" ; then
14053 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14054 found="yes"
14055 fi
14056 fi
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072 xorg_testset_save_CFLAGS="$CFLAGS"
14073
14074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14078 if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
14089 else $as_nop
14090 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
14095 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14097 CFLAGS="$xorg_testset_save_CFLAGS"
14098 fi
14099
14100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14103 fi
14104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14106 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14107 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14108 then :
14109 printf %s "(cached) " >&6
14110 else $as_nop
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 int i;
14114 _ACEOF
14115 if ac_fn_c_try_compile "$LINENO"
14116 then :
14117 xorg_cv_cc_flag_unused_command_line_argument=yes
14118 else $as_nop
14119 xorg_cv_cc_flag_unused_command_line_argument=no
14120 fi
14121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14122 fi
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14126 CFLAGS="$xorg_testset_save_CFLAGS"
14127 fi
14128
14129 found="no"
14130
14131 if test $found = "no" ; then
14132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14134 fi
14135
14136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14138 fi
14139
14140 CFLAGS="$CFLAGS -Wformat=2"
14141
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14143 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14144 cacheid=xorg_cv_cc_flag__Wformat_2
14145 if eval test \${$cacheid+y}
14146 then :
14147 printf %s "(cached) " >&6
14148 else $as_nop
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 int i;
14152 int
14153 main (void)
14154 {
14155
14156 ;
14157 return 0;
14158 }
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"
14161 then :
14162 eval $cacheid=yes
14163 else $as_nop
14164 eval $cacheid=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14167 conftest$ac_exeext conftest.$ac_ext
14168 fi
14169
14170
14171 CFLAGS="$xorg_testset_save_CFLAGS"
14172
14173 eval supported=\$$cacheid
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14175 printf "%s\n" "$supported" >&6; }
14176 if test "$supported" = "yes" ; then
14177 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14178 found="yes"
14179 fi
14180 fi
14181
14182 if test $found = "no" ; then
14183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14185 fi
14186
14187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14189 fi
14190
14191 CFLAGS="$CFLAGS -Wformat"
14192
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14194 printf %s "checking if $CC supports -Wformat... " >&6; }
14195 cacheid=xorg_cv_cc_flag__Wformat
14196 if eval test \${$cacheid+y}
14197 then :
14198 printf %s "(cached) " >&6
14199 else $as_nop
14200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202 int i;
14203 int
14204 main (void)
14205 {
14206
14207 ;
14208 return 0;
14209 }
14210 _ACEOF
14211 if ac_fn_c_try_link "$LINENO"
14212 then :
14213 eval $cacheid=yes
14214 else $as_nop
14215 eval $cacheid=no
14216 fi
14217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14218 conftest$ac_exeext conftest.$ac_ext
14219 fi
14220
14221
14222 CFLAGS="$xorg_testset_save_CFLAGS"
14223
14224 eval supported=\$$cacheid
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14226 printf "%s\n" "$supported" >&6; }
14227 if test "$supported" = "yes" ; then
14228 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14229 found="yes"
14230 fi
14231 fi
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249 xorg_testset_save_CFLAGS="$CFLAGS"
14250
14251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14256 then :
14257 printf %s "(cached) " >&6
14258 else $as_nop
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 int i;
14262 _ACEOF
14263 if ac_fn_c_try_compile "$LINENO"
14264 then :
14265 xorg_cv_cc_flag_unknown_warning_option=yes
14266 else $as_nop
14267 xorg_cv_cc_flag_unknown_warning_option=no
14268 fi
14269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14270 fi
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14272 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14274 CFLAGS="$xorg_testset_save_CFLAGS"
14275 fi
14276
14277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14280 fi
14281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14285 then :
14286 printf %s "(cached) " >&6
14287 else $as_nop
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 int i;
14291 _ACEOF
14292 if ac_fn_c_try_compile "$LINENO"
14293 then :
14294 xorg_cv_cc_flag_unused_command_line_argument=yes
14295 else $as_nop
14296 xorg_cv_cc_flag_unused_command_line_argument=no
14297 fi
14298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14299 fi
14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14301 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14303 CFLAGS="$xorg_testset_save_CFLAGS"
14304 fi
14305
14306 found="no"
14307
14308 if test $found = "no" ; then
14309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311 fi
14312
14313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14315 fi
14316
14317 CFLAGS="$CFLAGS -Wstrict-prototypes"
14318
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14320 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14321 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14322 if eval test \${$cacheid+y}
14323 then :
14324 printf %s "(cached) " >&6
14325 else $as_nop
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 int i;
14329 int
14330 main (void)
14331 {
14332
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 if ac_fn_c_try_link "$LINENO"
14338 then :
14339 eval $cacheid=yes
14340 else $as_nop
14341 eval $cacheid=no
14342 fi
14343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14344 conftest$ac_exeext conftest.$ac_ext
14345 fi
14346
14347
14348 CFLAGS="$xorg_testset_save_CFLAGS"
14349
14350 eval supported=\$$cacheid
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14352 printf "%s\n" "$supported" >&6; }
14353 if test "$supported" = "yes" ; then
14354 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14355 found="yes"
14356 fi
14357 fi
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373 xorg_testset_save_CFLAGS="$CFLAGS"
14374
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14378 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14379 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14380 then :
14381 printf %s "(cached) " >&6
14382 else $as_nop
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 int i;
14386 _ACEOF
14387 if ac_fn_c_try_compile "$LINENO"
14388 then :
14389 xorg_cv_cc_flag_unknown_warning_option=yes
14390 else $as_nop
14391 xorg_cv_cc_flag_unknown_warning_option=no
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14394 fi
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14396 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14398 CFLAGS="$xorg_testset_save_CFLAGS"
14399 fi
14400
14401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14404 fi
14405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14407 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14408 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14409 then :
14410 printf %s "(cached) " >&6
14411 else $as_nop
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 int i;
14415 _ACEOF
14416 if ac_fn_c_try_compile "$LINENO"
14417 then :
14418 xorg_cv_cc_flag_unused_command_line_argument=yes
14419 else $as_nop
14420 xorg_cv_cc_flag_unused_command_line_argument=no
14421 fi
14422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14423 fi
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14427 CFLAGS="$xorg_testset_save_CFLAGS"
14428 fi
14429
14430 found="no"
14431
14432 if test $found = "no" ; then
14433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14435 fi
14436
14437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14439 fi
14440
14441 CFLAGS="$CFLAGS -Wmissing-prototypes"
14442
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14444 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14445 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14446 if eval test \${$cacheid+y}
14447 then :
14448 printf %s "(cached) " >&6
14449 else $as_nop
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 int i;
14453 int
14454 main (void)
14455 {
14456
14457 ;
14458 return 0;
14459 }
14460 _ACEOF
14461 if ac_fn_c_try_link "$LINENO"
14462 then :
14463 eval $cacheid=yes
14464 else $as_nop
14465 eval $cacheid=no
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14468 conftest$ac_exeext conftest.$ac_ext
14469 fi
14470
14471
14472 CFLAGS="$xorg_testset_save_CFLAGS"
14473
14474 eval supported=\$$cacheid
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14476 printf "%s\n" "$supported" >&6; }
14477 if test "$supported" = "yes" ; then
14478 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14479 found="yes"
14480 fi
14481 fi
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497 xorg_testset_save_CFLAGS="$CFLAGS"
14498
14499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14502 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14503 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14504 then :
14505 printf %s "(cached) " >&6
14506 else $as_nop
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509 int i;
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"
14512 then :
14513 xorg_cv_cc_flag_unknown_warning_option=yes
14514 else $as_nop
14515 xorg_cv_cc_flag_unknown_warning_option=no
14516 fi
14517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14518 fi
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14522 CFLAGS="$xorg_testset_save_CFLAGS"
14523 fi
14524
14525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14528 fi
14529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14533 then :
14534 printf %s "(cached) " >&6
14535 else $as_nop
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537 /* end confdefs.h. */
14538 int i;
14539 _ACEOF
14540 if ac_fn_c_try_compile "$LINENO"
14541 then :
14542 xorg_cv_cc_flag_unused_command_line_argument=yes
14543 else $as_nop
14544 xorg_cv_cc_flag_unused_command_line_argument=no
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14547 fi
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14551 CFLAGS="$xorg_testset_save_CFLAGS"
14552 fi
14553
14554 found="no"
14555
14556 if test $found = "no" ; then
14557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14559 fi
14560
14561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14563 fi
14564
14565 CFLAGS="$CFLAGS -Wnested-externs"
14566
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14568 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14569 cacheid=xorg_cv_cc_flag__Wnested_externs
14570 if eval test \${$cacheid+y}
14571 then :
14572 printf %s "(cached) " >&6
14573 else $as_nop
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14576 int i;
14577 int
14578 main (void)
14579 {
14580
14581 ;
14582 return 0;
14583 }
14584 _ACEOF
14585 if ac_fn_c_try_link "$LINENO"
14586 then :
14587 eval $cacheid=yes
14588 else $as_nop
14589 eval $cacheid=no
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14592 conftest$ac_exeext conftest.$ac_ext
14593 fi
14594
14595
14596 CFLAGS="$xorg_testset_save_CFLAGS"
14597
14598 eval supported=\$$cacheid
14599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14600 printf "%s\n" "$supported" >&6; }
14601 if test "$supported" = "yes" ; then
14602 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14603 found="yes"
14604 fi
14605 fi
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621 xorg_testset_save_CFLAGS="$CFLAGS"
14622
14623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14627 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14628 then :
14629 printf %s "(cached) " >&6
14630 else $as_nop
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14633 int i;
14634 _ACEOF
14635 if ac_fn_c_try_compile "$LINENO"
14636 then :
14637 xorg_cv_cc_flag_unknown_warning_option=yes
14638 else $as_nop
14639 xorg_cv_cc_flag_unknown_warning_option=no
14640 fi
14641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14642 fi
14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14644 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14646 CFLAGS="$xorg_testset_save_CFLAGS"
14647 fi
14648
14649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14652 fi
14653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14655 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14656 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14657 then :
14658 printf %s "(cached) " >&6
14659 else $as_nop
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662 int i;
14663 _ACEOF
14664 if ac_fn_c_try_compile "$LINENO"
14665 then :
14666 xorg_cv_cc_flag_unused_command_line_argument=yes
14667 else $as_nop
14668 xorg_cv_cc_flag_unused_command_line_argument=no
14669 fi
14670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14671 fi
14672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14673 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14675 CFLAGS="$xorg_testset_save_CFLAGS"
14676 fi
14677
14678 found="no"
14679
14680 if test $found = "no" ; then
14681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14683 fi
14684
14685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14687 fi
14688
14689 CFLAGS="$CFLAGS -Wbad-function-cast"
14690
14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14692 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14693 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14694 if eval test \${$cacheid+y}
14695 then :
14696 printf %s "(cached) " >&6
14697 else $as_nop
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14700 int i;
14701 int
14702 main (void)
14703 {
14704
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_link "$LINENO"
14710 then :
14711 eval $cacheid=yes
14712 else $as_nop
14713 eval $cacheid=no
14714 fi
14715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14716 conftest$ac_exeext conftest.$ac_ext
14717 fi
14718
14719
14720 CFLAGS="$xorg_testset_save_CFLAGS"
14721
14722 eval supported=\$$cacheid
14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14724 printf "%s\n" "$supported" >&6; }
14725 if test "$supported" = "yes" ; then
14726 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14727 found="yes"
14728 fi
14729 fi
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 xorg_testset_save_CFLAGS="$CFLAGS"
14746
14747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14751 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14752 then :
14753 printf %s "(cached) " >&6
14754 else $as_nop
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 int i;
14758 _ACEOF
14759 if ac_fn_c_try_compile "$LINENO"
14760 then :
14761 xorg_cv_cc_flag_unknown_warning_option=yes
14762 else $as_nop
14763 xorg_cv_cc_flag_unknown_warning_option=no
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14766 fi
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14768 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14770 CFLAGS="$xorg_testset_save_CFLAGS"
14771 fi
14772
14773 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14776 fi
14777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14779 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14780 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14781 then :
14782 printf %s "(cached) " >&6
14783 else $as_nop
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 int i;
14787 _ACEOF
14788 if ac_fn_c_try_compile "$LINENO"
14789 then :
14790 xorg_cv_cc_flag_unused_command_line_argument=yes
14791 else $as_nop
14792 xorg_cv_cc_flag_unused_command_line_argument=no
14793 fi
14794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14795 fi
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14799 CFLAGS="$xorg_testset_save_CFLAGS"
14800 fi
14801
14802 found="no"
14803
14804 if test $found = "no" ; then
14805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14807 fi
14808
14809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14811 fi
14812
14813 CFLAGS="$CFLAGS -Wold-style-definition"
14814
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14816 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14817 cacheid=xorg_cv_cc_flag__Wold_style_definition
14818 if eval test \${$cacheid+y}
14819 then :
14820 printf %s "(cached) " >&6
14821 else $as_nop
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 int i;
14825 int
14826 main (void)
14827 {
14828
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 if ac_fn_c_try_link "$LINENO"
14834 then :
14835 eval $cacheid=yes
14836 else $as_nop
14837 eval $cacheid=no
14838 fi
14839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14840 conftest$ac_exeext conftest.$ac_ext
14841 fi
14842
14843
14844 CFLAGS="$xorg_testset_save_CFLAGS"
14845
14846 eval supported=\$$cacheid
14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14848 printf "%s\n" "$supported" >&6; }
14849 if test "$supported" = "yes" ; then
14850 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14851 found="yes"
14852 fi
14853 fi
14854
14855 if test $found = "no" ; then
14856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14858 fi
14859
14860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14862 fi
14863
14864 CFLAGS="$CFLAGS -fd"
14865
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14867 printf %s "checking if $CC supports -fd... " >&6; }
14868 cacheid=xorg_cv_cc_flag__fd
14869 if eval test \${$cacheid+y}
14870 then :
14871 printf %s "(cached) " >&6
14872 else $as_nop
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 int i;
14876 int
14877 main (void)
14878 {
14879
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_link "$LINENO"
14885 then :
14886 eval $cacheid=yes
14887 else $as_nop
14888 eval $cacheid=no
14889 fi
14890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14891 conftest$ac_exeext conftest.$ac_ext
14892 fi
14893
14894
14895 CFLAGS="$xorg_testset_save_CFLAGS"
14896
14897 eval supported=\$$cacheid
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14899 printf "%s\n" "$supported" >&6; }
14900 if test "$supported" = "yes" ; then
14901 BASE_CFLAGS="$BASE_CFLAGS -fd"
14902 found="yes"
14903 fi
14904 fi
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920 xorg_testset_save_CFLAGS="$CFLAGS"
14921
14922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14927 then :
14928 printf %s "(cached) " >&6
14929 else $as_nop
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931 /* end confdefs.h. */
14932 int i;
14933 _ACEOF
14934 if ac_fn_c_try_compile "$LINENO"
14935 then :
14936 xorg_cv_cc_flag_unknown_warning_option=yes
14937 else $as_nop
14938 xorg_cv_cc_flag_unknown_warning_option=no
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14941 fi
14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14945 CFLAGS="$xorg_testset_save_CFLAGS"
14946 fi
14947
14948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14951 fi
14952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14956 then :
14957 printf %s "(cached) " >&6
14958 else $as_nop
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961 int i;
14962 _ACEOF
14963 if ac_fn_c_try_compile "$LINENO"
14964 then :
14965 xorg_cv_cc_flag_unused_command_line_argument=yes
14966 else $as_nop
14967 xorg_cv_cc_flag_unused_command_line_argument=no
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14970 fi
14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14974 CFLAGS="$xorg_testset_save_CFLAGS"
14975 fi
14976
14977 found="no"
14978
14979 if test $found = "no" ; then
14980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14982 fi
14983
14984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14986 fi
14987
14988 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14989
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14991 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14992 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14993 if eval test \${$cacheid+y}
14994 then :
14995 printf %s "(cached) " >&6
14996 else $as_nop
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 int i;
15000 int
15001 main (void)
15002 {
15003
15004 ;
15005 return 0;
15006 }
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"
15009 then :
15010 eval $cacheid=yes
15011 else $as_nop
15012 eval $cacheid=no
15013 fi
15014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15015 conftest$ac_exeext conftest.$ac_ext
15016 fi
15017
15018
15019 CFLAGS="$xorg_testset_save_CFLAGS"
15020
15021 eval supported=\$$cacheid
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15023 printf "%s\n" "$supported" >&6; }
15024 if test "$supported" = "yes" ; then
15025 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15026 found="yes"
15027 fi
15028 fi
15029
15030
15031
15032
15033
15034 # This chunk adds additional warnings that could catch undesired effects.
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048 xorg_testset_save_CFLAGS="$CFLAGS"
15049
15050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15055 then :
15056 printf %s "(cached) " >&6
15057 else $as_nop
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 int i;
15061 _ACEOF
15062 if ac_fn_c_try_compile "$LINENO"
15063 then :
15064 xorg_cv_cc_flag_unknown_warning_option=yes
15065 else $as_nop
15066 xorg_cv_cc_flag_unknown_warning_option=no
15067 fi
15068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15069 fi
15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15073 CFLAGS="$xorg_testset_save_CFLAGS"
15074 fi
15075
15076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15079 fi
15080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15084 then :
15085 printf %s "(cached) " >&6
15086 else $as_nop
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 int i;
15090 _ACEOF
15091 if ac_fn_c_try_compile "$LINENO"
15092 then :
15093 xorg_cv_cc_flag_unused_command_line_argument=yes
15094 else $as_nop
15095 xorg_cv_cc_flag_unused_command_line_argument=no
15096 fi
15097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15098 fi
15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15100 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15102 CFLAGS="$xorg_testset_save_CFLAGS"
15103 fi
15104
15105 found="no"
15106
15107 if test $found = "no" ; then
15108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15110 fi
15111
15112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15114 fi
15115
15116 CFLAGS="$CFLAGS -Wunused"
15117
15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15119 printf %s "checking if $CC supports -Wunused... " >&6; }
15120 cacheid=xorg_cv_cc_flag__Wunused
15121 if eval test \${$cacheid+y}
15122 then :
15123 printf %s "(cached) " >&6
15124 else $as_nop
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127 int i;
15128 int
15129 main (void)
15130 {
15131
15132 ;
15133 return 0;
15134 }
15135 _ACEOF
15136 if ac_fn_c_try_link "$LINENO"
15137 then :
15138 eval $cacheid=yes
15139 else $as_nop
15140 eval $cacheid=no
15141 fi
15142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15143 conftest$ac_exeext conftest.$ac_ext
15144 fi
15145
15146
15147 CFLAGS="$xorg_testset_save_CFLAGS"
15148
15149 eval supported=\$$cacheid
15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15151 printf "%s\n" "$supported" >&6; }
15152 if test "$supported" = "yes" ; then
15153 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15154 found="yes"
15155 fi
15156 fi
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172 xorg_testset_save_CFLAGS="$CFLAGS"
15173
15174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15179 then :
15180 printf %s "(cached) " >&6
15181 else $as_nop
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 int i;
15185 _ACEOF
15186 if ac_fn_c_try_compile "$LINENO"
15187 then :
15188 xorg_cv_cc_flag_unknown_warning_option=yes
15189 else $as_nop
15190 xorg_cv_cc_flag_unknown_warning_option=no
15191 fi
15192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15193 fi
15194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15197 CFLAGS="$xorg_testset_save_CFLAGS"
15198 fi
15199
15200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15203 fi
15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15208 then :
15209 printf %s "(cached) " >&6
15210 else $as_nop
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 int i;
15214 _ACEOF
15215 if ac_fn_c_try_compile "$LINENO"
15216 then :
15217 xorg_cv_cc_flag_unused_command_line_argument=yes
15218 else $as_nop
15219 xorg_cv_cc_flag_unused_command_line_argument=no
15220 fi
15221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15222 fi
15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15226 CFLAGS="$xorg_testset_save_CFLAGS"
15227 fi
15228
15229 found="no"
15230
15231 if test $found = "no" ; then
15232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15234 fi
15235
15236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15238 fi
15239
15240 CFLAGS="$CFLAGS -Wuninitialized"
15241
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15243 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15244 cacheid=xorg_cv_cc_flag__Wuninitialized
15245 if eval test \${$cacheid+y}
15246 then :
15247 printf %s "(cached) " >&6
15248 else $as_nop
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15251 int i;
15252 int
15253 main (void)
15254 {
15255
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 if ac_fn_c_try_link "$LINENO"
15261 then :
15262 eval $cacheid=yes
15263 else $as_nop
15264 eval $cacheid=no
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15267 conftest$ac_exeext conftest.$ac_ext
15268 fi
15269
15270
15271 CFLAGS="$xorg_testset_save_CFLAGS"
15272
15273 eval supported=\$$cacheid
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15275 printf "%s\n" "$supported" >&6; }
15276 if test "$supported" = "yes" ; then
15277 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15278 found="yes"
15279 fi
15280 fi
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296 xorg_testset_save_CFLAGS="$CFLAGS"
15297
15298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15303 then :
15304 printf %s "(cached) " >&6
15305 else $as_nop
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308 int i;
15309 _ACEOF
15310 if ac_fn_c_try_compile "$LINENO"
15311 then :
15312 xorg_cv_cc_flag_unknown_warning_option=yes
15313 else $as_nop
15314 xorg_cv_cc_flag_unknown_warning_option=no
15315 fi
15316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15317 fi
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15321 CFLAGS="$xorg_testset_save_CFLAGS"
15322 fi
15323
15324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15327 fi
15328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15332 then :
15333 printf %s "(cached) " >&6
15334 else $as_nop
15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 int i;
15338 _ACEOF
15339 if ac_fn_c_try_compile "$LINENO"
15340 then :
15341 xorg_cv_cc_flag_unused_command_line_argument=yes
15342 else $as_nop
15343 xorg_cv_cc_flag_unused_command_line_argument=no
15344 fi
15345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15346 fi
15347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15350 CFLAGS="$xorg_testset_save_CFLAGS"
15351 fi
15352
15353 found="no"
15354
15355 if test $found = "no" ; then
15356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15358 fi
15359
15360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15362 fi
15363
15364 CFLAGS="$CFLAGS -Wshadow"
15365
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15367 printf %s "checking if $CC supports -Wshadow... " >&6; }
15368 cacheid=xorg_cv_cc_flag__Wshadow
15369 if eval test \${$cacheid+y}
15370 then :
15371 printf %s "(cached) " >&6
15372 else $as_nop
15373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h. */
15375 int i;
15376 int
15377 main (void)
15378 {
15379
15380 ;
15381 return 0;
15382 }
15383 _ACEOF
15384 if ac_fn_c_try_link "$LINENO"
15385 then :
15386 eval $cacheid=yes
15387 else $as_nop
15388 eval $cacheid=no
15389 fi
15390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15391 conftest$ac_exeext conftest.$ac_ext
15392 fi
15393
15394
15395 CFLAGS="$xorg_testset_save_CFLAGS"
15396
15397 eval supported=\$$cacheid
15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15399 printf "%s\n" "$supported" >&6; }
15400 if test "$supported" = "yes" ; then
15401 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15402 found="yes"
15403 fi
15404 fi
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420 xorg_testset_save_CFLAGS="$CFLAGS"
15421
15422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15426 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15427 then :
15428 printf %s "(cached) " >&6
15429 else $as_nop
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 int i;
15433 _ACEOF
15434 if ac_fn_c_try_compile "$LINENO"
15435 then :
15436 xorg_cv_cc_flag_unknown_warning_option=yes
15437 else $as_nop
15438 xorg_cv_cc_flag_unknown_warning_option=no
15439 fi
15440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15441 fi
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15445 CFLAGS="$xorg_testset_save_CFLAGS"
15446 fi
15447
15448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15451 fi
15452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15456 then :
15457 printf %s "(cached) " >&6
15458 else $as_nop
15459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15460 /* end confdefs.h. */
15461 int i;
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"
15464 then :
15465 xorg_cv_cc_flag_unused_command_line_argument=yes
15466 else $as_nop
15467 xorg_cv_cc_flag_unused_command_line_argument=no
15468 fi
15469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15470 fi
15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15474 CFLAGS="$xorg_testset_save_CFLAGS"
15475 fi
15476
15477 found="no"
15478
15479 if test $found = "no" ; then
15480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482 fi
15483
15484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15486 fi
15487
15488 CFLAGS="$CFLAGS -Wmissing-noreturn"
15489
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15491 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15492 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15493 if eval test \${$cacheid+y}
15494 then :
15495 printf %s "(cached) " >&6
15496 else $as_nop
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 int i;
15500 int
15501 main (void)
15502 {
15503
15504 ;
15505 return 0;
15506 }
15507 _ACEOF
15508 if ac_fn_c_try_link "$LINENO"
15509 then :
15510 eval $cacheid=yes
15511 else $as_nop
15512 eval $cacheid=no
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15515 conftest$ac_exeext conftest.$ac_ext
15516 fi
15517
15518
15519 CFLAGS="$xorg_testset_save_CFLAGS"
15520
15521 eval supported=\$$cacheid
15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15523 printf "%s\n" "$supported" >&6; }
15524 if test "$supported" = "yes" ; then
15525 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15526 found="yes"
15527 fi
15528 fi
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544 xorg_testset_save_CFLAGS="$CFLAGS"
15545
15546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15549 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15550 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15551 then :
15552 printf %s "(cached) " >&6
15553 else $as_nop
15554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555 /* end confdefs.h. */
15556 int i;
15557 _ACEOF
15558 if ac_fn_c_try_compile "$LINENO"
15559 then :
15560 xorg_cv_cc_flag_unknown_warning_option=yes
15561 else $as_nop
15562 xorg_cv_cc_flag_unknown_warning_option=no
15563 fi
15564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15565 fi
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15567 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15569 CFLAGS="$xorg_testset_save_CFLAGS"
15570 fi
15571
15572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15575 fi
15576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15578 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15579 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15580 then :
15581 printf %s "(cached) " >&6
15582 else $as_nop
15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15584 /* end confdefs.h. */
15585 int i;
15586 _ACEOF
15587 if ac_fn_c_try_compile "$LINENO"
15588 then :
15589 xorg_cv_cc_flag_unused_command_line_argument=yes
15590 else $as_nop
15591 xorg_cv_cc_flag_unused_command_line_argument=no
15592 fi
15593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15594 fi
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598 CFLAGS="$xorg_testset_save_CFLAGS"
15599 fi
15600
15601 found="no"
15602
15603 if test $found = "no" ; then
15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606 fi
15607
15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 fi
15611
15612 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15613
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15615 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15616 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15617 if eval test \${$cacheid+y}
15618 then :
15619 printf %s "(cached) " >&6
15620 else $as_nop
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 int i;
15624 int
15625 main (void)
15626 {
15627
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 if ac_fn_c_try_link "$LINENO"
15633 then :
15634 eval $cacheid=yes
15635 else $as_nop
15636 eval $cacheid=no
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15639 conftest$ac_exeext conftest.$ac_ext
15640 fi
15641
15642
15643 CFLAGS="$xorg_testset_save_CFLAGS"
15644
15645 eval supported=\$$cacheid
15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15647 printf "%s\n" "$supported" >&6; }
15648 if test "$supported" = "yes" ; then
15649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15650 found="yes"
15651 fi
15652 fi
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668 xorg_testset_save_CFLAGS="$CFLAGS"
15669
15670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15674 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15675 then :
15676 printf %s "(cached) " >&6
15677 else $as_nop
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 int i;
15681 _ACEOF
15682 if ac_fn_c_try_compile "$LINENO"
15683 then :
15684 xorg_cv_cc_flag_unknown_warning_option=yes
15685 else $as_nop
15686 xorg_cv_cc_flag_unknown_warning_option=no
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15689 fi
15690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15693 CFLAGS="$xorg_testset_save_CFLAGS"
15694 fi
15695
15696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15699 fi
15700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15704 then :
15705 printf %s "(cached) " >&6
15706 else $as_nop
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 int i;
15710 _ACEOF
15711 if ac_fn_c_try_compile "$LINENO"
15712 then :
15713 xorg_cv_cc_flag_unused_command_line_argument=yes
15714 else $as_nop
15715 xorg_cv_cc_flag_unused_command_line_argument=no
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15718 fi
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15722 CFLAGS="$xorg_testset_save_CFLAGS"
15723 fi
15724
15725 found="no"
15726
15727 if test $found = "no" ; then
15728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15730 fi
15731
15732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15734 fi
15735
15736 CFLAGS="$CFLAGS -Wredundant-decls"
15737
15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15739 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15740 cacheid=xorg_cv_cc_flag__Wredundant_decls
15741 if eval test \${$cacheid+y}
15742 then :
15743 printf %s "(cached) " >&6
15744 else $as_nop
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 int i;
15748 int
15749 main (void)
15750 {
15751
15752 ;
15753 return 0;
15754 }
15755 _ACEOF
15756 if ac_fn_c_try_link "$LINENO"
15757 then :
15758 eval $cacheid=yes
15759 else $as_nop
15760 eval $cacheid=no
15761 fi
15762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15763 conftest$ac_exeext conftest.$ac_ext
15764 fi
15765
15766
15767 CFLAGS="$xorg_testset_save_CFLAGS"
15768
15769 eval supported=\$$cacheid
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15771 printf "%s\n" "$supported" >&6; }
15772 if test "$supported" = "yes" ; then
15773 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15774 found="yes"
15775 fi
15776 fi
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792 xorg_testset_save_CFLAGS="$CFLAGS"
15793
15794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15799 then :
15800 printf %s "(cached) " >&6
15801 else $as_nop
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15804 int i;
15805 _ACEOF
15806 if ac_fn_c_try_compile "$LINENO"
15807 then :
15808 xorg_cv_cc_flag_unknown_warning_option=yes
15809 else $as_nop
15810 xorg_cv_cc_flag_unknown_warning_option=no
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15813 fi
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15817 CFLAGS="$xorg_testset_save_CFLAGS"
15818 fi
15819
15820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15823 fi
15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15828 then :
15829 printf %s "(cached) " >&6
15830 else $as_nop
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 int i;
15834 _ACEOF
15835 if ac_fn_c_try_compile "$LINENO"
15836 then :
15837 xorg_cv_cc_flag_unused_command_line_argument=yes
15838 else $as_nop
15839 xorg_cv_cc_flag_unused_command_line_argument=no
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15842 fi
15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15846 CFLAGS="$xorg_testset_save_CFLAGS"
15847 fi
15848
15849 found="no"
15850
15851 if test $found = "no" ; then
15852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15854 fi
15855
15856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15858 fi
15859
15860 CFLAGS="$CFLAGS -Wlogical-op"
15861
15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15863 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15864 cacheid=xorg_cv_cc_flag__Wlogical_op
15865 if eval test \${$cacheid+y}
15866 then :
15867 printf %s "(cached) " >&6
15868 else $as_nop
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15871 int i;
15872 int
15873 main (void)
15874 {
15875
15876 ;
15877 return 0;
15878 }
15879 _ACEOF
15880 if ac_fn_c_try_link "$LINENO"
15881 then :
15882 eval $cacheid=yes
15883 else $as_nop
15884 eval $cacheid=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15887 conftest$ac_exeext conftest.$ac_ext
15888 fi
15889
15890
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892
15893 eval supported=\$$cacheid
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15895 printf "%s\n" "$supported" >&6; }
15896 if test "$supported" = "yes" ; then
15897 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15898 found="yes"
15899 fi
15900 fi
15901
15902
15903
15904 # These are currently disabled because they are noisy. They will be enabled
15905 # in the future once the codebase is sufficiently modernized to silence
15906 # them. For now, I don't want them to drown out the other warnings.
15907 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15908 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15909 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15910
15911 # Turn some warnings into errors, so we don't accidentally get successful builds
15912 # when there are problems that should be fixed.
15913
15914 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928 xorg_testset_save_CFLAGS="$CFLAGS"
15929
15930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15934 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15935 then :
15936 printf %s "(cached) " >&6
15937 else $as_nop
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 int i;
15941 _ACEOF
15942 if ac_fn_c_try_compile "$LINENO"
15943 then :
15944 xorg_cv_cc_flag_unknown_warning_option=yes
15945 else $as_nop
15946 xorg_cv_cc_flag_unknown_warning_option=no
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15949 fi
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15951 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15953 CFLAGS="$xorg_testset_save_CFLAGS"
15954 fi
15955
15956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15959 fi
15960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15964 then :
15965 printf %s "(cached) " >&6
15966 else $as_nop
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 int i;
15970 _ACEOF
15971 if ac_fn_c_try_compile "$LINENO"
15972 then :
15973 xorg_cv_cc_flag_unused_command_line_argument=yes
15974 else $as_nop
15975 xorg_cv_cc_flag_unused_command_line_argument=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 fi
15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15980 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15982 CFLAGS="$xorg_testset_save_CFLAGS"
15983 fi
15984
15985 found="no"
15986
15987 if test $found = "no" ; then
15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15990 fi
15991
15992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15994 fi
15995
15996 CFLAGS="$CFLAGS -Werror=implicit"
15997
15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15999 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16000 cacheid=xorg_cv_cc_flag__Werror_implicit
16001 if eval test \${$cacheid+y}
16002 then :
16003 printf %s "(cached) " >&6
16004 else $as_nop
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 int i;
16008 int
16009 main (void)
16010 {
16011
16012 ;
16013 return 0;
16014 }
16015 _ACEOF
16016 if ac_fn_c_try_link "$LINENO"
16017 then :
16018 eval $cacheid=yes
16019 else $as_nop
16020 eval $cacheid=no
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16023 conftest$ac_exeext conftest.$ac_ext
16024 fi
16025
16026
16027 CFLAGS="$xorg_testset_save_CFLAGS"
16028
16029 eval supported=\$$cacheid
16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16031 printf "%s\n" "$supported" >&6; }
16032 if test "$supported" = "yes" ; then
16033 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16034 found="yes"
16035 fi
16036 fi
16037
16038 if test $found = "no" ; then
16039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16041 fi
16042
16043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16045 fi
16046
16047 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16048
16049 { 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
16050 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16051 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16052 if eval test \${$cacheid+y}
16053 then :
16054 printf %s "(cached) " >&6
16055 else $as_nop
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 int i;
16059 int
16060 main (void)
16061 {
16062
16063 ;
16064 return 0;
16065 }
16066 _ACEOF
16067 if ac_fn_c_try_link "$LINENO"
16068 then :
16069 eval $cacheid=yes
16070 else $as_nop
16071 eval $cacheid=no
16072 fi
16073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16074 conftest$ac_exeext conftest.$ac_ext
16075 fi
16076
16077
16078 CFLAGS="$xorg_testset_save_CFLAGS"
16079
16080 eval supported=\$$cacheid
16081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16082 printf "%s\n" "$supported" >&6; }
16083 if test "$supported" = "yes" ; then
16084 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16085 found="yes"
16086 fi
16087 fi
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103 xorg_testset_save_CFLAGS="$CFLAGS"
16104
16105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16109 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16110 then :
16111 printf %s "(cached) " >&6
16112 else $as_nop
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 _ACEOF
16117 if ac_fn_c_try_compile "$LINENO"
16118 then :
16119 xorg_cv_cc_flag_unknown_warning_option=yes
16120 else $as_nop
16121 xorg_cv_cc_flag_unknown_warning_option=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16124 fi
16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16126 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16128 CFLAGS="$xorg_testset_save_CFLAGS"
16129 fi
16130
16131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16134 fi
16135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16138 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16139 then :
16140 printf %s "(cached) " >&6
16141 else $as_nop
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 int i;
16145 _ACEOF
16146 if ac_fn_c_try_compile "$LINENO"
16147 then :
16148 xorg_cv_cc_flag_unused_command_line_argument=yes
16149 else $as_nop
16150 xorg_cv_cc_flag_unused_command_line_argument=no
16151 fi
16152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16153 fi
16154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16155 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16157 CFLAGS="$xorg_testset_save_CFLAGS"
16158 fi
16159
16160 found="no"
16161
16162 if test $found = "no" ; then
16163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16165 fi
16166
16167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169 fi
16170
16171 CFLAGS="$CFLAGS -Werror=nonnull"
16172
16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16174 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16175 cacheid=xorg_cv_cc_flag__Werror_nonnull
16176 if eval test \${$cacheid+y}
16177 then :
16178 printf %s "(cached) " >&6
16179 else $as_nop
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182 int i;
16183 int
16184 main (void)
16185 {
16186
16187 ;
16188 return 0;
16189 }
16190 _ACEOF
16191 if ac_fn_c_try_link "$LINENO"
16192 then :
16193 eval $cacheid=yes
16194 else $as_nop
16195 eval $cacheid=no
16196 fi
16197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16198 conftest$ac_exeext conftest.$ac_ext
16199 fi
16200
16201
16202 CFLAGS="$xorg_testset_save_CFLAGS"
16203
16204 eval supported=\$$cacheid
16205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16206 printf "%s\n" "$supported" >&6; }
16207 if test "$supported" = "yes" ; then
16208 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16209 found="yes"
16210 fi
16211 fi
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227 xorg_testset_save_CFLAGS="$CFLAGS"
16228
16229 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16232 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16233 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16234 then :
16235 printf %s "(cached) " >&6
16236 else $as_nop
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 int i;
16240 _ACEOF
16241 if ac_fn_c_try_compile "$LINENO"
16242 then :
16243 xorg_cv_cc_flag_unknown_warning_option=yes
16244 else $as_nop
16245 xorg_cv_cc_flag_unknown_warning_option=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16248 fi
16249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16250 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16252 CFLAGS="$xorg_testset_save_CFLAGS"
16253 fi
16254
16255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16258 fi
16259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16261 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16262 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16263 then :
16264 printf %s "(cached) " >&6
16265 else $as_nop
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16268 int i;
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"
16271 then :
16272 xorg_cv_cc_flag_unused_command_line_argument=yes
16273 else $as_nop
16274 xorg_cv_cc_flag_unused_command_line_argument=no
16275 fi
16276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16277 fi
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16279 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16281 CFLAGS="$xorg_testset_save_CFLAGS"
16282 fi
16283
16284 found="no"
16285
16286 if test $found = "no" ; then
16287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16289 fi
16290
16291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16293 fi
16294
16295 CFLAGS="$CFLAGS -Werror=init-self"
16296
16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16298 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16299 cacheid=xorg_cv_cc_flag__Werror_init_self
16300 if eval test \${$cacheid+y}
16301 then :
16302 printf %s "(cached) " >&6
16303 else $as_nop
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16306 int i;
16307 int
16308 main (void)
16309 {
16310
16311 ;
16312 return 0;
16313 }
16314 _ACEOF
16315 if ac_fn_c_try_link "$LINENO"
16316 then :
16317 eval $cacheid=yes
16318 else $as_nop
16319 eval $cacheid=no
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16322 conftest$ac_exeext conftest.$ac_ext
16323 fi
16324
16325
16326 CFLAGS="$xorg_testset_save_CFLAGS"
16327
16328 eval supported=\$$cacheid
16329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16330 printf "%s\n" "$supported" >&6; }
16331 if test "$supported" = "yes" ; then
16332 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16333 found="yes"
16334 fi
16335 fi
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351 xorg_testset_save_CFLAGS="$CFLAGS"
16352
16353 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16356 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16357 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16358 then :
16359 printf %s "(cached) " >&6
16360 else $as_nop
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 int i;
16364 _ACEOF
16365 if ac_fn_c_try_compile "$LINENO"
16366 then :
16367 xorg_cv_cc_flag_unknown_warning_option=yes
16368 else $as_nop
16369 xorg_cv_cc_flag_unknown_warning_option=no
16370 fi
16371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16372 fi
16373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16374 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16376 CFLAGS="$xorg_testset_save_CFLAGS"
16377 fi
16378
16379 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16382 fi
16383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16385 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16386 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16387 then :
16388 printf %s "(cached) " >&6
16389 else $as_nop
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 int i;
16393 _ACEOF
16394 if ac_fn_c_try_compile "$LINENO"
16395 then :
16396 xorg_cv_cc_flag_unused_command_line_argument=yes
16397 else $as_nop
16398 xorg_cv_cc_flag_unused_command_line_argument=no
16399 fi
16400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16401 fi
16402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16405 CFLAGS="$xorg_testset_save_CFLAGS"
16406 fi
16407
16408 found="no"
16409
16410 if test $found = "no" ; then
16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16413 fi
16414
16415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16417 fi
16418
16419 CFLAGS="$CFLAGS -Werror=main"
16420
16421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16422 printf %s "checking if $CC supports -Werror=main... " >&6; }
16423 cacheid=xorg_cv_cc_flag__Werror_main
16424 if eval test \${$cacheid+y}
16425 then :
16426 printf %s "(cached) " >&6
16427 else $as_nop
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 int i;
16431 int
16432 main (void)
16433 {
16434
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 if ac_fn_c_try_link "$LINENO"
16440 then :
16441 eval $cacheid=yes
16442 else $as_nop
16443 eval $cacheid=no
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16446 conftest$ac_exeext conftest.$ac_ext
16447 fi
16448
16449
16450 CFLAGS="$xorg_testset_save_CFLAGS"
16451
16452 eval supported=\$$cacheid
16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16454 printf "%s\n" "$supported" >&6; }
16455 if test "$supported" = "yes" ; then
16456 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16457 found="yes"
16458 fi
16459 fi
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475 xorg_testset_save_CFLAGS="$CFLAGS"
16476
16477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16482 then :
16483 printf %s "(cached) " >&6
16484 else $as_nop
16485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16486 /* end confdefs.h. */
16487 int i;
16488 _ACEOF
16489 if ac_fn_c_try_compile "$LINENO"
16490 then :
16491 xorg_cv_cc_flag_unknown_warning_option=yes
16492 else $as_nop
16493 xorg_cv_cc_flag_unknown_warning_option=no
16494 fi
16495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16496 fi
16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16500 CFLAGS="$xorg_testset_save_CFLAGS"
16501 fi
16502
16503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16506 fi
16507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16511 then :
16512 printf %s "(cached) " >&6
16513 else $as_nop
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 int i;
16517 _ACEOF
16518 if ac_fn_c_try_compile "$LINENO"
16519 then :
16520 xorg_cv_cc_flag_unused_command_line_argument=yes
16521 else $as_nop
16522 xorg_cv_cc_flag_unused_command_line_argument=no
16523 fi
16524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16525 fi
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16527 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16529 CFLAGS="$xorg_testset_save_CFLAGS"
16530 fi
16531
16532 found="no"
16533
16534 if test $found = "no" ; then
16535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16537 fi
16538
16539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16541 fi
16542
16543 CFLAGS="$CFLAGS -Werror=missing-braces"
16544
16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16546 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16547 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16548 if eval test \${$cacheid+y}
16549 then :
16550 printf %s "(cached) " >&6
16551 else $as_nop
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 int i;
16555 int
16556 main (void)
16557 {
16558
16559 ;
16560 return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"
16564 then :
16565 eval $cacheid=yes
16566 else $as_nop
16567 eval $cacheid=no
16568 fi
16569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16570 conftest$ac_exeext conftest.$ac_ext
16571 fi
16572
16573
16574 CFLAGS="$xorg_testset_save_CFLAGS"
16575
16576 eval supported=\$$cacheid
16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16578 printf "%s\n" "$supported" >&6; }
16579 if test "$supported" = "yes" ; then
16580 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16581 found="yes"
16582 fi
16583 fi
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599 xorg_testset_save_CFLAGS="$CFLAGS"
16600
16601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16606 then :
16607 printf %s "(cached) " >&6
16608 else $as_nop
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16611 int i;
16612 _ACEOF
16613 if ac_fn_c_try_compile "$LINENO"
16614 then :
16615 xorg_cv_cc_flag_unknown_warning_option=yes
16616 else $as_nop
16617 xorg_cv_cc_flag_unknown_warning_option=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16620 fi
16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16622 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16624 CFLAGS="$xorg_testset_save_CFLAGS"
16625 fi
16626
16627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16633 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16634 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16635 then :
16636 printf %s "(cached) " >&6
16637 else $as_nop
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 int i;
16641 _ACEOF
16642 if ac_fn_c_try_compile "$LINENO"
16643 then :
16644 xorg_cv_cc_flag_unused_command_line_argument=yes
16645 else $as_nop
16646 xorg_cv_cc_flag_unused_command_line_argument=no
16647 fi
16648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16649 fi
16650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16651 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16653 CFLAGS="$xorg_testset_save_CFLAGS"
16654 fi
16655
16656 found="no"
16657
16658 if test $found = "no" ; then
16659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16661 fi
16662
16663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16665 fi
16666
16667 CFLAGS="$CFLAGS -Werror=sequence-point"
16668
16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16670 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16671 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16672 if eval test \${$cacheid+y}
16673 then :
16674 printf %s "(cached) " >&6
16675 else $as_nop
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16678 int i;
16679 int
16680 main (void)
16681 {
16682
16683 ;
16684 return 0;
16685 }
16686 _ACEOF
16687 if ac_fn_c_try_link "$LINENO"
16688 then :
16689 eval $cacheid=yes
16690 else $as_nop
16691 eval $cacheid=no
16692 fi
16693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16694 conftest$ac_exeext conftest.$ac_ext
16695 fi
16696
16697
16698 CFLAGS="$xorg_testset_save_CFLAGS"
16699
16700 eval supported=\$$cacheid
16701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16702 printf "%s\n" "$supported" >&6; }
16703 if test "$supported" = "yes" ; then
16704 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16705 found="yes"
16706 fi
16707 fi
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723 xorg_testset_save_CFLAGS="$CFLAGS"
16724
16725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16728 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16729 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16730 then :
16731 printf %s "(cached) " >&6
16732 else $as_nop
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734 /* end confdefs.h. */
16735 int i;
16736 _ACEOF
16737 if ac_fn_c_try_compile "$LINENO"
16738 then :
16739 xorg_cv_cc_flag_unknown_warning_option=yes
16740 else $as_nop
16741 xorg_cv_cc_flag_unknown_warning_option=no
16742 fi
16743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16744 fi
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16746 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16748 CFLAGS="$xorg_testset_save_CFLAGS"
16749 fi
16750
16751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16754 fi
16755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16757 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16758 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16759 then :
16760 printf %s "(cached) " >&6
16761 else $as_nop
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 int i;
16765 _ACEOF
16766 if ac_fn_c_try_compile "$LINENO"
16767 then :
16768 xorg_cv_cc_flag_unused_command_line_argument=yes
16769 else $as_nop
16770 xorg_cv_cc_flag_unused_command_line_argument=no
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16773 fi
16774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16777 CFLAGS="$xorg_testset_save_CFLAGS"
16778 fi
16779
16780 found="no"
16781
16782 if test $found = "no" ; then
16783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16785 fi
16786
16787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16789 fi
16790
16791 CFLAGS="$CFLAGS -Werror=return-type"
16792
16793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16794 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16795 cacheid=xorg_cv_cc_flag__Werror_return_type
16796 if eval test \${$cacheid+y}
16797 then :
16798 printf %s "(cached) " >&6
16799 else $as_nop
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 int i;
16803 int
16804 main (void)
16805 {
16806
16807 ;
16808 return 0;
16809 }
16810 _ACEOF
16811 if ac_fn_c_try_link "$LINENO"
16812 then :
16813 eval $cacheid=yes
16814 else $as_nop
16815 eval $cacheid=no
16816 fi
16817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16818 conftest$ac_exeext conftest.$ac_ext
16819 fi
16820
16821
16822 CFLAGS="$xorg_testset_save_CFLAGS"
16823
16824 eval supported=\$$cacheid
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16826 printf "%s\n" "$supported" >&6; }
16827 if test "$supported" = "yes" ; then
16828 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16829 found="yes"
16830 fi
16831 fi
16832
16833 if test $found = "no" ; then
16834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16836 fi
16837
16838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16840 fi
16841
16842 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16843
16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16845 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16846 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16847 if eval test \${$cacheid+y}
16848 then :
16849 printf %s "(cached) " >&6
16850 else $as_nop
16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852 /* end confdefs.h. */
16853 int i;
16854 int
16855 main (void)
16856 {
16857
16858 ;
16859 return 0;
16860 }
16861 _ACEOF
16862 if ac_fn_c_try_link "$LINENO"
16863 then :
16864 eval $cacheid=yes
16865 else $as_nop
16866 eval $cacheid=no
16867 fi
16868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16869 conftest$ac_exeext conftest.$ac_ext
16870 fi
16871
16872
16873 CFLAGS="$xorg_testset_save_CFLAGS"
16874
16875 eval supported=\$$cacheid
16876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16877 printf "%s\n" "$supported" >&6; }
16878 if test "$supported" = "yes" ; then
16879 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16880 found="yes"
16881 fi
16882 fi
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898 xorg_testset_save_CFLAGS="$CFLAGS"
16899
16900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16904 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16905 then :
16906 printf %s "(cached) " >&6
16907 else $as_nop
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16910 int i;
16911 _ACEOF
16912 if ac_fn_c_try_compile "$LINENO"
16913 then :
16914 xorg_cv_cc_flag_unknown_warning_option=yes
16915 else $as_nop
16916 xorg_cv_cc_flag_unknown_warning_option=no
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16919 fi
16920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16923 CFLAGS="$xorg_testset_save_CFLAGS"
16924 fi
16925
16926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16929 fi
16930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16934 then :
16935 printf %s "(cached) " >&6
16936 else $as_nop
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939 int i;
16940 _ACEOF
16941 if ac_fn_c_try_compile "$LINENO"
16942 then :
16943 xorg_cv_cc_flag_unused_command_line_argument=yes
16944 else $as_nop
16945 xorg_cv_cc_flag_unused_command_line_argument=no
16946 fi
16947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16948 fi
16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16952 CFLAGS="$xorg_testset_save_CFLAGS"
16953 fi
16954
16955 found="no"
16956
16957 if test $found = "no" ; then
16958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16960 fi
16961
16962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16964 fi
16965
16966 CFLAGS="$CFLAGS -Werror=trigraphs"
16967
16968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16969 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16970 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16971 if eval test \${$cacheid+y}
16972 then :
16973 printf %s "(cached) " >&6
16974 else $as_nop
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977 int i;
16978 int
16979 main (void)
16980 {
16981
16982 ;
16983 return 0;
16984 }
16985 _ACEOF
16986 if ac_fn_c_try_link "$LINENO"
16987 then :
16988 eval $cacheid=yes
16989 else $as_nop
16990 eval $cacheid=no
16991 fi
16992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16993 conftest$ac_exeext conftest.$ac_ext
16994 fi
16995
16996
16997 CFLAGS="$xorg_testset_save_CFLAGS"
16998
16999 eval supported=\$$cacheid
17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17001 printf "%s\n" "$supported" >&6; }
17002 if test "$supported" = "yes" ; then
17003 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17004 found="yes"
17005 fi
17006 fi
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022 xorg_testset_save_CFLAGS="$CFLAGS"
17023
17024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17029 then :
17030 printf %s "(cached) " >&6
17031 else $as_nop
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 int i;
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"
17037 then :
17038 xorg_cv_cc_flag_unknown_warning_option=yes
17039 else $as_nop
17040 xorg_cv_cc_flag_unknown_warning_option=no
17041 fi
17042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17043 fi
17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17047 CFLAGS="$xorg_testset_save_CFLAGS"
17048 fi
17049
17050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17053 fi
17054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17058 then :
17059 printf %s "(cached) " >&6
17060 else $as_nop
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17063 int i;
17064 _ACEOF
17065 if ac_fn_c_try_compile "$LINENO"
17066 then :
17067 xorg_cv_cc_flag_unused_command_line_argument=yes
17068 else $as_nop
17069 xorg_cv_cc_flag_unused_command_line_argument=no
17070 fi
17071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17072 fi
17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17076 CFLAGS="$xorg_testset_save_CFLAGS"
17077 fi
17078
17079 found="no"
17080
17081 if test $found = "no" ; then
17082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17084 fi
17085
17086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17088 fi
17089
17090 CFLAGS="$CFLAGS -Werror=array-bounds"
17091
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17093 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17094 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17095 if eval test \${$cacheid+y}
17096 then :
17097 printf %s "(cached) " >&6
17098 else $as_nop
17099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h. */
17101 int i;
17102 int
17103 main (void)
17104 {
17105
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 if ac_fn_c_try_link "$LINENO"
17111 then :
17112 eval $cacheid=yes
17113 else $as_nop
17114 eval $cacheid=no
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17117 conftest$ac_exeext conftest.$ac_ext
17118 fi
17119
17120
17121 CFLAGS="$xorg_testset_save_CFLAGS"
17122
17123 eval supported=\$$cacheid
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17125 printf "%s\n" "$supported" >&6; }
17126 if test "$supported" = "yes" ; then
17127 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17128 found="yes"
17129 fi
17130 fi
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146 xorg_testset_save_CFLAGS="$CFLAGS"
17147
17148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17152 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17153 then :
17154 printf %s "(cached) " >&6
17155 else $as_nop
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17158 int i;
17159 _ACEOF
17160 if ac_fn_c_try_compile "$LINENO"
17161 then :
17162 xorg_cv_cc_flag_unknown_warning_option=yes
17163 else $as_nop
17164 xorg_cv_cc_flag_unknown_warning_option=no
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17167 fi
17168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17171 CFLAGS="$xorg_testset_save_CFLAGS"
17172 fi
17173
17174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17177 fi
17178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17182 then :
17183 printf %s "(cached) " >&6
17184 else $as_nop
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17187 int i;
17188 _ACEOF
17189 if ac_fn_c_try_compile "$LINENO"
17190 then :
17191 xorg_cv_cc_flag_unused_command_line_argument=yes
17192 else $as_nop
17193 xorg_cv_cc_flag_unused_command_line_argument=no
17194 fi
17195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17196 fi
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17200 CFLAGS="$xorg_testset_save_CFLAGS"
17201 fi
17202
17203 found="no"
17204
17205 if test $found = "no" ; then
17206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17208 fi
17209
17210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17212 fi
17213
17214 CFLAGS="$CFLAGS -Werror=write-strings"
17215
17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17217 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17218 cacheid=xorg_cv_cc_flag__Werror_write_strings
17219 if eval test \${$cacheid+y}
17220 then :
17221 printf %s "(cached) " >&6
17222 else $as_nop
17223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225 int i;
17226 int
17227 main (void)
17228 {
17229
17230 ;
17231 return 0;
17232 }
17233 _ACEOF
17234 if ac_fn_c_try_link "$LINENO"
17235 then :
17236 eval $cacheid=yes
17237 else $as_nop
17238 eval $cacheid=no
17239 fi
17240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17241 conftest$ac_exeext conftest.$ac_ext
17242 fi
17243
17244
17245 CFLAGS="$xorg_testset_save_CFLAGS"
17246
17247 eval supported=\$$cacheid
17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17249 printf "%s\n" "$supported" >&6; }
17250 if test "$supported" = "yes" ; then
17251 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17252 found="yes"
17253 fi
17254 fi
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270 xorg_testset_save_CFLAGS="$CFLAGS"
17271
17272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17276 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17277 then :
17278 printf %s "(cached) " >&6
17279 else $as_nop
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17282 int i;
17283 _ACEOF
17284 if ac_fn_c_try_compile "$LINENO"
17285 then :
17286 xorg_cv_cc_flag_unknown_warning_option=yes
17287 else $as_nop
17288 xorg_cv_cc_flag_unknown_warning_option=no
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17291 fi
17292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17295 CFLAGS="$xorg_testset_save_CFLAGS"
17296 fi
17297
17298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17301 fi
17302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17306 then :
17307 printf %s "(cached) " >&6
17308 else $as_nop
17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310 /* end confdefs.h. */
17311 int i;
17312 _ACEOF
17313 if ac_fn_c_try_compile "$LINENO"
17314 then :
17315 xorg_cv_cc_flag_unused_command_line_argument=yes
17316 else $as_nop
17317 xorg_cv_cc_flag_unused_command_line_argument=no
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17320 fi
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17324 CFLAGS="$xorg_testset_save_CFLAGS"
17325 fi
17326
17327 found="no"
17328
17329 if test $found = "no" ; then
17330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17332 fi
17333
17334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17336 fi
17337
17338 CFLAGS="$CFLAGS -Werror=address"
17339
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17341 printf %s "checking if $CC supports -Werror=address... " >&6; }
17342 cacheid=xorg_cv_cc_flag__Werror_address
17343 if eval test \${$cacheid+y}
17344 then :
17345 printf %s "(cached) " >&6
17346 else $as_nop
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348 /* end confdefs.h. */
17349 int i;
17350 int
17351 main (void)
17352 {
17353
17354 ;
17355 return 0;
17356 }
17357 _ACEOF
17358 if ac_fn_c_try_link "$LINENO"
17359 then :
17360 eval $cacheid=yes
17361 else $as_nop
17362 eval $cacheid=no
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17365 conftest$ac_exeext conftest.$ac_ext
17366 fi
17367
17368
17369 CFLAGS="$xorg_testset_save_CFLAGS"
17370
17371 eval supported=\$$cacheid
17372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17373 printf "%s\n" "$supported" >&6; }
17374 if test "$supported" = "yes" ; then
17375 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17376 found="yes"
17377 fi
17378 fi
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394 xorg_testset_save_CFLAGS="$CFLAGS"
17395
17396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17399 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17400 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17401 then :
17402 printf %s "(cached) " >&6
17403 else $as_nop
17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17405 /* end confdefs.h. */
17406 int i;
17407 _ACEOF
17408 if ac_fn_c_try_compile "$LINENO"
17409 then :
17410 xorg_cv_cc_flag_unknown_warning_option=yes
17411 else $as_nop
17412 xorg_cv_cc_flag_unknown_warning_option=no
17413 fi
17414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17415 fi
17416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17419 CFLAGS="$xorg_testset_save_CFLAGS"
17420 fi
17421
17422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17425 fi
17426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17430 then :
17431 printf %s "(cached) " >&6
17432 else $as_nop
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17435 int i;
17436 _ACEOF
17437 if ac_fn_c_try_compile "$LINENO"
17438 then :
17439 xorg_cv_cc_flag_unused_command_line_argument=yes
17440 else $as_nop
17441 xorg_cv_cc_flag_unused_command_line_argument=no
17442 fi
17443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17444 fi
17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17448 CFLAGS="$xorg_testset_save_CFLAGS"
17449 fi
17450
17451 found="no"
17452
17453 if test $found = "no" ; then
17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456 fi
17457
17458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17460 fi
17461
17462 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17463
17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17465 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17466 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17467 if eval test \${$cacheid+y}
17468 then :
17469 printf %s "(cached) " >&6
17470 else $as_nop
17471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17472 /* end confdefs.h. */
17473 int i;
17474 int
17475 main (void)
17476 {
17477
17478 ;
17479 return 0;
17480 }
17481 _ACEOF
17482 if ac_fn_c_try_link "$LINENO"
17483 then :
17484 eval $cacheid=yes
17485 else $as_nop
17486 eval $cacheid=no
17487 fi
17488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17489 conftest$ac_exeext conftest.$ac_ext
17490 fi
17491
17492
17493 CFLAGS="$xorg_testset_save_CFLAGS"
17494
17495 eval supported=\$$cacheid
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17497 printf "%s\n" "$supported" >&6; }
17498 if test "$supported" = "yes" ; then
17499 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17500 found="yes"
17501 fi
17502 fi
17503
17504 if test $found = "no" ; then
17505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17507 fi
17508
17509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17511 fi
17512
17513 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17514
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17516 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17517 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17518 if eval test \${$cacheid+y}
17519 then :
17520 printf %s "(cached) " >&6
17521 else $as_nop
17522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17523 /* end confdefs.h. */
17524 int i;
17525 int
17526 main (void)
17527 {
17528
17529 ;
17530 return 0;
17531 }
17532 _ACEOF
17533 if ac_fn_c_try_link "$LINENO"
17534 then :
17535 eval $cacheid=yes
17536 else $as_nop
17537 eval $cacheid=no
17538 fi
17539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17540 conftest$ac_exeext conftest.$ac_ext
17541 fi
17542
17543
17544 CFLAGS="$xorg_testset_save_CFLAGS"
17545
17546 eval supported=\$$cacheid
17547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17548 printf "%s\n" "$supported" >&6; }
17549 if test "$supported" = "yes" ; then
17550 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17551 found="yes"
17552 fi
17553 fi
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569 xorg_testset_save_CFLAGS="$CFLAGS"
17570
17571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17574 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17575 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17576 then :
17577 printf %s "(cached) " >&6
17578 else $as_nop
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 int i;
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"
17584 then :
17585 xorg_cv_cc_flag_unknown_warning_option=yes
17586 else $as_nop
17587 xorg_cv_cc_flag_unknown_warning_option=no
17588 fi
17589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17590 fi
17591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17594 CFLAGS="$xorg_testset_save_CFLAGS"
17595 fi
17596
17597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17600 fi
17601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17605 then :
17606 printf %s "(cached) " >&6
17607 else $as_nop
17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 int i;
17611 _ACEOF
17612 if ac_fn_c_try_compile "$LINENO"
17613 then :
17614 xorg_cv_cc_flag_unused_command_line_argument=yes
17615 else $as_nop
17616 xorg_cv_cc_flag_unused_command_line_argument=no
17617 fi
17618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17619 fi
17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17621 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17623 CFLAGS="$xorg_testset_save_CFLAGS"
17624 fi
17625
17626 found="no"
17627
17628 if test $found = "no" ; then
17629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17631 fi
17632
17633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17635 fi
17636
17637 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17638
17639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17640 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17641 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17642 if eval test \${$cacheid+y}
17643 then :
17644 printf %s "(cached) " >&6
17645 else $as_nop
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 int i;
17649 int
17650 main (void)
17651 {
17652
17653 ;
17654 return 0;
17655 }
17656 _ACEOF
17657 if ac_fn_c_try_link "$LINENO"
17658 then :
17659 eval $cacheid=yes
17660 else $as_nop
17661 eval $cacheid=no
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17664 conftest$ac_exeext conftest.$ac_ext
17665 fi
17666
17667
17668 CFLAGS="$xorg_testset_save_CFLAGS"
17669
17670 eval supported=\$$cacheid
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17672 printf "%s\n" "$supported" >&6; }
17673 if test "$supported" = "yes" ; then
17674 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17675 found="yes"
17676 fi
17677 fi
17678
17679 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17680 else
17681 { 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
17682 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;}
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696 xorg_testset_save_CFLAGS="$CFLAGS"
17697
17698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17703 then :
17704 printf %s "(cached) " >&6
17705 else $as_nop
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 int i;
17709 _ACEOF
17710 if ac_fn_c_try_compile "$LINENO"
17711 then :
17712 xorg_cv_cc_flag_unknown_warning_option=yes
17713 else $as_nop
17714 xorg_cv_cc_flag_unknown_warning_option=no
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17717 fi
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17721 CFLAGS="$xorg_testset_save_CFLAGS"
17722 fi
17723
17724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727 fi
17728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17732 then :
17733 printf %s "(cached) " >&6
17734 else $as_nop
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17737 int i;
17738 _ACEOF
17739 if ac_fn_c_try_compile "$LINENO"
17740 then :
17741 xorg_cv_cc_flag_unused_command_line_argument=yes
17742 else $as_nop
17743 xorg_cv_cc_flag_unused_command_line_argument=no
17744 fi
17745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17746 fi
17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17750 CFLAGS="$xorg_testset_save_CFLAGS"
17751 fi
17752
17753 found="no"
17754
17755 if test $found = "no" ; then
17756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17758 fi
17759
17760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17762 fi
17763
17764 CFLAGS="$CFLAGS -Wimplicit"
17765
17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17767 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17768 cacheid=xorg_cv_cc_flag__Wimplicit
17769 if eval test \${$cacheid+y}
17770 then :
17771 printf %s "(cached) " >&6
17772 else $as_nop
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17775 int i;
17776 int
17777 main (void)
17778 {
17779
17780 ;
17781 return 0;
17782 }
17783 _ACEOF
17784 if ac_fn_c_try_link "$LINENO"
17785 then :
17786 eval $cacheid=yes
17787 else $as_nop
17788 eval $cacheid=no
17789 fi
17790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17791 conftest$ac_exeext conftest.$ac_ext
17792 fi
17793
17794
17795 CFLAGS="$xorg_testset_save_CFLAGS"
17796
17797 eval supported=\$$cacheid
17798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17799 printf "%s\n" "$supported" >&6; }
17800 if test "$supported" = "yes" ; then
17801 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17802 found="yes"
17803 fi
17804 fi
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820 xorg_testset_save_CFLAGS="$CFLAGS"
17821
17822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17826 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17827 then :
17828 printf %s "(cached) " >&6
17829 else $as_nop
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832 int i;
17833 _ACEOF
17834 if ac_fn_c_try_compile "$LINENO"
17835 then :
17836 xorg_cv_cc_flag_unknown_warning_option=yes
17837 else $as_nop
17838 xorg_cv_cc_flag_unknown_warning_option=no
17839 fi
17840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17841 fi
17842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17843 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17845 CFLAGS="$xorg_testset_save_CFLAGS"
17846 fi
17847
17848 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17851 fi
17852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17854 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17855 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17856 then :
17857 printf %s "(cached) " >&6
17858 else $as_nop
17859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17860 /* end confdefs.h. */
17861 int i;
17862 _ACEOF
17863 if ac_fn_c_try_compile "$LINENO"
17864 then :
17865 xorg_cv_cc_flag_unused_command_line_argument=yes
17866 else $as_nop
17867 xorg_cv_cc_flag_unused_command_line_argument=no
17868 fi
17869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17870 fi
17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17872 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17874 CFLAGS="$xorg_testset_save_CFLAGS"
17875 fi
17876
17877 found="no"
17878
17879 if test $found = "no" ; then
17880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17882 fi
17883
17884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17886 fi
17887
17888 CFLAGS="$CFLAGS -Wnonnull"
17889
17890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17891 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17892 cacheid=xorg_cv_cc_flag__Wnonnull
17893 if eval test \${$cacheid+y}
17894 then :
17895 printf %s "(cached) " >&6
17896 else $as_nop
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17899 int i;
17900 int
17901 main (void)
17902 {
17903
17904 ;
17905 return 0;
17906 }
17907 _ACEOF
17908 if ac_fn_c_try_link "$LINENO"
17909 then :
17910 eval $cacheid=yes
17911 else $as_nop
17912 eval $cacheid=no
17913 fi
17914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17915 conftest$ac_exeext conftest.$ac_ext
17916 fi
17917
17918
17919 CFLAGS="$xorg_testset_save_CFLAGS"
17920
17921 eval supported=\$$cacheid
17922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17923 printf "%s\n" "$supported" >&6; }
17924 if test "$supported" = "yes" ; then
17925 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17926 found="yes"
17927 fi
17928 fi
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944 xorg_testset_save_CFLAGS="$CFLAGS"
17945
17946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17950 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17951 then :
17952 printf %s "(cached) " >&6
17953 else $as_nop
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17956 int i;
17957 _ACEOF
17958 if ac_fn_c_try_compile "$LINENO"
17959 then :
17960 xorg_cv_cc_flag_unknown_warning_option=yes
17961 else $as_nop
17962 xorg_cv_cc_flag_unknown_warning_option=no
17963 fi
17964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17965 fi
17966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17969 CFLAGS="$xorg_testset_save_CFLAGS"
17970 fi
17971
17972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17975 fi
17976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17980 then :
17981 printf %s "(cached) " >&6
17982 else $as_nop
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17985 int i;
17986 _ACEOF
17987 if ac_fn_c_try_compile "$LINENO"
17988 then :
17989 xorg_cv_cc_flag_unused_command_line_argument=yes
17990 else $as_nop
17991 xorg_cv_cc_flag_unused_command_line_argument=no
17992 fi
17993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17994 fi
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17996 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17998 CFLAGS="$xorg_testset_save_CFLAGS"
17999 fi
18000
18001 found="no"
18002
18003 if test $found = "no" ; then
18004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18006 fi
18007
18008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18010 fi
18011
18012 CFLAGS="$CFLAGS -Winit-self"
18013
18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18015 printf %s "checking if $CC supports -Winit-self... " >&6; }
18016 cacheid=xorg_cv_cc_flag__Winit_self
18017 if eval test \${$cacheid+y}
18018 then :
18019 printf %s "(cached) " >&6
18020 else $as_nop
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022 /* end confdefs.h. */
18023 int i;
18024 int
18025 main (void)
18026 {
18027
18028 ;
18029 return 0;
18030 }
18031 _ACEOF
18032 if ac_fn_c_try_link "$LINENO"
18033 then :
18034 eval $cacheid=yes
18035 else $as_nop
18036 eval $cacheid=no
18037 fi
18038 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18039 conftest$ac_exeext conftest.$ac_ext
18040 fi
18041
18042
18043 CFLAGS="$xorg_testset_save_CFLAGS"
18044
18045 eval supported=\$$cacheid
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18047 printf "%s\n" "$supported" >&6; }
18048 if test "$supported" = "yes" ; then
18049 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18050 found="yes"
18051 fi
18052 fi
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068 xorg_testset_save_CFLAGS="$CFLAGS"
18069
18070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18075 then :
18076 printf %s "(cached) " >&6
18077 else $as_nop
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18080 int i;
18081 _ACEOF
18082 if ac_fn_c_try_compile "$LINENO"
18083 then :
18084 xorg_cv_cc_flag_unknown_warning_option=yes
18085 else $as_nop
18086 xorg_cv_cc_flag_unknown_warning_option=no
18087 fi
18088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18089 fi
18090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18093 CFLAGS="$xorg_testset_save_CFLAGS"
18094 fi
18095
18096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18099 fi
18100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18104 then :
18105 printf %s "(cached) " >&6
18106 else $as_nop
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109 int i;
18110 _ACEOF
18111 if ac_fn_c_try_compile "$LINENO"
18112 then :
18113 xorg_cv_cc_flag_unused_command_line_argument=yes
18114 else $as_nop
18115 xorg_cv_cc_flag_unused_command_line_argument=no
18116 fi
18117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18118 fi
18119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18120 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18122 CFLAGS="$xorg_testset_save_CFLAGS"
18123 fi
18124
18125 found="no"
18126
18127 if test $found = "no" ; then
18128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18130 fi
18131
18132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18134 fi
18135
18136 CFLAGS="$CFLAGS -Wmain"
18137
18138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18139 printf %s "checking if $CC supports -Wmain... " >&6; }
18140 cacheid=xorg_cv_cc_flag__Wmain
18141 if eval test \${$cacheid+y}
18142 then :
18143 printf %s "(cached) " >&6
18144 else $as_nop
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18147 int i;
18148 int
18149 main (void)
18150 {
18151
18152 ;
18153 return 0;
18154 }
18155 _ACEOF
18156 if ac_fn_c_try_link "$LINENO"
18157 then :
18158 eval $cacheid=yes
18159 else $as_nop
18160 eval $cacheid=no
18161 fi
18162 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18163 conftest$ac_exeext conftest.$ac_ext
18164 fi
18165
18166
18167 CFLAGS="$xorg_testset_save_CFLAGS"
18168
18169 eval supported=\$$cacheid
18170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18171 printf "%s\n" "$supported" >&6; }
18172 if test "$supported" = "yes" ; then
18173 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18174 found="yes"
18175 fi
18176 fi
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192 xorg_testset_save_CFLAGS="$CFLAGS"
18193
18194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18198 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18199 then :
18200 printf %s "(cached) " >&6
18201 else $as_nop
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18204 int i;
18205 _ACEOF
18206 if ac_fn_c_try_compile "$LINENO"
18207 then :
18208 xorg_cv_cc_flag_unknown_warning_option=yes
18209 else $as_nop
18210 xorg_cv_cc_flag_unknown_warning_option=no
18211 fi
18212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18213 fi
18214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18217 CFLAGS="$xorg_testset_save_CFLAGS"
18218 fi
18219
18220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18223 fi
18224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18228 then :
18229 printf %s "(cached) " >&6
18230 else $as_nop
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18233 int i;
18234 _ACEOF
18235 if ac_fn_c_try_compile "$LINENO"
18236 then :
18237 xorg_cv_cc_flag_unused_command_line_argument=yes
18238 else $as_nop
18239 xorg_cv_cc_flag_unused_command_line_argument=no
18240 fi
18241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18242 fi
18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18246 CFLAGS="$xorg_testset_save_CFLAGS"
18247 fi
18248
18249 found="no"
18250
18251 if test $found = "no" ; then
18252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18254 fi
18255
18256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18258 fi
18259
18260 CFLAGS="$CFLAGS -Wmissing-braces"
18261
18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18263 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18264 cacheid=xorg_cv_cc_flag__Wmissing_braces
18265 if eval test \${$cacheid+y}
18266 then :
18267 printf %s "(cached) " >&6
18268 else $as_nop
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18271 int i;
18272 int
18273 main (void)
18274 {
18275
18276 ;
18277 return 0;
18278 }
18279 _ACEOF
18280 if ac_fn_c_try_link "$LINENO"
18281 then :
18282 eval $cacheid=yes
18283 else $as_nop
18284 eval $cacheid=no
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18287 conftest$ac_exeext conftest.$ac_ext
18288 fi
18289
18290
18291 CFLAGS="$xorg_testset_save_CFLAGS"
18292
18293 eval supported=\$$cacheid
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18295 printf "%s\n" "$supported" >&6; }
18296 if test "$supported" = "yes" ; then
18297 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18298 found="yes"
18299 fi
18300 fi
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316 xorg_testset_save_CFLAGS="$CFLAGS"
18317
18318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18323 then :
18324 printf %s "(cached) " >&6
18325 else $as_nop
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18328 int i;
18329 _ACEOF
18330 if ac_fn_c_try_compile "$LINENO"
18331 then :
18332 xorg_cv_cc_flag_unknown_warning_option=yes
18333 else $as_nop
18334 xorg_cv_cc_flag_unknown_warning_option=no
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18337 fi
18338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18339 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18341 CFLAGS="$xorg_testset_save_CFLAGS"
18342 fi
18343
18344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18347 fi
18348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18350 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18351 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18352 then :
18353 printf %s "(cached) " >&6
18354 else $as_nop
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18357 int i;
18358 _ACEOF
18359 if ac_fn_c_try_compile "$LINENO"
18360 then :
18361 xorg_cv_cc_flag_unused_command_line_argument=yes
18362 else $as_nop
18363 xorg_cv_cc_flag_unused_command_line_argument=no
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18366 fi
18367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18370 CFLAGS="$xorg_testset_save_CFLAGS"
18371 fi
18372
18373 found="no"
18374
18375 if test $found = "no" ; then
18376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18378 fi
18379
18380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18382 fi
18383
18384 CFLAGS="$CFLAGS -Wsequence-point"
18385
18386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18387 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18388 cacheid=xorg_cv_cc_flag__Wsequence_point
18389 if eval test \${$cacheid+y}
18390 then :
18391 printf %s "(cached) " >&6
18392 else $as_nop
18393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18395 int i;
18396 int
18397 main (void)
18398 {
18399
18400 ;
18401 return 0;
18402 }
18403 _ACEOF
18404 if ac_fn_c_try_link "$LINENO"
18405 then :
18406 eval $cacheid=yes
18407 else $as_nop
18408 eval $cacheid=no
18409 fi
18410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18411 conftest$ac_exeext conftest.$ac_ext
18412 fi
18413
18414
18415 CFLAGS="$xorg_testset_save_CFLAGS"
18416
18417 eval supported=\$$cacheid
18418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18419 printf "%s\n" "$supported" >&6; }
18420 if test "$supported" = "yes" ; then
18421 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18422 found="yes"
18423 fi
18424 fi
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440 xorg_testset_save_CFLAGS="$CFLAGS"
18441
18442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18447 then :
18448 printf %s "(cached) " >&6
18449 else $as_nop
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452 int i;
18453 _ACEOF
18454 if ac_fn_c_try_compile "$LINENO"
18455 then :
18456 xorg_cv_cc_flag_unknown_warning_option=yes
18457 else $as_nop
18458 xorg_cv_cc_flag_unknown_warning_option=no
18459 fi
18460 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18461 fi
18462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18463 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18465 CFLAGS="$xorg_testset_save_CFLAGS"
18466 fi
18467
18468 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18471 fi
18472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18474 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18475 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18476 then :
18477 printf %s "(cached) " >&6
18478 else $as_nop
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18481 int i;
18482 _ACEOF
18483 if ac_fn_c_try_compile "$LINENO"
18484 then :
18485 xorg_cv_cc_flag_unused_command_line_argument=yes
18486 else $as_nop
18487 xorg_cv_cc_flag_unused_command_line_argument=no
18488 fi
18489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18490 fi
18491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18492 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18494 CFLAGS="$xorg_testset_save_CFLAGS"
18495 fi
18496
18497 found="no"
18498
18499 if test $found = "no" ; then
18500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18502 fi
18503
18504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18506 fi
18507
18508 CFLAGS="$CFLAGS -Wreturn-type"
18509
18510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18511 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18512 cacheid=xorg_cv_cc_flag__Wreturn_type
18513 if eval test \${$cacheid+y}
18514 then :
18515 printf %s "(cached) " >&6
18516 else $as_nop
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 int i;
18520 int
18521 main (void)
18522 {
18523
18524 ;
18525 return 0;
18526 }
18527 _ACEOF
18528 if ac_fn_c_try_link "$LINENO"
18529 then :
18530 eval $cacheid=yes
18531 else $as_nop
18532 eval $cacheid=no
18533 fi
18534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18535 conftest$ac_exeext conftest.$ac_ext
18536 fi
18537
18538
18539 CFLAGS="$xorg_testset_save_CFLAGS"
18540
18541 eval supported=\$$cacheid
18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18543 printf "%s\n" "$supported" >&6; }
18544 if test "$supported" = "yes" ; then
18545 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18546 found="yes"
18547 fi
18548 fi
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564 xorg_testset_save_CFLAGS="$CFLAGS"
18565
18566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18571 then :
18572 printf %s "(cached) " >&6
18573 else $as_nop
18574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575 /* end confdefs.h. */
18576 int i;
18577 _ACEOF
18578 if ac_fn_c_try_compile "$LINENO"
18579 then :
18580 xorg_cv_cc_flag_unknown_warning_option=yes
18581 else $as_nop
18582 xorg_cv_cc_flag_unknown_warning_option=no
18583 fi
18584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18585 fi
18586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18589 CFLAGS="$xorg_testset_save_CFLAGS"
18590 fi
18591
18592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18595 fi
18596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18600 then :
18601 printf %s "(cached) " >&6
18602 else $as_nop
18603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18604 /* end confdefs.h. */
18605 int i;
18606 _ACEOF
18607 if ac_fn_c_try_compile "$LINENO"
18608 then :
18609 xorg_cv_cc_flag_unused_command_line_argument=yes
18610 else $as_nop
18611 xorg_cv_cc_flag_unused_command_line_argument=no
18612 fi
18613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18614 fi
18615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18618 CFLAGS="$xorg_testset_save_CFLAGS"
18619 fi
18620
18621 found="no"
18622
18623 if test $found = "no" ; then
18624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18626 fi
18627
18628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18630 fi
18631
18632 CFLAGS="$CFLAGS -Wtrigraphs"
18633
18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18635 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18636 cacheid=xorg_cv_cc_flag__Wtrigraphs
18637 if eval test \${$cacheid+y}
18638 then :
18639 printf %s "(cached) " >&6
18640 else $as_nop
18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18642 /* end confdefs.h. */
18643 int i;
18644 int
18645 main (void)
18646 {
18647
18648 ;
18649 return 0;
18650 }
18651 _ACEOF
18652 if ac_fn_c_try_link "$LINENO"
18653 then :
18654 eval $cacheid=yes
18655 else $as_nop
18656 eval $cacheid=no
18657 fi
18658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18659 conftest$ac_exeext conftest.$ac_ext
18660 fi
18661
18662
18663 CFLAGS="$xorg_testset_save_CFLAGS"
18664
18665 eval supported=\$$cacheid
18666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18667 printf "%s\n" "$supported" >&6; }
18668 if test "$supported" = "yes" ; then
18669 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18670 found="yes"
18671 fi
18672 fi
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688 xorg_testset_save_CFLAGS="$CFLAGS"
18689
18690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18693 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18694 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18695 then :
18696 printf %s "(cached) " >&6
18697 else $as_nop
18698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18699 /* end confdefs.h. */
18700 int i;
18701 _ACEOF
18702 if ac_fn_c_try_compile "$LINENO"
18703 then :
18704 xorg_cv_cc_flag_unknown_warning_option=yes
18705 else $as_nop
18706 xorg_cv_cc_flag_unknown_warning_option=no
18707 fi
18708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18709 fi
18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18711 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18713 CFLAGS="$xorg_testset_save_CFLAGS"
18714 fi
18715
18716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18719 fi
18720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18722 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18723 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18724 then :
18725 printf %s "(cached) " >&6
18726 else $as_nop
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18729 int i;
18730 _ACEOF
18731 if ac_fn_c_try_compile "$LINENO"
18732 then :
18733 xorg_cv_cc_flag_unused_command_line_argument=yes
18734 else $as_nop
18735 xorg_cv_cc_flag_unused_command_line_argument=no
18736 fi
18737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18738 fi
18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18742 CFLAGS="$xorg_testset_save_CFLAGS"
18743 fi
18744
18745 found="no"
18746
18747 if test $found = "no" ; then
18748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18750 fi
18751
18752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18754 fi
18755
18756 CFLAGS="$CFLAGS -Warray-bounds"
18757
18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18759 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18760 cacheid=xorg_cv_cc_flag__Warray_bounds
18761 if eval test \${$cacheid+y}
18762 then :
18763 printf %s "(cached) " >&6
18764 else $as_nop
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18767 int i;
18768 int
18769 main (void)
18770 {
18771
18772 ;
18773 return 0;
18774 }
18775 _ACEOF
18776 if ac_fn_c_try_link "$LINENO"
18777 then :
18778 eval $cacheid=yes
18779 else $as_nop
18780 eval $cacheid=no
18781 fi
18782 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18783 conftest$ac_exeext conftest.$ac_ext
18784 fi
18785
18786
18787 CFLAGS="$xorg_testset_save_CFLAGS"
18788
18789 eval supported=\$$cacheid
18790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18791 printf "%s\n" "$supported" >&6; }
18792 if test "$supported" = "yes" ; then
18793 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18794 found="yes"
18795 fi
18796 fi
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812 xorg_testset_save_CFLAGS="$CFLAGS"
18813
18814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18818 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18819 then :
18820 printf %s "(cached) " >&6
18821 else $as_nop
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18824 int i;
18825 _ACEOF
18826 if ac_fn_c_try_compile "$LINENO"
18827 then :
18828 xorg_cv_cc_flag_unknown_warning_option=yes
18829 else $as_nop
18830 xorg_cv_cc_flag_unknown_warning_option=no
18831 fi
18832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18833 fi
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18837 CFLAGS="$xorg_testset_save_CFLAGS"
18838 fi
18839
18840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18843 fi
18844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18848 then :
18849 printf %s "(cached) " >&6
18850 else $as_nop
18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18853 int i;
18854 _ACEOF
18855 if ac_fn_c_try_compile "$LINENO"
18856 then :
18857 xorg_cv_cc_flag_unused_command_line_argument=yes
18858 else $as_nop
18859 xorg_cv_cc_flag_unused_command_line_argument=no
18860 fi
18861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18862 fi
18863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18866 CFLAGS="$xorg_testset_save_CFLAGS"
18867 fi
18868
18869 found="no"
18870
18871 if test $found = "no" ; then
18872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18874 fi
18875
18876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18878 fi
18879
18880 CFLAGS="$CFLAGS -Wwrite-strings"
18881
18882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18883 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18884 cacheid=xorg_cv_cc_flag__Wwrite_strings
18885 if eval test \${$cacheid+y}
18886 then :
18887 printf %s "(cached) " >&6
18888 else $as_nop
18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h. */
18891 int i;
18892 int
18893 main (void)
18894 {
18895
18896 ;
18897 return 0;
18898 }
18899 _ACEOF
18900 if ac_fn_c_try_link "$LINENO"
18901 then :
18902 eval $cacheid=yes
18903 else $as_nop
18904 eval $cacheid=no
18905 fi
18906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18907 conftest$ac_exeext conftest.$ac_ext
18908 fi
18909
18910
18911 CFLAGS="$xorg_testset_save_CFLAGS"
18912
18913 eval supported=\$$cacheid
18914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18915 printf "%s\n" "$supported" >&6; }
18916 if test "$supported" = "yes" ; then
18917 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18918 found="yes"
18919 fi
18920 fi
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936 xorg_testset_save_CFLAGS="$CFLAGS"
18937
18938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18943 then :
18944 printf %s "(cached) " >&6
18945 else $as_nop
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18948 int i;
18949 _ACEOF
18950 if ac_fn_c_try_compile "$LINENO"
18951 then :
18952 xorg_cv_cc_flag_unknown_warning_option=yes
18953 else $as_nop
18954 xorg_cv_cc_flag_unknown_warning_option=no
18955 fi
18956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18957 fi
18958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18961 CFLAGS="$xorg_testset_save_CFLAGS"
18962 fi
18963
18964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18967 fi
18968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18972 then :
18973 printf %s "(cached) " >&6
18974 else $as_nop
18975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18976 /* end confdefs.h. */
18977 int i;
18978 _ACEOF
18979 if ac_fn_c_try_compile "$LINENO"
18980 then :
18981 xorg_cv_cc_flag_unused_command_line_argument=yes
18982 else $as_nop
18983 xorg_cv_cc_flag_unused_command_line_argument=no
18984 fi
18985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18986 fi
18987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18988 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18990 CFLAGS="$xorg_testset_save_CFLAGS"
18991 fi
18992
18993 found="no"
18994
18995 if test $found = "no" ; then
18996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18998 fi
18999
19000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19002 fi
19003
19004 CFLAGS="$CFLAGS -Waddress"
19005
19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19007 printf %s "checking if $CC supports -Waddress... " >&6; }
19008 cacheid=xorg_cv_cc_flag__Waddress
19009 if eval test \${$cacheid+y}
19010 then :
19011 printf %s "(cached) " >&6
19012 else $as_nop
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h. */
19015 int i;
19016 int
19017 main (void)
19018 {
19019
19020 ;
19021 return 0;
19022 }
19023 _ACEOF
19024 if ac_fn_c_try_link "$LINENO"
19025 then :
19026 eval $cacheid=yes
19027 else $as_nop
19028 eval $cacheid=no
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19031 conftest$ac_exeext conftest.$ac_ext
19032 fi
19033
19034
19035 CFLAGS="$xorg_testset_save_CFLAGS"
19036
19037 eval supported=\$$cacheid
19038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19039 printf "%s\n" "$supported" >&6; }
19040 if test "$supported" = "yes" ; then
19041 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19042 found="yes"
19043 fi
19044 fi
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060 xorg_testset_save_CFLAGS="$CFLAGS"
19061
19062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19065 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19066 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19067 then :
19068 printf %s "(cached) " >&6
19069 else $as_nop
19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19071 /* end confdefs.h. */
19072 int i;
19073 _ACEOF
19074 if ac_fn_c_try_compile "$LINENO"
19075 then :
19076 xorg_cv_cc_flag_unknown_warning_option=yes
19077 else $as_nop
19078 xorg_cv_cc_flag_unknown_warning_option=no
19079 fi
19080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19081 fi
19082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19085 CFLAGS="$xorg_testset_save_CFLAGS"
19086 fi
19087
19088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19091 fi
19092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19096 then :
19097 printf %s "(cached) " >&6
19098 else $as_nop
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19101 int i;
19102 _ACEOF
19103 if ac_fn_c_try_compile "$LINENO"
19104 then :
19105 xorg_cv_cc_flag_unused_command_line_argument=yes
19106 else $as_nop
19107 xorg_cv_cc_flag_unused_command_line_argument=no
19108 fi
19109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19110 fi
19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19112 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19114 CFLAGS="$xorg_testset_save_CFLAGS"
19115 fi
19116
19117 found="no"
19118
19119 if test $found = "no" ; then
19120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19122 fi
19123
19124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19126 fi
19127
19128 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19129
19130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19131 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19132 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19133 if eval test \${$cacheid+y}
19134 then :
19135 printf %s "(cached) " >&6
19136 else $as_nop
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19139 int i;
19140 int
19141 main (void)
19142 {
19143
19144 ;
19145 return 0;
19146 }
19147 _ACEOF
19148 if ac_fn_c_try_link "$LINENO"
19149 then :
19150 eval $cacheid=yes
19151 else $as_nop
19152 eval $cacheid=no
19153 fi
19154 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19155 conftest$ac_exeext conftest.$ac_ext
19156 fi
19157
19158
19159 CFLAGS="$xorg_testset_save_CFLAGS"
19160
19161 eval supported=\$$cacheid
19162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19163 printf "%s\n" "$supported" >&6; }
19164 if test "$supported" = "yes" ; then
19165 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19166 found="yes"
19167 fi
19168 fi
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184 xorg_testset_save_CFLAGS="$CFLAGS"
19185
19186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19189 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19190 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19191 then :
19192 printf %s "(cached) " >&6
19193 else $as_nop
19194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19195 /* end confdefs.h. */
19196 int i;
19197 _ACEOF
19198 if ac_fn_c_try_compile "$LINENO"
19199 then :
19200 xorg_cv_cc_flag_unknown_warning_option=yes
19201 else $as_nop
19202 xorg_cv_cc_flag_unknown_warning_option=no
19203 fi
19204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19205 fi
19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19209 CFLAGS="$xorg_testset_save_CFLAGS"
19210 fi
19211
19212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19215 fi
19216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19220 then :
19221 printf %s "(cached) " >&6
19222 else $as_nop
19223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224 /* end confdefs.h. */
19225 int i;
19226 _ACEOF
19227 if ac_fn_c_try_compile "$LINENO"
19228 then :
19229 xorg_cv_cc_flag_unused_command_line_argument=yes
19230 else $as_nop
19231 xorg_cv_cc_flag_unused_command_line_argument=no
19232 fi
19233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19234 fi
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19238 CFLAGS="$xorg_testset_save_CFLAGS"
19239 fi
19240
19241 found="no"
19242
19243 if test $found = "no" ; then
19244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19246 fi
19247
19248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19250 fi
19251
19252 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19253
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19255 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19256 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19257 if eval test \${$cacheid+y}
19258 then :
19259 printf %s "(cached) " >&6
19260 else $as_nop
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19263 int i;
19264 int
19265 main (void)
19266 {
19267
19268 ;
19269 return 0;
19270 }
19271 _ACEOF
19272 if ac_fn_c_try_link "$LINENO"
19273 then :
19274 eval $cacheid=yes
19275 else $as_nop
19276 eval $cacheid=no
19277 fi
19278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19279 conftest$ac_exeext conftest.$ac_ext
19280 fi
19281
19282
19283 CFLAGS="$xorg_testset_save_CFLAGS"
19284
19285 eval supported=\$$cacheid
19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19287 printf "%s\n" "$supported" >&6; }
19288 if test "$supported" = "yes" ; then
19289 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19290 found="yes"
19291 fi
19292 fi
19293
19294
19295 fi
19296
19297
19298
19299
19300
19301
19302
19303 CWARNFLAGS="$BASE_CFLAGS"
19304 if test "x$GCC" = xyes ; then
19305 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19306 fi
19307
19308
19309
19310
19311
19312
19313
19314
19315 # Check whether --enable-strict-compilation was given.
19316 if test ${enable_strict_compilation+y}
19317 then :
19318 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19319 else $as_nop
19320 STRICT_COMPILE=no
19321 fi
19322
19323
19324
19325
19326
19327
19328 STRICT_CFLAGS=""
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342 xorg_testset_save_CFLAGS="$CFLAGS"
19343
19344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19348 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19349 then :
19350 printf %s "(cached) " >&6
19351 else $as_nop
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19354 int i;
19355 _ACEOF
19356 if ac_fn_c_try_compile "$LINENO"
19357 then :
19358 xorg_cv_cc_flag_unknown_warning_option=yes
19359 else $as_nop
19360 xorg_cv_cc_flag_unknown_warning_option=no
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19363 fi
19364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19367 CFLAGS="$xorg_testset_save_CFLAGS"
19368 fi
19369
19370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19373 fi
19374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19378 then :
19379 printf %s "(cached) " >&6
19380 else $as_nop
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382 /* end confdefs.h. */
19383 int i;
19384 _ACEOF
19385 if ac_fn_c_try_compile "$LINENO"
19386 then :
19387 xorg_cv_cc_flag_unused_command_line_argument=yes
19388 else $as_nop
19389 xorg_cv_cc_flag_unused_command_line_argument=no
19390 fi
19391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19392 fi
19393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19396 CFLAGS="$xorg_testset_save_CFLAGS"
19397 fi
19398
19399 found="no"
19400
19401 if test $found = "no" ; then
19402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19404 fi
19405
19406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19408 fi
19409
19410 CFLAGS="$CFLAGS -pedantic"
19411
19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19413 printf %s "checking if $CC supports -pedantic... " >&6; }
19414 cacheid=xorg_cv_cc_flag__pedantic
19415 if eval test \${$cacheid+y}
19416 then :
19417 printf %s "(cached) " >&6
19418 else $as_nop
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19421 int i;
19422 int
19423 main (void)
19424 {
19425
19426 ;
19427 return 0;
19428 }
19429 _ACEOF
19430 if ac_fn_c_try_link "$LINENO"
19431 then :
19432 eval $cacheid=yes
19433 else $as_nop
19434 eval $cacheid=no
19435 fi
19436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19437 conftest$ac_exeext conftest.$ac_ext
19438 fi
19439
19440
19441 CFLAGS="$xorg_testset_save_CFLAGS"
19442
19443 eval supported=\$$cacheid
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19445 printf "%s\n" "$supported" >&6; }
19446 if test "$supported" = "yes" ; then
19447 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19448 found="yes"
19449 fi
19450 fi
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466 xorg_testset_save_CFLAGS="$CFLAGS"
19467
19468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19472 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19473 then :
19474 printf %s "(cached) " >&6
19475 else $as_nop
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19478 int i;
19479 _ACEOF
19480 if ac_fn_c_try_compile "$LINENO"
19481 then :
19482 xorg_cv_cc_flag_unknown_warning_option=yes
19483 else $as_nop
19484 xorg_cv_cc_flag_unknown_warning_option=no
19485 fi
19486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19487 fi
19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19491 CFLAGS="$xorg_testset_save_CFLAGS"
19492 fi
19493
19494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19497 fi
19498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19502 then :
19503 printf %s "(cached) " >&6
19504 else $as_nop
19505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19506 /* end confdefs.h. */
19507 int i;
19508 _ACEOF
19509 if ac_fn_c_try_compile "$LINENO"
19510 then :
19511 xorg_cv_cc_flag_unused_command_line_argument=yes
19512 else $as_nop
19513 xorg_cv_cc_flag_unused_command_line_argument=no
19514 fi
19515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19516 fi
19517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19520 CFLAGS="$xorg_testset_save_CFLAGS"
19521 fi
19522
19523 found="no"
19524
19525 if test $found = "no" ; then
19526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19528 fi
19529
19530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19532 fi
19533
19534 CFLAGS="$CFLAGS -Werror"
19535
19536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19537 printf %s "checking if $CC supports -Werror... " >&6; }
19538 cacheid=xorg_cv_cc_flag__Werror
19539 if eval test \${$cacheid+y}
19540 then :
19541 printf %s "(cached) " >&6
19542 else $as_nop
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19545 int i;
19546 int
19547 main (void)
19548 {
19549
19550 ;
19551 return 0;
19552 }
19553 _ACEOF
19554 if ac_fn_c_try_link "$LINENO"
19555 then :
19556 eval $cacheid=yes
19557 else $as_nop
19558 eval $cacheid=no
19559 fi
19560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19561 conftest$ac_exeext conftest.$ac_ext
19562 fi
19563
19564
19565 CFLAGS="$xorg_testset_save_CFLAGS"
19566
19567 eval supported=\$$cacheid
19568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19569 printf "%s\n" "$supported" >&6; }
19570 if test "$supported" = "yes" ; then
19571 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19572 found="yes"
19573 fi
19574 fi
19575
19576 if test $found = "no" ; then
19577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19579 fi
19580
19581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19583 fi
19584
19585 CFLAGS="$CFLAGS -errwarn"
19586
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19588 printf %s "checking if $CC supports -errwarn... " >&6; }
19589 cacheid=xorg_cv_cc_flag__errwarn
19590 if eval test \${$cacheid+y}
19591 then :
19592 printf %s "(cached) " >&6
19593 else $as_nop
19594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h. */
19596 int i;
19597 int
19598 main (void)
19599 {
19600
19601 ;
19602 return 0;
19603 }
19604 _ACEOF
19605 if ac_fn_c_try_link "$LINENO"
19606 then :
19607 eval $cacheid=yes
19608 else $as_nop
19609 eval $cacheid=no
19610 fi
19611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19612 conftest$ac_exeext conftest.$ac_ext
19613 fi
19614
19615
19616 CFLAGS="$xorg_testset_save_CFLAGS"
19617
19618 eval supported=\$$cacheid
19619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19620 printf "%s\n" "$supported" >&6; }
19621 if test "$supported" = "yes" ; then
19622 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19623 found="yes"
19624 fi
19625 fi
19626
19627
19628
19629 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19630 # activate it with -Werror, so we add it here explicitly.
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644 xorg_testset_save_CFLAGS="$CFLAGS"
19645
19646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19650 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19651 then :
19652 printf %s "(cached) " >&6
19653 else $as_nop
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19656 int i;
19657 _ACEOF
19658 if ac_fn_c_try_compile "$LINENO"
19659 then :
19660 xorg_cv_cc_flag_unknown_warning_option=yes
19661 else $as_nop
19662 xorg_cv_cc_flag_unknown_warning_option=no
19663 fi
19664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19665 fi
19666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19667 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19669 CFLAGS="$xorg_testset_save_CFLAGS"
19670 fi
19671
19672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19675 fi
19676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19678 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19679 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19680 then :
19681 printf %s "(cached) " >&6
19682 else $as_nop
19683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19684 /* end confdefs.h. */
19685 int i;
19686 _ACEOF
19687 if ac_fn_c_try_compile "$LINENO"
19688 then :
19689 xorg_cv_cc_flag_unused_command_line_argument=yes
19690 else $as_nop
19691 xorg_cv_cc_flag_unused_command_line_argument=no
19692 fi
19693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19694 fi
19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19696 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19698 CFLAGS="$xorg_testset_save_CFLAGS"
19699 fi
19700
19701 found="no"
19702
19703 if test $found = "no" ; then
19704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19706 fi
19707
19708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19710 fi
19711
19712 CFLAGS="$CFLAGS -Werror=attributes"
19713
19714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19715 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19716 cacheid=xorg_cv_cc_flag__Werror_attributes
19717 if eval test \${$cacheid+y}
19718 then :
19719 printf %s "(cached) " >&6
19720 else $as_nop
19721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h. */
19723 int i;
19724 int
19725 main (void)
19726 {
19727
19728 ;
19729 return 0;
19730 }
19731 _ACEOF
19732 if ac_fn_c_try_link "$LINENO"
19733 then :
19734 eval $cacheid=yes
19735 else $as_nop
19736 eval $cacheid=no
19737 fi
19738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19739 conftest$ac_exeext conftest.$ac_ext
19740 fi
19741
19742
19743 CFLAGS="$xorg_testset_save_CFLAGS"
19744
19745 eval supported=\$$cacheid
19746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19747 printf "%s\n" "$supported" >&6; }
19748 if test "$supported" = "yes" ; then
19749 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19750 found="yes"
19751 fi
19752 fi
19753
19754
19755
19756 if test "x$STRICT_COMPILE" = "xyes"; then
19757 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19758 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19759 fi
19760
19761
19762
19763
19764
19765
19766 cat >>confdefs.h <<_ACEOF
19767 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19768 _ACEOF
19769
19770 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19771 if test "x$PVM" = "x"; then
19772 PVM="0"
19773 fi
19774
19775 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19776
19777 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19778 if test "x$PVP" = "x"; then
19779 PVP="0"
19780 fi
19781
19782 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19783
19784
19785
19786 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19787 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19788 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19789 touch \$(top_srcdir)/ChangeLog; \
19790 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19791
19792
19793
19794
19795 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19796 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19797 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19798 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19799 touch \$(top_srcdir)/INSTALL; \
19800 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19801
19802
19803
19804
19805
19806
19807 case $host_os in
19808 solaris*)
19809 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19810 # check for a man page file found in later versions that use
19811 # traditional section numbers instead
19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19813 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19814 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19815 then :
19816 printf %s "(cached) " >&6
19817 else $as_nop
19818 test "$cross_compiling" = yes &&
19819 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19820 if test -r "/usr/share/man/man7/attributes.7"; then
19821 ac_cv_file__usr_share_man_man7_attributes_7=yes
19822 else
19823 ac_cv_file__usr_share_man_man7_attributes_7=no
19824 fi
19825 fi
19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19827 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19828 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19829 then :
19830 SYSV_MAN_SECTIONS=false
19831 else $as_nop
19832 SYSV_MAN_SECTIONS=true
19833 fi
19834
19835 ;;
19836 *) SYSV_MAN_SECTIONS=false ;;
19837 esac
19838
19839 if test x$APP_MAN_SUFFIX = x ; then
19840 APP_MAN_SUFFIX=1
19841 fi
19842 if test x$APP_MAN_DIR = x ; then
19843 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19844 fi
19845
19846 if test x$LIB_MAN_SUFFIX = x ; then
19847 LIB_MAN_SUFFIX=3
19848 fi
19849 if test x$LIB_MAN_DIR = x ; then
19850 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19851 fi
19852
19853 if test x$FILE_MAN_SUFFIX = x ; then
19854 case $SYSV_MAN_SECTIONS in
19855 true) FILE_MAN_SUFFIX=4 ;;
19856 *) FILE_MAN_SUFFIX=5 ;;
19857 esac
19858 fi
19859 if test x$FILE_MAN_DIR = x ; then
19860 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19861 fi
19862
19863 if test x$MISC_MAN_SUFFIX = x ; then
19864 case $SYSV_MAN_SECTIONS in
19865 true) MISC_MAN_SUFFIX=5 ;;
19866 *) MISC_MAN_SUFFIX=7 ;;
19867 esac
19868 fi
19869 if test x$MISC_MAN_DIR = x ; then
19870 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19871 fi
19872
19873 if test x$DRIVER_MAN_SUFFIX = x ; then
19874 case $SYSV_MAN_SECTIONS in
19875 true) DRIVER_MAN_SUFFIX=7 ;;
19876 *) DRIVER_MAN_SUFFIX=4 ;;
19877 esac
19878 fi
19879 if test x$DRIVER_MAN_DIR = x ; then
19880 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19881 fi
19882
19883 if test x$ADMIN_MAN_SUFFIX = x ; then
19884 case $SYSV_MAN_SECTIONS in
19885 true) ADMIN_MAN_SUFFIX=1m ;;
19886 *) ADMIN_MAN_SUFFIX=8 ;;
19887 esac
19888 fi
19889 if test x$ADMIN_MAN_DIR = x ; then
19890 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19891 fi
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907 XORG_MAN_PAGE="X Version 11"
19908
19909 MAN_SUBSTS="\
19910 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19911 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19912 -e 's|__xservername__|Xorg|g' \
19913 -e 's|__xconfigfile__|xorg.conf|g' \
19914 -e 's|__projectroot__|\$(prefix)|g' \
19915 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19916 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19917 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19918 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19919 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19920 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19921 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19922
19923
19924
19925 # Check whether --enable-silent-rules was given.
19926 if test ${enable_silent_rules+y}
19927 then :
19928 enableval=$enable_silent_rules;
19929 fi
19930
19931 case $enable_silent_rules in # (((
19932 yes) AM_DEFAULT_VERBOSITY=0;;
19933 no) AM_DEFAULT_VERBOSITY=1;;
19934 *) AM_DEFAULT_VERBOSITY=0;;
19935 esac
19936 am_make=${MAKE-make}
19937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19938 printf %s "checking whether $am_make supports nested variables... " >&6; }
19939 if test ${am_cv_make_support_nested_variables+y}
19940 then :
19941 printf %s "(cached) " >&6
19942 else $as_nop
19943 if printf "%s\n" 'TRUE=$(BAR$(V))
19944 BAR0=false
19945 BAR1=true
19946 V=1
19947 am__doit:
19948 @$(TRUE)
19949 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19950 am_cv_make_support_nested_variables=yes
19951 else
19952 am_cv_make_support_nested_variables=no
19953 fi
19954 fi
19955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19956 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19957 if test $am_cv_make_support_nested_variables = yes; then
19958 AM_V='$(V)'
19959 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19960 else
19961 AM_V=$AM_DEFAULT_VERBOSITY
19962 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19963 fi
19964 AM_BACKSLASH='\'
19965
19966
19967
19968
19969 # Check whether --enable-specs was given.
19970 if test ${enable_specs+y}
19971 then :
19972 enableval=$enable_specs; build_specs=$enableval
19973 else $as_nop
19974 build_specs=yes
19975 fi
19976
19977
19978 if test x$build_specs = xyes; then
19979 ENABLE_SPECS_TRUE=
19980 ENABLE_SPECS_FALSE='#'
19981 else
19982 ENABLE_SPECS_TRUE='#'
19983 ENABLE_SPECS_FALSE=
19984 fi
19985
19986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19987 printf %s "checking whether to build functional specifications... " >&6; }
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19989 printf "%s\n" "$build_specs" >&6; }
19990
19991
19992
19993
19994
19995 # Check whether --with-xmlto was given.
19996 if test ${with_xmlto+y}
19997 then :
19998 withval=$with_xmlto; use_xmlto=$withval
19999 else $as_nop
20000 use_xmlto=auto
20001 fi
20002
20003
20004
20005 if test "x$use_xmlto" = x"auto"; then
20006 # Extract the first word of "xmlto", so it can be a program name with args.
20007 set dummy xmlto; ac_word=$2
20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20009 printf %s "checking for $ac_word... " >&6; }
20010 if test ${ac_cv_path_XMLTO+y}
20011 then :
20012 printf %s "(cached) " >&6
20013 else $as_nop
20014 case $XMLTO in
20015 [\\/]* | ?:[\\/]*)
20016 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20017 ;;
20018 *)
20019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20020 for as_dir in $PATH
20021 do
20022 IFS=$as_save_IFS
20023 case $as_dir in #(((
20024 '') as_dir=./ ;;
20025 */) ;;
20026 *) as_dir=$as_dir/ ;;
20027 esac
20028 for ac_exec_ext in '' $ac_executable_extensions; do
20029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20030 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20032 break 2
20033 fi
20034 done
20035 done
20036 IFS=$as_save_IFS
20037
20038 ;;
20039 esac
20040 fi
20041 XMLTO=$ac_cv_path_XMLTO
20042 if test -n "$XMLTO"; then
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20044 printf "%s\n" "$XMLTO" >&6; }
20045 else
20046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20047 printf "%s\n" "no" >&6; }
20048 fi
20049
20050
20051 if test "x$XMLTO" = "x"; then
20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20053 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20054 have_xmlto=no
20055 else
20056 have_xmlto=yes
20057 fi
20058 elif test "x$use_xmlto" = x"yes" ; then
20059 # Extract the first word of "xmlto", so it can be a program name with args.
20060 set dummy xmlto; ac_word=$2
20061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20062 printf %s "checking for $ac_word... " >&6; }
20063 if test ${ac_cv_path_XMLTO+y}
20064 then :
20065 printf %s "(cached) " >&6
20066 else $as_nop
20067 case $XMLTO in
20068 [\\/]* | ?:[\\/]*)
20069 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20070 ;;
20071 *)
20072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20073 for as_dir in $PATH
20074 do
20075 IFS=$as_save_IFS
20076 case $as_dir in #(((
20077 '') as_dir=./ ;;
20078 */) ;;
20079 *) as_dir=$as_dir/ ;;
20080 esac
20081 for ac_exec_ext in '' $ac_executable_extensions; do
20082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20083 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20085 break 2
20086 fi
20087 done
20088 done
20089 IFS=$as_save_IFS
20090
20091 ;;
20092 esac
20093 fi
20094 XMLTO=$ac_cv_path_XMLTO
20095 if test -n "$XMLTO"; then
20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20097 printf "%s\n" "$XMLTO" >&6; }
20098 else
20099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20100 printf "%s\n" "no" >&6; }
20101 fi
20102
20103
20104 if test "x$XMLTO" = "x"; then
20105 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20106 fi
20107 have_xmlto=yes
20108 elif test "x$use_xmlto" = x"no" ; then
20109 if test "x$XMLTO" != "x"; then
20110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20111 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20112 fi
20113 have_xmlto=no
20114 else
20115 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20116 fi
20117
20118 # Test for a minimum version of xmlto, if provided.
20119 if test "$have_xmlto" = yes; then
20120 # scrape the xmlto version
20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20122 printf %s "checking the xmlto version... " >&6; }
20123 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20125 printf "%s\n" "$xmlto_version" >&6; }
20126 as_arg_v1=$xmlto_version
20127 as_arg_v2=0.0.22
20128 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20129 case $? in #(
20130 1) :
20131 if test "x$use_xmlto" = xauto; then
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20133 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20134 have_xmlto=no
20135 else
20136 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20137 fi ;; #(
20138 0) :
20139 ;; #(
20140 2) :
20141 ;; #(
20142 *) :
20143 ;;
20144 esac
20145 fi
20146
20147 # Test for the ability of xmlto to generate a text target
20148 #
20149 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20150 # following test for empty XML docbook files.
20151 # For compatibility reasons use the following empty XML docbook file and if
20152 # it fails try it again with a non-empty XML file.
20153 have_xmlto_text=no
20154 cat > conftest.xml << "EOF"
20155 EOF
20156 if test "$have_xmlto" = yes
20157 then :
20158 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20159 then :
20160 have_xmlto_text=yes
20161 else $as_nop
20162 # Try it again with a non-empty XML file.
20163 cat > conftest.xml << "EOF"
20164 <x></x>
20165 EOF
20166 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20167 then :
20168 have_xmlto_text=yes
20169 else $as_nop
20170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20171 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
20172 fi
20173 fi
20174 fi
20175 rm -f conftest.xml
20176 if test $have_xmlto_text = yes; then
20177 HAVE_XMLTO_TEXT_TRUE=
20178 HAVE_XMLTO_TEXT_FALSE='#'
20179 else
20180 HAVE_XMLTO_TEXT_TRUE='#'
20181 HAVE_XMLTO_TEXT_FALSE=
20182 fi
20183
20184 if test "$have_xmlto" = yes; then
20185 HAVE_XMLTO_TRUE=
20186 HAVE_XMLTO_FALSE='#'
20187 else
20188 HAVE_XMLTO_TRUE='#'
20189 HAVE_XMLTO_FALSE=
20190 fi
20191
20192
20193
20194
20195
20196
20197 # Check whether --with-fop was given.
20198 if test ${with_fop+y}
20199 then :
20200 withval=$with_fop; use_fop=$withval
20201 else $as_nop
20202 use_fop=no
20203 fi
20204
20205
20206
20207 if test "x$use_fop" = x"auto"; then
20208 # Extract the first word of "fop", so it can be a program name with args.
20209 set dummy fop; ac_word=$2
20210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20211 printf %s "checking for $ac_word... " >&6; }
20212 if test ${ac_cv_path_FOP+y}
20213 then :
20214 printf %s "(cached) " >&6
20215 else $as_nop
20216 case $FOP in
20217 [\\/]* | ?:[\\/]*)
20218 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20219 ;;
20220 *)
20221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20222 for as_dir in $PATH
20223 do
20224 IFS=$as_save_IFS
20225 case $as_dir in #(((
20226 '') as_dir=./ ;;
20227 */) ;;
20228 *) as_dir=$as_dir/ ;;
20229 esac
20230 for ac_exec_ext in '' $ac_executable_extensions; do
20231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20232 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20234 break 2
20235 fi
20236 done
20237 done
20238 IFS=$as_save_IFS
20239
20240 ;;
20241 esac
20242 fi
20243 FOP=$ac_cv_path_FOP
20244 if test -n "$FOP"; then
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20246 printf "%s\n" "$FOP" >&6; }
20247 else
20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249 printf "%s\n" "no" >&6; }
20250 fi
20251
20252
20253 if test "x$FOP" = "x"; then
20254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20255 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20256 have_fop=no
20257 else
20258 have_fop=yes
20259 fi
20260 elif test "x$use_fop" = x"yes" ; then
20261 # Extract the first word of "fop", so it can be a program name with args.
20262 set dummy fop; ac_word=$2
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20264 printf %s "checking for $ac_word... " >&6; }
20265 if test ${ac_cv_path_FOP+y}
20266 then :
20267 printf %s "(cached) " >&6
20268 else $as_nop
20269 case $FOP in
20270 [\\/]* | ?:[\\/]*)
20271 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20272 ;;
20273 *)
20274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20275 for as_dir in $PATH
20276 do
20277 IFS=$as_save_IFS
20278 case $as_dir in #(((
20279 '') as_dir=./ ;;
20280 */) ;;
20281 *) as_dir=$as_dir/ ;;
20282 esac
20283 for ac_exec_ext in '' $ac_executable_extensions; do
20284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20285 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20287 break 2
20288 fi
20289 done
20290 done
20291 IFS=$as_save_IFS
20292
20293 ;;
20294 esac
20295 fi
20296 FOP=$ac_cv_path_FOP
20297 if test -n "$FOP"; then
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20299 printf "%s\n" "$FOP" >&6; }
20300 else
20301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302 printf "%s\n" "no" >&6; }
20303 fi
20304
20305
20306 if test "x$FOP" = "x"; then
20307 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20308 fi
20309 have_fop=yes
20310 elif test "x$use_fop" = x"no" ; then
20311 if test "x$FOP" != "x"; then
20312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20313 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20314 fi
20315 have_fop=no
20316 else
20317 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20318 fi
20319
20320 # Test for a minimum version of fop, if provided.
20321
20322 if test "$have_fop" = yes; then
20323 HAVE_FOP_TRUE=
20324 HAVE_FOP_FALSE='#'
20325 else
20326 HAVE_FOP_TRUE='#'
20327 HAVE_FOP_FALSE=
20328 fi
20329
20330
20331
20332
20333 # Preserves the interface, should it be implemented later
20334
20335
20336
20337 # Check whether --with-xsltproc was given.
20338 if test ${with_xsltproc+y}
20339 then :
20340 withval=$with_xsltproc; use_xsltproc=$withval
20341 else $as_nop
20342 use_xsltproc=auto
20343 fi
20344
20345
20346
20347 if test "x$use_xsltproc" = x"auto"; then
20348 # Extract the first word of "xsltproc", so it can be a program name with args.
20349 set dummy xsltproc; ac_word=$2
20350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20351 printf %s "checking for $ac_word... " >&6; }
20352 if test ${ac_cv_path_XSLTPROC+y}
20353 then :
20354 printf %s "(cached) " >&6
20355 else $as_nop
20356 case $XSLTPROC in
20357 [\\/]* | ?:[\\/]*)
20358 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20359 ;;
20360 *)
20361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20362 for as_dir in $PATH
20363 do
20364 IFS=$as_save_IFS
20365 case $as_dir in #(((
20366 '') as_dir=./ ;;
20367 */) ;;
20368 *) as_dir=$as_dir/ ;;
20369 esac
20370 for ac_exec_ext in '' $ac_executable_extensions; do
20371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20372 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20374 break 2
20375 fi
20376 done
20377 done
20378 IFS=$as_save_IFS
20379
20380 ;;
20381 esac
20382 fi
20383 XSLTPROC=$ac_cv_path_XSLTPROC
20384 if test -n "$XSLTPROC"; then
20385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20386 printf "%s\n" "$XSLTPROC" >&6; }
20387 else
20388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20389 printf "%s\n" "no" >&6; }
20390 fi
20391
20392
20393 if test "x$XSLTPROC" = "x"; then
20394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20395 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20396 have_xsltproc=no
20397 else
20398 have_xsltproc=yes
20399 fi
20400 elif test "x$use_xsltproc" = x"yes" ; then
20401 # Extract the first word of "xsltproc", so it can be a program name with args.
20402 set dummy xsltproc; ac_word=$2
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20404 printf %s "checking for $ac_word... " >&6; }
20405 if test ${ac_cv_path_XSLTPROC+y}
20406 then :
20407 printf %s "(cached) " >&6
20408 else $as_nop
20409 case $XSLTPROC in
20410 [\\/]* | ?:[\\/]*)
20411 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20412 ;;
20413 *)
20414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417 IFS=$as_save_IFS
20418 case $as_dir in #(((
20419 '') as_dir=./ ;;
20420 */) ;;
20421 *) as_dir=$as_dir/ ;;
20422 esac
20423 for ac_exec_ext in '' $ac_executable_extensions; do
20424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20425 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20427 break 2
20428 fi
20429 done
20430 done
20431 IFS=$as_save_IFS
20432
20433 ;;
20434 esac
20435 fi
20436 XSLTPROC=$ac_cv_path_XSLTPROC
20437 if test -n "$XSLTPROC"; then
20438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20439 printf "%s\n" "$XSLTPROC" >&6; }
20440 else
20441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20442 printf "%s\n" "no" >&6; }
20443 fi
20444
20445
20446 if test "x$XSLTPROC" = "x"; then
20447 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20448 fi
20449 have_xsltproc=yes
20450 elif test "x$use_xsltproc" = x"no" ; then
20451 if test "x$XSLTPROC" != "x"; then
20452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20453 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20454 fi
20455 have_xsltproc=no
20456 else
20457 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20458 fi
20459
20460 if test "$have_xsltproc" = yes; then
20461 HAVE_XSLTPROC_TRUE=
20462 HAVE_XSLTPROC_FALSE='#'
20463 else
20464 HAVE_XSLTPROC_TRUE='#'
20465 HAVE_XSLTPROC_FALSE=
20466 fi
20467
20468
20469
20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
20471 printf %s "checking for X.Org SGML entities >= 1.10... " >&6; }
20472 XORG_SGML_PATH=
20473 if test -n "$PKG_CONFIG" && \
20474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
20475 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
20476 ac_status=$?
20477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20478 test $ac_status = 0; }; then
20479 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20480 else
20481 :
20482
20483 fi
20484
20485 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20486 # the path and the name of the doc stylesheet
20487 if test "x$XORG_SGML_PATH" != "x" ; then
20488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20489 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20490 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20491 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20492 else
20493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20494 printf "%s\n" "no" >&6; }
20495 fi
20496
20497
20498
20499
20500 if test "x$XSL_STYLESHEET" != "x"; then
20501 HAVE_STYLESHEETS_TRUE=
20502 HAVE_STYLESHEETS_FALSE='#'
20503 else
20504 HAVE_STYLESHEETS_TRUE='#'
20505 HAVE_STYLESHEETS_FALSE=
20506 fi
20507
20508
20509 ac_ext=c
20510 ac_cpp='$CPP $CPPFLAGS'
20511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20515 printf %s "checking how to run the C preprocessor... " >&6; }
20516 # On Suns, sometimes $CPP names a directory.
20517 if test -n "$CPP" && test -d "$CPP"; then
20518 CPP=
20519 fi
20520 if test -z "$CPP"; then
20521 if test ${ac_cv_prog_CPP+y}
20522 then :
20523 printf %s "(cached) " >&6
20524 else $as_nop
20525 # Double quotes because $CC needs to be expanded
20526 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20527 do
20528 ac_preproc_ok=false
20529 for ac_c_preproc_warn_flag in '' yes
20530 do
20531 # Use a header file that comes with gcc, so configuring glibc
20532 # with a fresh cross-compiler works.
20533 # On the NeXT, cc -E runs the code through the compiler's parser,
20534 # not just through cpp. "Syntax error" is here to catch this case.
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20537 #include <limits.h>
20538 Syntax error
20539 _ACEOF
20540 if ac_fn_c_try_cpp "$LINENO"
20541 then :
20542
20543 else $as_nop
20544 # Broken: fails on valid input.
20545 continue
20546 fi
20547 rm -f conftest.err conftest.i conftest.$ac_ext
20548
20549 # OK, works on sane cases. Now check whether nonexistent headers
20550 # can be detected and how.
20551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552 /* end confdefs.h. */
20553 #include <ac_nonexistent.h>
20554 _ACEOF
20555 if ac_fn_c_try_cpp "$LINENO"
20556 then :
20557 # Broken: success on invalid input.
20558 continue
20559 else $as_nop
20560 # Passes both tests.
20561 ac_preproc_ok=:
20562 break
20563 fi
20564 rm -f conftest.err conftest.i conftest.$ac_ext
20565
20566 done
20567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20568 rm -f conftest.i conftest.err conftest.$ac_ext
20569 if $ac_preproc_ok
20570 then :
20571 break
20572 fi
20573
20574 done
20575 ac_cv_prog_CPP=$CPP
20576
20577 fi
20578 CPP=$ac_cv_prog_CPP
20579 else
20580 ac_cv_prog_CPP=$CPP
20581 fi
20582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20583 printf "%s\n" "$CPP" >&6; }
20584 ac_preproc_ok=false
20585 for ac_c_preproc_warn_flag in '' yes
20586 do
20587 # Use a header file that comes with gcc, so configuring glibc
20588 # with a fresh cross-compiler works.
20589 # On the NeXT, cc -E runs the code through the compiler's parser,
20590 # not just through cpp. "Syntax error" is here to catch this case.
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20593 #include <limits.h>
20594 Syntax error
20595 _ACEOF
20596 if ac_fn_c_try_cpp "$LINENO"
20597 then :
20598
20599 else $as_nop
20600 # Broken: fails on valid input.
20601 continue
20602 fi
20603 rm -f conftest.err conftest.i conftest.$ac_ext
20604
20605 # OK, works on sane cases. Now check whether nonexistent headers
20606 # can be detected and how.
20607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h. */
20609 #include <ac_nonexistent.h>
20610 _ACEOF
20611 if ac_fn_c_try_cpp "$LINENO"
20612 then :
20613 # Broken: success on invalid input.
20614 continue
20615 else $as_nop
20616 # Passes both tests.
20617 ac_preproc_ok=:
20618 break
20619 fi
20620 rm -f conftest.err conftest.i conftest.$ac_ext
20621
20622 done
20623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20624 rm -f conftest.i conftest.err conftest.$ac_ext
20625 if $ac_preproc_ok
20626 then :
20627
20628 else $as_nop
20629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20630 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20631 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20632 See \`config.log' for more details" "$LINENO" 5; }
20633 fi
20634
20635 ac_ext=c
20636 ac_cpp='$CPP $CPPFLAGS'
20637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20640
20641
20642
20643 if test -n "$ac_tool_prefix"; then
20644 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
20645 set dummy ${ac_tool_prefix}cpp; ac_word=$2
20646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20647 printf %s "checking for $ac_word... " >&6; }
20648 if test ${ac_cv_path_RAWCPP+y}
20649 then :
20650 printf %s "(cached) " >&6
20651 else $as_nop
20652 case $RAWCPP in
20653 [\\/]* | ?:[\\/]*)
20654 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20655 ;;
20656 *)
20657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20658 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20659 for as_dir in $as_dummy
20660 do
20661 IFS=$as_save_IFS
20662 case $as_dir in #(((
20663 '') as_dir=./ ;;
20664 */) ;;
20665 *) as_dir=$as_dir/ ;;
20666 esac
20667 for ac_exec_ext in '' $ac_executable_extensions; do
20668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20669 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20671 break 2
20672 fi
20673 done
20674 done
20675 IFS=$as_save_IFS
20676
20677 ;;
20678 esac
20679 fi
20680 RAWCPP=$ac_cv_path_RAWCPP
20681 if test -n "$RAWCPP"; then
20682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
20683 printf "%s\n" "$RAWCPP" >&6; }
20684 else
20685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20686 printf "%s\n" "no" >&6; }
20687 fi
20688
20689
20690 fi
20691 if test -z "$ac_cv_path_RAWCPP"; then
20692 ac_pt_RAWCPP=$RAWCPP
20693 # Extract the first word of "cpp", so it can be a program name with args.
20694 set dummy cpp; ac_word=$2
20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20696 printf %s "checking for $ac_word... " >&6; }
20697 if test ${ac_cv_path_ac_pt_RAWCPP+y}
20698 then :
20699 printf %s "(cached) " >&6
20700 else $as_nop
20701 case $ac_pt_RAWCPP in
20702 [\\/]* | ?:[\\/]*)
20703 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20704 ;;
20705 *)
20706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20707 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20708 for as_dir in $as_dummy
20709 do
20710 IFS=$as_save_IFS
20711 case $as_dir in #(((
20712 '') as_dir=./ ;;
20713 */) ;;
20714 *) as_dir=$as_dir/ ;;
20715 esac
20716 for ac_exec_ext in '' $ac_executable_extensions; do
20717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20718 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20720 break 2
20721 fi
20722 done
20723 done
20724 IFS=$as_save_IFS
20725
20726 ;;
20727 esac
20728 fi
20729 ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20730 if test -n "$ac_pt_RAWCPP"; then
20731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20732 printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20733 else
20734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20735 printf "%s\n" "no" >&6; }
20736 fi
20737
20738 if test "x$ac_pt_RAWCPP" = x; then
20739 RAWCPP="${CPP}"
20740 else
20741 case $cross_compiling:$ac_tool_warned in
20742 yes:)
20743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20745 ac_tool_warned=yes ;;
20746 esac
20747 RAWCPP=$ac_pt_RAWCPP
20748 fi
20749 else
20750 RAWCPP="$ac_cv_path_RAWCPP"
20751 fi
20752
20753
20754 # Check for flag to avoid builtin definitions - assumes unix is predefined,
20755 # which is not the best choice for supporting other OS'es, but covers most
20756 # of the ones we need for now.
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20758 printf %s "checking if $RAWCPP requires -undef... " >&6; }
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20761 Does cpp redefine unix ?
20762 _ACEOF
20763 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20765 printf "%s\n" "no" >&6; }
20766 else
20767 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20768 RAWCPPFLAGS=-undef
20769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20770 printf "%s\n" "yes" >&6; }
20771 # under Cygwin unix is still defined even with -undef
20772 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20773 RAWCPPFLAGS="-undef -ansi"
20774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20775 printf "%s\n" "yes, with -ansi" >&6; }
20776 else
20777 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
20778 fi
20779 fi
20780 rm -f conftest.$ac_ext
20781
20782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20783 printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20786 Does cpp preserve "whitespace"?
20787 _ACEOF
20788 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
20789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20790 printf "%s\n" "no" >&6; }
20791 else
20792 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
20793 TRADITIONALCPPFLAGS="-traditional"
20794 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20796 printf "%s\n" "yes" >&6; }
20797 else
20798 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
20799 fi
20800 fi
20801 rm -f conftest.$ac_ext
20802
20803
20804
20805
20806
20807 # Preserves the interface, should it be implemented later
20808
20809
20810
20811 # Check whether --with-perl was given.
20812 if test ${with_perl+y}
20813 then :
20814 withval=$with_perl; use_perl=$withval
20815 else $as_nop
20816 use_perl=auto
20817 fi
20818
20819
20820
20821 if test "x$use_perl" = x"auto"; then
20822 # Extract the first word of "perl", so it can be a program name with args.
20823 set dummy perl; ac_word=$2
20824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20825 printf %s "checking for $ac_word... " >&6; }
20826 if test ${ac_cv_path_PERL+y}
20827 then :
20828 printf %s "(cached) " >&6
20829 else $as_nop
20830 case $PERL in
20831 [\\/]* | ?:[\\/]*)
20832 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20833 ;;
20834 *)
20835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20836 for as_dir in $PATH
20837 do
20838 IFS=$as_save_IFS
20839 case $as_dir in #(((
20840 '') as_dir=./ ;;
20841 */) ;;
20842 *) as_dir=$as_dir/ ;;
20843 esac
20844 for ac_exec_ext in '' $ac_executable_extensions; do
20845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20846 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20848 break 2
20849 fi
20850 done
20851 done
20852 IFS=$as_save_IFS
20853
20854 ;;
20855 esac
20856 fi
20857 PERL=$ac_cv_path_PERL
20858 if test -n "$PERL"; then
20859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20860 printf "%s\n" "$PERL" >&6; }
20861 else
20862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863 printf "%s\n" "no" >&6; }
20864 fi
20865
20866
20867 if test "x$PERL" = "x"; then
20868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
20869 printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
20870 have_perl=no
20871 else
20872 have_perl=yes
20873 fi
20874 elif test "x$use_perl" = x"yes" ; then
20875 # Extract the first word of "perl", so it can be a program name with args.
20876 set dummy perl; ac_word=$2
20877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20878 printf %s "checking for $ac_word... " >&6; }
20879 if test ${ac_cv_path_PERL+y}
20880 then :
20881 printf %s "(cached) " >&6
20882 else $as_nop
20883 case $PERL in
20884 [\\/]* | ?:[\\/]*)
20885 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20886 ;;
20887 *)
20888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20889 for as_dir in $PATH
20890 do
20891 IFS=$as_save_IFS
20892 case $as_dir in #(((
20893 '') as_dir=./ ;;
20894 */) ;;
20895 *) as_dir=$as_dir/ ;;
20896 esac
20897 for ac_exec_ext in '' $ac_executable_extensions; do
20898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20899 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20901 break 2
20902 fi
20903 done
20904 done
20905 IFS=$as_save_IFS
20906
20907 ;;
20908 esac
20909 fi
20910 PERL=$ac_cv_path_PERL
20911 if test -n "$PERL"; then
20912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20913 printf "%s\n" "$PERL" >&6; }
20914 else
20915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20916 printf "%s\n" "no" >&6; }
20917 fi
20918
20919
20920 if test "x$PERL" = "x"; then
20921 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
20922 fi
20923 have_perl=yes
20924 elif test "x$use_perl" = x"no" ; then
20925 if test "x$PERL" != "x"; then
20926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
20927 printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
20928 fi
20929 have_perl=no
20930 else
20931 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
20932 fi
20933
20934 if test "$have_perl" = yes; then
20935 HAVE_PERL_TRUE=
20936 HAVE_PERL_FALSE='#'
20937 else
20938 HAVE_PERL_TRUE='#'
20939 HAVE_PERL_FALSE=
20940 fi
20941
20942
20943
20944 # Required when PKG_CHECK_MODULES called within an if statement
20945
20946
20947
20948
20949
20950
20951
20952 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20953 if test -n "$ac_tool_prefix"; then
20954 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20955 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20957 printf %s "checking for $ac_word... " >&6; }
20958 if test ${ac_cv_path_PKG_CONFIG+y}
20959 then :
20960 printf %s "(cached) " >&6
20961 else $as_nop
20962 case $PKG_CONFIG in
20963 [\\/]* | ?:[\\/]*)
20964 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20965 ;;
20966 *)
20967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20968 for as_dir in $PATH
20969 do
20970 IFS=$as_save_IFS
20971 case $as_dir in #(((
20972 '') as_dir=./ ;;
20973 */) ;;
20974 *) as_dir=$as_dir/ ;;
20975 esac
20976 for ac_exec_ext in '' $ac_executable_extensions; do
20977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20978 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20980 break 2
20981 fi
20982 done
20983 done
20984 IFS=$as_save_IFS
20985
20986 ;;
20987 esac
20988 fi
20989 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20990 if test -n "$PKG_CONFIG"; then
20991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20992 printf "%s\n" "$PKG_CONFIG" >&6; }
20993 else
20994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995 printf "%s\n" "no" >&6; }
20996 fi
20997
20998
20999 fi
21000 if test -z "$ac_cv_path_PKG_CONFIG"; then
21001 ac_pt_PKG_CONFIG=$PKG_CONFIG
21002 # Extract the first word of "pkg-config", so it can be a program name with args.
21003 set dummy pkg-config; ac_word=$2
21004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21005 printf %s "checking for $ac_word... " >&6; }
21006 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21007 then :
21008 printf %s "(cached) " >&6
21009 else $as_nop
21010 case $ac_pt_PKG_CONFIG in
21011 [\\/]* | ?:[\\/]*)
21012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21013 ;;
21014 *)
21015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21016 for as_dir in $PATH
21017 do
21018 IFS=$as_save_IFS
21019 case $as_dir in #(((
21020 '') as_dir=./ ;;
21021 */) ;;
21022 *) as_dir=$as_dir/ ;;
21023 esac
21024 for ac_exec_ext in '' $ac_executable_extensions; do
21025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21028 break 2
21029 fi
21030 done
21031 done
21032 IFS=$as_save_IFS
21033
21034 ;;
21035 esac
21036 fi
21037 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21038 if test -n "$ac_pt_PKG_CONFIG"; then
21039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21040 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21041 else
21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21043 printf "%s\n" "no" >&6; }
21044 fi
21045
21046 if test "x$ac_pt_PKG_CONFIG" = x; then
21047 PKG_CONFIG=""
21048 else
21049 case $cross_compiling:$ac_tool_warned in
21050 yes:)
21051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21052 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21053 ac_tool_warned=yes ;;
21054 esac
21055 PKG_CONFIG=$ac_pt_PKG_CONFIG
21056 fi
21057 else
21058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21059 fi
21060
21061 fi
21062 if test -n "$PKG_CONFIG"; then
21063 _pkg_min_version=0.9.0
21064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21065 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21068 printf "%s\n" "yes" >&6; }
21069 else
21070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 printf "%s\n" "no" >&6; }
21072 PKG_CONFIG=""
21073 fi
21074 fi
21075
21076 if test x"$CC_FOR_BUILD" = x; then
21077 if test x"$cross_compiling" = xyes; then
21078 for ac_prog in gcc cc
21079 do
21080 # Extract the first word of "$ac_prog", so it can be a program name with args.
21081 set dummy $ac_prog; ac_word=$2
21082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21083 printf %s "checking for $ac_word... " >&6; }
21084 if test ${ac_cv_prog_CC_FOR_BUILD+y}
21085 then :
21086 printf %s "(cached) " >&6
21087 else $as_nop
21088 if test -n "$CC_FOR_BUILD"; then
21089 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
21090 else
21091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21092 for as_dir in $PATH
21093 do
21094 IFS=$as_save_IFS
21095 case $as_dir in #(((
21096 '') as_dir=./ ;;
21097 */) ;;
21098 *) as_dir=$as_dir/ ;;
21099 esac
21100 for ac_exec_ext in '' $ac_executable_extensions; do
21101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21102 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
21103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21104 break 2
21105 fi
21106 done
21107 done
21108 IFS=$as_save_IFS
21109
21110 fi
21111 fi
21112 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
21113 if test -n "$CC_FOR_BUILD"; then
21114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
21115 printf "%s\n" "$CC_FOR_BUILD" >&6; }
21116 else
21117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21118 printf "%s\n" "no" >&6; }
21119 fi
21120
21121
21122 test -n "$CC_FOR_BUILD" && break
21123 done
21124
21125 else
21126 CC_FOR_BUILD="$CC"
21127 fi
21128 fi
21129
21130
21131 if test x"$CPPFLAGS_FOR_BUILD" = x; then
21132 if test ! x"$cross_compiling" = xyes; then
21133 CPPFLAGS_FOR_BUILD=${CPPFLAGS}
21134 fi
21135 fi
21136
21137
21138 if test x"$CFLAGS_FOR_BUILD" = x; then
21139 if test ! x"$cross_compiling" = xyes; then
21140 CFLAGS_FOR_BUILD=${CFLAGS}
21141 fi
21142 fi
21143
21144
21145 if test x"$LDFLAGS_FOR_BUILD" = x; then
21146 if test ! x"$cross_compiling" = xyes; then
21147 LDFLAGS_FOR_BUILD=${LDFLAGS}
21148 fi
21149 fi
21150
21151
21152 if test x"$EXEEXT_FOR_BUILD" = x; then
21153 if test x"$cross_compiling" = xno; then
21154 EXEEXT_FOR_BUILD=${EXEEXT}
21155 fi
21156 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
21157 fi
21158
21159
21160 # Checks for pkg-config packages
21161
21162 # Always required
21163 X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
21164 X11_EXTRA_DEPS="xcb >= 1.11.1"
21165
21166
21167
21168
21169
21170
21171
21172
21173 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21174 if test -n "$ac_tool_prefix"; then
21175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21178 printf %s "checking for $ac_word... " >&6; }
21179 if test ${ac_cv_path_PKG_CONFIG+y}
21180 then :
21181 printf %s "(cached) " >&6
21182 else $as_nop
21183 case $PKG_CONFIG in
21184 [\\/]* | ?:[\\/]*)
21185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21186 ;;
21187 *)
21188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21189 for as_dir in $PATH
21190 do
21191 IFS=$as_save_IFS
21192 case $as_dir in #(((
21193 '') as_dir=./ ;;
21194 */) ;;
21195 *) as_dir=$as_dir/ ;;
21196 esac
21197 for ac_exec_ext in '' $ac_executable_extensions; do
21198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21199 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21201 break 2
21202 fi
21203 done
21204 done
21205 IFS=$as_save_IFS
21206
21207 ;;
21208 esac
21209 fi
21210 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21211 if test -n "$PKG_CONFIG"; then
21212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21213 printf "%s\n" "$PKG_CONFIG" >&6; }
21214 else
21215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21216 printf "%s\n" "no" >&6; }
21217 fi
21218
21219
21220 fi
21221 if test -z "$ac_cv_path_PKG_CONFIG"; then
21222 ac_pt_PKG_CONFIG=$PKG_CONFIG
21223 # Extract the first word of "pkg-config", so it can be a program name with args.
21224 set dummy pkg-config; ac_word=$2
21225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21226 printf %s "checking for $ac_word... " >&6; }
21227 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21228 then :
21229 printf %s "(cached) " >&6
21230 else $as_nop
21231 case $ac_pt_PKG_CONFIG in
21232 [\\/]* | ?:[\\/]*)
21233 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21234 ;;
21235 *)
21236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21237 for as_dir in $PATH
21238 do
21239 IFS=$as_save_IFS
21240 case $as_dir in #(((
21241 '') as_dir=./ ;;
21242 */) ;;
21243 *) as_dir=$as_dir/ ;;
21244 esac
21245 for ac_exec_ext in '' $ac_executable_extensions; do
21246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21247 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21249 break 2
21250 fi
21251 done
21252 done
21253 IFS=$as_save_IFS
21254
21255 ;;
21256 esac
21257 fi
21258 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21259 if test -n "$ac_pt_PKG_CONFIG"; then
21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21261 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21262 else
21263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21264 printf "%s\n" "no" >&6; }
21265 fi
21266
21267 if test "x$ac_pt_PKG_CONFIG" = x; then
21268 PKG_CONFIG=""
21269 else
21270 case $cross_compiling:$ac_tool_warned in
21271 yes:)
21272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21273 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21274 ac_tool_warned=yes ;;
21275 esac
21276 PKG_CONFIG=$ac_pt_PKG_CONFIG
21277 fi
21278 else
21279 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21280 fi
21281
21282 fi
21283 if test -n "$PKG_CONFIG"; then
21284 _pkg_min_version=0.9.0
21285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21286 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21287 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21289 printf "%s\n" "yes" >&6; }
21290 else
21291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21292 printf "%s\n" "no" >&6; }
21293 PKG_CONFIG=""
21294 fi
21295 fi
21296
21297
21298
21299 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
21300 # was not expanded, since libX11 with no transport types is rather useless.
21301 #
21302 # If you're seeing an error here, be sure you installed the lib/xtrans module
21303 # first and if it's not in the default location, that you set the ACLOCAL
21304 # environment variable to find it, such as:
21305 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
21306
21307
21308 # Transport selection macro from xtrans.m4
21309
21310
21311 case $host_os in
21312 mingw*) unixdef="no" ;;
21313 *) unixdef="yes" ;;
21314 esac
21315 # Check whether --enable-unix-transport was given.
21316 if test ${enable_unix_transport+y}
21317 then :
21318 enableval=$enable_unix_transport; UNIXCONN=$enableval
21319 else $as_nop
21320 UNIXCONN=$unixdef
21321 fi
21322
21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21324 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21325 if test "$UNIXCONN" = "yes"; then
21326
21327 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21328
21329 fi
21330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21331 printf "%s\n" "$UNIXCONN" >&6; }
21332 # Check whether --enable-tcp-transport was given.
21333 if test ${enable_tcp_transport+y}
21334 then :
21335 enableval=$enable_tcp_transport; TCPCONN=$enableval
21336 else $as_nop
21337 TCPCONN=yes
21338 fi
21339
21340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21341 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21343 printf "%s\n" "$TCPCONN" >&6; }
21344 if test "$TCPCONN" = "yes"; then
21345
21346 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21347
21348
21349 # SVR4 hides these in libraries other than libc
21350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21351 printf %s "checking for library containing socket... " >&6; }
21352 if test ${ac_cv_search_socket+y}
21353 then :
21354 printf %s "(cached) " >&6
21355 else $as_nop
21356 ac_func_search_save_LIBS=$LIBS
21357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21358 /* end confdefs.h. */
21359
21360 /* Override any GCC internal prototype to avoid an error.
21361 Use char because int might match the return type of a GCC
21362 builtin and then its argument prototype would still apply. */
21363 char socket ();
21364 int
21365 main (void)
21366 {
21367 return socket ();
21368 ;
21369 return 0;
21370 }
21371 _ACEOF
21372 for ac_lib in '' socket
21373 do
21374 if test -z "$ac_lib"; then
21375 ac_res="none required"
21376 else
21377 ac_res=-l$ac_lib
21378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21379 fi
21380 if ac_fn_c_try_link "$LINENO"
21381 then :
21382 ac_cv_search_socket=$ac_res
21383 fi
21384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21385 conftest$ac_exeext
21386 if test ${ac_cv_search_socket+y}
21387 then :
21388 break
21389 fi
21390 done
21391 if test ${ac_cv_search_socket+y}
21392 then :
21393
21394 else $as_nop
21395 ac_cv_search_socket=no
21396 fi
21397 rm conftest.$ac_ext
21398 LIBS=$ac_func_search_save_LIBS
21399 fi
21400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21401 printf "%s\n" "$ac_cv_search_socket" >&6; }
21402 ac_res=$ac_cv_search_socket
21403 if test "$ac_res" != no
21404 then :
21405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21406
21407 fi
21408
21409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21410 printf %s "checking for library containing gethostbyname... " >&6; }
21411 if test ${ac_cv_search_gethostbyname+y}
21412 then :
21413 printf %s "(cached) " >&6
21414 else $as_nop
21415 ac_func_search_save_LIBS=$LIBS
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h. */
21418
21419 /* Override any GCC internal prototype to avoid an error.
21420 Use char because int might match the return type of a GCC
21421 builtin and then its argument prototype would still apply. */
21422 char gethostbyname ();
21423 int
21424 main (void)
21425 {
21426 return gethostbyname ();
21427 ;
21428 return 0;
21429 }
21430 _ACEOF
21431 for ac_lib in '' nsl
21432 do
21433 if test -z "$ac_lib"; then
21434 ac_res="none required"
21435 else
21436 ac_res=-l$ac_lib
21437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21438 fi
21439 if ac_fn_c_try_link "$LINENO"
21440 then :
21441 ac_cv_search_gethostbyname=$ac_res
21442 fi
21443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21444 conftest$ac_exeext
21445 if test ${ac_cv_search_gethostbyname+y}
21446 then :
21447 break
21448 fi
21449 done
21450 if test ${ac_cv_search_gethostbyname+y}
21451 then :
21452
21453 else $as_nop
21454 ac_cv_search_gethostbyname=no
21455 fi
21456 rm conftest.$ac_ext
21457 LIBS=$ac_func_search_save_LIBS
21458 fi
21459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21460 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21461 ac_res=$ac_cv_search_gethostbyname
21462 if test "$ac_res" != no
21463 then :
21464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21465
21466 fi
21467
21468 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21470 printf %s "checking for main in -lws2_32... " >&6; }
21471 if test ${ac_cv_lib_ws2_32_main+y}
21472 then :
21473 printf %s "(cached) " >&6
21474 else $as_nop
21475 ac_check_lib_save_LIBS=$LIBS
21476 LIBS="-lws2_32 $LIBS"
21477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h. */
21479
21480
21481 int
21482 main (void)
21483 {
21484 return main ();
21485 ;
21486 return 0;
21487 }
21488 _ACEOF
21489 if ac_fn_c_try_link "$LINENO"
21490 then :
21491 ac_cv_lib_ws2_32_main=yes
21492 else $as_nop
21493 ac_cv_lib_ws2_32_main=no
21494 fi
21495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21496 conftest$ac_exeext conftest.$ac_ext
21497 LIBS=$ac_check_lib_save_LIBS
21498 fi
21499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21500 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21501 if test "x$ac_cv_lib_ws2_32_main" = xyes
21502 then :
21503 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21504
21505 LIBS="-lws2_32 $LIBS"
21506
21507 fi
21508
21509 fi
21510
21511 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21512 # Check whether --enable-ipv6 was given.
21513 if test ${enable_ipv6+y}
21514 then :
21515 enableval=$enable_ipv6; IPV6CONN=$enableval
21516 else $as_nop
21517 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21518 if test "x$ac_cv_func_getaddrinfo" = xyes
21519 then :
21520 IPV6CONN=yes
21521 else $as_nop
21522 IPV6CONN=no
21523 fi
21524
21525 fi
21526
21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21528 printf %s "checking if IPv6 support should be built... " >&6; }
21529 if test "$IPV6CONN" = "yes"; then
21530
21531 printf "%s\n" "#define IPv6 1" >>confdefs.h
21532
21533 fi
21534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21535 printf "%s\n" "$IPV6CONN" >&6; }
21536
21537 # 4.3BSD-Reno added a new member to struct sockaddr_in
21538 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21539 #include <sys/types.h>
21540 #include <sys/socket.h>
21541 #include <netinet/in.h>
21542
21543 "
21544 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21545 then :
21546
21547 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21548
21549 fi
21550
21551
21552 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21553 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21554 $ac_includes_default
21555 #include <sys/socket.h>
21556 "
21557 if test "x$ac_cv_type_socklen_t" = xyes
21558 then :
21559
21560 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21561
21562
21563 fi
21564
21565
21566 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21567 # _XOPEN_SOURCE to get it (such as on Solaris)
21568 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21569 $ac_includes_default
21570 #include <sys/socket.h>
21571
21572 "
21573 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21574 then :
21575
21576 fi
21577
21578 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21579 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21580 unset ac_cv_member_struct_msghdr_msg_control
21581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21582 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21583 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21584 #define _XOPEN_SOURCE 600
21585 $ac_includes_default
21586 #include <sys/socket.h>
21587
21588 "
21589 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21590 then :
21591
21592 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21593
21594
21595 fi
21596
21597 fi
21598 # If that didn't work, fall back to XPG5/UNIX98 with C89
21599 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21600 unset ac_cv_member_struct_msghdr_msg_control
21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21602 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21603 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21604 #define _XOPEN_SOURCE 500
21605 $ac_includes_default
21606 #include <sys/socket.h>
21607
21608 "
21609 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21610 then :
21611
21612 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21613
21614
21615 fi
21616
21617 fi
21618
21619
21620
21621 fi
21622 case $host_os in
21623 solaris*) localdef="yes" ;;
21624 *) localdef="no" ;;
21625 esac
21626 # Check whether --enable-local-transport was given.
21627 if test ${enable_local_transport+y}
21628 then :
21629 enableval=$enable_local_transport; LOCALCONN=$enableval
21630 else $as_nop
21631 LOCALCONN=$localdef
21632 fi
21633
21634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21635 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21637 printf "%s\n" "$LOCALCONN" >&6; }
21638 if test "$LOCALCONN" = "yes"; then
21639
21640 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21641
21642 fi
21643
21644 # Other functions Xtrans may need
21645 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21646 if test "x$ac_cv_func_strcasecmp" = xyes
21647 then :
21648 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21649
21650 fi
21651 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21652 if test "x$ac_cv_func_strlcpy" = xyes
21653 then :
21654 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21655
21656 fi
21657
21658
21659
21660
21661 # Check for dlopen
21662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
21663 printf %s "checking if run-time linking is supported... " >&6; }
21664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21665 printf %s "checking for library containing dlopen... " >&6; }
21666 if test ${ac_cv_search_dlopen+y}
21667 then :
21668 printf %s "(cached) " >&6
21669 else $as_nop
21670 ac_func_search_save_LIBS=$LIBS
21671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21672 /* end confdefs.h. */
21673
21674 /* Override any GCC internal prototype to avoid an error.
21675 Use char because int might match the return type of a GCC
21676 builtin and then its argument prototype would still apply. */
21677 char dlopen ();
21678 int
21679 main (void)
21680 {
21681 return dlopen ();
21682 ;
21683 return 0;
21684 }
21685 _ACEOF
21686 for ac_lib in '' dl svld
21687 do
21688 if test -z "$ac_lib"; then
21689 ac_res="none required"
21690 else
21691 ac_res=-l$ac_lib
21692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21693 fi
21694 if ac_fn_c_try_link "$LINENO"
21695 then :
21696 ac_cv_search_dlopen=$ac_res
21697 fi
21698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21699 conftest$ac_exeext
21700 if test ${ac_cv_search_dlopen+y}
21701 then :
21702 break
21703 fi
21704 done
21705 if test ${ac_cv_search_dlopen+y}
21706 then :
21707
21708 else $as_nop
21709 ac_cv_search_dlopen=no
21710 fi
21711 rm conftest.$ac_ext
21712 LIBS=$ac_func_search_save_LIBS
21713 fi
21714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21715 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
21716 ac_res=$ac_cv_search_dlopen
21717 if test "$ac_res" != no
21718 then :
21719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21720
21721 fi
21722
21723 if test "x$ac_cv_search_dlopen" = xno; then
21724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
21725 printf %s "checking for library containing shl_load... " >&6; }
21726 if test ${ac_cv_search_shl_load+y}
21727 then :
21728 printf %s "(cached) " >&6
21729 else $as_nop
21730 ac_func_search_save_LIBS=$LIBS
21731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21732 /* end confdefs.h. */
21733
21734 /* Override any GCC internal prototype to avoid an error.
21735 Use char because int might match the return type of a GCC
21736 builtin and then its argument prototype would still apply. */
21737 char shl_load ();
21738 int
21739 main (void)
21740 {
21741 return shl_load ();
21742 ;
21743 return 0;
21744 }
21745 _ACEOF
21746 for ac_lib in '' dld
21747 do
21748 if test -z "$ac_lib"; then
21749 ac_res="none required"
21750 else
21751 ac_res=-l$ac_lib
21752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21753 fi
21754 if ac_fn_c_try_link "$LINENO"
21755 then :
21756 ac_cv_search_shl_load=$ac_res
21757 fi
21758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21759 conftest$ac_exeext
21760 if test ${ac_cv_search_shl_load+y}
21761 then :
21762 break
21763 fi
21764 done
21765 if test ${ac_cv_search_shl_load+y}
21766 then :
21767
21768 else $as_nop
21769 ac_cv_search_shl_load=no
21770 fi
21771 rm conftest.$ac_ext
21772 LIBS=$ac_func_search_save_LIBS
21773 fi
21774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
21775 printf "%s\n" "$ac_cv_search_shl_load" >&6; }
21776 ac_res=$ac_cv_search_shl_load
21777 if test "$ac_res" != no
21778 then :
21779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21780
21781 fi
21782
21783 if test "x$ac_cv_search_shl_load" != xno; then
21784
21785 printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
21786
21787 ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
21788 if test "x$ac_cv_header_dl_h" = xyes
21789 then :
21790 printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21791
21792 fi
21793
21794 fi
21795 else
21796
21797 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
21798
21799 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21800 if test "x$ac_cv_header_dlfcn_h" = xyes
21801 then :
21802 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
21803
21804 fi
21805
21806 fi
21807 if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
21808 HAVE_LOADABLE_MODULES=yes
21809 else
21810 HAVE_LOADABLE_MODULES=no
21811 fi
21812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
21813 printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; }
21814
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
21816 printf %s "checking if loadable i18n module support should be enabled... " >&6; }
21817 # Check whether --enable-loadable-i18n was given.
21818 if test ${enable_loadable_i18n+y}
21819 then :
21820 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
21821 else $as_nop
21822 XLIB_LOADABLE_I18N="no"
21823 fi
21824
21825 if test x$XLIB_LOADABLE_I18N = xyes; then
21826 if test x$HAVE_LOADABLE_MODULES = xno; then
21827 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
21828 fi
21829
21830 printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h
21831
21832 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
21833
21834 fi
21835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
21836 printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; }
21837
21838 if test x$XLIB_LOADABLE_I18N = xyes; then
21839 XLIB_LOADABLE_I18N_TRUE=
21840 XLIB_LOADABLE_I18N_FALSE='#'
21841 else
21842 XLIB_LOADABLE_I18N_TRUE='#'
21843 XLIB_LOADABLE_I18N_FALSE=
21844 fi
21845
21846
21847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
21848 printf %s "checking if loadable Xcursor library support should be enabled... " >&6; }
21849 # Check whether --enable-loadable-xcursor was given.
21850 if test ${enable_loadable_xcursor+y}
21851 then :
21852 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
21853 else $as_nop
21854 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
21855 fi
21856
21857 if test x$XLIB_LOADABLE_XCURSOR = xyes; then
21858
21859 printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
21860
21861 fi
21862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
21863 printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; }
21864
21865 # Check whether --enable-thread-safety-constructor was given.
21866 if test ${enable_thread_safety_constructor+y}
21867 then :
21868 enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval
21869 else $as_nop
21870 USE_THREAD_SAFETY_CONSTRUCTOR="yes"
21871 fi
21872
21873 if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
21874
21875 printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h
21876
21877 fi
21878
21879 # Checks for header files.
21880 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
21881 if test "x$ac_cv_header_sys_filio_h" = xyes
21882 then :
21883 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
21884
21885 fi
21886 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
21887 if test "x$ac_cv_header_sys_select_h" = xyes
21888 then :
21889 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
21890
21891 fi
21892 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
21893 if test "x$ac_cv_header_sys_ioctl_h" = xyes
21894 then :
21895 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
21896
21897 fi
21898 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21899 if test "x$ac_cv_header_sys_socket_h" = xyes
21900 then :
21901 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
21902
21903 fi
21904
21905
21906 # Checks for typedefs, structures, and compiler characteristics.
21907
21908
21909
21910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
21911 printf %s "checking for __builtin_popcountl... " >&6; }
21912 if test ${ax_cv_have___builtin_popcountl+y}
21913 then :
21914 printf %s "(cached) " >&6
21915 else $as_nop
21916
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21919
21920 int
21921 main (void)
21922 {
21923
21924 __builtin_popcountl(0)
21925
21926 ;
21927 return 0;
21928 }
21929 _ACEOF
21930 if ac_fn_c_try_link "$LINENO"
21931 then :
21932 ax_cv_have___builtin_popcountl=yes
21933 else $as_nop
21934 ax_cv_have___builtin_popcountl=no
21935 fi
21936 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21937 conftest$ac_exeext conftest.$ac_ext
21938
21939 fi
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
21941 printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
21942
21943 if test yes = $ax_cv_have___builtin_popcountl
21944 then :
21945
21946 printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
21947
21948 fi
21949
21950
21951
21952
21953 # Checks for library functions.
21954 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
21955 if test "x$ac_cv_func_strtol" = xyes
21956 then :
21957 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
21958
21959 fi
21960 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
21961 if test "x$ac_cv_func_seteuid" = xyes
21962 then :
21963 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
21964
21965 fi
21966
21967 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21968 if test "x$ac_cv_func_reallocarray" = xyes
21969 then :
21970 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21971
21972 else $as_nop
21973 case " $LIBOBJS " in
21974 *" reallocarray.$ac_objext "* ) ;;
21975 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21976 ;;
21977 esac
21978
21979 fi
21980
21981 # Used in lcFile.c (see also --enable-xlocaledir settings below)
21982 XLOCALEDIR_IS_SAFE="no"
21983 ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21984 if test "x$ac_cv_have_decl_issetugid" = xyes
21985 then :
21986
21987 fi
21988 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21989 if test "x$ac_cv_func_issetugid" = xyes
21990 then :
21991
21992 fi
21993
21994 if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
21995 XLOCALEDIR_IS_SAFE="yes"
21996
21997 printf "%s\n" "#define HASSETUGID 1" >>confdefs.h
21998
21999 fi
22000 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
22001 if test "x$ac_cv_func_getresuid" = xyes
22002 then :
22003 XLOCALEDIR_IS_SAFE="yes"
22004
22005 printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h
22006
22007 fi
22008
22009 # Used in Font.c
22010 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
22011 if test "x$ac_cv_func_shmat" = xyes
22012 then :
22013
22014 printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
22015
22016 fi
22017
22018
22019 # Checks for system services
22020 # AC_PATH_XTRA
22021
22022 # arch specific things
22023 WCHAR32="1"
22024 case $host_os in
22025 os2*) os2="true" ; WCHAR32="0" ;;
22026 *) ;;
22027 esac
22028
22029
22030 if test x$os2 = xtrue; then
22031 OS2_TRUE=
22032 OS2_FALSE='#'
22033 else
22034 OS2_TRUE='#'
22035 OS2_FALSE=
22036 fi
22037
22038
22039
22040 # Check whether --with-launchd was given.
22041 if test ${with_launchd+y}
22042 then :
22043 withval=$with_launchd; LAUNCHD=$withval
22044 else $as_nop
22045 LAUNCHD=auto
22046 fi
22047
22048 if test "x$LAUNCHD" = xauto; then
22049 unset LAUNCHD
22050 # Extract the first word of "launchd", so it can be a program name with args.
22051 set dummy launchd; ac_word=$2
22052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22053 printf %s "checking for $ac_word... " >&6; }
22054 if test ${ac_cv_prog_LAUNCHD+y}
22055 then :
22056 printf %s "(cached) " >&6
22057 else $as_nop
22058 if test -n "$LAUNCHD"; then
22059 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
22060 else
22061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22062 for as_dir in $PATH$PATH_SEPARATOR/sbin
22063 do
22064 IFS=$as_save_IFS
22065 case $as_dir in #(((
22066 '') as_dir=./ ;;
22067 */) ;;
22068 *) as_dir=$as_dir/ ;;
22069 esac
22070 for ac_exec_ext in '' $ac_executable_extensions; do
22071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22072 ac_cv_prog_LAUNCHD="yes"
22073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22074 break 2
22075 fi
22076 done
22077 done
22078 IFS=$as_save_IFS
22079
22080 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
22081 fi
22082 fi
22083 LAUNCHD=$ac_cv_prog_LAUNCHD
22084 if test -n "$LAUNCHD"; then
22085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
22086 printf "%s\n" "$LAUNCHD" >&6; }
22087 else
22088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22089 printf "%s\n" "no" >&6; }
22090 fi
22091
22092
22093 fi
22094
22095 if test "x$LAUNCHD" = xyes ; then
22096
22097 printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
22098
22099
22100 printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h
22101
22102 fi
22103
22104 # Check whether --enable-xthreads was given.
22105 if test ${enable_xthreads+y}
22106 then :
22107 enableval=$enable_xthreads; xthreads=$enableval
22108 else $as_nop
22109 xthreads=yes
22110 fi
22111
22112
22113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
22114 printf %s "checking for getpwuid_r in -lc... " >&6; }
22115 if test ${ac_cv_lib_c_getpwuid_r+y}
22116 then :
22117 printf %s "(cached) " >&6
22118 else $as_nop
22119 ac_check_lib_save_LIBS=$LIBS
22120 LIBS="-lc $LIBS"
22121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122 /* end confdefs.h. */
22123
22124 /* Override any GCC internal prototype to avoid an error.
22125 Use char because int might match the return type of a GCC
22126 builtin and then its argument prototype would still apply. */
22127 char getpwuid_r ();
22128 int
22129 main (void)
22130 {
22131 return getpwuid_r ();
22132 ;
22133 return 0;
22134 }
22135 _ACEOF
22136 if ac_fn_c_try_link "$LINENO"
22137 then :
22138 ac_cv_lib_c_getpwuid_r=yes
22139 else $as_nop
22140 ac_cv_lib_c_getpwuid_r=no
22141 fi
22142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22143 conftest$ac_exeext conftest.$ac_ext
22144 LIBS=$ac_check_lib_save_LIBS
22145 fi
22146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
22147 printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; }
22148 if test "x$ac_cv_lib_c_getpwuid_r" = xyes
22149 then :
22150 mtsafeapi="yes"
22151 else $as_nop
22152 mtsafeapi="no"
22153 fi
22154
22155
22156 case x$xthreads in
22157 xyes)
22158
22159 printf "%s\n" "#define XTHREADS 1" >>confdefs.h
22160
22161 if test x$mtsafeapi = xyes
22162 then
22163
22164 printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
22165
22166 fi
22167 ;;
22168 *)
22169 ;;
22170 esac
22171
22172 # XXX incomplete, please fill this in
22173 if test x$xthreads = xyes ; then
22174 case $host_os in
22175 linux*|gnu*|k*bsd*-gnu)
22176 XTHREADLIB=-lpthread ;;
22177 netbsd*)
22178 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
22179 XTHREADLIB="-lpthread" ;;
22180 freebsd*)
22181 XTHREAD_CFLAGS="-D_THREAD_SAFE"
22182 XTHREADLIB="-pthread" ;;
22183 dragonfly*|openbsd*)
22184 XTHREADLIB="-pthread" ;;
22185 solaris*)
22186 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
22187 esac
22188 fi
22189
22190
22191
22192 if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
22193 USE_THREAD_LIBS="$XTHREADLIB"
22194 else
22195 # This should be kept in sync with libxcb
22196 case $host_os in
22197 linux*|darwin*|solaris*) ;;
22198 *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;;
22199 esac
22200 fi
22201
22202
22203 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
22204 if test "x$ac_cv_func_poll" = xyes
22205 then :
22206
22207 printf "%s\n" "#define USE_POLL 1" >>confdefs.h
22208
22209 fi
22210
22211
22212 #
22213 # Find keysymdef.h
22214 #
22215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
22216 printf %s "checking keysym definitions... " >&6; }
22217
22218 # Check whether --with-keysymdefdir was given.
22219 if test ${with_keysymdefdir+y}
22220 then :
22221 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
22222 else $as_nop
22223 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
22224 fi
22225
22226
22227 if test ! -d "$KEYSYMDEFDIR"; then
22228 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
22229 fi
22230
22231 FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
22232 for i in $FILES; do
22233 if test -f "$KEYSYMDEFDIR/$i"; then
22234 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
22235 elif test "x$i" = "xkeysymdef.h"; then
22236 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
22237 fi
22238 done
22239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
22240 printf "%s\n" "$KEYSYMDEFS" >&6; }
22241
22242
22243 # Check whether --enable-xcms was given.
22244 if test ${enable_xcms+y}
22245 then :
22246 enableval=$enable_xcms; XCMS=$enableval
22247 else $as_nop
22248 XCMS=yes
22249 fi
22250
22251 if test x$XCMS = xyes ; then
22252 XCMS_TRUE=
22253 XCMS_FALSE='#'
22254 else
22255 XCMS_TRUE='#'
22256 XCMS_FALSE=
22257 fi
22258
22259 if test x"$XCMS" = "xyes"; then
22260
22261 printf "%s\n" "#define XCMS 1" >>confdefs.h
22262
22263 fi
22264
22265 # Check whether --enable-xlocale was given.
22266 if test ${enable_xlocale+y}
22267 then :
22268 enableval=$enable_xlocale; XLOCALE=$enableval
22269 else $as_nop
22270 XLOCALE=yes
22271 fi
22272
22273
22274 if test x$XLOCALE = xyes ; then
22275 XLOCALE_TRUE=
22276 XLOCALE_FALSE='#'
22277 else
22278 XLOCALE_TRUE='#'
22279 XLOCALE_FALSE=
22280 fi
22281
22282 if test x"$XLOCALE" = "xyes"; then
22283
22284 printf "%s\n" "#define XLOCALE 1" >>confdefs.h
22285
22286 fi
22287
22288 # This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n,
22289 # don't have either issetugid() or getresuid(), and you need to protect
22290 # clients that are setgid or setuid to an id other than 0.
22291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
22292 printf %s "checking if XLOCALEDIR support should be enabled... " >&6; }
22293 # Check whether --enable-xlocaledir was given.
22294 if test ${enable_xlocaledir+y}
22295 then :
22296 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
22297 else $as_nop
22298 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
22299 fi
22300
22301 if test "x$ENABLE_XLOCALEDIR" = "xno"; then
22302
22303 printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h
22304
22305 fi
22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
22307 printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; }
22308
22309 # Check whether --enable-xf86bigfont was given.
22310 if test ${enable_xf86bigfont+y}
22311 then :
22312 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
22313 else $as_nop
22314 XF86BIGFONT="yes"
22315 fi
22316
22317 if test "x$XF86BIGFONT" = "xyes"; then
22318
22319 pkg_failed=no
22320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
22321 printf %s "checking for BIGFONT... " >&6; }
22322
22323 if test -n "$BIGFONT_CFLAGS"; then
22324 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
22325 elif test -n "$PKG_CONFIG"; then
22326 if test -n "$PKG_CONFIG" && \
22327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22328 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22329 ac_status=$?
22330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22331 test $ac_status = 0; }; then
22332 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22333 test "x$?" != "x0" && pkg_failed=yes
22334 else
22335 pkg_failed=yes
22336 fi
22337 else
22338 pkg_failed=untried
22339 fi
22340 if test -n "$BIGFONT_LIBS"; then
22341 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
22342 elif test -n "$PKG_CONFIG"; then
22343 if test -n "$PKG_CONFIG" && \
22344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22345 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22346 ac_status=$?
22347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22348 test $ac_status = 0; }; then
22349 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22350 test "x$?" != "x0" && pkg_failed=yes
22351 else
22352 pkg_failed=yes
22353 fi
22354 else
22355 pkg_failed=untried
22356 fi
22357
22358
22359
22360 if test $pkg_failed = yes; then
22361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22362 printf "%s\n" "no" >&6; }
22363
22364 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22365 _pkg_short_errors_supported=yes
22366 else
22367 _pkg_short_errors_supported=no
22368 fi
22369 if test $_pkg_short_errors_supported = yes; then
22370 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22371 else
22372 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22373 fi
22374 # Put the nasty error message in config.log where it belongs
22375 echo "$BIGFONT_PKG_ERRORS" >&5
22376
22377 XF86BIGFONT="no"
22378 elif test $pkg_failed = untried; then
22379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22380 printf "%s\n" "no" >&6; }
22381 XF86BIGFONT="no"
22382 else
22383 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
22384 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
22385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22386 printf "%s\n" "yes" >&6; }
22387
22388 printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
22389
22390 fi
22391 fi
22392
22393 # Check whether --enable-xkb was given.
22394 if test ${enable_xkb+y}
22395 then :
22396 enableval=$enable_xkb; XKB=$enableval
22397 else $as_nop
22398 XKB=yes
22399 fi
22400
22401
22402 if test x$XKB = xyes ; then
22403 XKB_TRUE=
22404 XKB_FALSE='#'
22405 else
22406 XKB_TRUE='#'
22407 XKB_FALSE=
22408 fi
22409
22410 if test x"$XKB" = "xyes"; then
22411 XKBPROTO_REQUIRES="kbproto"
22412 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
22413
22414 printf "%s\n" "#define XKB 1" >>confdefs.h
22415
22416 else
22417 XKBPROTO_REQUIRES=""
22418 fi
22419
22420
22421
22422 ac_func=
22423 for ac_item in $ac_func_c_list
22424 do
22425 if test $ac_func; then
22426 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22427 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22428 echo "#define $ac_item 1" >> confdefs.h
22429 fi
22430 ac_func=
22431 else
22432 ac_func=$ac_item
22433 fi
22434 done
22435
22436
22437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22438 printf %s "checking for working mmap... " >&6; }
22439 if test ${ac_cv_func_mmap_fixed_mapped+y}
22440 then :
22441 printf %s "(cached) " >&6
22442 else $as_nop
22443 if test "$cross_compiling" = yes
22444 then :
22445 case "$host_os" in # ((
22446 # Guess yes on platforms where we know the result.
22447 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
22448 # If we don't know, assume the worst.
22449 *) ac_cv_func_mmap_fixed_mapped=no ;;
22450 esac
22451 else $as_nop
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453 /* end confdefs.h. */
22454 $ac_includes_default
22455 /* malloc might have been renamed as rpl_malloc. */
22456 #undef malloc
22457
22458 /* Thanks to Mike Haertel and Jim Avera for this test.
22459 Here is a matrix of mmap possibilities:
22460 mmap private not fixed
22461 mmap private fixed at somewhere currently unmapped
22462 mmap private fixed at somewhere already mapped
22463 mmap shared not fixed
22464 mmap shared fixed at somewhere currently unmapped
22465 mmap shared fixed at somewhere already mapped
22466 For private mappings, we should verify that changes cannot be read()
22467 back from the file, nor mmap's back from the file at a different
22468 address. (There have been systems where private was not correctly
22469 implemented like the infamous i386 svr4.0, and systems where the
22470 VM page cache was not coherent with the file system buffer cache
22471 like early versions of FreeBSD and possibly contemporary NetBSD.)
22472 For shared mappings, we should conversely verify that changes get
22473 propagated back to all the places they're supposed to be.
22474
22475 Grep wants private fixed already mapped.
22476 The main things grep needs to know about mmap are:
22477 * does it exist and is it safe to write into the mmap'd area
22478 * how to use it (BSD variants) */
22479
22480 #include <fcntl.h>
22481 #include <sys/mman.h>
22482
22483 /* This mess was copied from the GNU getpagesize.h. */
22484 #ifndef HAVE_GETPAGESIZE
22485 # ifdef _SC_PAGESIZE
22486 # define getpagesize() sysconf(_SC_PAGESIZE)
22487 # else /* no _SC_PAGESIZE */
22488 # ifdef HAVE_SYS_PARAM_H
22489 # include <sys/param.h>
22490 # ifdef EXEC_PAGESIZE
22491 # define getpagesize() EXEC_PAGESIZE
22492 # else /* no EXEC_PAGESIZE */
22493 # ifdef NBPG
22494 # define getpagesize() NBPG * CLSIZE
22495 # ifndef CLSIZE
22496 # define CLSIZE 1
22497 # endif /* no CLSIZE */
22498 # else /* no NBPG */
22499 # ifdef NBPC
22500 # define getpagesize() NBPC
22501 # else /* no NBPC */
22502 # ifdef PAGESIZE
22503 # define getpagesize() PAGESIZE
22504 # endif /* PAGESIZE */
22505 # endif /* no NBPC */
22506 # endif /* no NBPG */
22507 # endif /* no EXEC_PAGESIZE */
22508 # else /* no HAVE_SYS_PARAM_H */
22509 # define getpagesize() 8192 /* punt totally */
22510 # endif /* no HAVE_SYS_PARAM_H */
22511 # endif /* no _SC_PAGESIZE */
22512
22513 #endif /* no HAVE_GETPAGESIZE */
22514
22515 int
22516 main (void)
22517 {
22518 char *data, *data2, *data3;
22519 const char *cdata2;
22520 int i, pagesize;
22521 int fd, fd2;
22522
22523 pagesize = getpagesize ();
22524
22525 /* First, make a file with some known garbage in it. */
22526 data = (char *) malloc (pagesize);
22527 if (!data)
22528 return 1;
22529 for (i = 0; i < pagesize; ++i)
22530 *(data + i) = rand ();
22531 umask (0);
22532 fd = creat ("conftest.mmap", 0600);
22533 if (fd < 0)
22534 return 2;
22535 if (write (fd, data, pagesize) != pagesize)
22536 return 3;
22537 close (fd);
22538
22539 /* Next, check that the tail of a page is zero-filled. File must have
22540 non-zero length, otherwise we risk SIGBUS for entire page. */
22541 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22542 if (fd2 < 0)
22543 return 4;
22544 cdata2 = "";
22545 if (write (fd2, cdata2, 1) != 1)
22546 return 5;
22547 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22548 if (data2 == MAP_FAILED)
22549 return 6;
22550 for (i = 0; i < pagesize; ++i)
22551 if (*(data2 + i))
22552 return 7;
22553 close (fd2);
22554 if (munmap (data2, pagesize))
22555 return 8;
22556
22557 /* Next, try to mmap the file at a fixed address which already has
22558 something else allocated at it. If we can, also make sure that
22559 we see the same garbage. */
22560 fd = open ("conftest.mmap", O_RDWR);
22561 if (fd < 0)
22562 return 9;
22563 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22564 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22565 return 10;
22566 for (i = 0; i < pagesize; ++i)
22567 if (*(data + i) != *(data2 + i))
22568 return 11;
22569
22570 /* Finally, make sure that changes to the mapped area do not
22571 percolate back to the file as seen by read(). (This is a bug on
22572 some variants of i386 svr4.0.) */
22573 for (i = 0; i < pagesize; ++i)
22574 *(data2 + i) = *(data2 + i) + 1;
22575 data3 = (char *) malloc (pagesize);
22576 if (!data3)
22577 return 12;
22578 if (read (fd, data3, pagesize) != pagesize)
22579 return 13;
22580 for (i = 0; i < pagesize; ++i)
22581 if (*(data + i) != *(data3 + i))
22582 return 14;
22583 close (fd);
22584 free (data);
22585 free (data3);
22586 return 0;
22587 }
22588 _ACEOF
22589 if ac_fn_c_try_run "$LINENO"
22590 then :
22591 ac_cv_func_mmap_fixed_mapped=yes
22592 else $as_nop
22593 ac_cv_func_mmap_fixed_mapped=no
22594 fi
22595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22596 conftest.$ac_objext conftest.beam conftest.$ac_ext
22597 fi
22598
22599 fi
22600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22601 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
22602 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22603
22604 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22605
22606 fi
22607 rm -f conftest.mmap conftest.txt
22608
22609 composecache_default=$ac_cv_func_mmap_fixed_mapped
22610 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
22611 if test "x$ac_cv_func_nl_langinfo" = xyes
22612 then :
22613
22614 else $as_nop
22615 composecache_default=no
22616 fi
22617
22618 # Check whether --enable-composecache was given.
22619 if test ${enable_composecache+y}
22620 then :
22621 enableval=$enable_composecache; COMPOSECACHE=$enableval
22622 else $as_nop
22623 COMPOSECACHE=$composecache_default
22624 fi
22625
22626 if test x"$COMPOSECACHE" = "xyes"; then
22627
22628 printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h
22629
22630 fi
22631
22632 # Allow checking code with lint, sparse, etc.
22633
22634
22635
22636
22637
22638 # Check whether --with-lint was given.
22639 if test ${with_lint+y}
22640 then :
22641 withval=$with_lint; use_lint=$withval
22642 else $as_nop
22643 use_lint=no
22644 fi
22645
22646
22647 # Obtain platform specific info like program name and options
22648 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
22649 case $host_os in
22650 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
22651 lint_name=splint
22652 lint_options="-badflag"
22653 ;;
22654 *freebsd* | *netbsd*)
22655 lint_name=lint
22656 lint_options="-u -b"
22657 ;;
22658 *solaris*)
22659 lint_name=lint
22660 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22661 ;;
22662 esac
22663
22664 # Test for the presence of the program (either guessed by the code or spelled out by the user)
22665 if test "x$use_lint" = x"yes" ; then
22666 # Extract the first word of "$lint_name", so it can be a program name with args.
22667 set dummy $lint_name; ac_word=$2
22668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22669 printf %s "checking for $ac_word... " >&6; }
22670 if test ${ac_cv_path_LINT+y}
22671 then :
22672 printf %s "(cached) " >&6
22673 else $as_nop
22674 case $LINT in
22675 [\\/]* | ?:[\\/]*)
22676 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
22677 ;;
22678 *)
22679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680 for as_dir in $PATH
22681 do
22682 IFS=$as_save_IFS
22683 case $as_dir in #(((
22684 '') as_dir=./ ;;
22685 */) ;;
22686 *) as_dir=$as_dir/ ;;
22687 esac
22688 for ac_exec_ext in '' $ac_executable_extensions; do
22689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22690 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
22691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22692 break 2
22693 fi
22694 done
22695 done
22696 IFS=$as_save_IFS
22697
22698 ;;
22699 esac
22700 fi
22701 LINT=$ac_cv_path_LINT
22702 if test -n "$LINT"; then
22703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
22704 printf "%s\n" "$LINT" >&6; }
22705 else
22706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707 printf "%s\n" "no" >&6; }
22708 fi
22709
22710
22711 if test "x$LINT" = "x"; then
22712 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
22713 fi
22714 elif test "x$use_lint" = x"no" ; then
22715 if test "x$LINT" != "x"; then
22716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
22717 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
22718 fi
22719 else
22720 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
22721 fi
22722
22723 # User supplied flags override default flags
22724 if test "x$LINT_FLAGS" != "x"; then
22725 lint_options=$LINT_FLAGS
22726 fi
22727
22728 LINT_FLAGS=$lint_options
22729
22730 if test "x$LINT" != x; then
22731 LINT_TRUE=
22732 LINT_FALSE='#'
22733 else
22734 LINT_TRUE='#'
22735 LINT_FALSE=
22736 fi
22737
22738
22739
22740
22741
22742 # Check whether --enable-lint-library was given.
22743 if test ${enable_lint_library+y}
22744 then :
22745 enableval=$enable_lint_library; make_lint_lib=$enableval
22746 else $as_nop
22747 make_lint_lib=no
22748 fi
22749
22750
22751 if test "x$make_lint_lib" = x"yes" ; then
22752 LINTLIB=llib-lX11.ln
22753 if test "x$LINT" = "x"; then
22754 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
22755 fi
22756 elif test "x$make_lint_lib" != x"no" ; then
22757 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
22758 fi
22759
22760
22761 if test x$make_lint_lib != xno; then
22762 MAKE_LINT_LIB_TRUE=
22763 MAKE_LINT_LIB_FALSE='#'
22764 else
22765 MAKE_LINT_LIB_TRUE='#'
22766 MAKE_LINT_LIB_FALSE=
22767 fi
22768
22769
22770
22771
22772 X11_DATADIR="${datadir}/X11"
22773
22774 prefix_NONE=
22775 exec_prefix_NONE=
22776 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22777 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22778 eval ax_define_dir="\"$X11_DATADIR\""
22779 eval ax_define_dir="\"$ax_define_dir\""
22780 X11_DATADIR="$ax_define_dir"
22781
22782
22783 printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h
22784
22785 test "$prefix_NONE" && prefix=NONE
22786 test "$exec_prefix_NONE" && exec_prefix=NONE
22787
22788
22789
22790 X11_LIBDIR="${libdir}/X11"
22791
22792 prefix_NONE=
22793 exec_prefix_NONE=
22794 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22795 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22796 eval ax_define_dir="\"$X11_LIBDIR\""
22797 eval ax_define_dir="\"$ax_define_dir\""
22798 X11_LIBDIR="$ax_define_dir"
22799
22800
22801 printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h
22802
22803 test "$prefix_NONE" && prefix=NONE
22804 test "$exec_prefix_NONE" && exec_prefix=NONE
22805
22806
22807
22808
22809 pkg_failed=no
22810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
22811 printf %s "checking for X11... " >&6; }
22812
22813 if test -n "$X11_CFLAGS"; then
22814 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
22815 elif test -n "$PKG_CONFIG"; then
22816 if test -n "$PKG_CONFIG" && \
22817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22818 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22819 ac_status=$?
22820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22821 test $ac_status = 0; }; then
22822 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
22823 test "x$?" != "x0" && pkg_failed=yes
22824 else
22825 pkg_failed=yes
22826 fi
22827 else
22828 pkg_failed=untried
22829 fi
22830 if test -n "$X11_LIBS"; then
22831 pkg_cv_X11_LIBS="$X11_LIBS"
22832 elif test -n "$PKG_CONFIG"; then
22833 if test -n "$PKG_CONFIG" && \
22834 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22835 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22836 ac_status=$?
22837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22838 test $ac_status = 0; }; then
22839 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
22840 test "x$?" != "x0" && pkg_failed=yes
22841 else
22842 pkg_failed=yes
22843 fi
22844 else
22845 pkg_failed=untried
22846 fi
22847
22848
22849
22850 if test $pkg_failed = yes; then
22851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22852 printf "%s\n" "no" >&6; }
22853
22854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22855 _pkg_short_errors_supported=yes
22856 else
22857 _pkg_short_errors_supported=no
22858 fi
22859 if test $_pkg_short_errors_supported = yes; then
22860 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22861 else
22862 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22863 fi
22864 # Put the nasty error message in config.log where it belongs
22865 echo "$X11_PKG_ERRORS" >&5
22866
22867 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
22868
22869 $X11_PKG_ERRORS
22870
22871 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22872 installed software in a non-standard prefix.
22873
22874 Alternatively, you may set the environment variables X11_CFLAGS
22875 and X11_LIBS to avoid the need to call pkg-config.
22876 See the pkg-config man page for more details." "$LINENO" 5
22877 elif test $pkg_failed = untried; then
22878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22879 printf "%s\n" "no" >&6; }
22880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22881 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22882 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22883 is in your PATH or set the PKG_CONFIG environment variable to the full
22884 path to pkg-config.
22885
22886 Alternatively, you may set the environment variables X11_CFLAGS
22887 and X11_LIBS to avoid the need to call pkg-config.
22888 See the pkg-config man page for more details.
22889
22890 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22891 See \`config.log' for more details" "$LINENO" 5; }
22892 else
22893 X11_CFLAGS=$pkg_cv_X11_CFLAGS
22894 X11_LIBS=$pkg_cv_X11_LIBS
22895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22896 printf "%s\n" "yes" >&6; }
22897
22898 fi
22899 X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
22900
22901 #
22902 # Yes, it would be nice to put the locale data in
22903 # /usr/share, but the locale stuff includes loadable
22904 # libraries which must be located in the same directory
22905 # as the other locale data, so for now, everything lives
22906 # in ${libdir}
22907 #
22908
22909 X11_LOCALEDATADIR="${X11_DATADIR}/locale"
22910
22911 prefix_NONE=
22912 exec_prefix_NONE=
22913 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22914 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22915 eval ax_define_dir="\"$X11_LOCALEDATADIR\""
22916 eval ax_define_dir="\"$ax_define_dir\""
22917 XLOCALEDATADIR="$ax_define_dir"
22918
22919
22920 printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h
22921
22922 test "$prefix_NONE" && prefix=NONE
22923 test "$exec_prefix_NONE" && exec_prefix=NONE
22924
22925
22926
22927
22928 # Check whether --with-locale-lib-dir was given.
22929 if test ${with_locale_lib_dir+y}
22930 then :
22931 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval"
22932 else $as_nop
22933 X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
22934 fi
22935
22936
22937 prefix_NONE=
22938 exec_prefix_NONE=
22939 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22940 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22941 eval ax_define_dir="\"$X11_LOCALELIBDIR\""
22942 eval ax_define_dir="\"$ax_define_dir\""
22943 XLOCALELIBDIR="$ax_define_dir"
22944
22945
22946 printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h
22947
22948 test "$prefix_NONE" && prefix=NONE
22949 test "$exec_prefix_NONE" && exec_prefix=NONE
22950
22951
22952
22953 X11_LOCALEDIR="${X11_LOCALEDATADIR}"
22954
22955 prefix_NONE=
22956 exec_prefix_NONE=
22957 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22958 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22959 eval ax_define_dir="\"$X11_LOCALEDIR\""
22960 eval ax_define_dir="\"$ax_define_dir\""
22961 XLOCALEDIR="$ax_define_dir"
22962
22963
22964 printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h
22965
22966 test "$prefix_NONE" && prefix=NONE
22967 test "$exec_prefix_NONE" && exec_prefix=NONE
22968
22969
22970
22971 locales="\
22972 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \
22973 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \
22974 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \
22975 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \
22976 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \
22977 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \
22978 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \
22979 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \
22980 ru_RU.UTF-8 sr_RS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \
22981 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \
22982 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \
22983 zh_TW zh_TW.big5 zh_TW.UTF-8"
22984
22985
22986 XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
22987
22988 prefix_NONE=
22989 exec_prefix_NONE=
22990 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22991 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22992 eval ax_define_dir="\"$XKEYSYMDB\""
22993 eval ax_define_dir="\"$ax_define_dir\""
22994 XKEYSYMDB="$ax_define_dir"
22995
22996
22997 printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h
22998
22999 test "$prefix_NONE" && prefix=NONE
23000 test "$exec_prefix_NONE" && exec_prefix=NONE
23001
23002
23003 XERRORDB="${X11_DATADIR}/XErrorDB"
23004
23005 prefix_NONE=
23006 exec_prefix_NONE=
23007 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23008 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23009 eval ax_define_dir="\"$XERRORDB\""
23010 eval ax_define_dir="\"$ax_define_dir\""
23011 XERRORDB="$ax_define_dir"
23012
23013
23014 printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h
23015
23016 test "$prefix_NONE" && prefix=NONE
23017 test "$exec_prefix_NONE" && exec_prefix=NONE
23018
23019
23020
23021 # Check whether --enable-malloc0returnsnull was given.
23022 if test ${enable_malloc0returnsnull+y}
23023 then :
23024 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
23025 else $as_nop
23026 MALLOC_ZERO_RETURNS_NULL=auto
23027 fi
23028
23029
23030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
23031 printf %s "checking whether malloc(0) returns NULL... " >&6; }
23032 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
23033 if test ${xorg_cv_malloc0_returns_null+y}
23034 then :
23035 printf %s "(cached) " >&6
23036 else $as_nop
23037 if test "$cross_compiling" = yes
23038 then :
23039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23041 as_fn_error $? "cannot run test program while cross compiling
23042 See \`config.log' for more details" "$LINENO" 5; }
23043 else $as_nop
23044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23045 /* end confdefs.h. */
23046
23047 #include <stdlib.h>
23048
23049 int
23050 main (void)
23051 {
23052
23053 char *m0, *r0, *c0, *p;
23054 m0 = malloc(0);
23055 p = malloc(10);
23056 r0 = realloc(p,0);
23057 c0 = calloc(0,10);
23058 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
23059
23060 ;
23061 return 0;
23062 }
23063 _ACEOF
23064 if ac_fn_c_try_run "$LINENO"
23065 then :
23066 xorg_cv_malloc0_returns_null=yes
23067 else $as_nop
23068 xorg_cv_malloc0_returns_null=no
23069 fi
23070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23071 conftest.$ac_objext conftest.beam conftest.$ac_ext
23072 fi
23073
23074 fi
23075
23076 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
23077 fi
23078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
23079 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
23080
23081 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
23082 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
23083 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
23084 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
23085 else
23086 MALLOC_ZERO_CFLAGS=""
23087 XMALLOC_ZERO_CFLAGS=""
23088 XTMALLOC_ZERO_CFLAGS=""
23089 fi
23090
23091
23092
23093
23094
23095
23096 ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile specs/i18n/framework/Makefile specs/i18n/localedb/Makefile specs/i18n/trans/Makefile specs/libX11/Makefile specs/XIM/Makefile specs/XKB/Makefile x11.pc x11-xcb.pc"
23097
23098 cat >confcache <<\_ACEOF
23099 # This file is a shell script that caches the results of configure
23100 # tests run on this system so they can be shared between configure
23101 # scripts and configure runs, see configure's option --config-cache.
23102 # It is not useful on other systems. If it contains results you don't
23103 # want to keep, you may remove or edit it.
23104 #
23105 # config.status only pays attention to the cache file if you give it
23106 # the --recheck option to rerun configure.
23107 #
23108 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23109 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23110 # following values.
23111
23112 _ACEOF
23113
23114 # The following way of writing the cache mishandles newlines in values,
23115 # but we know of no workaround that is simple, portable, and efficient.
23116 # So, we kill variables containing newlines.
23117 # Ultrix sh set writes to stderr and can't be redirected directly,
23118 # and sets the high bit in the cache file unless we assign to the vars.
23119 (
23120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23121 eval ac_val=\$$ac_var
23122 case $ac_val in #(
23123 *${as_nl}*)
23124 case $ac_var in #(
23125 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23126 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23127 esac
23128 case $ac_var in #(
23129 _ | IFS | as_nl) ;; #(
23130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23131 *) { eval $ac_var=; unset $ac_var;} ;;
23132 esac ;;
23133 esac
23134 done
23135
23136 (set) 2>&1 |
23137 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23138 *${as_nl}ac_space=\ *)
23139 # `set' does not quote correctly, so add quotes: double-quote
23140 # substitution turns \\\\ into \\, and sed turns \\ into \.
23141 sed -n \
23142 "s/'/'\\\\''/g;
23143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23144 ;; #(
23145 *)
23146 # `set' quotes correctly as required by POSIX, so do not add quotes.
23147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23148 ;;
23149 esac |
23150 sort
23151 ) |
23152 sed '
23153 /^ac_cv_env_/b end
23154 t clear
23155 :clear
23156 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23157 t end
23158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23159 :end' >>confcache
23160 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23161 if test -w "$cache_file"; then
23162 if test "x$cache_file" != "x/dev/null"; then
23163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23164 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23165 if test ! -f "$cache_file" || test -h "$cache_file"; then
23166 cat confcache >"$cache_file"
23167 else
23168 case $cache_file in #(
23169 */* | ?:*)
23170 mv -f confcache "$cache_file"$$ &&
23171 mv -f "$cache_file"$$ "$cache_file" ;; #(
23172 *)
23173 mv -f confcache "$cache_file" ;;
23174 esac
23175 fi
23176 fi
23177 else
23178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23179 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23180 fi
23181 fi
23182 rm -f confcache
23183
23184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23185 # Let make expand exec_prefix.
23186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23187
23188 DEFS=-DHAVE_CONFIG_H
23189
23190 ac_libobjs=
23191 ac_ltlibobjs=
23192 U=
23193 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23194 # 1. Remove the extension, and $U if already installed.
23195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23196 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23198 # will be set to the directory where LIBOBJS objects are built.
23199 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23200 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23201 done
23202 LIBOBJS=$ac_libobjs
23203
23204 LTLIBOBJS=$ac_ltlibobjs
23205
23206
23207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23208 printf %s "checking that generated files are newer than configure... " >&6; }
23209 if test -n "$am_sleep_pid"; then
23210 # Hide warnings about reused PIDs.
23211 wait $am_sleep_pid 2>/dev/null
23212 fi
23213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23214 printf "%s\n" "done" >&6; }
23215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23216 as_fn_error $? "conditional \"AMDEP\" was never defined.
23217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23218 fi
23219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23220 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23222 fi
23223 if test -n "$EXEEXT"; then
23224 am__EXEEXT_TRUE=
23225 am__EXEEXT_FALSE='#'
23226 else
23227 am__EXEEXT_TRUE='#'
23228 am__EXEEXT_FALSE=
23229 fi
23230
23231 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
23232 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
23233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23234 fi
23235 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
23236 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
23237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23238 fi
23239 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
23240 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
23241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23242 fi
23243 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
23244 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
23245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23246 fi
23247 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
23248 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
23249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23250 fi
23251 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
23252 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
23253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23254 fi
23255 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
23256 as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
23257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23258 fi
23259 if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
23260 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
23261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23262 fi
23263 if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
23264 as_fn_error $? "conditional \"OS2\" was never defined.
23265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23266 fi
23267 if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
23268 as_fn_error $? "conditional \"XCMS\" was never defined.
23269 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23270 fi
23271 if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
23272 as_fn_error $? "conditional \"XLOCALE\" was never defined.
23273 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23274 fi
23275 if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
23276 as_fn_error $? "conditional \"XKB\" was never defined.
23277 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23278 fi
23279 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
23280 as_fn_error $? "conditional \"LINT\" was never defined.
23281 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23282 fi
23283 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
23284 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
23285 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23286 fi
23287
23288 : "${CONFIG_STATUS=./config.status}"
23289 ac_write_fail=0
23290 ac_clean_files_save=$ac_clean_files
23291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23293 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23294 as_write_fail=0
23295 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23296 #! $SHELL
23297 # Generated by $as_me.
23298 # Run this file to recreate the current configuration.
23299 # Compiler output produced by configure, useful for debugging
23300 # configure, is in config.log if it exists.
23301
23302 debug=false
23303 ac_cs_recheck=false
23304 ac_cs_silent=false
23305
23306 SHELL=\${CONFIG_SHELL-$SHELL}
23307 export SHELL
23308 _ASEOF
23309 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23310 ## -------------------- ##
23311 ## M4sh Initialization. ##
23312 ## -------------------- ##
23313
23314 # Be more Bourne compatible
23315 DUALCASE=1; export DUALCASE # for MKS sh
23316 as_nop=:
23317 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23318 then :
23319 emulate sh
23320 NULLCMD=:
23321 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23322 # is contrary to our usage. Disable this feature.
23323 alias -g '${1+"$@"}'='"$@"'
23324 setopt NO_GLOB_SUBST
23325 else $as_nop
23326 case `(set -o) 2>/dev/null` in #(
23327 *posix*) :
23328 set -o posix ;; #(
23329 *) :
23330 ;;
23331 esac
23332 fi
23333
23334
23335
23336 # Reset variables that may have inherited troublesome values from
23337 # the environment.
23338
23339 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23340 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23341 # side effect of setting IFS to empty, thus disabling word splitting.)
23342 # Quoting is to prevent editors from complaining about space-tab.
23343 as_nl='
23344 '
23345 export as_nl
23346 IFS=" "" $as_nl"
23347
23348 PS1='$ '
23349 PS2='> '
23350 PS4='+ '
23351
23352 # Ensure predictable behavior from utilities with locale-dependent output.
23353 LC_ALL=C
23354 export LC_ALL
23355 LANGUAGE=C
23356 export LANGUAGE
23357
23358 # We cannot yet rely on "unset" to work, but we need these variables
23359 # to be unset--not just set to an empty or harmless value--now, to
23360 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23361 # also avoids known problems related to "unset" and subshell syntax
23362 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23363 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23364 do eval test \${$as_var+y} \
23365 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23366 done
23367
23368 # Ensure that fds 0, 1, and 2 are open.
23369 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23370 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23371 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23372
23373 # The user is always right.
23374 if ${PATH_SEPARATOR+false} :; then
23375 PATH_SEPARATOR=:
23376 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23377 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23378 PATH_SEPARATOR=';'
23379 }
23380 fi
23381
23382
23383 # Find who we are. Look in the path if we contain no directory separator.
23384 as_myself=
23385 case $0 in #((
23386 *[\\/]* ) as_myself=$0 ;;
23387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23388 for as_dir in $PATH
23389 do
23390 IFS=$as_save_IFS
23391 case $as_dir in #(((
23392 '') as_dir=./ ;;
23393 */) ;;
23394 *) as_dir=$as_dir/ ;;
23395 esac
23396 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23397 done
23398 IFS=$as_save_IFS
23399
23400 ;;
23401 esac
23402 # We did not find ourselves, most probably we were run as `sh COMMAND'
23403 # in which case we are not to be found in the path.
23404 if test "x$as_myself" = x; then
23405 as_myself=$0
23406 fi
23407 if test ! -f "$as_myself"; then
23408 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23409 exit 1
23410 fi
23411
23412
23413
23414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23415 # ----------------------------------------
23416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23418 # script with STATUS, using 1 if that was 0.
23419 as_fn_error ()
23420 {
23421 as_status=$1; test $as_status -eq 0 && as_status=1
23422 if test "$4"; then
23423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23425 fi
23426 printf "%s\n" "$as_me: error: $2" >&2
23427 as_fn_exit $as_status
23428 } # as_fn_error
23429
23430
23431
23432 # as_fn_set_status STATUS
23433 # -----------------------
23434 # Set $? to STATUS, without forking.
23435 as_fn_set_status ()
23436 {
23437 return $1
23438 } # as_fn_set_status
23439
23440 # as_fn_exit STATUS
23441 # -----------------
23442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23443 as_fn_exit ()
23444 {
23445 set +e
23446 as_fn_set_status $1
23447 exit $1
23448 } # as_fn_exit
23449
23450 # as_fn_unset VAR
23451 # ---------------
23452 # Portably unset VAR.
23453 as_fn_unset ()
23454 {
23455 { eval $1=; unset $1;}
23456 }
23457 as_unset=as_fn_unset
23458
23459 # as_fn_append VAR VALUE
23460 # ----------------------
23461 # Append the text in VALUE to the end of the definition contained in VAR. Take
23462 # advantage of any shell optimizations that allow amortized linear growth over
23463 # repeated appends, instead of the typical quadratic growth present in naive
23464 # implementations.
23465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23466 then :
23467 eval 'as_fn_append ()
23468 {
23469 eval $1+=\$2
23470 }'
23471 else $as_nop
23472 as_fn_append ()
23473 {
23474 eval $1=\$$1\$2
23475 }
23476 fi # as_fn_append
23477
23478 # as_fn_arith ARG...
23479 # ------------------
23480 # Perform arithmetic evaluation on the ARGs, and store the result in the
23481 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23482 # must be portable across $(()) and expr.
23483 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23484 then :
23485 eval 'as_fn_arith ()
23486 {
23487 as_val=$(( $* ))
23488 }'
23489 else $as_nop
23490 as_fn_arith ()
23491 {
23492 as_val=`expr "$@" || test $? -eq 1`
23493 }
23494 fi # as_fn_arith
23495
23496
23497 if expr a : '\(a\)' >/dev/null 2>&1 &&
23498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23499 as_expr=expr
23500 else
23501 as_expr=false
23502 fi
23503
23504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23505 as_basename=basename
23506 else
23507 as_basename=false
23508 fi
23509
23510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23511 as_dirname=dirname
23512 else
23513 as_dirname=false
23514 fi
23515
23516 as_me=`$as_basename -- "$0" ||
23517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23518 X"$0" : 'X\(//\)$' \| \
23519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23520 printf "%s\n" X/"$0" |
23521 sed '/^.*\/\([^/][^/]*\)\/*$/{
23522 s//\1/
23523 q
23524 }
23525 /^X\/\(\/\/\)$/{
23526 s//\1/
23527 q
23528 }
23529 /^X\/\(\/\).*/{
23530 s//\1/
23531 q
23532 }
23533 s/.*/./; q'`
23534
23535 # Avoid depending upon Character Ranges.
23536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23539 as_cr_digits='0123456789'
23540 as_cr_alnum=$as_cr_Letters$as_cr_digits
23541
23542
23543 # Determine whether it's possible to make 'echo' print without a newline.
23544 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23545 # for compatibility with existing Makefiles.
23546 ECHO_C= ECHO_N= ECHO_T=
23547 case `echo -n x` in #(((((
23548 -n*)
23549 case `echo 'xy\c'` in
23550 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23551 xy) ECHO_C='\c';;
23552 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23553 ECHO_T=' ';;
23554 esac;;
23555 *)
23556 ECHO_N='-n';;
23557 esac
23558
23559 # For backward compatibility with old third-party macros, we provide
23560 # the shell variables $as_echo and $as_echo_n. New code should use
23561 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23562 as_echo='printf %s\n'
23563 as_echo_n='printf %s'
23564
23565 rm -f conf$$ conf$$.exe conf$$.file
23566 if test -d conf$$.dir; then
23567 rm -f conf$$.dir/conf$$.file
23568 else
23569 rm -f conf$$.dir
23570 mkdir conf$$.dir 2>/dev/null
23571 fi
23572 if (echo >conf$$.file) 2>/dev/null; then
23573 if ln -s conf$$.file conf$$ 2>/dev/null; then
23574 as_ln_s='ln -s'
23575 # ... but there are two gotchas:
23576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23578 # In both cases, we have to default to `cp -pR'.
23579 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23580 as_ln_s='cp -pR'
23581 elif ln conf$$.file conf$$ 2>/dev/null; then
23582 as_ln_s=ln
23583 else
23584 as_ln_s='cp -pR'
23585 fi
23586 else
23587 as_ln_s='cp -pR'
23588 fi
23589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23590 rmdir conf$$.dir 2>/dev/null
23591
23592
23593 # as_fn_mkdir_p
23594 # -------------
23595 # Create "$as_dir" as a directory, including parents if necessary.
23596 as_fn_mkdir_p ()
23597 {
23598
23599 case $as_dir in #(
23600 -*) as_dir=./$as_dir;;
23601 esac
23602 test -d "$as_dir" || eval $as_mkdir_p || {
23603 as_dirs=
23604 while :; do
23605 case $as_dir in #(
23606 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23607 *) as_qdir=$as_dir;;
23608 esac
23609 as_dirs="'$as_qdir' $as_dirs"
23610 as_dir=`$as_dirname -- "$as_dir" ||
23611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23612 X"$as_dir" : 'X\(//\)[^/]' \| \
23613 X"$as_dir" : 'X\(//\)$' \| \
23614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23615 printf "%s\n" X"$as_dir" |
23616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23617 s//\1/
23618 q
23619 }
23620 /^X\(\/\/\)[^/].*/{
23621 s//\1/
23622 q
23623 }
23624 /^X\(\/\/\)$/{
23625 s//\1/
23626 q
23627 }
23628 /^X\(\/\).*/{
23629 s//\1/
23630 q
23631 }
23632 s/.*/./; q'`
23633 test -d "$as_dir" && break
23634 done
23635 test -z "$as_dirs" || eval "mkdir $as_dirs"
23636 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23637
23638
23639 } # as_fn_mkdir_p
23640 if mkdir -p . 2>/dev/null; then
23641 as_mkdir_p='mkdir -p "$as_dir"'
23642 else
23643 test -d ./-p && rmdir ./-p
23644 as_mkdir_p=false
23645 fi
23646
23647
23648 # as_fn_executable_p FILE
23649 # -----------------------
23650 # Test if FILE is an executable regular file.
23651 as_fn_executable_p ()
23652 {
23653 test -f "$1" && test -x "$1"
23654 } # as_fn_executable_p
23655 as_test_x='test -x'
23656 as_executable_p=as_fn_executable_p
23657
23658 # Sed expression to map a string onto a valid CPP name.
23659 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23660
23661 # Sed expression to map a string onto a valid variable name.
23662 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23663
23664
23665 exec 6>&1
23666 ## ----------------------------------- ##
23667 ## Main body of $CONFIG_STATUS script. ##
23668 ## ----------------------------------- ##
23669 _ASEOF
23670 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23671
23672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23673 # Save the log message, to keep $0 and so on meaningful, and to
23674 # report actual input values of CONFIG_FILES etc. instead of their
23675 # values after options handling.
23676 ac_log="
23677 This file was extended by libX11 $as_me 1.8.3, which was
23678 generated by GNU Autoconf 2.71. Invocation command line was
23679
23680 CONFIG_FILES = $CONFIG_FILES
23681 CONFIG_HEADERS = $CONFIG_HEADERS
23682 CONFIG_LINKS = $CONFIG_LINKS
23683 CONFIG_COMMANDS = $CONFIG_COMMANDS
23684 $ $0 $@
23685
23686 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23687 "
23688
23689 _ACEOF
23690
23691 case $ac_config_files in *"
23692 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23693 esac
23694
23695 case $ac_config_headers in *"
23696 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23697 esac
23698
23699
23700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23701 # Files that config.status was made for.
23702 config_files="$ac_config_files"
23703 config_headers="$ac_config_headers"
23704 config_commands="$ac_config_commands"
23705
23706 _ACEOF
23707
23708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23709 ac_cs_usage="\
23710 \`$as_me' instantiates files and other configuration actions
23711 from templates according to the current configuration. Unless the files
23712 and actions are specified as TAGs, all are instantiated by default.
23713
23714 Usage: $0 [OPTION]... [TAG]...
23715
23716 -h, --help print this help, then exit
23717 -V, --version print version number and configuration settings, then exit
23718 --config print configuration, then exit
23719 -q, --quiet, --silent
23720 do not print progress messages
23721 -d, --debug don't remove temporary files
23722 --recheck update $as_me by reconfiguring in the same conditions
23723 --file=FILE[:TEMPLATE]
23724 instantiate the configuration file FILE
23725 --header=FILE[:TEMPLATE]
23726 instantiate the configuration header FILE
23727
23728 Configuration files:
23729 $config_files
23730
23731 Configuration headers:
23732 $config_headers
23733
23734 Configuration commands:
23735 $config_commands
23736
23737 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>."
23738
23739 _ACEOF
23740 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23741 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23743 ac_cs_config='$ac_cs_config_escaped'
23744 ac_cs_version="\\
23745 libX11 config.status 1.8.3
23746 configured by $0, generated by GNU Autoconf 2.71,
23747 with options \\"\$ac_cs_config\\"
23748
23749 Copyright (C) 2021 Free Software Foundation, Inc.
23750 This config.status script is free software; the Free Software Foundation
23751 gives unlimited permission to copy, distribute and modify it."
23752
23753 ac_pwd='$ac_pwd'
23754 srcdir='$srcdir'
23755 INSTALL='$INSTALL'
23756 MKDIR_P='$MKDIR_P'
23757 AWK='$AWK'
23758 test -n "\$AWK" || AWK=awk
23759 _ACEOF
23760
23761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23762 # The default lists apply if the user does not specify any file.
23763 ac_need_defaults=:
23764 while test $# != 0
23765 do
23766 case $1 in
23767 --*=?*)
23768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23770 ac_shift=:
23771 ;;
23772 --*=)
23773 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23774 ac_optarg=
23775 ac_shift=:
23776 ;;
23777 *)
23778 ac_option=$1
23779 ac_optarg=$2
23780 ac_shift=shift
23781 ;;
23782 esac
23783
23784 case $ac_option in
23785 # Handling of the options.
23786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23787 ac_cs_recheck=: ;;
23788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23789 printf "%s\n" "$ac_cs_version"; exit ;;
23790 --config | --confi | --conf | --con | --co | --c )
23791 printf "%s\n" "$ac_cs_config"; exit ;;
23792 --debug | --debu | --deb | --de | --d | -d )
23793 debug=: ;;
23794 --file | --fil | --fi | --f )
23795 $ac_shift
23796 case $ac_optarg in
23797 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23798 '') as_fn_error $? "missing file argument" ;;
23799 esac
23800 as_fn_append CONFIG_FILES " '$ac_optarg'"
23801 ac_need_defaults=false;;
23802 --header | --heade | --head | --hea )
23803 $ac_shift
23804 case $ac_optarg in
23805 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23806 esac
23807 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23808 ac_need_defaults=false;;
23809 --he | --h)
23810 # Conflict between --help and --header
23811 as_fn_error $? "ambiguous option: \`$1'
23812 Try \`$0 --help' for more information.";;
23813 --help | --hel | -h )
23814 printf "%s\n" "$ac_cs_usage"; exit ;;
23815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23816 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23817 ac_cs_silent=: ;;
23818
23819 # This is an error.
23820 -*) as_fn_error $? "unrecognized option: \`$1'
23821 Try \`$0 --help' for more information." ;;
23822
23823 *) as_fn_append ac_config_targets " $1"
23824 ac_need_defaults=false ;;
23825
23826 esac
23827 shift
23828 done
23829
23830 ac_configure_extra_args=
23831
23832 if $ac_cs_silent; then
23833 exec 6>/dev/null
23834 ac_configure_extra_args="$ac_configure_extra_args --silent"
23835 fi
23836
23837 _ACEOF
23838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23839 if \$ac_cs_recheck; then
23840 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23841 shift
23842 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23843 CONFIG_SHELL='$SHELL'
23844 export CONFIG_SHELL
23845 exec "\$@"
23846 fi
23847
23848 _ACEOF
23849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23850 exec 5>>config.log
23851 {
23852 echo
23853 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23854 ## Running $as_me. ##
23855 _ASBOX
23856 printf "%s\n" "$ac_log"
23857 } >&5
23858
23859 _ACEOF
23860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23861 #
23862 # INIT-COMMANDS
23863 #
23864 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23865
23866
23867 # The HP-UX ksh and POSIX shell print the target directory to stdout
23868 # if CDPATH is set.
23869 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23870
23871 sed_quote_subst='$sed_quote_subst'
23872 double_quote_subst='$double_quote_subst'
23873 delay_variable_subst='$delay_variable_subst'
23874 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23875 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23876 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23877 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23878 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23879 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23880 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23881 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23882 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23883 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23884 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23885 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23886 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23887 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23888 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23889 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23890 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23891 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23892 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23893 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23894 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23895 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23896 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23897 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23898 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23899 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23900 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23901 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23902 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23903 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23904 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23905 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23906 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23907 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23908 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23909 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23910 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23911 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23912 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23913 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23914 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23915 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23916 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23917 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23918 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23919 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23920 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23921 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23922 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23923 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23924 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23925 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23926 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23927 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23928 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23929 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23930 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23931 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23932 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23933 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23934 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"`'
23935 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23936 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23937 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23938 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23939 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23940 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23941 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23942 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23943 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23944 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23945 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23946 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23947 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23948 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23949 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23950 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23951 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23952 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23953 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23954 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23955 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23956 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23957 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23958 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23959 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23960 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23961 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23962 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23963 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23964 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23965 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23966 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23967 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23968 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23969 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23970 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23971 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23972 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23973 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23974 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23975 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23976 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23977 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23978 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23979 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23980 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23981 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23982 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23983 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23984 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23985 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23986 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23987 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23988 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23989 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23990 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23991 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23992 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23993 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23994 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23995 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23996 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23997 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23998 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23999 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24000 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24001 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24002 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24003 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24004 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24005 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24006 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24007 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24008 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24009 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24010 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24011
24012 LTCC='$LTCC'
24013 LTCFLAGS='$LTCFLAGS'
24014 compiler='$compiler_DEFAULT'
24015
24016 # A function that is used when there is no print builtin or printf.
24017 func_fallback_echo ()
24018 {
24019 eval 'cat <<_LTECHO_EOF
24020 \$1
24021 _LTECHO_EOF'
24022 }
24023
24024 # Quote evaled strings.
24025 for var in SHELL \
24026 ECHO \
24027 PATH_SEPARATOR \
24028 SED \
24029 GREP \
24030 EGREP \
24031 FGREP \
24032 LD \
24033 NM \
24034 LN_S \
24035 lt_SP2NL \
24036 lt_NL2SP \
24037 reload_flag \
24038 FILECMD \
24039 OBJDUMP \
24040 deplibs_check_method \
24041 file_magic_cmd \
24042 file_magic_glob \
24043 want_nocaseglob \
24044 DLLTOOL \
24045 sharedlib_from_linklib_cmd \
24046 AR \
24047 archiver_list_spec \
24048 STRIP \
24049 RANLIB \
24050 CC \
24051 CFLAGS \
24052 compiler \
24053 lt_cv_sys_global_symbol_pipe \
24054 lt_cv_sys_global_symbol_to_cdecl \
24055 lt_cv_sys_global_symbol_to_import \
24056 lt_cv_sys_global_symbol_to_c_name_address \
24057 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24058 lt_cv_nm_interface \
24059 nm_file_list_spec \
24060 lt_cv_truncate_bin \
24061 lt_prog_compiler_no_builtin_flag \
24062 lt_prog_compiler_pic \
24063 lt_prog_compiler_wl \
24064 lt_prog_compiler_static \
24065 lt_cv_prog_compiler_c_o \
24066 need_locks \
24067 MANIFEST_TOOL \
24068 DSYMUTIL \
24069 NMEDIT \
24070 LIPO \
24071 OTOOL \
24072 OTOOL64 \
24073 shrext_cmds \
24074 export_dynamic_flag_spec \
24075 whole_archive_flag_spec \
24076 compiler_needs_object \
24077 with_gnu_ld \
24078 allow_undefined_flag \
24079 no_undefined_flag \
24080 hardcode_libdir_flag_spec \
24081 hardcode_libdir_separator \
24082 exclude_expsyms \
24083 include_expsyms \
24084 file_list_spec \
24085 variables_saved_for_relink \
24086 libname_spec \
24087 library_names_spec \
24088 soname_spec \
24089 install_override_mode \
24090 finish_eval \
24091 old_striplib \
24092 striplib; do
24093 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24094 *[\\\\\\\`\\"\\\$]*)
24095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24096 ;;
24097 *)
24098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24099 ;;
24100 esac
24101 done
24102
24103 # Double-quote double-evaled strings.
24104 for var in reload_cmds \
24105 old_postinstall_cmds \
24106 old_postuninstall_cmds \
24107 old_archive_cmds \
24108 extract_expsyms_cmds \
24109 old_archive_from_new_cmds \
24110 old_archive_from_expsyms_cmds \
24111 archive_cmds \
24112 archive_expsym_cmds \
24113 module_cmds \
24114 module_expsym_cmds \
24115 export_symbols_cmds \
24116 prelink_cmds \
24117 postlink_cmds \
24118 postinstall_cmds \
24119 postuninstall_cmds \
24120 finish_cmds \
24121 sys_lib_search_path_spec \
24122 configure_time_dlsearch_path \
24123 configure_time_lt_sys_library_path; do
24124 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24125 *[\\\\\\\`\\"\\\$]*)
24126 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24127 ;;
24128 *)
24129 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24130 ;;
24131 esac
24132 done
24133
24134 ac_aux_dir='$ac_aux_dir'
24135
24136 # See if we are running on zsh, and set the options that allow our
24137 # commands through without removal of \ escapes INIT.
24138 if test -n "\${ZSH_VERSION+set}"; then
24139 setopt NO_GLOB_SUBST
24140 fi
24141
24142
24143 PACKAGE='$PACKAGE'
24144 VERSION='$VERSION'
24145 RM='$RM'
24146 ofile='$ofile'
24147
24148
24149
24150
24151 _ACEOF
24152
24153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24154
24155 # Handling of arguments.
24156 for ac_config_target in $ac_config_targets
24157 do
24158 case $ac_config_target in
24159 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24160 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
24161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24164 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24165 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24166 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
24167 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24168 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
24169 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
24170 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
24171 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24172 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
24173 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
24174 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
24175 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
24176 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
24177 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
24178 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
24179 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
24180 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
24181 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
24182 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
24183 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
24184 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
24185 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
24186 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
24187 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
24188 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
24189 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
24190 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
24191 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
24192 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
24193
24194 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24195 esac
24196 done
24197
24198
24199 # If the user did not use the arguments to specify the items to instantiate,
24200 # then the envvar interface is used. Set only those that are not.
24201 # We use the long form for the default assignment because of an extremely
24202 # bizarre bug on SunOS 4.1.3.
24203 if $ac_need_defaults; then
24204 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24205 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24206 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24207 fi
24208
24209 # Have a temporary directory for convenience. Make it in the build tree
24210 # simply because there is no reason against having it here, and in addition,
24211 # creating and moving files from /tmp can sometimes cause problems.
24212 # Hook for its removal unless debugging.
24213 # Note that there is a small window in which the directory will not be cleaned:
24214 # after its creation but before its name has been assigned to `$tmp'.
24215 $debug ||
24216 {
24217 tmp= ac_tmp=
24218 trap 'exit_status=$?
24219 : "${ac_tmp:=$tmp}"
24220 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24221 ' 0
24222 trap 'as_fn_exit 1' 1 2 13 15
24223 }
24224 # Create a (secure) tmp directory for tmp files.
24225
24226 {
24227 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24228 test -d "$tmp"
24229 } ||
24230 {
24231 tmp=./conf$$-$RANDOM
24232 (umask 077 && mkdir "$tmp")
24233 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24234 ac_tmp=$tmp
24235
24236 # Set up the scripts for CONFIG_FILES section.
24237 # No need to generate them if there are no CONFIG_FILES.
24238 # This happens for instance with `./config.status config.h'.
24239 if test -n "$CONFIG_FILES"; then
24240
24241
24242 ac_cr=`echo X | tr X '\015'`
24243 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24244 # But we know of no other shell where ac_cr would be empty at this
24245 # point, so we can use a bashism as a fallback.
24246 if test "x$ac_cr" = x; then
24247 eval ac_cr=\$\'\\r\'
24248 fi
24249 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24250 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24251 ac_cs_awk_cr='\\r'
24252 else
24253 ac_cs_awk_cr=$ac_cr
24254 fi
24255
24256 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24257 _ACEOF
24258
24259
24260 {
24261 echo "cat >conf$$subs.awk <<_ACEOF" &&
24262 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24263 echo "_ACEOF"
24264 } >conf$$subs.sh ||
24265 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24266 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24267 ac_delim='%!_!# '
24268 for ac_last_try in false false false false false :; do
24269 . ./conf$$subs.sh ||
24270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24271
24272 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24273 if test $ac_delim_n = $ac_delim_num; then
24274 break
24275 elif $ac_last_try; then
24276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24277 else
24278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24279 fi
24280 done
24281 rm -f conf$$subs.sh
24282
24283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24284 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24285 _ACEOF
24286 sed -n '
24287 h
24288 s/^/S["/; s/!.*/"]=/
24289 p
24290 g
24291 s/^[^!]*!//
24292 :repl
24293 t repl
24294 s/'"$ac_delim"'$//
24295 t delim
24296 :nl
24297 h
24298 s/\(.\{148\}\)..*/\1/
24299 t more1
24300 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24301 p
24302 n
24303 b repl
24304 :more1
24305 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24306 p
24307 g
24308 s/.\{148\}//
24309 t nl
24310 :delim
24311 h
24312 s/\(.\{148\}\)..*/\1/
24313 t more2
24314 s/["\\]/\\&/g; s/^/"/; s/$/"/
24315 p
24316 b
24317 :more2
24318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24319 p
24320 g
24321 s/.\{148\}//
24322 t delim
24323 ' <conf$$subs.awk | sed '
24324 /^[^""]/{
24325 N
24326 s/\n//
24327 }
24328 ' >>$CONFIG_STATUS || ac_write_fail=1
24329 rm -f conf$$subs.awk
24330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24331 _ACAWK
24332 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24333 for (key in S) S_is_set[key] = 1
24334 FS = ""
24335
24336 }
24337 {
24338 line = $ 0
24339 nfields = split(line, field, "@")
24340 substed = 0
24341 len = length(field[1])
24342 for (i = 2; i < nfields; i++) {
24343 key = field[i]
24344 keylen = length(key)
24345 if (S_is_set[key]) {
24346 value = S[key]
24347 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24348 len += length(value) + length(field[++i])
24349 substed = 1
24350 } else
24351 len += 1 + keylen
24352 }
24353
24354 print line
24355 }
24356
24357 _ACAWK
24358 _ACEOF
24359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24360 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24361 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24362 else
24363 cat
24364 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24365 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24366 _ACEOF
24367
24368 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24369 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24370 # trailing colons and then remove the whole line if VPATH becomes empty
24371 # (actually we leave an empty line to preserve line numbers).
24372 if test "x$srcdir" = x.; then
24373 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24374 h
24375 s///
24376 s/^/:/
24377 s/[ ]*$/:/
24378 s/:\$(srcdir):/:/g
24379 s/:\${srcdir}:/:/g
24380 s/:@srcdir@:/:/g
24381 s/^:*//
24382 s/:*$//
24383 x
24384 s/\(=[ ]*\).*/\1/
24385 G
24386 s/\n//
24387 s/^[^=]*=[ ]*$//
24388 }'
24389 fi
24390
24391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24392 fi # test -n "$CONFIG_FILES"
24393
24394 # Set up the scripts for CONFIG_HEADERS section.
24395 # No need to generate them if there are no CONFIG_HEADERS.
24396 # This happens for instance with `./config.status Makefile'.
24397 if test -n "$CONFIG_HEADERS"; then
24398 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24399 BEGIN {
24400 _ACEOF
24401
24402 # Transform confdefs.h into an awk script `defines.awk', embedded as
24403 # here-document in config.status, that substitutes the proper values into
24404 # config.h.in to produce config.h.
24405
24406 # Create a delimiter string that does not exist in confdefs.h, to ease
24407 # handling of long lines.
24408 ac_delim='%!_!# '
24409 for ac_last_try in false false :; do
24410 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24411 if test -z "$ac_tt"; then
24412 break
24413 elif $ac_last_try; then
24414 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24415 else
24416 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24417 fi
24418 done
24419
24420 # For the awk script, D is an array of macro values keyed by name,
24421 # likewise P contains macro parameters if any. Preserve backslash
24422 # newline sequences.
24423
24424 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24425 sed -n '
24426 s/.\{148\}/&'"$ac_delim"'/g
24427 t rset
24428 :rset
24429 s/^[ ]*#[ ]*define[ ][ ]*/ /
24430 t def
24431 d
24432 :def
24433 s/\\$//
24434 t bsnl
24435 s/["\\]/\\&/g
24436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24437 D["\1"]=" \3"/p
24438 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24439 d
24440 :bsnl
24441 s/["\\]/\\&/g
24442 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24443 D["\1"]=" \3\\\\\\n"\\/p
24444 t cont
24445 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24446 t cont
24447 d
24448 :cont
24449 n
24450 s/.\{148\}/&'"$ac_delim"'/g
24451 t clear
24452 :clear
24453 s/\\$//
24454 t bsnlc
24455 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24456 d
24457 :bsnlc
24458 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24459 b cont
24460 ' <confdefs.h | sed '
24461 s/'"$ac_delim"'/"\\\
24462 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24463
24464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24465 for (key in D) D_is_set[key] = 1
24466 FS = ""
24467 }
24468 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24469 line = \$ 0
24470 split(line, arg, " ")
24471 if (arg[1] == "#") {
24472 defundef = arg[2]
24473 mac1 = arg[3]
24474 } else {
24475 defundef = substr(arg[1], 2)
24476 mac1 = arg[2]
24477 }
24478 split(mac1, mac2, "(") #)
24479 macro = mac2[1]
24480 prefix = substr(line, 1, index(line, defundef) - 1)
24481 if (D_is_set[macro]) {
24482 # Preserve the white space surrounding the "#".
24483 print prefix "define", macro P[macro] D[macro]
24484 next
24485 } else {
24486 # Replace #undef with comments. This is necessary, for example,
24487 # in the case of _POSIX_SOURCE, which is predefined and required
24488 # on some systems where configure will not decide to define it.
24489 if (defundef == "undef") {
24490 print "/*", prefix defundef, macro, "*/"
24491 next
24492 }
24493 }
24494 }
24495 { print }
24496 _ACAWK
24497 _ACEOF
24498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24499 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24500 fi # test -n "$CONFIG_HEADERS"
24501
24502
24503 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24504 shift
24505 for ac_tag
24506 do
24507 case $ac_tag in
24508 :[FHLC]) ac_mode=$ac_tag; continue;;
24509 esac
24510 case $ac_mode$ac_tag in
24511 :[FHL]*:*);;
24512 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24513 :[FH]-) ac_tag=-:-;;
24514 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24515 esac
24516 ac_save_IFS=$IFS
24517 IFS=:
24518 set x $ac_tag
24519 IFS=$ac_save_IFS
24520 shift
24521 ac_file=$1
24522 shift
24523
24524 case $ac_mode in
24525 :L) ac_source=$1;;
24526 :[FH])
24527 ac_file_inputs=
24528 for ac_f
24529 do
24530 case $ac_f in
24531 -) ac_f="$ac_tmp/stdin";;
24532 *) # Look for the file first in the build tree, then in the source tree
24533 # (if the path is not absolute). The absolute path cannot be DOS-style,
24534 # because $ac_f cannot contain `:'.
24535 test -f "$ac_f" ||
24536 case $ac_f in
24537 [\\/$]*) false;;
24538 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24539 esac ||
24540 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24541 esac
24542 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24543 as_fn_append ac_file_inputs " '$ac_f'"
24544 done
24545
24546 # Let's still pretend it is `configure' which instantiates (i.e., don't
24547 # use $as_me), people would be surprised to read:
24548 # /* config.h. Generated by config.status. */
24549 configure_input='Generated from '`
24550 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24551 `' by configure.'
24552 if test x"$ac_file" != x-; then
24553 configure_input="$ac_file. $configure_input"
24554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24555 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24556 fi
24557 # Neutralize special characters interpreted by sed in replacement strings.
24558 case $configure_input in #(
24559 *\&* | *\|* | *\\* )
24560 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24561 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24562 *) ac_sed_conf_input=$configure_input;;
24563 esac
24564
24565 case $ac_tag in
24566 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24568 esac
24569 ;;
24570 esac
24571
24572 ac_dir=`$as_dirname -- "$ac_file" ||
24573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24574 X"$ac_file" : 'X\(//\)[^/]' \| \
24575 X"$ac_file" : 'X\(//\)$' \| \
24576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24577 printf "%s\n" X"$ac_file" |
24578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24579 s//\1/
24580 q
24581 }
24582 /^X\(\/\/\)[^/].*/{
24583 s//\1/
24584 q
24585 }
24586 /^X\(\/\/\)$/{
24587 s//\1/
24588 q
24589 }
24590 /^X\(\/\).*/{
24591 s//\1/
24592 q
24593 }
24594 s/.*/./; q'`
24595 as_dir="$ac_dir"; as_fn_mkdir_p
24596 ac_builddir=.
24597
24598 case "$ac_dir" in
24599 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24600 *)
24601 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24602 # A ".." for each directory in $ac_dir_suffix.
24603 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24604 case $ac_top_builddir_sub in
24605 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24606 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24607 esac ;;
24608 esac
24609 ac_abs_top_builddir=$ac_pwd
24610 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24611 # for backward compatibility:
24612 ac_top_builddir=$ac_top_build_prefix
24613
24614 case $srcdir in
24615 .) # We are building in place.
24616 ac_srcdir=.
24617 ac_top_srcdir=$ac_top_builddir_sub
24618 ac_abs_top_srcdir=$ac_pwd ;;
24619 [\\/]* | ?:[\\/]* ) # Absolute name.
24620 ac_srcdir=$srcdir$ac_dir_suffix;
24621 ac_top_srcdir=$srcdir
24622 ac_abs_top_srcdir=$srcdir ;;
24623 *) # Relative name.
24624 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24625 ac_top_srcdir=$ac_top_build_prefix$srcdir
24626 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24627 esac
24628 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24629
24630
24631 case $ac_mode in
24632 :F)
24633 #
24634 # CONFIG_FILE
24635 #
24636
24637 case $INSTALL in
24638 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24639 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24640 esac
24641 ac_MKDIR_P=$MKDIR_P
24642 case $MKDIR_P in
24643 [\\/$]* | ?:[\\/]* ) ;;
24644 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24645 esac
24646 _ACEOF
24647
24648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24649 # If the template does not know about datarootdir, expand it.
24650 # FIXME: This hack should be removed a few years after 2.60.
24651 ac_datarootdir_hack=; ac_datarootdir_seen=
24652 ac_sed_dataroot='
24653 /datarootdir/ {
24654 p
24655 q
24656 }
24657 /@datadir@/p
24658 /@docdir@/p
24659 /@infodir@/p
24660 /@localedir@/p
24661 /@mandir@/p'
24662 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24663 *datarootdir*) ac_datarootdir_seen=yes;;
24664 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24666 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24667 _ACEOF
24668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24669 ac_datarootdir_hack='
24670 s&@datadir@&$datadir&g
24671 s&@docdir@&$docdir&g
24672 s&@infodir@&$infodir&g
24673 s&@localedir@&$localedir&g
24674 s&@mandir@&$mandir&g
24675 s&\\\${datarootdir}&$datarootdir&g' ;;
24676 esac
24677 _ACEOF
24678
24679 # Neutralize VPATH when `$srcdir' = `.'.
24680 # Shell code in configure.ac might set extrasub.
24681 # FIXME: do we really want to maintain this feature?
24682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24683 ac_sed_extra="$ac_vpsub
24684 $extrasub
24685 _ACEOF
24686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24687 :t
24688 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24689 s|@configure_input@|$ac_sed_conf_input|;t t
24690 s&@top_builddir@&$ac_top_builddir_sub&;t t
24691 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24692 s&@srcdir@&$ac_srcdir&;t t
24693 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24694 s&@top_srcdir@&$ac_top_srcdir&;t t
24695 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24696 s&@builddir@&$ac_builddir&;t t
24697 s&@abs_builddir@&$ac_abs_builddir&;t t
24698 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24699 s&@INSTALL@&$ac_INSTALL&;t t
24700 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24701 $ac_datarootdir_hack
24702 "
24703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24704 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24705
24706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24707 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24708 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24709 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24711 which seems to be undefined. Please make sure it is defined" >&5
24712 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24713 which seems to be undefined. Please make sure it is defined" >&2;}
24714
24715 rm -f "$ac_tmp/stdin"
24716 case $ac_file in
24717 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24718 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24719 esac \
24720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24721 ;;
24722 :H)
24723 #
24724 # CONFIG_HEADER
24725 #
24726 if test x"$ac_file" != x-; then
24727 {
24728 printf "%s\n" "/* $configure_input */" >&1 \
24729 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24730 } >"$ac_tmp/config.h" \
24731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24732 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24734 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24735 else
24736 rm -f "$ac_file"
24737 mv "$ac_tmp/config.h" "$ac_file" \
24738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24739 fi
24740 else
24741 printf "%s\n" "/* $configure_input */" >&1 \
24742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24743 || as_fn_error $? "could not create -" "$LINENO" 5
24744 fi
24745 # Compute "$ac_file"'s index in $config_headers.
24746 _am_arg="$ac_file"
24747 _am_stamp_count=1
24748 for _am_header in $config_headers :; do
24749 case $_am_header in
24750 $_am_arg | $_am_arg:* )
24751 break ;;
24752 * )
24753 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24754 esac
24755 done
24756 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24757 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24758 X"$_am_arg" : 'X\(//\)[^/]' \| \
24759 X"$_am_arg" : 'X\(//\)$' \| \
24760 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24761 printf "%s\n" X"$_am_arg" |
24762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24763 s//\1/
24764 q
24765 }
24766 /^X\(\/\/\)[^/].*/{
24767 s//\1/
24768 q
24769 }
24770 /^X\(\/\/\)$/{
24771 s//\1/
24772 q
24773 }
24774 /^X\(\/\).*/{
24775 s//\1/
24776 q
24777 }
24778 s/.*/./; q'`/stamp-h$_am_stamp_count
24779 ;;
24780
24781 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24782 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24783 ;;
24784 esac
24785
24786
24787 case $ac_file$ac_mode in
24788 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24789 # Older Autoconf quotes --file arguments for eval, but not when files
24790 # are listed without --file. Let's play safe and only enable the eval
24791 # if we detect the quoting.
24792 # TODO: see whether this extra hack can be removed once we start
24793 # requiring Autoconf 2.70 or later.
24794 case $CONFIG_FILES in #(
24795 *\'*) :
24796 eval set x "$CONFIG_FILES" ;; #(
24797 *) :
24798 set x $CONFIG_FILES ;; #(
24799 *) :
24800 ;;
24801 esac
24802 shift
24803 # Used to flag and report bootstrapping failures.
24804 am_rc=0
24805 for am_mf
24806 do
24807 # Strip MF so we end up with the name of the file.
24808 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24809 # Check whether this is an Automake generated Makefile which includes
24810 # dependency-tracking related rules and includes.
24811 # Grep'ing the whole file directly is not great: AIX grep has a line
24812 # limit of 2048, but all sed's we know have understand at least 4000.
24813 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24814 || continue
24815 am_dirpart=`$as_dirname -- "$am_mf" ||
24816 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24817 X"$am_mf" : 'X\(//\)[^/]' \| \
24818 X"$am_mf" : 'X\(//\)$' \| \
24819 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24820 printf "%s\n" X"$am_mf" |
24821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24822 s//\1/
24823 q
24824 }
24825 /^X\(\/\/\)[^/].*/{
24826 s//\1/
24827 q
24828 }
24829 /^X\(\/\/\)$/{
24830 s//\1/
24831 q
24832 }
24833 /^X\(\/\).*/{
24834 s//\1/
24835 q
24836 }
24837 s/.*/./; q'`
24838 am_filepart=`$as_basename -- "$am_mf" ||
24839 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24840 X"$am_mf" : 'X\(//\)$' \| \
24841 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24842 printf "%s\n" X/"$am_mf" |
24843 sed '/^.*\/\([^/][^/]*\)\/*$/{
24844 s//\1/
24845 q
24846 }
24847 /^X\/\(\/\/\)$/{
24848 s//\1/
24849 q
24850 }
24851 /^X\/\(\/\).*/{
24852 s//\1/
24853 q
24854 }
24855 s/.*/./; q'`
24856 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24857 && sed -e '/# am--include-marker/d' "$am_filepart" \
24858 | $MAKE -f - am--depfiles" >&5
24859 (cd "$am_dirpart" \
24860 && sed -e '/# am--include-marker/d' "$am_filepart" \
24861 | $MAKE -f - am--depfiles) >&5 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } || am_rc=$?
24865 done
24866 if test $am_rc -ne 0; then
24867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24868 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24869 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24870 for automatic dependency tracking. If GNU make was not used, consider
24871 re-running the configure script with MAKE=\"gmake\" (or whatever is
24872 necessary). You can also try re-running configure with the
24873 '--disable-dependency-tracking' option to at least be able to build
24874 the package (albeit without support for automatic dependency tracking).
24875 See \`config.log' for more details" "$LINENO" 5; }
24876 fi
24877 { am_dirpart=; unset am_dirpart;}
24878 { am_filepart=; unset am_filepart;}
24879 { am_mf=; unset am_mf;}
24880 { am_rc=; unset am_rc;}
24881 rm -f conftest-deps.mk
24882 }
24883 ;;
24884 "libtool":C)
24885
24886 # See if we are running on zsh, and set the options that allow our
24887 # commands through without removal of \ escapes.
24888 if test -n "${ZSH_VERSION+set}"; then
24889 setopt NO_GLOB_SUBST
24890 fi
24891
24892 cfgfile=${ofile}T
24893 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24894 $RM "$cfgfile"
24895
24896 cat <<_LT_EOF >> "$cfgfile"
24897 #! $SHELL
24898 # Generated automatically by $as_me ($PACKAGE) $VERSION
24899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24900 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24901
24902 # Provide generalized library-building support services.
24903 # Written by Gordon Matzigkeit, 1996
24904
24905 # Copyright (C) 2014 Free Software Foundation, Inc.
24906 # This is free software; see the source for copying conditions. There is NO
24907 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24908
24909 # GNU Libtool is free software; you can redistribute it and/or modify
24910 # it under the terms of the GNU General Public License as published by
24911 # the Free Software Foundation; either version 2 of of the License, or
24912 # (at your option) any later version.
24913 #
24914 # As a special exception to the GNU General Public License, if you
24915 # distribute this file as part of a program or library that is built
24916 # using GNU Libtool, you may include this file under the same
24917 # distribution terms that you use for the rest of that program.
24918 #
24919 # GNU Libtool is distributed in the hope that it will be useful, but
24920 # WITHOUT ANY WARRANTY; without even the implied warranty of
24921 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24922 # GNU General Public License for more details.
24923 #
24924 # You should have received a copy of the GNU General Public License
24925 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24926
24927
24928 # The names of the tagged configurations supported by this script.
24929 available_tags=''
24930
24931 # Configured defaults for sys_lib_dlsearch_path munging.
24932 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24933
24934 # ### BEGIN LIBTOOL CONFIG
24935
24936 # Which release of libtool.m4 was used?
24937 macro_version=$macro_version
24938 macro_revision=$macro_revision
24939
24940 # Whether or not to build shared libraries.
24941 build_libtool_libs=$enable_shared
24942
24943 # Whether or not to build static libraries.
24944 build_old_libs=$enable_static
24945
24946 # What type of objects to build.
24947 pic_mode=$pic_mode
24948
24949 # Whether or not to optimize for fast installation.
24950 fast_install=$enable_fast_install
24951
24952 # Shared archive member basename,for filename based shared library versioning on AIX.
24953 shared_archive_member_spec=$shared_archive_member_spec
24954
24955 # Shell to use when invoking shell scripts.
24956 SHELL=$lt_SHELL
24957
24958 # An echo program that protects backslashes.
24959 ECHO=$lt_ECHO
24960
24961 # The PATH separator for the build system.
24962 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24963
24964 # The host system.
24965 host_alias=$host_alias
24966 host=$host
24967 host_os=$host_os
24968
24969 # The build system.
24970 build_alias=$build_alias
24971 build=$build
24972 build_os=$build_os
24973
24974 # A sed program that does not truncate output.
24975 SED=$lt_SED
24976
24977 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24978 Xsed="\$SED -e 1s/^X//"
24979
24980 # A grep program that handles long lines.
24981 GREP=$lt_GREP
24982
24983 # An ERE matcher.
24984 EGREP=$lt_EGREP
24985
24986 # A literal string matcher.
24987 FGREP=$lt_FGREP
24988
24989 # A BSD- or MS-compatible name lister.
24990 NM=$lt_NM
24991
24992 # Whether we need soft or hard links.
24993 LN_S=$lt_LN_S
24994
24995 # What is the maximum length of a command?
24996 max_cmd_len=$max_cmd_len
24997
24998 # Object file suffix (normally "o").
24999 objext=$ac_objext
25000
25001 # Executable file suffix (normally "").
25002 exeext=$exeext
25003
25004 # whether the shell understands "unset".
25005 lt_unset=$lt_unset
25006
25007 # turn spaces into newlines.
25008 SP2NL=$lt_lt_SP2NL
25009
25010 # turn newlines into spaces.
25011 NL2SP=$lt_lt_NL2SP
25012
25013 # convert \$build file names to \$host format.
25014 to_host_file_cmd=$lt_cv_to_host_file_cmd
25015
25016 # convert \$build files to toolchain format.
25017 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25018
25019 # A file(cmd) program that detects file types.
25020 FILECMD=$lt_FILECMD
25021
25022 # An object symbol dumper.
25023 OBJDUMP=$lt_OBJDUMP
25024
25025 # Method to check whether dependent libraries are shared objects.
25026 deplibs_check_method=$lt_deplibs_check_method
25027
25028 # Command to use when deplibs_check_method = "file_magic".
25029 file_magic_cmd=$lt_file_magic_cmd
25030
25031 # How to find potential files when deplibs_check_method = "file_magic".
25032 file_magic_glob=$lt_file_magic_glob
25033
25034 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25035 want_nocaseglob=$lt_want_nocaseglob
25036
25037 # DLL creation program.
25038 DLLTOOL=$lt_DLLTOOL
25039
25040 # Command to associate shared and link libraries.
25041 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25042
25043 # The archiver.
25044 AR=$lt_AR
25045
25046 # Flags to create an archive (by configure).
25047 lt_ar_flags=$lt_ar_flags
25048
25049 # Flags to create an archive.
25050 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25051
25052 # How to feed a file listing to the archiver.
25053 archiver_list_spec=$lt_archiver_list_spec
25054
25055 # A symbol stripping program.
25056 STRIP=$lt_STRIP
25057
25058 # Commands used to install an old-style archive.
25059 RANLIB=$lt_RANLIB
25060 old_postinstall_cmds=$lt_old_postinstall_cmds
25061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25062
25063 # Whether to use a lock for old archive extraction.
25064 lock_old_archive_extraction=$lock_old_archive_extraction
25065
25066 # A C compiler.
25067 LTCC=$lt_CC
25068
25069 # LTCC compiler flags.
25070 LTCFLAGS=$lt_CFLAGS
25071
25072 # Take the output of nm and produce a listing of raw symbols and C names.
25073 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25074
25075 # Transform the output of nm in a proper C declaration.
25076 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25077
25078 # Transform the output of nm into a list of symbols to manually relocate.
25079 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25080
25081 # Transform the output of nm in a C name address pair.
25082 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25083
25084 # Transform the output of nm in a C name address pair when lib prefix is needed.
25085 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25086
25087 # The name lister interface.
25088 nm_interface=$lt_lt_cv_nm_interface
25089
25090 # Specify filename containing input files for \$NM.
25091 nm_file_list_spec=$lt_nm_file_list_spec
25092
25093 # The root where to search for dependent libraries,and where our libraries should be installed.
25094 lt_sysroot=$lt_sysroot
25095
25096 # Command to truncate a binary pipe.
25097 lt_truncate_bin=$lt_lt_cv_truncate_bin
25098
25099 # The name of the directory that contains temporary libtool files.
25100 objdir=$objdir
25101
25102 # Used to examine libraries when file_magic_cmd begins with "file".
25103 MAGIC_CMD=$MAGIC_CMD
25104
25105 # Must we lock files when doing compilation?
25106 need_locks=$lt_need_locks
25107
25108 # Manifest tool.
25109 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25110
25111 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25112 DSYMUTIL=$lt_DSYMUTIL
25113
25114 # Tool to change global to local symbols on Mac OS X.
25115 NMEDIT=$lt_NMEDIT
25116
25117 # Tool to manipulate fat objects and archives on Mac OS X.
25118 LIPO=$lt_LIPO
25119
25120 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25121 OTOOL=$lt_OTOOL
25122
25123 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25124 OTOOL64=$lt_OTOOL64
25125
25126 # Old archive suffix (normally "a").
25127 libext=$libext
25128
25129 # Shared library suffix (normally ".so").
25130 shrext_cmds=$lt_shrext_cmds
25131
25132 # The commands to extract the exported symbol list from a shared archive.
25133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25134
25135 # Variables whose values should be saved in libtool wrapper scripts and
25136 # restored at link time.
25137 variables_saved_for_relink=$lt_variables_saved_for_relink
25138
25139 # Do we need the "lib" prefix for modules?
25140 need_lib_prefix=$need_lib_prefix
25141
25142 # Do we need a version for libraries?
25143 need_version=$need_version
25144
25145 # Library versioning type.
25146 version_type=$version_type
25147
25148 # Shared library runtime path variable.
25149 runpath_var=$runpath_var
25150
25151 # Shared library path variable.
25152 shlibpath_var=$shlibpath_var
25153
25154 # Is shlibpath searched before the hard-coded library search path?
25155 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25156
25157 # Format of library name prefix.
25158 libname_spec=$lt_libname_spec
25159
25160 # List of archive names. First name is the real one, the rest are links.
25161 # The last name is the one that the linker finds with -lNAME
25162 library_names_spec=$lt_library_names_spec
25163
25164 # The coded name of the library, if different from the real name.
25165 soname_spec=$lt_soname_spec
25166
25167 # Permission mode override for installation of shared libraries.
25168 install_override_mode=$lt_install_override_mode
25169
25170 # Command to use after installation of a shared archive.
25171 postinstall_cmds=$lt_postinstall_cmds
25172
25173 # Command to use after uninstallation of a shared archive.
25174 postuninstall_cmds=$lt_postuninstall_cmds
25175
25176 # Commands used to finish a libtool library installation in a directory.
25177 finish_cmds=$lt_finish_cmds
25178
25179 # As "finish_cmds", except a single script fragment to be evaled but
25180 # not shown.
25181 finish_eval=$lt_finish_eval
25182
25183 # Whether we should hardcode library paths into libraries.
25184 hardcode_into_libs=$hardcode_into_libs
25185
25186 # Compile-time system search path for libraries.
25187 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25188
25189 # Detected run-time system search path for libraries.
25190 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25191
25192 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25193 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25194
25195 # Whether dlopen is supported.
25196 dlopen_support=$enable_dlopen
25197
25198 # Whether dlopen of programs is supported.
25199 dlopen_self=$enable_dlopen_self
25200
25201 # Whether dlopen of statically linked programs is supported.
25202 dlopen_self_static=$enable_dlopen_self_static
25203
25204 # Commands to strip libraries.
25205 old_striplib=$lt_old_striplib
25206 striplib=$lt_striplib
25207
25208
25209 # The linker used to build libraries.
25210 LD=$lt_LD
25211
25212 # How to create reloadable object files.
25213 reload_flag=$lt_reload_flag
25214 reload_cmds=$lt_reload_cmds
25215
25216 # Commands used to build an old-style archive.
25217 old_archive_cmds=$lt_old_archive_cmds
25218
25219 # A language specific compiler.
25220 CC=$lt_compiler
25221
25222 # Is the compiler the GNU compiler?
25223 with_gcc=$GCC
25224
25225 # Compiler flag to turn off builtin functions.
25226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25227
25228 # Additional compiler flags for building library objects.
25229 pic_flag=$lt_lt_prog_compiler_pic
25230
25231 # How to pass a linker flag through the compiler.
25232 wl=$lt_lt_prog_compiler_wl
25233
25234 # Compiler flag to prevent dynamic linking.
25235 link_static_flag=$lt_lt_prog_compiler_static
25236
25237 # Does compiler simultaneously support -c and -o options?
25238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25239
25240 # Whether or not to add -lc for building shared libraries.
25241 build_libtool_need_lc=$archive_cmds_need_lc
25242
25243 # Whether or not to disallow shared libs when runtime libs are static.
25244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25245
25246 # Compiler flag to allow reflexive dlopens.
25247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25248
25249 # Compiler flag to generate shared objects directly from archives.
25250 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25251
25252 # Whether the compiler copes with passing no objects directly.
25253 compiler_needs_object=$lt_compiler_needs_object
25254
25255 # Create an old-style archive from a shared archive.
25256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25257
25258 # Create a temporary old-style archive to link instead of a shared archive.
25259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25260
25261 # Commands used to build a shared archive.
25262 archive_cmds=$lt_archive_cmds
25263 archive_expsym_cmds=$lt_archive_expsym_cmds
25264
25265 # Commands used to build a loadable module if different from building
25266 # a shared archive.
25267 module_cmds=$lt_module_cmds
25268 module_expsym_cmds=$lt_module_expsym_cmds
25269
25270 # Whether we are building with GNU ld or not.
25271 with_gnu_ld=$lt_with_gnu_ld
25272
25273 # Flag that allows shared libraries with undefined symbols to be built.
25274 allow_undefined_flag=$lt_allow_undefined_flag
25275
25276 # Flag that enforces no undefined symbols.
25277 no_undefined_flag=$lt_no_undefined_flag
25278
25279 # Flag to hardcode \$libdir into a binary during linking.
25280 # This must work even if \$libdir does not exist
25281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25282
25283 # Whether we need a single "-rpath" flag with a separated argument.
25284 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25285
25286 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25287 # DIR into the resulting binary.
25288 hardcode_direct=$hardcode_direct
25289
25290 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25291 # DIR into the resulting binary and the resulting library dependency is
25292 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25293 # library is relocated.
25294 hardcode_direct_absolute=$hardcode_direct_absolute
25295
25296 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25297 # into the resulting binary.
25298 hardcode_minus_L=$hardcode_minus_L
25299
25300 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25301 # into the resulting binary.
25302 hardcode_shlibpath_var=$hardcode_shlibpath_var
25303
25304 # Set to "yes" if building a shared library automatically hardcodes DIR
25305 # into the library and all subsequent libraries and executables linked
25306 # against it.
25307 hardcode_automatic=$hardcode_automatic
25308
25309 # Set to yes if linker adds runtime paths of dependent libraries
25310 # to runtime path list.
25311 inherit_rpath=$inherit_rpath
25312
25313 # Whether libtool must link a program against all its dependency libraries.
25314 link_all_deplibs=$link_all_deplibs
25315
25316 # Set to "yes" if exported symbols are required.
25317 always_export_symbols=$always_export_symbols
25318
25319 # The commands to list exported symbols.
25320 export_symbols_cmds=$lt_export_symbols_cmds
25321
25322 # Symbols that should not be listed in the preloaded symbols.
25323 exclude_expsyms=$lt_exclude_expsyms
25324
25325 # Symbols that must always be exported.
25326 include_expsyms=$lt_include_expsyms
25327
25328 # Commands necessary for linking programs (against libraries) with templates.
25329 prelink_cmds=$lt_prelink_cmds
25330
25331 # Commands necessary for finishing linking programs.
25332 postlink_cmds=$lt_postlink_cmds
25333
25334 # Specify filename containing input files.
25335 file_list_spec=$lt_file_list_spec
25336
25337 # How to hardcode a shared library path into an executable.
25338 hardcode_action=$hardcode_action
25339
25340 # ### END LIBTOOL CONFIG
25341
25342 _LT_EOF
25343
25344 cat <<'_LT_EOF' >> "$cfgfile"
25345
25346 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25347
25348 # func_munge_path_list VARIABLE PATH
25349 # -----------------------------------
25350 # VARIABLE is name of variable containing _space_ separated list of
25351 # directories to be munged by the contents of PATH, which is string
25352 # having a format:
25353 # "DIR[:DIR]:"
25354 # string "DIR[ DIR]" will be prepended to VARIABLE
25355 # ":DIR[:DIR]"
25356 # string "DIR[ DIR]" will be appended to VARIABLE
25357 # "DIRP[:DIRP]::[DIRA:]DIRA"
25358 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25359 # "DIRA[ DIRA]" will be appended to VARIABLE
25360 # "DIR[:DIR]"
25361 # VARIABLE will be replaced by "DIR[ DIR]"
25362 func_munge_path_list ()
25363 {
25364 case x$2 in
25365 x)
25366 ;;
25367 *:)
25368 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25369 ;;
25370 x:*)
25371 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25372 ;;
25373 *::*)
25374 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25375 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25376 ;;
25377 *)
25378 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25379 ;;
25380 esac
25381 }
25382
25383
25384 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25385 func_cc_basename ()
25386 {
25387 for cc_temp in $*""; do
25388 case $cc_temp in
25389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25391 \-*) ;;
25392 *) break;;
25393 esac
25394 done
25395 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25396 }
25397
25398
25399 # ### END FUNCTIONS SHARED WITH CONFIGURE
25400
25401 _LT_EOF
25402
25403 case $host_os in
25404 aix3*)
25405 cat <<\_LT_EOF >> "$cfgfile"
25406 # AIX sometimes has problems with the GCC collect2 program. For some
25407 # reason, if we set the COLLECT_NAMES environment variable, the problems
25408 # vanish in a puff of smoke.
25409 if test set != "${COLLECT_NAMES+set}"; then
25410 COLLECT_NAMES=
25411 export COLLECT_NAMES
25412 fi
25413 _LT_EOF
25414 ;;
25415 esac
25416
25417
25418
25419 ltmain=$ac_aux_dir/ltmain.sh
25420
25421
25422 # We use sed instead of cat because bash on DJGPP gets confused if
25423 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25424 # text mode, it properly converts lines to CR/LF. This bash problem
25425 # is reportedly fixed, but why not run on old versions too?
25426 $SED '$q' "$ltmain" >> "$cfgfile" \
25427 || (rm -f "$cfgfile"; exit 1)
25428
25429 mv -f "$cfgfile" "$ofile" ||
25430 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25431 chmod +x "$ofile"
25432
25433 ;;
25434
25435 esac
25436 done # for ac_tag
25437
25438
25439 as_fn_exit 0
25440 _ACEOF
25441 ac_clean_files=$ac_clean_files_save
25442
25443 test $ac_write_fail = 0 ||
25444 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25445
25446
25447 # configure is writing to config.log, and then calls config.status.
25448 # config.status does its own redirection, appending to config.log.
25449 # Unfortunately, on DOS this fails, as config.log is still kept open
25450 # by configure, so config.status won't be able to write to it; its
25451 # output is simply discarded. So we exec the FD to /dev/null,
25452 # effectively closing config.log, so it can be properly (re)opened and
25453 # appended to by config.status. When coming back to configure, we
25454 # need to make the FD available again.
25455 if test "$no_create" != yes; then
25456 ac_cs_success=:
25457 ac_config_status_args=
25458 test "$silent" = yes &&
25459 ac_config_status_args="$ac_config_status_args --quiet"
25460 exec 5>/dev/null
25461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25462 exec 5>>config.log
25463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25464 # would make configure fail if this is the last instruction.
25465 $ac_cs_success || as_fn_exit 1
25466 fi
25467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25469 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25470 fi
25471
25472
25473 echo ""
25474 echo "X11 will be built with the following settings:"
25475 echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N
25476 echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR
25477 echo " Threading support: "$xthreads
25478 echo " Use Threads safe API: "$mtsafeapi
25479 echo " Use thread safety constructor: "$USE_THREAD_SAFETY_CONSTRUCTOR
25480 echo " XCMS: "$XCMS
25481 echo " Internationalization support: "$XLOCALE
25482 echo " XF86BigFont support: "$XF86BIGFONT
25483 echo " XKB support: "$XKB
25484 echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
25485 echo " Compose table cache enabled: "$COMPOSECACHE
25486 echo " Functional specs building enabled: "$build_specs
25487 echo ""
25488
25489