configure revision 1.1.1.26 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libX11 1.8.1.
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.1'
686 PACKAGE_STRING='libX11 1.8.1'
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 XTHREAD_CFLAGS
761 XTHREADLIB
762 THRSTUBS_FALSE
763 THRSTUBS_TRUE
764 LAUNCHD
765 OS2_FALSE
766 OS2_TRUE
767 WCHAR32
768 LIBOBJS
769 XLIB_LOADABLE_I18N_FALSE
770 XLIB_LOADABLE_I18N_TRUE
771 I18N_MODULE_LIBS
772 X11_EXTRA_DEPS
773 EXEEXT_FOR_BUILD
774 LDFLAGS_FOR_BUILD
775 CFLAGS_FOR_BUILD
776 CPPFLAGS_FOR_BUILD
777 CC_FOR_BUILD
778 HAVE_PERL_FALSE
779 HAVE_PERL_TRUE
780 PERL
781 TRADITIONALCPPFLAGS
782 RAWCPPFLAGS
783 RAWCPP
784 CPP
785 HAVE_STYLESHEETS_FALSE
786 HAVE_STYLESHEETS_TRUE
787 XSL_STYLESHEET
788 STYLESHEET_SRCDIR
789 XORG_SGML_PATH
790 HAVE_XSLTPROC_FALSE
791 HAVE_XSLTPROC_TRUE
792 XSLTPROC
793 HAVE_FOP_FALSE
794 HAVE_FOP_TRUE
795 FOP
796 HAVE_XMLTO_FALSE
797 HAVE_XMLTO_TRUE
798 HAVE_XMLTO_TEXT_FALSE
799 HAVE_XMLTO_TEXT_TRUE
800 XMLTO
801 ENABLE_SPECS_FALSE
802 ENABLE_SPECS_TRUE
803 MAN_SUBSTS
804 XORG_MAN_PAGE
805 ADMIN_MAN_DIR
806 DRIVER_MAN_DIR
807 MISC_MAN_DIR
808 FILE_MAN_DIR
809 LIB_MAN_DIR
810 APP_MAN_DIR
811 ADMIN_MAN_SUFFIX
812 DRIVER_MAN_SUFFIX
813 MISC_MAN_SUFFIX
814 FILE_MAN_SUFFIX
815 LIB_MAN_SUFFIX
816 APP_MAN_SUFFIX
817 INSTALL_CMD
818 PKG_CONFIG_LIBDIR
819 PKG_CONFIG_PATH
820 PKG_CONFIG
821 CHANGELOG_CMD
822 STRICT_CFLAGS
823 CWARNFLAGS
824 BASE_CFLAGS
825 LT_SYS_LIBRARY_PATH
826 OTOOL64
827 OTOOL
828 LIPO
829 NMEDIT
830 DSYMUTIL
831 MANIFEST_TOOL
832 RANLIB
833 ac_ct_AR
834 AR
835 DLLTOOL
836 OBJDUMP
837 FILECMD
838 LN_S
839 NM
840 ac_ct_DUMPBIN
841 DUMPBIN
842 LD
843 FGREP
844 EGREP
845 GREP
846 SED
847 LIBTOOL
848 AM_BACKSLASH
849 AM_DEFAULT_VERBOSITY
850 AM_DEFAULT_V
851 AM_V
852 CSCOPE
853 ETAGS
854 CTAGS
855 am__fastdepCC_FALSE
856 am__fastdepCC_TRUE
857 CCDEPMODE
858 am__nodep
859 AMDEPBACKSLASH
860 AMDEP_FALSE
861 AMDEP_TRUE
862 am__include
863 DEPDIR
864 am__untar
865 am__tar
866 AMTAR
867 am__leading_dot
868 SET_MAKE
869 AWK
870 mkdir_p
871 MKDIR_P
872 INSTALL_STRIP_PROGRAM
873 STRIP
874 install_sh
875 MAKEINFO
876 AUTOHEADER
877 AUTOMAKE
878 AUTOCONF
879 ACLOCAL
880 VERSION
881 PACKAGE
882 CYGPATH_W
883 am__isrc
884 INSTALL_DATA
885 INSTALL_SCRIPT
886 INSTALL_PROGRAM
887 OBJEXT
888 EXEEXT
889 ac_ct_CC
890 CPPFLAGS
891 LDFLAGS
892 CFLAGS
893 CC
894 host_os
895 host_vendor
896 host_cpu
897 host
898 build_os
899 build_vendor
900 build_cpu
901 build
902 target_alias
903 host_alias
904 build_alias
905 LIBS
906 ECHO_T
907 ECHO_N
908 ECHO_C
909 DEFS
910 mandir
911 localedir
912 libdir
913 psdir
914 pdfdir
915 dvidir
916 htmldir
917 infodir
918 docdir
919 oldincludedir
920 includedir
921 runstatedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL
941 am__quote'
942 ac_subst_files=''
943 ac_user_opts='
944 enable_option_checking
945 enable_dependency_tracking
946 enable_silent_rules
947 enable_shared
948 enable_static
949 with_pic
950 enable_fast_install
951 with_aix_soname
952 with_gnu_ld
953 with_sysroot
954 enable_libtool_lock
955 enable_largefile
956 enable_selective_werror
957 enable_strict_compilation
958 enable_specs
959 with_xmlto
960 with_fop
961 with_xsltproc
962 with_perl
963 enable_unix_transport
964 enable_tcp_transport
965 enable_ipv6
966 enable_local_transport
967 enable_loadable_i18n
968 enable_loadable_xcursor
969 enable_thread_safety_constructor
970 with_launchd
971 enable_xthreads
972 with_keysymdefdir
973 enable_xcms
974 enable_xlocale
975 enable_xlocaledir
976 enable_xf86bigfont
977 enable_xkb
978 enable_composecache
979 with_lint
980 enable_lint_library
981 with_locale_lib_dir
982 enable_malloc0returnsnull
983 '
984 ac_precious_vars='build_alias
985 host_alias
986 target_alias
987 CC
988 CFLAGS
989 LDFLAGS
990 LIBS
991 CPPFLAGS
992 LT_SYS_LIBRARY_PATH
993 PKG_CONFIG
994 PKG_CONFIG_PATH
995 PKG_CONFIG_LIBDIR
996 XMLTO
997 FOP
998 XSLTPROC
999 CPP
1000 PERL
1001 BIGFONT_CFLAGS
1002 BIGFONT_LIBS
1003 LINT
1004 LINT_FLAGS
1005 X11_CFLAGS
1006 X11_LIBS'
1007
1008
1009 # Initialize some variables set by options.
1010 ac_init_help=
1011 ac_init_version=false
1012 ac_unrecognized_opts=
1013 ac_unrecognized_sep=
1014 # The variables have the same names as the options, with
1015 # dashes changed to underlines.
1016 cache_file=/dev/null
1017 exec_prefix=NONE
1018 no_create=
1019 no_recursion=
1020 prefix=NONE
1021 program_prefix=NONE
1022 program_suffix=NONE
1023 program_transform_name=s,x,x,
1024 silent=
1025 site=
1026 srcdir=
1027 verbose=
1028 x_includes=NONE
1029 x_libraries=NONE
1030
1031 # Installation directory options.
1032 # These are left unexpanded so users can "make install exec_prefix=/foo"
1033 # and all the variables that are supposed to be based on exec_prefix
1034 # by default will actually change.
1035 # Use braces instead of parens because sh, perl, etc. also accept them.
1036 # (The list follows the same order as the GNU Coding Standards.)
1037 bindir='${exec_prefix}/bin'
1038 sbindir='${exec_prefix}/sbin'
1039 libexecdir='${exec_prefix}/libexec'
1040 datarootdir='${prefix}/share'
1041 datadir='${datarootdir}'
1042 sysconfdir='${prefix}/etc'
1043 sharedstatedir='${prefix}/com'
1044 localstatedir='${prefix}/var'
1045 runstatedir='${localstatedir}/run'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1050 htmldir='${docdir}'
1051 dvidir='${docdir}'
1052 pdfdir='${docdir}'
1053 psdir='${docdir}'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1057
1058 ac_prev=
1059 ac_dashdash=
1060 for ac_option
1061 do
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\$ac_option
1065 ac_prev=
1066 continue
1067 fi
1068
1069 case $ac_option in
1070 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071 *=) ac_optarg= ;;
1072 *) ac_optarg=yes ;;
1073 esac
1074
1075 case $ac_dashdash$ac_option in
1076 --)
1077 ac_dashdash=yes ;;
1078
1079 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080 ac_prev=bindir ;;
1081 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082 bindir=$ac_optarg ;;
1083
1084 -build | --build | --buil | --bui | --bu)
1085 ac_prev=build_alias ;;
1086 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087 build_alias=$ac_optarg ;;
1088
1089 -cache-file | --cache-file | --cache-fil | --cache-fi \
1090 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091 ac_prev=cache_file ;;
1092 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094 cache_file=$ac_optarg ;;
1095
1096 --config-cache | -C)
1097 cache_file=config.cache ;;
1098
1099 -datadir | --datadir | --datadi | --datad)
1100 ac_prev=datadir ;;
1101 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102 datadir=$ac_optarg ;;
1103
1104 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105 | --dataroo | --dataro | --datar)
1106 ac_prev=datarootdir ;;
1107 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109 datarootdir=$ac_optarg ;;
1110
1111 -disable-* | --disable-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "enable_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval enable_$ac_useropt=no ;;
1126
1127 -docdir | --docdir | --docdi | --doc | --do)
1128 ac_prev=docdir ;;
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1131
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133 ac_prev=dvidir ;;
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1136
1137 -enable-* | --enable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "enable_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval enable_$ac_useropt=\$ac_optarg ;;
1152
1153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155 | --exec | --exe | --ex)
1156 ac_prev=exec_prefix ;;
1157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159 | --exec=* | --exe=* | --ex=*)
1160 exec_prefix=$ac_optarg ;;
1161
1162 -gas | --gas | --ga | --g)
1163 # Obsolete; use --with-gas.
1164 with_gas=yes ;;
1165
1166 -help | --help | --hel | --he | -h)
1167 ac_init_help=long ;;
1168 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169 ac_init_help=recursive ;;
1170 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171 ac_init_help=short ;;
1172
1173 -host | --host | --hos | --ho)
1174 ac_prev=host_alias ;;
1175 -host=* | --host=* | --hos=* | --ho=*)
1176 host_alias=$ac_optarg ;;
1177
1178 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179 ac_prev=htmldir ;;
1180 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181 | --ht=*)
1182 htmldir=$ac_optarg ;;
1183
1184 -includedir | --includedir | --includedi | --included | --include \
1185 | --includ | --inclu | --incl | --inc)
1186 ac_prev=includedir ;;
1187 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188 | --includ=* | --inclu=* | --incl=* | --inc=*)
1189 includedir=$ac_optarg ;;
1190
1191 -infodir | --infodir | --infodi | --infod | --info | --inf)
1192 ac_prev=infodir ;;
1193 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194 infodir=$ac_optarg ;;
1195
1196 -libdir | --libdir | --libdi | --libd)
1197 ac_prev=libdir ;;
1198 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199 libdir=$ac_optarg ;;
1200
1201 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202 | --libexe | --libex | --libe)
1203 ac_prev=libexecdir ;;
1204 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205 | --libexe=* | --libex=* | --libe=*)
1206 libexecdir=$ac_optarg ;;
1207
1208 -localedir | --localedir | --localedi | --localed | --locale)
1209 ac_prev=localedir ;;
1210 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211 localedir=$ac_optarg ;;
1212
1213 -localstatedir | --localstatedir | --localstatedi | --localstated \
1214 | --localstate | --localstat | --localsta | --localst | --locals)
1215 ac_prev=localstatedir ;;
1216 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218 localstatedir=$ac_optarg ;;
1219
1220 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221 ac_prev=mandir ;;
1222 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223 mandir=$ac_optarg ;;
1224
1225 -nfp | --nfp | --nf)
1226 # Obsolete; use --without-fp.
1227 with_fp=no ;;
1228
1229 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230 | --no-cr | --no-c | -n)
1231 no_create=yes ;;
1232
1233 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235 no_recursion=yes ;;
1236
1237 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239 | --oldin | --oldi | --old | --ol | --o)
1240 ac_prev=oldincludedir ;;
1241 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244 oldincludedir=$ac_optarg ;;
1245
1246 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247 ac_prev=prefix ;;
1248 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249 prefix=$ac_optarg ;;
1250
1251 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252 | --program-pre | --program-pr | --program-p)
1253 ac_prev=program_prefix ;;
1254 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256 program_prefix=$ac_optarg ;;
1257
1258 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259 | --program-suf | --program-su | --program-s)
1260 ac_prev=program_suffix ;;
1261 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263 program_suffix=$ac_optarg ;;
1264
1265 -program-transform-name | --program-transform-name \
1266 | --program-transform-nam | --program-transform-na \
1267 | --program-transform-n | --program-transform- \
1268 | --program-transform | --program-transfor \
1269 | --program-transfo | --program-transf \
1270 | --program-trans | --program-tran \
1271 | --progr-tra | --program-tr | --program-t)
1272 ac_prev=program_transform_name ;;
1273 -program-transform-name=* | --program-transform-name=* \
1274 | --program-transform-nam=* | --program-transform-na=* \
1275 | --program-transform-n=* | --program-transform-=* \
1276 | --program-transform=* | --program-transfor=* \
1277 | --program-transfo=* | --program-transf=* \
1278 | --program-trans=* | --program-tran=* \
1279 | --progr-tra=* | --program-tr=* | --program-t=*)
1280 program_transform_name=$ac_optarg ;;
1281
1282 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283 ac_prev=pdfdir ;;
1284 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285 pdfdir=$ac_optarg ;;
1286
1287 -psdir | --psdir | --psdi | --psd | --ps)
1288 ac_prev=psdir ;;
1289 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290 psdir=$ac_optarg ;;
1291
1292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293 | -silent | --silent | --silen | --sile | --sil)
1294 silent=yes ;;
1295
1296 -runstatedir | --runstatedir | --runstatedi | --runstated \
1297 | --runstate | --runstat | --runsta | --runst | --runs \
1298 | --run | --ru | --r)
1299 ac_prev=runstatedir ;;
1300 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1301 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1302 | --run=* | --ru=* | --r=*)
1303 runstatedir=$ac_optarg ;;
1304
1305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1306 ac_prev=sbindir ;;
1307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1308 | --sbi=* | --sb=*)
1309 sbindir=$ac_optarg ;;
1310
1311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1313 | --sharedst | --shareds | --shared | --share | --shar \
1314 | --sha | --sh)
1315 ac_prev=sharedstatedir ;;
1316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1319 | --sha=* | --sh=*)
1320 sharedstatedir=$ac_optarg ;;
1321
1322 -site | --site | --sit)
1323 ac_prev=site ;;
1324 -site=* | --site=* | --sit=*)
1325 site=$ac_optarg ;;
1326
1327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1328 ac_prev=srcdir ;;
1329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1330 srcdir=$ac_optarg ;;
1331
1332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1333 | --syscon | --sysco | --sysc | --sys | --sy)
1334 ac_prev=sysconfdir ;;
1335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1337 sysconfdir=$ac_optarg ;;
1338
1339 -target | --target | --targe | --targ | --tar | --ta | --t)
1340 ac_prev=target_alias ;;
1341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1342 target_alias=$ac_optarg ;;
1343
1344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1345 verbose=yes ;;
1346
1347 -version | --version | --versio | --versi | --vers | -V)
1348 ac_init_version=: ;;
1349
1350 -with-* | --with-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid package name: \`$ac_useropt'"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1358 *"
1359 "with_$ac_useropt"
1360 "*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval with_$ac_useropt=\$ac_optarg ;;
1365
1366 -without-* | --without-*)
1367 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1368 # Reject names that are not valid shell variable names.
1369 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1370 as_fn_error $? "invalid package name: \`$ac_useropt'"
1371 ac_useropt_orig=$ac_useropt
1372 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1373 case $ac_user_opts in
1374 *"
1375 "with_$ac_useropt"
1376 "*) ;;
1377 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1378 ac_unrecognized_sep=', ';;
1379 esac
1380 eval with_$ac_useropt=no ;;
1381
1382 --x)
1383 # Obsolete; use --with-x.
1384 with_x=yes ;;
1385
1386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1387 | --x-incl | --x-inc | --x-in | --x-i)
1388 ac_prev=x_includes ;;
1389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1391 x_includes=$ac_optarg ;;
1392
1393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1395 ac_prev=x_libraries ;;
1396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1398 x_libraries=$ac_optarg ;;
1399
1400 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1401 Try \`$0 --help' for more information"
1402 ;;
1403
1404 *=*)
1405 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1406 # Reject names that are not valid shell variable names.
1407 case $ac_envvar in #(
1408 '' | [0-9]* | *[!_$as_cr_alnum]* )
1409 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1410 esac
1411 eval $ac_envvar=\$ac_optarg
1412 export $ac_envvar ;;
1413
1414 *)
1415 # FIXME: should be removed in autoconf 3.0.
1416 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1417 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1418 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1419 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1420 ;;
1421
1422 esac
1423 done
1424
1425 if test -n "$ac_prev"; then
1426 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1427 as_fn_error $? "missing argument to $ac_option"
1428 fi
1429
1430 if test -n "$ac_unrecognized_opts"; then
1431 case $enable_option_checking in
1432 no) ;;
1433 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1434 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1435 esac
1436 fi
1437
1438 # Check all directory arguments for consistency.
1439 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1440 datadir sysconfdir sharedstatedir localstatedir includedir \
1441 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1442 libdir localedir mandir runstatedir
1443 do
1444 eval ac_val=\$$ac_var
1445 # Remove trailing slashes.
1446 case $ac_val in
1447 */ )
1448 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1449 eval $ac_var=\$ac_val;;
1450 esac
1451 # Be sure to have absolute directory names.
1452 case $ac_val in
1453 [\\/$]* | ?:[\\/]* ) continue;;
1454 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1455 esac
1456 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1457 done
1458
1459 # There might be people who depend on the old broken behavior: `$host'
1460 # used to hold the argument of --host etc.
1461 # FIXME: To remove some day.
1462 build=$build_alias
1463 host=$host_alias
1464 target=$target_alias
1465
1466 # FIXME: To remove some day.
1467 if test "x$host_alias" != x; then
1468 if test "x$build_alias" = x; then
1469 cross_compiling=maybe
1470 elif test "x$build_alias" != "x$host_alias"; then
1471 cross_compiling=yes
1472 fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484 as_fn_error $? "working directory cannot be determined"
1485 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 as_fn_error $? "pwd does not report name of working directory"
1487
1488
1489 # Find the source files, if location was not specified.
1490 if test -z "$srcdir"; then
1491 ac_srcdir_defaulted=yes
1492 # Try the directory containing this script, then the parent directory.
1493 ac_confdir=`$as_dirname -- "$as_myself" ||
1494 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1495 X"$as_myself" : 'X\(//\)[^/]' \| \
1496 X"$as_myself" : 'X\(//\)$' \| \
1497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1498 printf "%s\n" X"$as_myself" |
1499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 s//\1/
1501 q
1502 }
1503 /^X\(\/\/\)[^/].*/{
1504 s//\1/
1505 q
1506 }
1507 /^X\(\/\/\)$/{
1508 s//\1/
1509 q
1510 }
1511 /^X\(\/\).*/{
1512 s//\1/
1513 q
1514 }
1515 s/.*/./; q'`
1516 srcdir=$ac_confdir
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 srcdir=..
1519 fi
1520 else
1521 ac_srcdir_defaulted=no
1522 fi
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1524 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1525 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1526 fi
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528 ac_abs_confdir=`(
1529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1530 pwd)`
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1533 srcdir=.
1534 fi
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1538 case $srcdir in
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1540 esac
1541 for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1546 done
1547
1548 #
1549 # Report the --help message.
1550 #
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1554 cat <<_ACEOF
1555 \`configure' configures libX11 1.8.1 to adapt to many kinds of systems.
1556
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1558
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1561
1562 Defaults for the options are specified in brackets.
1563
1564 Configuration:
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking ...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1574
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1579 [PREFIX]
1580
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1585
1586 For better control, use the options below.
1587
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1596 --libdir=DIR object code libraries [EPREFIX/lib]
1597 --includedir=DIR C header files [PREFIX/include]
1598 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1599 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1600 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1601 --infodir=DIR info documentation [DATAROOTDIR/info]
1602 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1603 --mandir=DIR man documentation [DATAROOTDIR/man]
1604 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11]
1605 --htmldir=DIR html documentation [DOCDIR]
1606 --dvidir=DIR dvi documentation [DOCDIR]
1607 --pdfdir=DIR pdf documentation [DOCDIR]
1608 --psdir=DIR ps documentation [DOCDIR]
1609 _ACEOF
1610
1611 cat <<\_ACEOF
1612
1613 Program names:
1614 --program-prefix=PREFIX prepend PREFIX to installed program names
1615 --program-suffix=SUFFIX append SUFFIX to installed program names
1616 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1617
1618 System types:
1619 --build=BUILD configure for building on BUILD [guessed]
1620 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1621 _ACEOF
1622 fi
1623
1624 if test -n "$ac_init_help"; then
1625 case $ac_init_help in
1626 short | recursive ) echo "Configuration of libX11 1.8.1:";;
1627 esac
1628 cat <<\_ACEOF
1629
1630 Optional Features:
1631 --disable-option-checking ignore unrecognized --enable/--with options
1632 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1633 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1634 --enable-dependency-tracking
1635 do not reject slow dependency extractors
1636 --disable-dependency-tracking
1637 speeds up one-time build
1638 --enable-silent-rules less verbose build output (undo: "make V=1")
1639 --disable-silent-rules verbose build output (undo: "make V=0")
1640 --enable-shared[=PKGS] build shared libraries [default=yes]
1641 --enable-static[=PKGS] build static libraries [default=yes]
1642 --enable-fast-install[=PKGS]
1643 optimize for fast installation [default=yes]
1644 --disable-libtool-lock avoid locking (might break parallel builds)
1645 --disable-largefile omit support for large files
1646 --disable-selective-werror
1647 Turn off selective compiler errors. (default:
1648 enabled)
1649 --enable-strict-compilation
1650 Enable all warnings from compiler and make them
1651 errors (default: disabled)
1652 --enable-specs Enable building the specs (default: yes)
1653 --enable-unix-transport Enable UNIX domain socket transport
1654 --enable-tcp-transport Enable TCP socket transport
1655 --enable-ipv6 Enable IPv6 support
1656 --enable-local-transport
1657 Enable os-specific local transport
1658 --enable-loadable-i18n Controls loadable i18n module support
1659 --disable-loadable-xcursor
1660 Controls loadable xcursor library support
1661 --disable-thread-safety-constructor
1662 Controls mandatory thread safety support
1663 --disable-xthreads Disable Xlib support for Multithreading
1664 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL*
1665 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL*
1666 --enable-xlocaledir Enable XLOCALEDIR environment variable support
1667 --disable-xf86bigfont Disable XF86BigFont extension support
1668 --disable-xkb Disable XKB support *EXPERIMENTAL*
1669 --disable-composecache Disable compose table cache support
1670 --enable-lint-library Create lint library (default: disabled)
1671 --enable-malloc0returnsnull
1672 malloc(0) returns NULL (default: auto)
1673
1674 Optional Packages:
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1678 both]
1679 --with-aix-soname=aix|svr4|both
1680 shared library versioning (aka "SONAME") variant to
1681 provide on AIX, [default=aix].
1682 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1684 compiler's sysroot if not specified).
1685 --with-xmlto Use xmlto to regenerate documentation (default:
1686 auto)
1687 --with-fop Use fop to regenerate documentation (default: no)
1688 --with-xsltproc Use xsltproc for the transformation of XML documents
1689 (default: auto)
1690 --with-perl Use perl for extracting information from files
1691 (default: auto)
1692 --with-launchd Build with support for Apple's launchd (default:
1693 auto)
1694 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1695 include dir)
1696 --with-lint Use a lint-style source code checker (default:
1697 disabled)
1698 --with-locale-lib-dir=DIR
1699 Directory where locale libraries files are installed
1700 (default: $libdir/X11/locale)
1701
1702 Some influential environment variables:
1703 CC C compiler command
1704 CFLAGS C compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 LT_SYS_LIBRARY_PATH
1711 User-defined run-time library search path.
1712 PKG_CONFIG path to pkg-config utility
1713 PKG_CONFIG_PATH
1714 directories to add to pkg-config's search path
1715 PKG_CONFIG_LIBDIR
1716 path overriding pkg-config's built-in search path
1717 XMLTO Path to xmlto command
1718 FOP Path to fop command
1719 XSLTPROC Path to xsltproc command
1720 CPP C preprocessor
1721 PERL Path to perl command
1722 BIGFONT_CFLAGS
1723 C compiler flags for BIGFONT, overriding pkg-config
1724 BIGFONT_LIBS
1725 linker flags for BIGFONT, overriding pkg-config
1726 LINT Path to a lint-style command
1727 LINT_FLAGS Flags for the lint-style command
1728 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1729 X11_LIBS linker flags for X11, overriding pkg-config
1730
1731 Use these variables to override the choices made by `configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1733
1734 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>.
1735 _ACEOF
1736 ac_status=$?
1737 fi
1738
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744 continue
1745 ac_builddir=.
1746
1747 case "$ac_dir" in
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *)
1750 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756 esac ;;
1757 esac
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1762
1763 case $srcdir in
1764 .) # We are building in place.
1765 ac_srcdir=.
1766 ac_top_srcdir=$ac_top_builddir_sub
1767 ac_abs_top_srcdir=$ac_pwd ;;
1768 [\\/]* | ?:[\\/]* ) # Absolute name.
1769 ac_srcdir=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir=$srcdir
1771 ac_abs_top_srcdir=$srcdir ;;
1772 *) # Relative name.
1773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776 esac
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1778
1779 cd "$ac_dir" || { ac_status=$?; continue; }
1780 # Check for configure.gnu first; this name is used for a wrapper for
1781 # Metaconfig's "Configure" on case-insensitive file systems.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1788 else
1789 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 fi || ac_status=$?
1791 cd "$ac_pwd" || { ac_status=$?; break; }
1792 done
1793 fi
1794
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1797 cat <<\_ACEOF
1798 libX11 configure 1.8.1
1799 generated by GNU Autoconf 2.71
1800
1801 Copyright (C) 2021 Free Software Foundation, Inc.
1802 This configure script is free software; the Free Software Foundation
1803 gives unlimited permission to copy, distribute and modify it.
1804 _ACEOF
1805 exit
1806 fi
1807
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1811
1812 # ac_fn_c_try_compile LINENO
1813 # --------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_compile ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext conftest.beam
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 printf "%s\n" "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext
1838 then :
1839 ac_retval=0
1840 else $as_nop
1841 printf "%s\n" "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845 fi
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_compile
1850
1851 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists and can be compiled using the include files in
1854 # INCLUDES, setting the cache variable VAR accordingly.
1855 ac_fn_c_check_header_compile ()
1856 {
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 printf %s "checking for $2... " >&6; }
1860 if eval test \${$3+y}
1861 then :
1862 printf %s "(cached) " >&6
1863 else $as_nop
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"
1870 then :
1871 eval "$3=yes"
1872 else $as_nop
1873 eval "$3=no"
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1876 fi
1877 eval ac_res=\$$3
1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 printf "%s\n" "$ac_res" >&6; }
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881
1882 } # ac_fn_c_check_header_compile
1883
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 printf "%s\n" "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }
1913 then :
1914 ac_retval=0
1915 else $as_nop
1916 printf "%s\n" "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919 ac_retval=1
1920 fi
1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923 # interfere with the next link command; also delete a directory that is
1924 # left behind by Apple's compiler. We do this before executing the actions.
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_link
1930
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 printf %s "checking for $2... " >&6; }
1939 if eval test \${$3+y}
1940 then :
1941 printf %s "(cached) " >&6
1942 else $as_nop
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947 #define $2 innocuous_$2
1948
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below. */
1951
1952 #include <limits.h>
1953 #undef $2
1954
1955 /* Override any GCC internal prototype to avoid an error.
1956 Use char because int might match the return type of a GCC
1957 builtin and then its argument prototype would still apply. */
1958 #ifdef __cplusplus
1959 extern "C"
1960 #endif
1961 char $2 ();
1962 /* The GNU C library defines this for functions which it implements
1963 to always fail with ENOSYS. Some functions are actually named
1964 something starting with __ and the normal name is an alias. */
1965 #if defined __stub_$2 || defined __stub___$2
1966 choke me
1967 #endif
1968
1969 int
1970 main (void)
1971 {
1972 return $2 ();
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_link "$LINENO"
1978 then :
1979 eval "$3=yes"
1980 else $as_nop
1981 eval "$3=no"
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1984 conftest$ac_exeext conftest.$ac_ext
1985 fi
1986 eval ac_res=\$$3
1987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 printf "%s\n" "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991 } # ac_fn_c_check_func
1992
1993 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1994 # ------------------------------------------------------------------
1995 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1996 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1997 ac_fn_check_decl ()
1998 {
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 as_decl_name=`echo $2|sed 's/ *(.*//'`
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002 printf %s "checking whether $as_decl_name is declared... " >&6; }
2003 if eval test \${$3+y}
2004 then :
2005 printf %s "(cached) " >&6
2006 else $as_nop
2007 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2008 eval ac_save_FLAGS=\$$6
2009 as_fn_append $6 " $5"
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2012 $4
2013 int
2014 main (void)
2015 {
2016 #ifndef $as_decl_name
2017 #ifdef __cplusplus
2018 (void) $as_decl_use;
2019 #else
2020 (void) $as_decl_name;
2021 #endif
2022 #endif
2023
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"
2029 then :
2030 eval "$3=yes"
2031 else $as_nop
2032 eval "$3=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035 eval $6=\$ac_save_FLAGS
2036
2037 fi
2038 eval ac_res=\$$3
2039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 printf "%s\n" "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_check_decl
2044
2045 # ac_fn_c_try_cpp LINENO
2046 # ----------------------
2047 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_c_try_cpp ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_cpp conftest.$ac_ext"
2052 case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 printf "%s\n" "$ac_try_echo"; } >&5
2058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } > conftest.i && {
2067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2068 test ! -s conftest.err
2069 }
2070 then :
2071 ac_retval=0
2072 else $as_nop
2073 printf "%s\n" "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_retval=1
2077 fi
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2080
2081 } # ac_fn_c_try_cpp
2082
2083 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2084 # ----------------------------------------------------
2085 # Tries to find if the field MEMBER exists in type AGGR, after including
2086 # INCLUDES, setting cache variable VAR accordingly.
2087 ac_fn_c_check_member ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2091 printf %s "checking for $2.$3... " >&6; }
2092 if eval test \${$4+y}
2093 then :
2094 printf %s "(cached) " >&6
2095 else $as_nop
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $5
2099 int
2100 main (void)
2101 {
2102 static $2 ac_aggr;
2103 if (ac_aggr.$3)
2104 return 0;
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"
2110 then :
2111 eval "$4=yes"
2112 else $as_nop
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $5
2116 int
2117 main (void)
2118 {
2119 static $2 ac_aggr;
2120 if (sizeof ac_aggr.$3)
2121 return 0;
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"
2127 then :
2128 eval "$4=yes"
2129 else $as_nop
2130 eval "$4=no"
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2133 fi
2134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2135 fi
2136 eval ac_res=\$$4
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 printf "%s\n" "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140
2141 } # ac_fn_c_check_member
2142
2143 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2144 # -------------------------------------------
2145 # Tests whether TYPE exists after having included INCLUDES, setting cache
2146 # variable VAR accordingly.
2147 ac_fn_c_check_type ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 printf %s "checking for $2... " >&6; }
2152 if eval test \${$3+y}
2153 then :
2154 printf %s "(cached) " >&6
2155 else $as_nop
2156 eval "$3=no"
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 $4
2160 int
2161 main (void)
2162 {
2163 if (sizeof ($2))
2164 return 0;
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"
2170 then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main (void)
2176 {
2177 if (sizeof (($2)))
2178 return 0;
2179 ;
2180 return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"
2184 then :
2185
2186 else $as_nop
2187 eval "$3=yes"
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2192 fi
2193 eval ac_res=\$$3
2194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 printf "%s\n" "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198 } # ac_fn_c_check_type
2199
2200 # ac_fn_c_try_run LINENO
2201 # ----------------------
2202 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2203 # executables *can* be run.
2204 ac_fn_c_try_run ()
2205 {
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 if { { ac_try="$ac_link"
2208 case "(($ac_try" in
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 printf "%s\n" "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>&5
2215 ac_status=$?
2216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2218 { { case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2221 esac
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 printf "%s\n" "$ac_try_echo"; } >&5
2224 (eval "$ac_try") 2>&5
2225 ac_status=$?
2226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227 test $ac_status = 0; }; }
2228 then :
2229 ac_retval=0
2230 else $as_nop
2231 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2232 printf "%s\n" "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 ac_retval=$ac_status
2236 fi
2237 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 as_fn_set_status $ac_retval
2240
2241 } # ac_fn_c_try_run
2242 ac_configure_args_raw=
2243 for ac_arg
2244 do
2245 case $ac_arg in
2246 *\'*)
2247 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 as_fn_append ac_configure_args_raw " '$ac_arg'"
2250 done
2251
2252 case $ac_configure_args_raw in
2253 *$as_nl*)
2254 ac_safe_unquote= ;;
2255 *)
2256 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2257 ac_unsafe_a="$ac_unsafe_z#~"
2258 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2259 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2260 esac
2261
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2265
2266 It was created by libX11 $as_me 1.8.1, which was
2267 generated by GNU Autoconf 2.71. Invocation command line was
2268
2269 $ $0$ac_configure_args_raw
2270
2271 _ACEOF
2272 exec 5>>config.log
2273 {
2274 cat <<_ASUNAME
2275 ## --------- ##
2276 ## Platform. ##
2277 ## --------- ##
2278
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2284
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2287
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2295
2296 _ASUNAME
2297
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301 IFS=$as_save_IFS
2302 case $as_dir in #(((
2303 '') as_dir=./ ;;
2304 */) ;;
2305 *) as_dir=$as_dir/ ;;
2306 esac
2307 printf "%s\n" "PATH: $as_dir"
2308 done
2309 IFS=$as_save_IFS
2310
2311 } >&5
2312
2313 cat >&5 <<_ACEOF
2314
2315
2316 ## ----------- ##
2317 ## Core tests. ##
2318 ## ----------- ##
2319
2320 _ACEOF
2321
2322
2323 # Keep a trace of the command line.
2324 # Strip out --no-create and --no-recursion so they do not pile up.
2325 # Strip out --silent because we don't want to record it for future runs.
2326 # Also quote any args containing shell meta-characters.
2327 # Make two passes to allow for proper duplicate-argument suppression.
2328 ac_configure_args=
2329 ac_configure_args0=
2330 ac_configure_args1=
2331 ac_must_keep_next=false
2332 for ac_pass in 1 2
2333 do
2334 for ac_arg
2335 do
2336 case $ac_arg in
2337 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339 | -silent | --silent | --silen | --sile | --sil)
2340 continue ;;
2341 *\'*)
2342 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 esac
2344 case $ac_pass in
2345 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 2)
2347 as_fn_append ac_configure_args1 " '$ac_arg'"
2348 if test $ac_must_keep_next = true; then
2349 ac_must_keep_next=false # Got value, back to normal.
2350 else
2351 case $ac_arg in
2352 *=* | --config-cache | -C | -disable-* | --disable-* \
2353 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355 | -with-* | --with-* | -without-* | --without-* | --x)
2356 case "$ac_configure_args0 " in
2357 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358 esac
2359 ;;
2360 -* ) ac_must_keep_next=true ;;
2361 esac
2362 fi
2363 as_fn_append ac_configure_args " '$ac_arg'"
2364 ;;
2365 esac
2366 done
2367 done
2368 { ac_configure_args0=; unset ac_configure_args0;}
2369 { ac_configure_args1=; unset ac_configure_args1;}
2370
2371 # When interrupted or exit'd, cleanup temporary files, and complete
2372 # config.log. We remove comments because anyway the quotes in there
2373 # would cause problems or look ugly.
2374 # WARNING: Use '\'' to represent an apostrophe within the trap.
2375 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376 trap 'exit_status=$?
2377 # Sanitize IFS.
2378 IFS=" "" $as_nl"
2379 # Save into config.log some information that might help in debugging.
2380 {
2381 echo
2382
2383 printf "%s\n" "## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##"
2386 echo
2387 # The following way of writing the cache mishandles newlines in values,
2388 (
2389 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in #(
2392 *${as_nl}*)
2393 case $ac_var in #(
2394 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2395 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2396 esac
2397 case $ac_var in #(
2398 _ | IFS | as_nl) ;; #(
2399 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2400 *) { eval $ac_var=; unset $ac_var;} ;;
2401 esac ;;
2402 esac
2403 done
2404 (set) 2>&1 |
2405 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2406 *${as_nl}ac_space=\ *)
2407 sed -n \
2408 "s/'\''/'\''\\\\'\'''\''/g;
2409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2410 ;; #(
2411 *)
2412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 ;;
2414 esac |
2415 sort
2416 )
2417 echo
2418
2419 printf "%s\n" "## ----------------- ##
2420 ## Output variables. ##
2421 ## ----------------- ##"
2422 echo
2423 for ac_var in $ac_subst_vars
2424 do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in
2427 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2428 esac
2429 printf "%s\n" "$ac_var='\''$ac_val'\''"
2430 done | sort
2431 echo
2432
2433 if test -n "$ac_subst_files"; then
2434 printf "%s\n" "## ------------------- ##
2435 ## File substitutions. ##
2436 ## ------------------- ##"
2437 echo
2438 for ac_var in $ac_subst_files
2439 do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in
2442 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443 esac
2444 printf "%s\n" "$ac_var='\''$ac_val'\''"
2445 done | sort
2446 echo
2447 fi
2448
2449 if test -s confdefs.h; then
2450 printf "%s\n" "## ----------- ##
2451 ## confdefs.h. ##
2452 ## ----------- ##"
2453 echo
2454 cat confdefs.h
2455 echo
2456 fi
2457 test "$ac_signal" != 0 &&
2458 printf "%s\n" "$as_me: caught signal $ac_signal"
2459 printf "%s\n" "$as_me: exit $exit_status"
2460 } >&5
2461 rm -f core *.core core.conftest.* &&
2462 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2463 exit $exit_status
2464 ' 0
2465 for ac_signal in 1 2 13 15; do
2466 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2467 done
2468 ac_signal=0
2469
2470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2471 rm -f -r conftest* confdefs.h
2472
2473 printf "%s\n" "/* confdefs.h */" > confdefs.h
2474
2475 # Predefined preprocessor variables.
2476
2477 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2478
2479 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2480
2481 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2482
2483 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2484
2485 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2486
2487 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2488
2489
2490 # Let the site file select an alternate cache file if it wants to.
2491 # Prefer an explicitly selected file to automatically selected ones.
2492 if test -n "$CONFIG_SITE"; then
2493 ac_site_files="$CONFIG_SITE"
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2496 else
2497 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2498 fi
2499
2500 for ac_site_file in $ac_site_files
2501 do
2502 case $ac_site_file in #(
2503 */*) :
2504 ;; #(
2505 *) :
2506 ac_site_file=./$ac_site_file ;;
2507 esac
2508 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2510 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2511 sed 's/^/| /' "$ac_site_file" >&5
2512 . "$ac_site_file" \
2513 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2515 as_fn_error $? "failed to load site script $ac_site_file
2516 See \`config.log' for more details" "$LINENO" 5; }
2517 fi
2518 done
2519
2520 if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special files
2522 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2523 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2526 case $cache_file in
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
2529 esac
2530 fi
2531 else
2532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2534 >$cache_file
2535 fi
2536
2537 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2538 # Test code for whether the C compiler supports C89 (global declarations)
2539 ac_c_conftest_c89_globals='
2540 /* Does the compiler advertise C89 conformance?
2541 Do not test the value of __STDC__, because some compilers set it to 0
2542 while being otherwise adequately conformant. */
2543 #if !defined __STDC__
2544 # error "Compiler does not advertise C89 conformance"
2545 #endif
2546
2547 #include <stddef.h>
2548 #include <stdarg.h>
2549 struct stat;
2550 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2551 struct buf { int x; };
2552 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2553 static char *e (p, i)
2554 char **p;
2555 int i;
2556 {
2557 return p[i];
2558 }
2559 static char *f (char * (*g) (char **, int), char **p, ...)
2560 {
2561 char *s;
2562 va_list v;
2563 va_start (v,p);
2564 s = g (p, va_arg (v,int));
2565 va_end (v);
2566 return s;
2567 }
2568
2569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2570 function prototypes and stuff, but not \xHH hex character constants.
2571 These do not provoke an error unfortunately, instead are silently treated
2572 as an "x". The following induces an error, until -std is added to get
2573 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2574 array size at least. It is necessary to write \x00 == 0 to get something
2575 that is true only with -std. */
2576 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2577
2578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2579 inside strings and character constants. */
2580 #define FOO(x) '\''x'\''
2581 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2582
2583 int test (int i, double x);
2584 struct s1 {int (*f) (int a);};
2585 struct s2 {int (*f) (double a);};
2586 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2587 int, int);'
2588
2589 # Test code for whether the C compiler supports C89 (body of main).
2590 ac_c_conftest_c89_main='
2591 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2592 '
2593
2594 # Test code for whether the C compiler supports C99 (global declarations)
2595 ac_c_conftest_c99_globals='
2596 // Does the compiler advertise C99 conformance?
2597 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2598 # error "Compiler does not advertise C99 conformance"
2599 #endif
2600
2601 #include <stdbool.h>
2602 extern int puts (const char *);
2603 extern int printf (const char *, ...);
2604 extern int dprintf (int, const char *, ...);
2605 extern void *malloc (size_t);
2606
2607 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2608 // dprintf is used instead of fprintf to avoid needing to declare
2609 // FILE and stderr.
2610 #define debug(...) dprintf (2, __VA_ARGS__)
2611 #define showlist(...) puts (#__VA_ARGS__)
2612 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2613 static void
2614 test_varargs_macros (void)
2615 {
2616 int x = 1234;
2617 int y = 5678;
2618 debug ("Flag");
2619 debug ("X = %d\n", x);
2620 showlist (The first, second, and third items.);
2621 report (x>y, "x is %d but y is %d", x, y);
2622 }
2623
2624 // Check long long types.
2625 #define BIG64 18446744073709551615ull
2626 #define BIG32 4294967295ul
2627 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2628 #if !BIG_OK
2629 #error "your preprocessor is broken"
2630 #endif
2631 #if BIG_OK
2632 #else
2633 #error "your preprocessor is broken"
2634 #endif
2635 static long long int bignum = -9223372036854775807LL;
2636 static unsigned long long int ubignum = BIG64;
2637
2638 struct incomplete_array
2639 {
2640 int datasize;
2641 double data[];
2642 };
2643
2644 struct named_init {
2645 int number;
2646 const wchar_t *name;
2647 double average;
2648 };
2649
2650 typedef const char *ccp;
2651
2652 static inline int
2653 test_restrict (ccp restrict text)
2654 {
2655 // See if C++-style comments work.
2656 // Iterate through items via the restricted pointer.
2657 // Also check for declarations in for loops.
2658 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2659 continue;
2660 return 0;
2661 }
2662
2663 // Check varargs and va_copy.
2664 static bool
2665 test_varargs (const char *format, ...)
2666 {
2667 va_list args;
2668 va_start (args, format);
2669 va_list args_copy;
2670 va_copy (args_copy, args);
2671
2672 const char *str = "";
2673 int number = 0;
2674 float fnumber = 0;
2675
2676 while (*format)
2677 {
2678 switch (*format++)
2679 {
2680 case '\''s'\'': // string
2681 str = va_arg (args_copy, const char *);
2682 break;
2683 case '\''d'\'': // int
2684 number = va_arg (args_copy, int);
2685 break;
2686 case '\''f'\'': // float
2687 fnumber = va_arg (args_copy, double);
2688 break;
2689 default:
2690 break;
2691 }
2692 }
2693 va_end (args_copy);
2694 va_end (args);
2695
2696 return *str && number && fnumber;
2697 }
2698 '
2699
2700 # Test code for whether the C compiler supports C99 (body of main).
2701 ac_c_conftest_c99_main='
2702 // Check bool.
2703 _Bool success = false;
2704 success |= (argc != 0);
2705
2706 // Check restrict.
2707 if (test_restrict ("String literal") == 0)
2708 success = true;
2709 char *restrict newvar = "Another string";
2710
2711 // Check varargs.
2712 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2713 test_varargs_macros ();
2714
2715 // Check flexible array members.
2716 struct incomplete_array *ia =
2717 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2718 ia->datasize = 10;
2719 for (int i = 0; i < ia->datasize; ++i)
2720 ia->data[i] = i * 1.234;
2721
2722 // Check named initializers.
2723 struct named_init ni = {
2724 .number = 34,
2725 .name = L"Test wide string",
2726 .average = 543.34343,
2727 };
2728
2729 ni.number = 58;
2730
2731 int dynamic_array[ni.number];
2732 dynamic_array[0] = argv[0][0];
2733 dynamic_array[ni.number - 1] = 543;
2734
2735 // work around unused variable warnings
2736 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2737 || dynamic_array[ni.number - 1] != 543);
2738 '
2739
2740 # Test code for whether the C compiler supports C11 (global declarations)
2741 ac_c_conftest_c11_globals='
2742 // Does the compiler advertise C11 conformance?
2743 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2744 # error "Compiler does not advertise C11 conformance"
2745 #endif
2746
2747 // Check _Alignas.
2748 char _Alignas (double) aligned_as_double;
2749 char _Alignas (0) no_special_alignment;
2750 extern char aligned_as_int;
2751 char _Alignas (0) _Alignas (int) aligned_as_int;
2752
2753 // Check _Alignof.
2754 enum
2755 {
2756 int_alignment = _Alignof (int),
2757 int_array_alignment = _Alignof (int[100]),
2758 char_alignment = _Alignof (char)
2759 };
2760 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2761
2762 // Check _Noreturn.
2763 int _Noreturn does_not_return (void) { for (;;) continue; }
2764
2765 // Check _Static_assert.
2766 struct test_static_assert
2767 {
2768 int x;
2769 _Static_assert (sizeof (int) <= sizeof (long int),
2770 "_Static_assert does not work in struct");
2771 long int y;
2772 };
2773
2774 // Check UTF-8 literals.
2775 #define u8 syntax error!
2776 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2777
2778 // Check duplicate typedefs.
2779 typedef long *long_ptr;
2780 typedef long int *long_ptr;
2781 typedef long_ptr long_ptr;
2782
2783 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2784 struct anonymous
2785 {
2786 union {
2787 struct { int i; int j; };
2788 struct { int k; long int l; } w;
2789 };
2790 int m;
2791 } v1;
2792 '
2793
2794 # Test code for whether the C compiler supports C11 (body of main).
2795 ac_c_conftest_c11_main='
2796 _Static_assert ((offsetof (struct anonymous, i)
2797 == offsetof (struct anonymous, w.k)),
2798 "Anonymous union alignment botch");
2799 v1.i = 2;
2800 v1.w.k = 5;
2801 ok |= v1.i != 5;
2802 '
2803
2804 # Test code for whether the C compiler supports C11 (complete).
2805 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2806 ${ac_c_conftest_c99_globals}
2807 ${ac_c_conftest_c11_globals}
2808
2809 int
2810 main (int argc, char **argv)
2811 {
2812 int ok = 0;
2813 ${ac_c_conftest_c89_main}
2814 ${ac_c_conftest_c99_main}
2815 ${ac_c_conftest_c11_main}
2816 return ok;
2817 }
2818 "
2819
2820 # Test code for whether the C compiler supports C99 (complete).
2821 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2822 ${ac_c_conftest_c99_globals}
2823
2824 int
2825 main (int argc, char **argv)
2826 {
2827 int ok = 0;
2828 ${ac_c_conftest_c89_main}
2829 ${ac_c_conftest_c99_main}
2830 return ok;
2831 }
2832 "
2833
2834 # Test code for whether the C compiler supports C89 (complete).
2835 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2836
2837 int
2838 main (int argc, char **argv)
2839 {
2840 int ok = 0;
2841 ${ac_c_conftest_c89_main}
2842 return ok;
2843 }
2844 "
2845
2846 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2847 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2848 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2849 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2850 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2851 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2852 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2853 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2854 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2855 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2856 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2857 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2858
2859 # Auxiliary files required by this configure script.
2860 ac_aux_files="ltmain.sh missing install-sh compile config.guess config.sub"
2861
2862 # Locations in which to look for auxiliary files.
2863 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2864
2865 # Search for a directory containing all of the required auxiliary files,
2866 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2867 # If we don't find one directory that contains all the files we need,
2868 # we report the set of missing files from the *first* directory in
2869 # $ac_aux_dir_candidates and give up.
2870 ac_missing_aux_files=""
2871 ac_first_candidate=:
2872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 as_found=false
2875 for as_dir in $ac_aux_dir_candidates
2876 do
2877 IFS=$as_save_IFS
2878 case $as_dir in #(((
2879 '') as_dir=./ ;;
2880 */) ;;
2881 *) as_dir=$as_dir/ ;;
2882 esac
2883 as_found=:
2884
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2886 ac_aux_dir_found=yes
2887 ac_install_sh=
2888 for ac_aux in $ac_aux_files
2889 do
2890 # As a special case, if "install-sh" is required, that requirement
2891 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2892 # and $ac_install_sh is set appropriately for whichever one is found.
2893 if test x"$ac_aux" = x"install-sh"
2894 then
2895 if test -f "${as_dir}install-sh"; then
2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2897 ac_install_sh="${as_dir}install-sh -c"
2898 elif test -f "${as_dir}install.sh"; then
2899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2900 ac_install_sh="${as_dir}install.sh -c"
2901 elif test -f "${as_dir}shtool"; then
2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2903 ac_install_sh="${as_dir}shtool install -c"
2904 else
2905 ac_aux_dir_found=no
2906 if $ac_first_candidate; then
2907 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2908 else
2909 break
2910 fi
2911 fi
2912 else
2913 if test -f "${as_dir}${ac_aux}"; then
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2915 else
2916 ac_aux_dir_found=no
2917 if $ac_first_candidate; then
2918 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2919 else
2920 break
2921 fi
2922 fi
2923 fi
2924 done
2925 if test "$ac_aux_dir_found" = yes; then
2926 ac_aux_dir="$as_dir"
2927 break
2928 fi
2929 ac_first_candidate=false
2930
2931 as_found=false
2932 done
2933 IFS=$as_save_IFS
2934 if $as_found
2935 then :
2936
2937 else $as_nop
2938 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2939 fi
2940
2941
2942 # These three variables are undocumented and unsupported,
2943 # and are intended to be withdrawn in a future Autoconf release.
2944 # They can cause serious problems if a builder's source tree is in a directory
2945 # whose full name contains unusual characters.
2946 if test -f "${ac_aux_dir}config.guess"; then
2947 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2948 fi
2949 if test -f "${ac_aux_dir}config.sub"; then
2950 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2951 fi
2952 if test -f "$ac_aux_dir/configure"; then
2953 ac_configure="$SHELL ${ac_aux_dir}configure"
2954 fi
2955
2956 # Check that the precious variables saved in the cache have kept the same
2957 # value.
2958 ac_cache_corrupted=false
2959 for ac_var in $ac_precious_vars; do
2960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2961 eval ac_new_set=\$ac_env_${ac_var}_set
2962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2963 eval ac_new_val=\$ac_env_${ac_var}_value
2964 case $ac_old_set,$ac_new_set in
2965 set,)
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2967 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2968 ac_cache_corrupted=: ;;
2969 ,set)
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2971 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2972 ac_cache_corrupted=: ;;
2973 ,);;
2974 *)
2975 if test "x$ac_old_val" != "x$ac_new_val"; then
2976 # differences in whitespace do not lead to failure.
2977 ac_old_val_w=`echo x $ac_old_val`
2978 ac_new_val_w=`echo x $ac_new_val`
2979 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2981 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2982 ac_cache_corrupted=:
2983 else
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2985 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2986 eval $ac_var=\$ac_old_val
2987 fi
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2989 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2991 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2992 fi;;
2993 esac
2994 # Pass precious variables to config.status.
2995 if test "$ac_new_set" = set; then
2996 case $ac_new_val in
2997 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2998 *) ac_arg=$ac_var=$ac_new_val ;;
2999 esac
3000 case " $ac_configure_args " in
3001 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3002 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3003 esac
3004 fi
3005 done
3006 if $ac_cache_corrupted; then
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3010 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3011 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3012 and start over" "$LINENO" 5
3013 fi
3014 ## -------------------- ##
3015 ## Main body of script. ##
3016 ## -------------------- ##
3017
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025
3026 ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
3027
3028
3029
3030
3031
3032 # Make sure we can run config.sub.
3033 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3034 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3035
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3037 printf %s "checking build system type... " >&6; }
3038 if test ${ac_cv_build+y}
3039 then :
3040 printf %s "(cached) " >&6
3041 else $as_nop
3042 ac_build_alias=$build_alias
3043 test "x$ac_build_alias" = x &&
3044 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3045 test "x$ac_build_alias" = x &&
3046 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3047 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3048 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3049
3050 fi
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3052 printf "%s\n" "$ac_cv_build" >&6; }
3053 case $ac_cv_build in
3054 *-*-*) ;;
3055 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3056 esac
3057 build=$ac_cv_build
3058 ac_save_IFS=$IFS; IFS='-'
3059 set x $ac_cv_build
3060 shift
3061 build_cpu=$1
3062 build_vendor=$2
3063 shift; shift
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3066 build_os=$*
3067 IFS=$ac_save_IFS
3068 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3069
3070
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3072 printf %s "checking host system type... " >&6; }
3073 if test ${ac_cv_host+y}
3074 then :
3075 printf %s "(cached) " >&6
3076 else $as_nop
3077 if test "x$host_alias" = x; then
3078 ac_cv_host=$ac_cv_build
3079 else
3080 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3081 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3082 fi
3083
3084 fi
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3086 printf "%s\n" "$ac_cv_host" >&6; }
3087 case $ac_cv_host in
3088 *-*-*) ;;
3089 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3090 esac
3091 host=$ac_cv_host
3092 ac_save_IFS=$IFS; IFS='-'
3093 set x $ac_cv_host
3094 shift
3095 host_cpu=$1
3096 host_vendor=$2
3097 shift; shift
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3100 host_os=$*
3101 IFS=$ac_save_IFS
3102 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3103
3104
3105 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3106 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3107 # to avoid autoconf errors.
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118 # Expand $ac_aux_dir to an absolute path.
3119 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3120
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 printf %s "checking for $ac_word... " >&6; }
3131 if test ${ac_cv_prog_CC+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 case $as_dir in #(((
3143 '') as_dir=./ ;;
3144 */) ;;
3145 *) as_dir=$as_dir/ ;;
3146 esac
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 printf "%s\n" "$CC" >&6; }
3163 else
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 printf "%s\n" "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$ac_cv_prog_CC"; then
3171 ac_ct_CC=$CC
3172 # Extract the first word of "gcc", so it can be a program name with args.
3173 set dummy gcc; ac_word=$2
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 printf %s "checking for $ac_word... " >&6; }
3176 if test ${ac_cv_prog_ac_ct_CC+y}
3177 then :
3178 printf %s "(cached) " >&6
3179 else $as_nop
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 case $as_dir in #(((
3188 '') as_dir=./ ;;
3189 */) ;;
3190 *) as_dir=$as_dir/ ;;
3191 esac
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_CC="gcc"
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 printf "%s\n" "$ac_ct_CC" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 fi
3212
3213 if test "x$ac_ct_CC" = x; then
3214 CC=""
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 CC=$ac_ct_CC
3223 fi
3224 else
3225 CC="$ac_cv_prog_CC"
3226 fi
3227
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 printf %s "checking for $ac_word... " >&6; }
3234 if test ${ac_cv_prog_CC+y}
3235 then :
3236 printf %s "(cached) " >&6
3237 else $as_nop
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244 IFS=$as_save_IFS
3245 case $as_dir in #(((
3246 '') as_dir=./ ;;
3247 */) ;;
3248 *) as_dir=$as_dir/ ;;
3249 esac
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_CC="${ac_tool_prefix}cc"
3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256 done
3257 done
3258 IFS=$as_save_IFS
3259
3260 fi
3261 fi
3262 CC=$ac_cv_prog_CC
3263 if test -n "$CC"; then
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3265 printf "%s\n" "$CC" >&6; }
3266 else
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 printf "%s\n" "no" >&6; }
3269 fi
3270
3271
3272 fi
3273 fi
3274 if test -z "$CC"; then
3275 # Extract the first word of "cc", so it can be a program name with args.
3276 set dummy cc; ac_word=$2
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 printf %s "checking for $ac_word... " >&6; }
3279 if test ${ac_cv_prog_CC+y}
3280 then :
3281 printf %s "(cached) " >&6
3282 else $as_nop
3283 if test -n "$CC"; then
3284 ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 ac_prog_rejected=no
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3289 do
3290 IFS=$as_save_IFS
3291 case $as_dir in #(((
3292 '') as_dir=./ ;;
3293 */) ;;
3294 *) as_dir=$as_dir/ ;;
3295 esac
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3298 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299 ac_prog_rejected=yes
3300 continue
3301 fi
3302 ac_cv_prog_CC="cc"
3303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 if test $ac_prog_rejected = yes; then
3311 # We found a bogon in the path, so make sure we never use it.
3312 set dummy $ac_cv_prog_CC
3313 shift
3314 if test $# != 0; then
3315 # We chose a different compiler from the bogus one.
3316 # However, it has the same basename, so the bogon will be chosen
3317 # first if we set CC to just the basename; use the full file name.
3318 shift
3319 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3320 fi
3321 fi
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327 printf "%s\n" "$CC" >&6; }
3328 else
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 printf "%s\n" "no" >&6; }
3331 fi
3332
3333
3334 fi
3335 if test -z "$CC"; then
3336 if test -n "$ac_tool_prefix"; then
3337 for ac_prog in cl.exe
3338 do
3339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 printf %s "checking for $ac_word... " >&6; }
3343 if test ${ac_cv_prog_CC+y}
3344 then :
3345 printf %s "(cached) " >&6
3346 else $as_nop
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 case $as_dir in #(((
3355 '') as_dir=./ ;;
3356 */) ;;
3357 *) as_dir=$as_dir/ ;;
3358 esac
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 printf "%s\n" "$CC" >&6; }
3375 else
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 printf "%s\n" "no" >&6; }
3378 fi
3379
3380
3381 test -n "$CC" && break
3382 done
3383 fi
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387 do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 printf %s "checking for $ac_word... " >&6; }
3392 if test ${ac_cv_prog_ac_ct_CC+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else $as_nop
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 case $as_dir in #(((
3404 '') as_dir=./ ;;
3405 */) ;;
3406 *) as_dir=$as_dir/ ;;
3407 esac
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_ac_ct_CC="$ac_prog"
3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3423 printf "%s\n" "$ac_ct_CC" >&6; }
3424 else
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 printf "%s\n" "no" >&6; }
3427 fi
3428
3429
3430 test -n "$ac_ct_CC" && break
3431 done
3432
3433 if test "x$ac_ct_CC" = x; then
3434 CC=""
3435 else
3436 case $cross_compiling:$ac_tool_warned in
3437 yes:)
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3439 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3440 ac_tool_warned=yes ;;
3441 esac
3442 CC=$ac_ct_CC
3443 fi
3444 fi
3445
3446 fi
3447 if test -z "$CC"; then
3448 if test -n "$ac_tool_prefix"; then
3449 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3450 set dummy ${ac_tool_prefix}clang; ac_word=$2
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 printf %s "checking for $ac_word... " >&6; }
3453 if test ${ac_cv_prog_CC+y}
3454 then :
3455 printf %s "(cached) " >&6
3456 else $as_nop
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463 IFS=$as_save_IFS
3464 case $as_dir in #(((
3465 '') as_dir=./ ;;
3466 */) ;;
3467 *) as_dir=$as_dir/ ;;
3468 esac
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_CC="${ac_tool_prefix}clang"
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 printf "%s\n" "$CC" >&6; }
3485 else
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 printf "%s\n" "no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$ac_cv_prog_CC"; then
3493 ac_ct_CC=$CC
3494 # Extract the first word of "clang", so it can be a program name with args.
3495 set dummy clang; ac_word=$2
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 printf %s "checking for $ac_word... " >&6; }
3498 if test ${ac_cv_prog_ac_ct_CC+y}
3499 then :
3500 printf %s "(cached) " >&6
3501 else $as_nop
3502 if test -n "$ac_ct_CC"; then
3503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 case $as_dir in #(((
3510 '') as_dir=./ ;;
3511 */) ;;
3512 *) as_dir=$as_dir/ ;;
3513 esac
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="clang"
3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520 done
3521 done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 printf "%s\n" "$ac_ct_CC" >&6; }
3530 else
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 printf "%s\n" "no" >&6; }
3533 fi
3534
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3545 fi
3546 else
3547 CC="$ac_cv_prog_CC"
3548 fi
3549
3550 fi
3551
3552
3553 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error $? "no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details" "$LINENO" 5; }
3557
3558 # Provide some information about the compiler.
3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560 set X $ac_compile
3561 ac_compiler=$2
3562 for ac_option in --version -v -V -qversion -version; do
3563 { { ac_try="$ac_compiler $ac_option >&5"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 printf "%s\n" "$ac_try_echo"; } >&5
3570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571 ac_status=$?
3572 if test -s conftest.err; then
3573 sed '10a\
3574 ... rest of stderr output deleted ...
3575 10q' conftest.err >conftest.er1
3576 cat conftest.er1 >&5
3577 fi
3578 rm -f conftest.er1 conftest.err
3579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }
3581 done
3582
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585
3586 int
3587 main (void)
3588 {
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 ac_clean_files_save=$ac_clean_files
3595 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3596 # Try to create an executable without -o first, disregard a.out.
3597 # It will help us diagnose broken compilers, and finding out an intuition
3598 # of exeext.
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3600 printf %s "checking whether the C compiler works... " >&6; }
3601 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3602
3603 # The possible output files:
3604 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3605
3606 ac_rmfiles=
3607 for ac_file in $ac_files
3608 do
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3612 esac
3613 done
3614 rm -f $ac_rmfiles
3615
3616 if { { ac_try="$ac_link_default"
3617 case "(($ac_try" in
3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3620 esac
3621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3622 printf "%s\n" "$ac_try_echo"; } >&5
3623 (eval "$ac_link_default") 2>&5
3624 ac_status=$?
3625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626 test $ac_status = 0; }
3627 then :
3628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3631 # so that the user can short-circuit this test for compilers unknown to
3632 # Autoconf.
3633 for ac_file in $ac_files ''
3634 do
3635 test -f "$ac_file" || continue
3636 case $ac_file in
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3638 ;;
3639 [ab].out )
3640 # We found the default executable, but exeext='' is most
3641 # certainly right.
3642 break;;
3643 *.* )
3644 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3645 then :; else
3646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3647 fi
3648 # We set ac_cv_exeext here because the later test for it is not
3649 # safe: cross compilers may not add the suffix if given an `-o'
3650 # argument, so we may need to know it at that point already.
3651 # Even if this section looks crufty: it has the advantage of
3652 # actually working.
3653 break;;
3654 * )
3655 break;;
3656 esac
3657 done
3658 test "$ac_cv_exeext" = no && ac_cv_exeext=
3659
3660 else $as_nop
3661 ac_file=''
3662 fi
3663 if test -z "$ac_file"
3664 then :
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3667 printf "%s\n" "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error 77 "C compiler cannot create executables
3673 See \`config.log' for more details" "$LINENO" 5; }
3674 else $as_nop
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676 printf "%s\n" "yes" >&6; }
3677 fi
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679 printf %s "checking for C compiler default output file name... " >&6; }
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681 printf "%s\n" "$ac_file" >&6; }
3682 ac_exeext=$ac_cv_exeext
3683
3684 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685 ac_clean_files=$ac_clean_files_save
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687 printf %s "checking for suffix of executables... " >&6; }
3688 if { { ac_try="$ac_link"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 printf "%s\n" "$ac_try_echo"; } >&5
3695 (eval "$ac_link") 2>&5
3696 ac_status=$?
3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }
3699 then :
3700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3702 # work properly (i.e., refer to `conftest.exe'), while it won't with
3703 # `rm'.
3704 for ac_file in conftest.exe conftest conftest.*; do
3705 test -f "$ac_file" || continue
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3709 break;;
3710 * ) break;;
3711 esac
3712 done
3713 else $as_nop
3714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3717 See \`config.log' for more details" "$LINENO" 5; }
3718 fi
3719 rm -f conftest conftest$ac_cv_exeext
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3721 printf "%s\n" "$ac_cv_exeext" >&6; }
3722
3723 rm -f conftest.$ac_ext
3724 EXEEXT=$ac_cv_exeext
3725 ac_exeext=$EXEEXT
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <stdio.h>
3729 int
3730 main (void)
3731 {
3732 FILE *f = fopen ("conftest.out", "w");
3733 return ferror (f) || fclose (f) != 0;
3734
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 ac_clean_files="$ac_clean_files conftest.out"
3740 # Check that the compiler produces executables we can run. If not, either
3741 # the compiler is broken, or we cross compile.
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3743 printf %s "checking whether we are cross compiling... " >&6; }
3744 if test "$cross_compiling" != yes; then
3745 { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 printf "%s\n" "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3753 ac_status=$?
3754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }
3756 if { ac_try='./conftest$ac_cv_exeext'
3757 { { case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 printf "%s\n" "$ac_try_echo"; } >&5
3763 (eval "$ac_try") 2>&5
3764 ac_status=$?
3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }; }; then
3767 cross_compiling=no
3768 else
3769 if test "$cross_compiling" = maybe; then
3770 cross_compiling=yes
3771 else
3772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error 77 "cannot run C compiled programs.
3775 If you meant to cross compile, use \`--host'.
3776 See \`config.log' for more details" "$LINENO" 5; }
3777 fi
3778 fi
3779 fi
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3781 printf "%s\n" "$cross_compiling" >&6; }
3782
3783 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3784 ac_clean_files=$ac_clean_files_save
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3786 printf %s "checking for suffix of object files... " >&6; }
3787 if test ${ac_cv_objext+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else $as_nop
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main (void)
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.o conftest.obj
3803 if { { ac_try="$ac_compile"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 printf "%s\n" "$ac_try_echo"; } >&5
3810 (eval "$ac_compile") 2>&5
3811 ac_status=$?
3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814 then :
3815 for ac_file in conftest.o conftest.obj conftest.*; do
3816 test -f "$ac_file" || continue;
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820 break;;
3821 esac
3822 done
3823 else $as_nop
3824 printf "%s\n" "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "cannot compute suffix of object files: cannot compile
3830 See \`config.log' for more details" "$LINENO" 5; }
3831 fi
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3833 fi
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3835 printf "%s\n" "$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3837 ac_objext=$OBJEXT
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3839 printf %s "checking whether the compiler supports GNU C... " >&6; }
3840 if test ${ac_cv_c_compiler_gnu+y}
3841 then :
3842 printf %s "(cached) " >&6
3843 else $as_nop
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846
3847 int
3848 main (void)
3849 {
3850 #ifndef __GNUC__
3851 choke me
3852 #endif
3853
3854 ;
3855 return 0;
3856 }
3857 _ACEOF
3858 if ac_fn_c_try_compile "$LINENO"
3859 then :
3860 ac_compiler_gnu=yes
3861 else $as_nop
3862 ac_compiler_gnu=no
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3865 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3866
3867 fi
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3869 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871
3872 if test $ac_compiler_gnu = yes; then
3873 GCC=yes
3874 else
3875 GCC=
3876 fi
3877 ac_test_CFLAGS=${CFLAGS+y}
3878 ac_save_CFLAGS=$CFLAGS
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3880 printf %s "checking whether $CC accepts -g... " >&6; }
3881 if test ${ac_cv_prog_cc_g+y}
3882 then :
3883 printf %s "(cached) " >&6
3884 else $as_nop
3885 ac_save_c_werror_flag=$ac_c_werror_flag
3886 ac_c_werror_flag=yes
3887 ac_cv_prog_cc_g=no
3888 CFLAGS="-g"
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891
3892 int
3893 main (void)
3894 {
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"
3901 then :
3902 ac_cv_prog_cc_g=yes
3903 else $as_nop
3904 CFLAGS=""
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907
3908 int
3909 main (void)
3910 {
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"
3917 then :
3918
3919 else $as_nop
3920 ac_c_werror_flag=$ac_save_c_werror_flag
3921 CFLAGS="-g"
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924
3925 int
3926 main (void)
3927 {
3928
3929 ;
3930 return 0;
3931 }
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"
3934 then :
3935 ac_cv_prog_cc_g=yes
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3938 fi
3939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3940 fi
3941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3943 fi
3944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3945 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3946 if test $ac_test_CFLAGS; then
3947 CFLAGS=$ac_save_CFLAGS
3948 elif test $ac_cv_prog_cc_g = yes; then
3949 if test "$GCC" = yes; then
3950 CFLAGS="-g -O2"
3951 else
3952 CFLAGS="-g"
3953 fi
3954 else
3955 if test "$GCC" = yes; then
3956 CFLAGS="-O2"
3957 else
3958 CFLAGS=
3959 fi
3960 fi
3961 ac_prog_cc_stdc=no
3962 if test x$ac_prog_cc_stdc = xno
3963 then :
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3965 printf %s "checking for $CC option to enable C11 features... " >&6; }
3966 if test ${ac_cv_prog_cc_c11+y}
3967 then :
3968 printf %s "(cached) " >&6
3969 else $as_nop
3970 ac_cv_prog_cc_c11=no
3971 ac_save_CC=$CC
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 $ac_c_conftest_c11_program
3975 _ACEOF
3976 for ac_arg in '' -std=gnu11
3977 do
3978 CC="$ac_save_CC $ac_arg"
3979 if ac_fn_c_try_compile "$LINENO"
3980 then :
3981 ac_cv_prog_cc_c11=$ac_arg
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.beam
3984 test "x$ac_cv_prog_cc_c11" != "xno" && break
3985 done
3986 rm -f conftest.$ac_ext
3987 CC=$ac_save_CC
3988 fi
3989
3990 if test "x$ac_cv_prog_cc_c11" = xno
3991 then :
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3993 printf "%s\n" "unsupported" >&6; }
3994 else $as_nop
3995 if test "x$ac_cv_prog_cc_c11" = x
3996 then :
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 printf "%s\n" "none needed" >&6; }
3999 else $as_nop
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4001 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4002 CC="$CC $ac_cv_prog_cc_c11"
4003 fi
4004 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4005 ac_prog_cc_stdc=c11
4006 fi
4007 fi
4008 if test x$ac_prog_cc_stdc = xno
4009 then :
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4011 printf %s "checking for $CC option to enable C99 features... " >&6; }
4012 if test ${ac_cv_prog_cc_c99+y}
4013 then :
4014 printf %s "(cached) " >&6
4015 else $as_nop
4016 ac_cv_prog_cc_c99=no
4017 ac_save_CC=$CC
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 $ac_c_conftest_c99_program
4021 _ACEOF
4022 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4023 do
4024 CC="$ac_save_CC $ac_arg"
4025 if ac_fn_c_try_compile "$LINENO"
4026 then :
4027 ac_cv_prog_cc_c99=$ac_arg
4028 fi
4029 rm -f core conftest.err conftest.$ac_objext conftest.beam
4030 test "x$ac_cv_prog_cc_c99" != "xno" && break
4031 done
4032 rm -f conftest.$ac_ext
4033 CC=$ac_save_CC
4034 fi
4035
4036 if test "x$ac_cv_prog_cc_c99" = xno
4037 then :
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039 printf "%s\n" "unsupported" >&6; }
4040 else $as_nop
4041 if test "x$ac_cv_prog_cc_c99" = x
4042 then :
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4044 printf "%s\n" "none needed" >&6; }
4045 else $as_nop
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4047 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4048 CC="$CC $ac_cv_prog_cc_c99"
4049 fi
4050 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4051 ac_prog_cc_stdc=c99
4052 fi
4053 fi
4054 if test x$ac_prog_cc_stdc = xno
4055 then :
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4057 printf %s "checking for $CC option to enable C89 features... " >&6; }
4058 if test ${ac_cv_prog_cc_c89+y}
4059 then :
4060 printf %s "(cached) " >&6
4061 else $as_nop
4062 ac_cv_prog_cc_c89=no
4063 ac_save_CC=$CC
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 $ac_c_conftest_c89_program
4067 _ACEOF
4068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4069 do
4070 CC="$ac_save_CC $ac_arg"
4071 if ac_fn_c_try_compile "$LINENO"
4072 then :
4073 ac_cv_prog_cc_c89=$ac_arg
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.beam
4076 test "x$ac_cv_prog_cc_c89" != "xno" && break
4077 done
4078 rm -f conftest.$ac_ext
4079 CC=$ac_save_CC
4080 fi
4081
4082 if test "x$ac_cv_prog_cc_c89" = xno
4083 then :
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085 printf "%s\n" "unsupported" >&6; }
4086 else $as_nop
4087 if test "x$ac_cv_prog_cc_c89" = x
4088 then :
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090 printf "%s\n" "none needed" >&6; }
4091 else $as_nop
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4094 CC="$CC $ac_cv_prog_cc_c89"
4095 fi
4096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4097 ac_prog_cc_stdc=c89
4098 fi
4099 fi
4100
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108 ac_ext=c
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4114 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4115 if test ${am_cv_prog_cc_c_o+y}
4116 then :
4117 printf %s "(cached) " >&6
4118 else $as_nop
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main (void)
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 # Make sure it works both with $CC and with simple cc.
4131 # Following AC_PROG_CC_C_O, we do the test twice because some
4132 # compilers refuse to overwrite an existing .o file with -o,
4133 # though they will create one.
4134 am_cv_prog_cc_c_o=yes
4135 for am_i in 1 2; do
4136 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4137 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } \
4141 && test -f conftest2.$ac_objext; then
4142 : OK
4143 else
4144 am_cv_prog_cc_c_o=no
4145 break
4146 fi
4147 done
4148 rm -f core conftest*
4149 unset am_i
4150 fi
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4152 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4153 if test "$am_cv_prog_cc_c_o" != yes; then
4154 # Losing compiler, so override with the script.
4155 # FIXME: It is wrong to rewrite CC.
4156 # But if we don't then we get into trouble of one sort or another.
4157 # A longer-term fix would be to have automake use am__CC in this case,
4158 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4159 CC="$am_aux_dir/compile $CC"
4160 fi
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166
4167
4168
4169 ac_header= ac_cache=
4170 for ac_item in $ac_header_c_list
4171 do
4172 if test $ac_cache; then
4173 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4174 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4175 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4176 fi
4177 ac_header= ac_cache=
4178 elif test $ac_header; then
4179 ac_cache=$ac_item
4180 else
4181 ac_header=$ac_item
4182 fi
4183 done
4184
4185
4186
4187
4188
4189
4190
4191
4192 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4193 then :
4194
4195 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4196
4197 fi
4198
4199
4200
4201
4202
4203
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4205 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4206 if test ${ac_cv_safe_to_define___extensions__+y}
4207 then :
4208 printf %s "(cached) " >&6
4209 else $as_nop
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212
4213 # define __EXTENSIONS__ 1
4214 $ac_includes_default
4215 int
4216 main (void)
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225 ac_cv_safe_to_define___extensions__=yes
4226 else $as_nop
4227 ac_cv_safe_to_define___extensions__=no
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4230 fi
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4232 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4233
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4235 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4236 if test ${ac_cv_should_define__xopen_source+y}
4237 then :
4238 printf %s "(cached) " >&6
4239 else $as_nop
4240 ac_cv_should_define__xopen_source=no
4241 if test $ac_cv_header_wchar_h = yes
4242 then :
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245
4246 #include <wchar.h>
4247 mbstate_t x;
4248 int
4249 main (void)
4250 {
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258
4259 else $as_nop
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 #define _XOPEN_SOURCE 500
4264 #include <wchar.h>
4265 mbstate_t x;
4266 int
4267 main (void)
4268 {
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 if ac_fn_c_try_compile "$LINENO"
4275 then :
4276 ac_cv_should_define__xopen_source=yes
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4281 fi
4282 fi
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4284 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4285
4286 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4287
4288 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4289
4290 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4291
4292 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4293
4294 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4295
4296 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4297
4298 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4299
4300 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4301
4302 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4303
4304 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4305
4306 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4307
4308 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4309
4310 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4311
4312 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4313
4314 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4315
4316 if test $ac_cv_header_minix_config_h = yes
4317 then :
4318 MINIX=yes
4319 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4320
4321 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4322
4323 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4324
4325 else $as_nop
4326 MINIX=
4327 fi
4328 if test $ac_cv_safe_to_define___extensions__ = yes
4329 then :
4330 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4331
4332 fi
4333 if test $ac_cv_should_define__xopen_source = yes
4334 then :
4335 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4336
4337 fi
4338
4339
4340 # Initialize Automake
4341 am__api_version='1.16'
4342
4343
4344 # Find a good install program. We prefer a C program (faster),
4345 # so one script is as good as another. But avoid the broken or
4346 # incompatible versions:
4347 # SysV /etc/install, /usr/sbin/install
4348 # SunOS /usr/etc/install
4349 # IRIX /sbin/install
4350 # AIX /bin/install
4351 # AmigaOS /C/install, which installs bootblocks on floppy discs
4352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4355 # OS/2's system install, which has a completely different semantic
4356 # ./install, which can be erroneously created by make from ./install.sh.
4357 # Reject install programs that cannot install multiple files.
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4359 printf %s "checking for a BSD-compatible install... " >&6; }
4360 if test -z "$INSTALL"; then
4361 if test ${ac_cv_path_install+y}
4362 then :
4363 printf %s "(cached) " >&6
4364 else $as_nop
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 case $as_dir in #(((
4370 '') as_dir=./ ;;
4371 */) ;;
4372 *) as_dir=$as_dir/ ;;
4373 esac
4374 # Account for fact that we put trailing slashes in our PATH walk.
4375 case $as_dir in #((
4376 ./ | /[cC]/* | \
4377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4378 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4379 /usr/ucb/* ) ;;
4380 *)
4381 # OSF1 and SCO ODT 3.0 have their own names for install.
4382 # Don't use installbsd from OSF since it installs stuff as root
4383 # by default.
4384 for ac_prog in ginstall scoinst install; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4387 if test $ac_prog = install &&
4388 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4389 # AIX install. It has an incompatible calling convention.
4390 :
4391 elif test $ac_prog = install &&
4392 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4393 # program-specific install script used by HP pwplus--don't use.
4394 :
4395 else
4396 rm -rf conftest.one conftest.two conftest.dir
4397 echo one > conftest.one
4398 echo two > conftest.two
4399 mkdir conftest.dir
4400 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4401 test -s conftest.one && test -s conftest.two &&
4402 test -s conftest.dir/conftest.one &&
4403 test -s conftest.dir/conftest.two
4404 then
4405 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4406 break 3
4407 fi
4408 fi
4409 fi
4410 done
4411 done
4412 ;;
4413 esac
4414
4415 done
4416 IFS=$as_save_IFS
4417
4418 rm -rf conftest.one conftest.two conftest.dir
4419
4420 fi
4421 if test ${ac_cv_path_install+y}; then
4422 INSTALL=$ac_cv_path_install
4423 else
4424 # As a last resort, use the slow shell script. Don't cache a
4425 # value for INSTALL within a source directory, because that will
4426 # break other packages using the cache if that directory is
4427 # removed, or if the value is a relative name.
4428 INSTALL=$ac_install_sh
4429 fi
4430 fi
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4432 printf "%s\n" "$INSTALL" >&6; }
4433
4434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4435 # It thinks the first close brace ends the variable substitution.
4436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4437
4438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4439
4440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4441
4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4443 printf %s "checking whether build environment is sane... " >&6; }
4444 # Reject unsafe characters in $srcdir or the absolute working directory
4445 # name. Accept space and tab only in the latter.
4446 am_lf='
4447 '
4448 case `pwd` in
4449 *[\\\"\#\$\&\'\`$am_lf]*)
4450 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4451 esac
4452 case $srcdir in
4453 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4454 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4455 esac
4456
4457 # Do 'set' in a subshell so we don't clobber the current shell's
4458 # arguments. Must try -L first in case configure is actually a
4459 # symlink; some systems play weird games with the mod time of symlinks
4460 # (eg FreeBSD returns the mod time of the symlink's containing
4461 # directory).
4462 if (
4463 am_has_slept=no
4464 for am_try in 1 2; do
4465 echo "timestamp, slept: $am_has_slept" > conftest.file
4466 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4467 if test "$*" = "X"; then
4468 # -L didn't work.
4469 set X `ls -t "$srcdir/configure" conftest.file`
4470 fi
4471 if test "$*" != "X $srcdir/configure conftest.file" \
4472 && test "$*" != "X conftest.file $srcdir/configure"; then
4473
4474 # If neither matched, then we have a broken ls. This can happen
4475 # if, for instance, CONFIG_SHELL is bash and it inherits a
4476 # broken ls alias from the environment. This has actually
4477 # happened. Such a system could not be considered "sane".
4478 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4479 alias in your environment" "$LINENO" 5
4480 fi
4481 if test "$2" = conftest.file || test $am_try -eq 2; then
4482 break
4483 fi
4484 # Just in case.
4485 sleep 1
4486 am_has_slept=yes
4487 done
4488 test "$2" = conftest.file
4489 )
4490 then
4491 # Ok.
4492 :
4493 else
4494 as_fn_error $? "newly created file is older than distributed files!
4495 Check your system clock" "$LINENO" 5
4496 fi
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4498 printf "%s\n" "yes" >&6; }
4499 # If we didn't sleep, we still need to ensure time stamps of config.status and
4500 # generated files are strictly newer.
4501 am_sleep_pid=
4502 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4503 ( sleep 1 ) &
4504 am_sleep_pid=$!
4505 fi
4506
4507 rm -f conftest.file
4508
4509 test "$program_prefix" != NONE &&
4510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4511 # Use a double $ so make ignores it.
4512 test "$program_suffix" != NONE &&
4513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4514 # Double any \ or $.
4515 # By default was `s,x,x', remove it if useless.
4516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4517 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4518
4519
4520 if test x"${MISSING+set}" != xset; then
4521 MISSING="\${SHELL} '$am_aux_dir/missing'"
4522 fi
4523 # Use eval to expand $SHELL
4524 if eval "$MISSING --is-lightweight"; then
4525 am_missing_run="$MISSING "
4526 else
4527 am_missing_run=
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4529 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4530 fi
4531
4532 if test x"${install_sh+set}" != xset; then
4533 case $am_aux_dir in
4534 *\ * | *\ *)
4535 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4536 *)
4537 install_sh="\${SHELL} $am_aux_dir/install-sh"
4538 esac
4539 fi
4540
4541 # Installed binaries are usually stripped using 'strip' when the user
4542 # run "make install-strip". However 'strip' might not be the right
4543 # tool to use in cross-compilation environments, therefore Automake
4544 # will honor the 'STRIP' environment variable to overrule this program.
4545 if test "$cross_compiling" != no; then
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4548 set dummy ${ac_tool_prefix}strip; ac_word=$2
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 printf %s "checking for $ac_word... " >&6; }
4551 if test ${ac_cv_prog_STRIP+y}
4552 then :
4553 printf %s "(cached) " >&6
4554 else $as_nop
4555 if test -n "$STRIP"; then
4556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561 IFS=$as_save_IFS
4562 case $as_dir in #(((
4563 '') as_dir=./ ;;
4564 */) ;;
4565 *) as_dir=$as_dir/ ;;
4566 esac
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 STRIP=$ac_cv_prog_STRIP
4580 if test -n "$STRIP"; then
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4582 printf "%s\n" "$STRIP" >&6; }
4583 else
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 printf "%s\n" "no" >&6; }
4586 fi
4587
4588
4589 fi
4590 if test -z "$ac_cv_prog_STRIP"; then
4591 ac_ct_STRIP=$STRIP
4592 # Extract the first word of "strip", so it can be a program name with args.
4593 set dummy strip; ac_word=$2
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 printf %s "checking for $ac_word... " >&6; }
4596 if test ${ac_cv_prog_ac_ct_STRIP+y}
4597 then :
4598 printf %s "(cached) " >&6
4599 else $as_nop
4600 if test -n "$ac_ct_STRIP"; then
4601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 case $as_dir in #(((
4608 '') as_dir=./ ;;
4609 */) ;;
4610 *) as_dir=$as_dir/ ;;
4611 esac
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_ac_ct_STRIP="strip"
4615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4625 if test -n "$ac_ct_STRIP"; then
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4627 printf "%s\n" "$ac_ct_STRIP" >&6; }
4628 else
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 printf "%s\n" "no" >&6; }
4631 fi
4632
4633 if test "x$ac_ct_STRIP" = x; then
4634 STRIP=":"
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637 yes:)
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640 ac_tool_warned=yes ;;
4641 esac
4642 STRIP=$ac_ct_STRIP
4643 fi
4644 else
4645 STRIP="$ac_cv_prog_STRIP"
4646 fi
4647
4648 fi
4649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4650
4651
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4653 printf %s "checking for a race-free mkdir -p... " >&6; }
4654 if test -z "$MKDIR_P"; then
4655 if test ${ac_cv_path_mkdir+y}
4656 then :
4657 printf %s "(cached) " >&6
4658 else $as_nop
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4661 do
4662 IFS=$as_save_IFS
4663 case $as_dir in #(((
4664 '') as_dir=./ ;;
4665 */) ;;
4666 *) as_dir=$as_dir/ ;;
4667 esac
4668 for ac_prog in mkdir gmkdir; do
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4671 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4672 'mkdir ('*'coreutils) '* | \
4673 'BusyBox '* | \
4674 'mkdir (fileutils) '4.1*)
4675 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4676 break 3;;
4677 esac
4678 done
4679 done
4680 done
4681 IFS=$as_save_IFS
4682
4683 fi
4684
4685 test -d ./--version && rmdir ./--version
4686 if test ${ac_cv_path_mkdir+y}; then
4687 MKDIR_P="$ac_cv_path_mkdir -p"
4688 else
4689 # As a last resort, use the slow shell script. Don't cache a
4690 # value for MKDIR_P within a source directory, because that will
4691 # break other packages using the cache if that directory is
4692 # removed, or if the value is a relative name.
4693 MKDIR_P="$ac_install_sh -d"
4694 fi
4695 fi
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4697 printf "%s\n" "$MKDIR_P" >&6; }
4698
4699 for ac_prog in gawk mawk nawk awk
4700 do
4701 # Extract the first word of "$ac_prog", so it can be a program name with args.
4702 set dummy $ac_prog; ac_word=$2
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 printf %s "checking for $ac_word... " >&6; }
4705 if test ${ac_cv_prog_AWK+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else $as_nop
4709 if test -n "$AWK"; then
4710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715 IFS=$as_save_IFS
4716 case $as_dir in #(((
4717 '') as_dir=./ ;;
4718 */) ;;
4719 *) as_dir=$as_dir/ ;;
4720 esac
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4723 ac_cv_prog_AWK="$ac_prog"
4724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727 done
4728 done
4729 IFS=$as_save_IFS
4730
4731 fi
4732 fi
4733 AWK=$ac_cv_prog_AWK
4734 if test -n "$AWK"; then
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4736 printf "%s\n" "$AWK" >&6; }
4737 else
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 printf "%s\n" "no" >&6; }
4740 fi
4741
4742
4743 test -n "$AWK" && break
4744 done
4745
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4747 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4748 set x ${MAKE-make}
4749 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4750 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else $as_nop
4754 cat >conftest.make <<\_ACEOF
4755 SHELL = /bin/sh
4756 all:
4757 @echo '@@@%%%=$(MAKE)=@@@%%%'
4758 _ACEOF
4759 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4760 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4761 *@@@%%%=?*=@@@%%%*)
4762 eval ac_cv_prog_make_${ac_make}_set=yes;;
4763 *)
4764 eval ac_cv_prog_make_${ac_make}_set=no;;
4765 esac
4766 rm -f conftest.make
4767 fi
4768 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4770 printf "%s\n" "yes" >&6; }
4771 SET_MAKE=
4772 else
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 printf "%s\n" "no" >&6; }
4775 SET_MAKE="MAKE=${MAKE-make}"
4776 fi
4777
4778 rm -rf .tst 2>/dev/null
4779 mkdir .tst 2>/dev/null
4780 if test -d .tst; then
4781 am__leading_dot=.
4782 else
4783 am__leading_dot=_
4784 fi
4785 rmdir .tst 2>/dev/null
4786
4787 DEPDIR="${am__leading_dot}deps"
4788
4789 ac_config_commands="$ac_config_commands depfiles"
4790
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4792 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4793 cat > confinc.mk << 'END'
4794 am__doit:
4795 @echo this is the am__doit target >confinc.out
4796 .PHONY: am__doit
4797 END
4798 am__include="#"
4799 am__quote=
4800 # BSD make does it like this.
4801 echo '.include "confinc.mk" # ignored' > confmf.BSD
4802 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4803 echo 'include confinc.mk # ignored' > confmf.GNU
4804 _am_result=no
4805 for s in GNU BSD; do
4806 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4807 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }
4811 case $?:`cat confinc.out 2>/dev/null` in #(
4812 '0:this is the am__doit target') :
4813 case $s in #(
4814 BSD) :
4815 am__include='.include' am__quote='"' ;; #(
4816 *) :
4817 am__include='include' am__quote='' ;;
4818 esac ;; #(
4819 *) :
4820 ;;
4821 esac
4822 if test "$am__include" != "#"; then
4823 _am_result="yes ($s style)"
4824 break
4825 fi
4826 done
4827 rm -f confinc.* confmf.*
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4829 printf "%s\n" "${_am_result}" >&6; }
4830
4831 # Check whether --enable-dependency-tracking was given.
4832 if test ${enable_dependency_tracking+y}
4833 then :
4834 enableval=$enable_dependency_tracking;
4835 fi
4836
4837 if test "x$enable_dependency_tracking" != xno; then
4838 am_depcomp="$ac_aux_dir/depcomp"
4839 AMDEPBACKSLASH='\'
4840 am__nodep='_no'
4841 fi
4842 if test "x$enable_dependency_tracking" != xno; then
4843 AMDEP_TRUE=
4844 AMDEP_FALSE='#'
4845 else
4846 AMDEP_TRUE='#'
4847 AMDEP_FALSE=
4848 fi
4849
4850
4851 # Check whether --enable-silent-rules was given.
4852 if test ${enable_silent_rules+y}
4853 then :
4854 enableval=$enable_silent_rules;
4855 fi
4856
4857 case $enable_silent_rules in # (((
4858 yes) AM_DEFAULT_VERBOSITY=0;;
4859 no) AM_DEFAULT_VERBOSITY=1;;
4860 *) AM_DEFAULT_VERBOSITY=1;;
4861 esac
4862 am_make=${MAKE-make}
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4864 printf %s "checking whether $am_make supports nested variables... " >&6; }
4865 if test ${am_cv_make_support_nested_variables+y}
4866 then :
4867 printf %s "(cached) " >&6
4868 else $as_nop
4869 if printf "%s\n" 'TRUE=$(BAR$(V))
4870 BAR0=false
4871 BAR1=true
4872 V=1
4873 am__doit:
4874 @$(TRUE)
4875 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4876 am_cv_make_support_nested_variables=yes
4877 else
4878 am_cv_make_support_nested_variables=no
4879 fi
4880 fi
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4882 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4883 if test $am_cv_make_support_nested_variables = yes; then
4884 AM_V='$(V)'
4885 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4886 else
4887 AM_V=$AM_DEFAULT_VERBOSITY
4888 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4889 fi
4890 AM_BACKSLASH='\'
4891
4892 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4893 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4894 # is not polluted with repeated "-I."
4895 am__isrc=' -I$(srcdir)'
4896 # test to see if srcdir already configured
4897 if test -f $srcdir/config.status; then
4898 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4899 fi
4900 fi
4901
4902 # test whether we have cygpath
4903 if test -z "$CYGPATH_W"; then
4904 if (cygpath --version) >/dev/null 2>/dev/null; then
4905 CYGPATH_W='cygpath -w'
4906 else
4907 CYGPATH_W=echo
4908 fi
4909 fi
4910
4911
4912 # Define the identity of the package.
4913 PACKAGE='libX11'
4914 VERSION='1.8.1'
4915
4916
4917 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4918
4919
4920 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4921
4922 # Some tools Automake needs.
4923
4924 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4925
4926
4927 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4928
4929
4930 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4931
4932
4933 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4934
4935
4936 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4937
4938 # For better backward compatibility. To be removed once Automake 1.9.x
4939 # dies out for good. For more background, see:
4940 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4941 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4942 mkdir_p='$(MKDIR_P)'
4943
4944 # We need awk for the "check" target (and possibly the TAP driver). The
4945 # system "awk" is bad on some platforms.
4946 # Always define AMTAR for backward compatibility. Yes, it's still used
4947 # in the wild :-( We should find a proper way to deprecate it ...
4948 AMTAR='$${TAR-tar}'
4949
4950
4951 # We'll loop over all known methods to create a tar archive until one works.
4952 _am_tools='gnutar pax cpio none'
4953
4954 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4955
4956
4957
4958
4959
4960 depcc="$CC" am_compiler_list=
4961
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4963 printf %s "checking dependency style of $depcc... " >&6; }
4964 if test ${am_cv_CC_dependencies_compiler_type+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else $as_nop
4968 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4969 # We make a subdir and do the tests there. Otherwise we can end up
4970 # making bogus files that we don't know about and never remove. For
4971 # instance it was reported that on HP-UX the gcc test will end up
4972 # making a dummy file named 'D' -- because '-MD' means "put the output
4973 # in D".
4974 rm -rf conftest.dir
4975 mkdir conftest.dir
4976 # Copy depcomp to subdir because otherwise we won't find it if we're
4977 # using a relative directory.
4978 cp "$am_depcomp" conftest.dir
4979 cd conftest.dir
4980 # We will build objects and dependencies in a subdirectory because
4981 # it helps to detect inapplicable dependency modes. For instance
4982 # both Tru64's cc and ICC support -MD to output dependencies as a
4983 # side effect of compilation, but ICC will put the dependencies in
4984 # the current directory while Tru64 will put them in the object
4985 # directory.
4986 mkdir sub
4987
4988 am_cv_CC_dependencies_compiler_type=none
4989 if test "$am_compiler_list" = ""; then
4990 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4991 fi
4992 am__universal=false
4993 case " $depcc " in #(
4994 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4995 esac
4996
4997 for depmode in $am_compiler_list; do
4998 # Setup a source with many dependencies, because some compilers
4999 # like to wrap large dependency lists on column 80 (with \), and
5000 # we should not choose a depcomp mode which is confused by this.
5001 #
5002 # We need to recreate these files for each test, as the compiler may
5003 # overwrite some of them when testing with obscure command lines.
5004 # This happens at least with the AIX C compiler.
5005 : > sub/conftest.c
5006 for i in 1 2 3 4 5 6; do
5007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5009 # Solaris 10 /bin/sh.
5010 echo '/* dummy */' > sub/conftst$i.h
5011 done
5012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5013
5014 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5015 # mode. It turns out that the SunPro C++ compiler does not properly
5016 # handle '-M -o', and we need to detect this. Also, some Intel
5017 # versions had trouble with output in subdirs.
5018 am__obj=sub/conftest.${OBJEXT-o}
5019 am__minus_obj="-o $am__obj"
5020 case $depmode in
5021 gcc)
5022 # This depmode causes a compiler race in universal mode.
5023 test "$am__universal" = false || continue
5024 ;;
5025 nosideeffect)
5026 # After this tag, mechanisms are not by side-effect, so they'll
5027 # only be used when explicitly requested.
5028 if test "x$enable_dependency_tracking" = xyes; then
5029 continue
5030 else
5031 break
5032 fi
5033 ;;
5034 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5035 # This compiler won't grok '-c -o', but also, the minuso test has
5036 # not run yet. These depmodes are late enough in the game, and
5037 # so weak that their functioning should not be impacted.
5038 am__obj=conftest.${OBJEXT-o}
5039 am__minus_obj=
5040 ;;
5041 none) break ;;
5042 esac
5043 if depmode=$depmode \
5044 source=sub/conftest.c object=$am__obj \
5045 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5047 >/dev/null 2>conftest.err &&
5048 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5050 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5052 # icc doesn't choke on unknown options, it will just issue warnings
5053 # or remarks (even with -Werror). So we grep stderr for any message
5054 # that says an option was ignored or not supported.
5055 # When given -MP, icc 7.0 and 7.1 complain thusly:
5056 # icc: Command line warning: ignoring option '-M'; no argument required
5057 # The diagnosis changed in icc 8.0:
5058 # icc: Command line remark: option '-MP' not supported
5059 if (grep 'ignoring option' conftest.err ||
5060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5061 am_cv_CC_dependencies_compiler_type=$depmode
5062 break
5063 fi
5064 fi
5065 done
5066
5067 cd ..
5068 rm -rf conftest.dir
5069 else
5070 am_cv_CC_dependencies_compiler_type=none
5071 fi
5072
5073 fi
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5075 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5076 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5077
5078 if
5079 test "x$enable_dependency_tracking" != xno \
5080 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5081 am__fastdepCC_TRUE=
5082 am__fastdepCC_FALSE='#'
5083 else
5084 am__fastdepCC_TRUE='#'
5085 am__fastdepCC_FALSE=
5086 fi
5087
5088
5089 # Variables for tags utilities; see am/tags.am
5090 if test -z "$CTAGS"; then
5091 CTAGS=ctags
5092 fi
5093
5094 if test -z "$ETAGS"; then
5095 ETAGS=etags
5096 fi
5097
5098 if test -z "$CSCOPE"; then
5099 CSCOPE=cscope
5100 fi
5101
5102
5103
5104 # POSIX will say in a future version that running "rm -f" with no argument
5105 # is OK; and we want to be able to make that assumption in our Makefile
5106 # recipes. So use an aggressive probe to check that the usage we want is
5107 # actually supported "in the wild" to an acceptable degree.
5108 # See automake bug#10828.
5109 # To make any issue more visible, cause the running configure to be aborted
5110 # by default if the 'rm' program in use doesn't match our expectations; the
5111 # user can still override this though.
5112 if rm -f && rm -fr && rm -rf; then : OK; else
5113 cat >&2 <<'END'
5114 Oops!
5115
5116 Your 'rm' program seems unable to run without file operands specified
5117 on the command line, even when the '-f' option is present. This is contrary
5118 to the behaviour of most rm programs out there, and not conforming with
5119 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5120
5121 Please tell bug-automake@gnu.org about your system, including the value
5122 of your $PATH and any error possibly output before this message. This
5123 can help us improve future automake versions.
5124
5125 END
5126 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5127 echo 'Configuration will proceed anyway, since you have set the' >&2
5128 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5129 echo >&2
5130 else
5131 cat >&2 <<'END'
5132 Aborting the configuration process, to ensure you take notice of the issue.
5133
5134 You can download and install GNU coreutils to get an 'rm' implementation
5135 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5136
5137 If you want to complete the configuration process using your problematic
5138 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5139 to "yes", and re-run configure.
5140
5141 END
5142 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5143 fi
5144 fi
5145
5146
5147 # Initialize libtool
5148 case `pwd` in
5149 *\ * | *\ *)
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5151 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5152 esac
5153
5154
5155
5156 macro_version='2.4.7'
5157 macro_revision='2.4.7'
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172 ltmain=$ac_aux_dir/ltmain.sh
5173
5174 # Backslashify metacharacters that are still active within
5175 # double-quoted strings.
5176 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5177
5178 # Same as above, but do not quote variable references.
5179 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5180
5181 # Sed substitution to delay expansion of an escaped shell variable in a
5182 # double_quote_subst'ed string.
5183 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5184
5185 # Sed substitution to delay expansion of an escaped single quote.
5186 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5187
5188 # Sed substitution to avoid accidental globbing in evaled expressions
5189 no_glob_subst='s/\*/\\\*/g'
5190
5191 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5192 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5193 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5194
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5196 printf %s "checking how to print strings... " >&6; }
5197 # Test print first, because it will be a builtin if present.
5198 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5199 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5200 ECHO='print -r --'
5201 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5202 ECHO='printf %s\n'
5203 else
5204 # Use this function as a fallback that always works.
5205 func_fallback_echo ()
5206 {
5207 eval 'cat <<_LTECHO_EOF
5208 $1
5209 _LTECHO_EOF'
5210 }
5211 ECHO='func_fallback_echo'
5212 fi
5213
5214 # func_echo_all arg...
5215 # Invoke $ECHO with all args, space-separated.
5216 func_echo_all ()
5217 {
5218 $ECHO ""
5219 }
5220
5221 case $ECHO in
5222 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5223 printf "%s\n" "printf" >&6; } ;;
5224 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5225 printf "%s\n" "print -r" >&6; } ;;
5226 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5227 printf "%s\n" "cat" >&6; } ;;
5228 esac
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5244 printf %s "checking for a sed that does not truncate output... " >&6; }
5245 if test ${ac_cv_path_SED+y}
5246 then :
5247 printf %s "(cached) " >&6
5248 else $as_nop
5249 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5250 for ac_i in 1 2 3 4 5 6 7; do
5251 ac_script="$ac_script$as_nl$ac_script"
5252 done
5253 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5254 { ac_script=; unset ac_script;}
5255 if test -z "$SED"; then
5256 ac_path_SED_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH
5260 do
5261 IFS=$as_save_IFS
5262 case $as_dir in #(((
5263 '') as_dir=./ ;;
5264 */) ;;
5265 *) as_dir=$as_dir/ ;;
5266 esac
5267 for ac_prog in sed gsed
5268 do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5271 as_fn_executable_p "$ac_path_SED" || continue
5272 # Check for GNU ac_path_SED and select it if it is found.
5273 # Check for GNU $ac_path_SED
5274 case `"$ac_path_SED" --version 2>&1` in
5275 *GNU*)
5276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5277 *)
5278 ac_count=0
5279 printf %s 0123456789 >"conftest.in"
5280 while :
5281 do
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 printf "%s\n" '' >> "conftest.nl"
5286 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 as_fn_arith $ac_count + 1 && ac_count=$as_val
5289 if test $ac_count -gt ${ac_path_SED_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_SED="$ac_path_SED"
5292 ac_path_SED_max=$ac_count
5293 fi
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5296 done
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298 esac
5299
5300 $ac_path_SED_found && break 3
5301 done
5302 done
5303 done
5304 IFS=$as_save_IFS
5305 if test -z "$ac_cv_path_SED"; then
5306 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5307 fi
5308 else
5309 ac_cv_path_SED=$SED
5310 fi
5311
5312 fi
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5314 printf "%s\n" "$ac_cv_path_SED" >&6; }
5315 SED="$ac_cv_path_SED"
5316 rm -f conftest.sed
5317
5318 test -z "$SED" && SED=sed
5319 Xsed="$SED -e 1s/^X//"
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5332 printf %s "checking for grep that handles long lines and -e... " >&6; }
5333 if test ${ac_cv_path_GREP+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else $as_nop
5337 if test -z "$GREP"; then
5338 ac_path_GREP_found=false
5339 # Loop through the user's path and test for each of PROGNAME-LIST
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342 do
5343 IFS=$as_save_IFS
5344 case $as_dir in #(((
5345 '') as_dir=./ ;;
5346 */) ;;
5347 *) as_dir=$as_dir/ ;;
5348 esac
5349 for ac_prog in grep ggrep
5350 do
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5353 as_fn_executable_p "$ac_path_GREP" || continue
5354 # Check for GNU ac_path_GREP and select it if it is found.
5355 # Check for GNU $ac_path_GREP
5356 case `"$ac_path_GREP" --version 2>&1` in
5357 *GNU*)
5358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5359 *)
5360 ac_count=0
5361 printf %s 0123456789 >"conftest.in"
5362 while :
5363 do
5364 cat "conftest.in" "conftest.in" >"conftest.tmp"
5365 mv "conftest.tmp" "conftest.in"
5366 cp "conftest.in" "conftest.nl"
5367 printf "%s\n" 'GREP' >> "conftest.nl"
5368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5370 as_fn_arith $ac_count + 1 && ac_count=$as_val
5371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5372 # Best one so far, save it but keep looking for a better one
5373 ac_cv_path_GREP="$ac_path_GREP"
5374 ac_path_GREP_max=$ac_count
5375 fi
5376 # 10*(2^10) chars as input seems more than enough
5377 test $ac_count -gt 10 && break
5378 done
5379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5380 esac
5381
5382 $ac_path_GREP_found && break 3
5383 done
5384 done
5385 done
5386 IFS=$as_save_IFS
5387 if test -z "$ac_cv_path_GREP"; then
5388 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5389 fi
5390 else
5391 ac_cv_path_GREP=$GREP
5392 fi
5393
5394 fi
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5396 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5397 GREP="$ac_cv_path_GREP"
5398
5399
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5401 printf %s "checking for egrep... " >&6; }
5402 if test ${ac_cv_path_EGREP+y}
5403 then :
5404 printf %s "(cached) " >&6
5405 else $as_nop
5406 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5407 then ac_cv_path_EGREP="$GREP -E"
5408 else
5409 if test -z "$EGREP"; then
5410 ac_path_EGREP_found=false
5411 # Loop through the user's path and test for each of PROGNAME-LIST
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5414 do
5415 IFS=$as_save_IFS
5416 case $as_dir in #(((
5417 '') as_dir=./ ;;
5418 */) ;;
5419 *) as_dir=$as_dir/ ;;
5420 esac
5421 for ac_prog in egrep
5422 do
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5425 as_fn_executable_p "$ac_path_EGREP" || continue
5426 # Check for GNU ac_path_EGREP and select it if it is found.
5427 # Check for GNU $ac_path_EGREP
5428 case `"$ac_path_EGREP" --version 2>&1` in
5429 *GNU*)
5430 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5431 *)
5432 ac_count=0
5433 printf %s 0123456789 >"conftest.in"
5434 while :
5435 do
5436 cat "conftest.in" "conftest.in" >"conftest.tmp"
5437 mv "conftest.tmp" "conftest.in"
5438 cp "conftest.in" "conftest.nl"
5439 printf "%s\n" 'EGREP' >> "conftest.nl"
5440 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5442 as_fn_arith $ac_count + 1 && ac_count=$as_val
5443 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5444 # Best one so far, save it but keep looking for a better one
5445 ac_cv_path_EGREP="$ac_path_EGREP"
5446 ac_path_EGREP_max=$ac_count
5447 fi
5448 # 10*(2^10) chars as input seems more than enough
5449 test $ac_count -gt 10 && break
5450 done
5451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5452 esac
5453
5454 $ac_path_EGREP_found && break 3
5455 done
5456 done
5457 done
5458 IFS=$as_save_IFS
5459 if test -z "$ac_cv_path_EGREP"; then
5460 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5461 fi
5462 else
5463 ac_cv_path_EGREP=$EGREP
5464 fi
5465
5466 fi
5467 fi
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5469 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5470 EGREP="$ac_cv_path_EGREP"
5471
5472
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5474 printf %s "checking for fgrep... " >&6; }
5475 if test ${ac_cv_path_FGREP+y}
5476 then :
5477 printf %s "(cached) " >&6
5478 else $as_nop
5479 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5480 then ac_cv_path_FGREP="$GREP -F"
5481 else
5482 if test -z "$FGREP"; then
5483 ac_path_FGREP_found=false
5484 # Loop through the user's path and test for each of PROGNAME-LIST
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5487 do
5488 IFS=$as_save_IFS
5489 case $as_dir in #(((
5490 '') as_dir=./ ;;
5491 */) ;;
5492 *) as_dir=$as_dir/ ;;
5493 esac
5494 for ac_prog in fgrep
5495 do
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5498 as_fn_executable_p "$ac_path_FGREP" || continue
5499 # Check for GNU ac_path_FGREP and select it if it is found.
5500 # Check for GNU $ac_path_FGREP
5501 case `"$ac_path_FGREP" --version 2>&1` in
5502 *GNU*)
5503 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5504 *)
5505 ac_count=0
5506 printf %s 0123456789 >"conftest.in"
5507 while :
5508 do
5509 cat "conftest.in" "conftest.in" >"conftest.tmp"
5510 mv "conftest.tmp" "conftest.in"
5511 cp "conftest.in" "conftest.nl"
5512 printf "%s\n" 'FGREP' >> "conftest.nl"
5513 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515 as_fn_arith $ac_count + 1 && ac_count=$as_val
5516 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5517 # Best one so far, save it but keep looking for a better one
5518 ac_cv_path_FGREP="$ac_path_FGREP"
5519 ac_path_FGREP_max=$ac_count
5520 fi
5521 # 10*(2^10) chars as input seems more than enough
5522 test $ac_count -gt 10 && break
5523 done
5524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525 esac
5526
5527 $ac_path_FGREP_found && break 3
5528 done
5529 done
5530 done
5531 IFS=$as_save_IFS
5532 if test -z "$ac_cv_path_FGREP"; then
5533 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5534 fi
5535 else
5536 ac_cv_path_FGREP=$FGREP
5537 fi
5538
5539 fi
5540 fi
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5542 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5543 FGREP="$ac_cv_path_FGREP"
5544
5545
5546 test -z "$GREP" && GREP=grep
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 # Check whether --with-gnu-ld was given.
5567 if test ${with_gnu_ld+y}
5568 then :
5569 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5570 else $as_nop
5571 with_gnu_ld=no
5572 fi
5573
5574 ac_prog=ld
5575 if test yes = "$GCC"; then
5576 # Check if gcc -print-prog-name=ld gives a path.
5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5578 printf %s "checking for ld used by $CC... " >&6; }
5579 case $host in
5580 *-*-mingw*)
5581 # gcc leaves a trailing carriage return, which upsets mingw
5582 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5583 *)
5584 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5585 esac
5586 case $ac_prog in
5587 # Accept absolute paths.
5588 [\\/]* | ?:[\\/]*)
5589 re_direlt='/[^/][^/]*/\.\./'
5590 # Canonicalize the pathname of ld
5591 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5592 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5593 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5594 done
5595 test -z "$LD" && LD=$ac_prog
5596 ;;
5597 "")
5598 # If it fails, then pretend we aren't using GCC.
5599 ac_prog=ld
5600 ;;
5601 *)
5602 # If it is relative, then search for the first ld in PATH.
5603 with_gnu_ld=unknown
5604 ;;
5605 esac
5606 elif test yes = "$with_gnu_ld"; then
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5608 printf %s "checking for GNU ld... " >&6; }
5609 else
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5611 printf %s "checking for non-GNU ld... " >&6; }
5612 fi
5613 if test ${lt_cv_path_LD+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else $as_nop
5617 if test -z "$LD"; then
5618 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5619 for ac_dir in $PATH; do
5620 IFS=$lt_save_ifs
5621 test -z "$ac_dir" && ac_dir=.
5622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5623 lt_cv_path_LD=$ac_dir/$ac_prog
5624 # Check to see if the program is GNU ld. I'd rather use --version,
5625 # but apparently some variants of GNU ld only accept -v.
5626 # Break only if it was the GNU/non-GNU ld that we prefer.
5627 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5628 *GNU* | *'with BFD'*)
5629 test no != "$with_gnu_ld" && break
5630 ;;
5631 *)
5632 test yes != "$with_gnu_ld" && break
5633 ;;
5634 esac
5635 fi
5636 done
5637 IFS=$lt_save_ifs
5638 else
5639 lt_cv_path_LD=$LD # Let the user override the test with a path.
5640 fi
5641 fi
5642
5643 LD=$lt_cv_path_LD
5644 if test -n "$LD"; then
5645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5646 printf "%s\n" "$LD" >&6; }
5647 else
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 printf "%s\n" "no" >&6; }
5650 fi
5651 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5653 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5654 if test ${lt_cv_prog_gnu_ld+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else $as_nop
5658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5659 case `$LD -v 2>&1 </dev/null` in
5660 *GNU* | *'with BFD'*)
5661 lt_cv_prog_gnu_ld=yes
5662 ;;
5663 *)
5664 lt_cv_prog_gnu_ld=no
5665 ;;
5666 esac
5667 fi
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5669 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5670 with_gnu_ld=$lt_cv_prog_gnu_ld
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5681 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5682 if test ${lt_cv_path_NM+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else $as_nop
5686 if test -n "$NM"; then
5687 # Let the user override the test.
5688 lt_cv_path_NM=$NM
5689 else
5690 lt_nm_to_check=${ac_tool_prefix}nm
5691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5692 lt_nm_to_check="$lt_nm_to_check nm"
5693 fi
5694 for lt_tmp_nm in $lt_nm_to_check; do
5695 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5696 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5697 IFS=$lt_save_ifs
5698 test -z "$ac_dir" && ac_dir=.
5699 tmp_nm=$ac_dir/$lt_tmp_nm
5700 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5701 # Check to see if the nm accepts a BSD-compat flag.
5702 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5703 # nm: unknown option "B" ignored
5704 # Tru64's nm complains that /dev/null is an invalid object file
5705 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5706 case $build_os in
5707 mingw*) lt_bad_file=conftest.nm/nofile ;;
5708 *) lt_bad_file=/dev/null ;;
5709 esac
5710 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5711 *$lt_bad_file* | *'Invalid file or object type'*)
5712 lt_cv_path_NM="$tmp_nm -B"
5713 break 2
5714 ;;
5715 *)
5716 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5717 */dev/null*)
5718 lt_cv_path_NM="$tmp_nm -p"
5719 break 2
5720 ;;
5721 *)
5722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5723 continue # so that we can try to find one that supports BSD flags
5724 ;;
5725 esac
5726 ;;
5727 esac
5728 fi
5729 done
5730 IFS=$lt_save_ifs
5731 done
5732 : ${lt_cv_path_NM=no}
5733 fi
5734 fi
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5736 printf "%s\n" "$lt_cv_path_NM" >&6; }
5737 if test no != "$lt_cv_path_NM"; then
5738 NM=$lt_cv_path_NM
5739 else
5740 # Didn't find any BSD compatible name lister, look for dumpbin.
5741 if test -n "$DUMPBIN"; then :
5742 # Let the user override the test.
5743 else
5744 if test -n "$ac_tool_prefix"; then
5745 for ac_prog in dumpbin "link -dump"
5746 do
5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 printf %s "checking for $ac_word... " >&6; }
5751 if test ${ac_cv_prog_DUMPBIN+y}
5752 then :
5753 printf %s "(cached) " >&6
5754 else $as_nop
5755 if test -n "$DUMPBIN"; then
5756 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5757 else
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5760 do
5761 IFS=$as_save_IFS
5762 case $as_dir in #(((
5763 '') as_dir=./ ;;
5764 */) ;;
5765 *) as_dir=$as_dir/ ;;
5766 esac
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 DUMPBIN=$ac_cv_prog_DUMPBIN
5780 if test -n "$DUMPBIN"; then
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5782 printf "%s\n" "$DUMPBIN" >&6; }
5783 else
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 printf "%s\n" "no" >&6; }
5786 fi
5787
5788
5789 test -n "$DUMPBIN" && break
5790 done
5791 fi
5792 if test -z "$DUMPBIN"; then
5793 ac_ct_DUMPBIN=$DUMPBIN
5794 for ac_prog in dumpbin "link -dump"
5795 do
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 printf %s "checking for $ac_word... " >&6; }
5800 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5801 then :
5802 printf %s "(cached) " >&6
5803 else $as_nop
5804 if test -n "$ac_ct_DUMPBIN"; then
5805 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5806 else
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 case $as_dir in #(((
5812 '') as_dir=./ ;;
5813 */) ;;
5814 *) as_dir=$as_dir/ ;;
5815 esac
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5829 if test -n "$ac_ct_DUMPBIN"; then
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5831 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5832 else
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 printf "%s\n" "no" >&6; }
5835 fi
5836
5837
5838 test -n "$ac_ct_DUMPBIN" && break
5839 done
5840
5841 if test "x$ac_ct_DUMPBIN" = x; then
5842 DUMPBIN=":"
5843 else
5844 case $cross_compiling:$ac_tool_warned in
5845 yes:)
5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5848 ac_tool_warned=yes ;;
5849 esac
5850 DUMPBIN=$ac_ct_DUMPBIN
5851 fi
5852 fi
5853
5854 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5855 *COFF*)
5856 DUMPBIN="$DUMPBIN -symbols -headers"
5857 ;;
5858 *)
5859 DUMPBIN=:
5860 ;;
5861 esac
5862 fi
5863
5864 if test : != "$DUMPBIN"; then
5865 NM=$DUMPBIN
5866 fi
5867 fi
5868 test -z "$NM" && NM=nm
5869
5870
5871
5872
5873
5874
5875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5876 printf %s "checking the name lister ($NM) interface... " >&6; }
5877 if test ${lt_cv_nm_interface+y}
5878 then :
5879 printf %s "(cached) " >&6
5880 else $as_nop
5881 lt_cv_nm_interface="BSD nm"
5882 echo "int some_variable = 0;" > conftest.$ac_ext
5883 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5884 (eval "$ac_compile" 2>conftest.err)
5885 cat conftest.err >&5
5886 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5887 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5888 cat conftest.err >&5
5889 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5890 cat conftest.out >&5
5891 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5892 lt_cv_nm_interface="MS dumpbin"
5893 fi
5894 rm -f conftest*
5895 fi
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5897 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5898
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5900 printf %s "checking whether ln -s works... " >&6; }
5901 LN_S=$as_ln_s
5902 if test "$LN_S" = "ln -s"; then
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5904 printf "%s\n" "yes" >&6; }
5905 else
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5907 printf "%s\n" "no, using $LN_S" >&6; }
5908 fi
5909
5910 # find the maximum length of command line arguments
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5912 printf %s "checking the maximum length of command line arguments... " >&6; }
5913 if test ${lt_cv_sys_max_cmd_len+y}
5914 then :
5915 printf %s "(cached) " >&6
5916 else $as_nop
5917 i=0
5918 teststring=ABCD
5919
5920 case $build_os in
5921 msdosdjgpp*)
5922 # On DJGPP, this test can blow up pretty badly due to problems in libc
5923 # (any single argument exceeding 2000 bytes causes a buffer overrun
5924 # during glob expansion). Even if it were fixed, the result of this
5925 # check would be larger than it should be.
5926 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5927 ;;
5928
5929 gnu*)
5930 # Under GNU Hurd, this test is not required because there is
5931 # no limit to the length of command line arguments.
5932 # Libtool will interpret -1 as no limit whatsoever
5933 lt_cv_sys_max_cmd_len=-1;
5934 ;;
5935
5936 cygwin* | mingw* | cegcc*)
5937 # On Win9x/ME, this test blows up -- it succeeds, but takes
5938 # about 5 minutes as the teststring grows exponentially.
5939 # Worse, since 9x/ME are not pre-emptively multitasking,
5940 # you end up with a "frozen" computer, even though with patience
5941 # the test eventually succeeds (with a max line length of 256k).
5942 # Instead, let's just punt: use the minimum linelength reported by
5943 # all of the supported platforms: 8192 (on NT/2K/XP).
5944 lt_cv_sys_max_cmd_len=8192;
5945 ;;
5946
5947 mint*)
5948 # On MiNT this can take a long time and run out of memory.
5949 lt_cv_sys_max_cmd_len=8192;
5950 ;;
5951
5952 amigaos*)
5953 # On AmigaOS with pdksh, this test takes hours, literally.
5954 # So we just punt and use a minimum line length of 8192.
5955 lt_cv_sys_max_cmd_len=8192;
5956 ;;
5957
5958 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5959 # This has been around since 386BSD, at least. Likely further.
5960 if test -x /sbin/sysctl; then
5961 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5962 elif test -x /usr/sbin/sysctl; then
5963 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5964 else
5965 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5966 fi
5967 # And add a safety zone
5968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5970 ;;
5971
5972 interix*)
5973 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5974 lt_cv_sys_max_cmd_len=196608
5975 ;;
5976
5977 os2*)
5978 # The test takes a long time on OS/2.
5979 lt_cv_sys_max_cmd_len=8192
5980 ;;
5981
5982 osf*)
5983 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5984 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5985 # nice to cause kernel panics so lets avoid the loop below.
5986 # First set a reasonable default.
5987 lt_cv_sys_max_cmd_len=16384
5988 #
5989 if test -x /sbin/sysconfig; then
5990 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5991 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5992 esac
5993 fi
5994 ;;
5995 sco3.2v5*)
5996 lt_cv_sys_max_cmd_len=102400
5997 ;;
5998 sysv5* | sco5v6* | sysv4.2uw2*)
5999 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6000 if test -n "$kargmax"; then
6001 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6002 else
6003 lt_cv_sys_max_cmd_len=32768
6004 fi
6005 ;;
6006 *)
6007 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6008 if test -n "$lt_cv_sys_max_cmd_len" && \
6009 test undefined != "$lt_cv_sys_max_cmd_len"; then
6010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6012 else
6013 # Make teststring a little bigger before we do anything with it.
6014 # a 1K string should be a reasonable start.
6015 for i in 1 2 3 4 5 6 7 8; do
6016 teststring=$teststring$teststring
6017 done
6018 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6019 # If test is not a shell built-in, we'll probably end up computing a
6020 # maximum length that is only half of the actual maximum length, but
6021 # we can't tell.
6022 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6023 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6024 test 17 != "$i" # 1/2 MB should be enough
6025 do
6026 i=`expr $i + 1`
6027 teststring=$teststring$teststring
6028 done
6029 # Only check the string length outside the loop.
6030 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6031 teststring=
6032 # Add a significant safety factor because C++ compilers can tack on
6033 # massive amounts of additional arguments before passing them to the
6034 # linker. It appears as though 1/2 is a usable value.
6035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6036 fi
6037 ;;
6038 esac
6039
6040 fi
6041
6042 if test -n "$lt_cv_sys_max_cmd_len"; then
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6044 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6045 else
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6047 printf "%s\n" "none" >&6; }
6048 fi
6049 max_cmd_len=$lt_cv_sys_max_cmd_len
6050
6051
6052
6053
6054
6055
6056 : ${CP="cp -f"}
6057 : ${MV="mv -f"}
6058 : ${RM="rm -f"}
6059
6060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6061 lt_unset=unset
6062 else
6063 lt_unset=false
6064 fi
6065
6066
6067
6068
6069
6070 # test EBCDIC or ASCII
6071 case `echo X|tr X '\101'` in
6072 A) # ASCII based system
6073 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6074 lt_SP2NL='tr \040 \012'
6075 lt_NL2SP='tr \015\012 \040\040'
6076 ;;
6077 *) # EBCDIC based system
6078 lt_SP2NL='tr \100 \n'
6079 lt_NL2SP='tr \r\n \100\100'
6080 ;;
6081 esac
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6092 printf %s "checking how to convert $build file names to $host format... " >&6; }
6093 if test ${lt_cv_to_host_file_cmd+y}
6094 then :
6095 printf %s "(cached) " >&6
6096 else $as_nop
6097 case $host in
6098 *-*-mingw* )
6099 case $build in
6100 *-*-mingw* ) # actually msys
6101 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6102 ;;
6103 *-*-cygwin* )
6104 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6105 ;;
6106 * ) # otherwise, assume *nix
6107 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6108 ;;
6109 esac
6110 ;;
6111 *-*-cygwin* )
6112 case $build in
6113 *-*-mingw* ) # actually msys
6114 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6115 ;;
6116 *-*-cygwin* )
6117 lt_cv_to_host_file_cmd=func_convert_file_noop
6118 ;;
6119 * ) # otherwise, assume *nix
6120 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6121 ;;
6122 esac
6123 ;;
6124 * ) # unhandled hosts (and "normal" native builds)
6125 lt_cv_to_host_file_cmd=func_convert_file_noop
6126 ;;
6127 esac
6128
6129 fi
6130
6131 to_host_file_cmd=$lt_cv_to_host_file_cmd
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6133 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6134
6135
6136
6137
6138
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6140 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6141 if test ${lt_cv_to_tool_file_cmd+y}
6142 then :
6143 printf %s "(cached) " >&6
6144 else $as_nop
6145 #assume ordinary cross tools, or native build.
6146 lt_cv_to_tool_file_cmd=func_convert_file_noop
6147 case $host in
6148 *-*-mingw* )
6149 case $build in
6150 *-*-mingw* ) # actually msys
6151 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6152 ;;
6153 esac
6154 ;;
6155 esac
6156
6157 fi
6158
6159 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6161 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6162
6163
6164
6165
6166
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6168 printf %s "checking for $LD option to reload object files... " >&6; }
6169 if test ${lt_cv_ld_reload_flag+y}
6170 then :
6171 printf %s "(cached) " >&6
6172 else $as_nop
6173 lt_cv_ld_reload_flag='-r'
6174 fi
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6176 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6179 "" | " "*) ;;
6180 *) reload_flag=" $reload_flag" ;;
6181 esac
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183 case $host_os in
6184 cygwin* | mingw* | pw32* | cegcc*)
6185 if test yes != "$GCC"; then
6186 reload_cmds=false
6187 fi
6188 ;;
6189 darwin*)
6190 if test yes = "$GCC"; then
6191 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6192 else
6193 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6194 fi
6195 ;;
6196 esac
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206 if test -n "$ac_tool_prefix"; then
6207 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6208 set dummy ${ac_tool_prefix}file; ac_word=$2
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210 printf %s "checking for $ac_word... " >&6; }
6211 if test ${ac_cv_prog_FILECMD+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else $as_nop
6215 if test -n "$FILECMD"; then
6216 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 case $as_dir in #(((
6223 '') as_dir=./ ;;
6224 */) ;;
6225 *) as_dir=$as_dir/ ;;
6226 esac
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6231 break 2
6232 fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237 fi
6238 fi
6239 FILECMD=$ac_cv_prog_FILECMD
6240 if test -n "$FILECMD"; then
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6242 printf "%s\n" "$FILECMD" >&6; }
6243 else
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 printf "%s\n" "no" >&6; }
6246 fi
6247
6248
6249 fi
6250 if test -z "$ac_cv_prog_FILECMD"; then
6251 ac_ct_FILECMD=$FILECMD
6252 # Extract the first word of "file", so it can be a program name with args.
6253 set dummy file; ac_word=$2
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 printf %s "checking for $ac_word... " >&6; }
6256 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6257 then :
6258 printf %s "(cached) " >&6
6259 else $as_nop
6260 if test -n "$ac_ct_FILECMD"; then
6261 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 case $as_dir in #(((
6268 '') as_dir=./ ;;
6269 */) ;;
6270 *) as_dir=$as_dir/ ;;
6271 esac
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_FILECMD="file"
6275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6276 break 2
6277 fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6285 if test -n "$ac_ct_FILECMD"; then
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6287 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6288 else
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 printf "%s\n" "no" >&6; }
6291 fi
6292
6293 if test "x$ac_ct_FILECMD" = x; then
6294 FILECMD=":"
6295 else
6296 case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302 FILECMD=$ac_ct_FILECMD
6303 fi
6304 else
6305 FILECMD="$ac_cv_prog_FILECMD"
6306 fi
6307
6308
6309
6310
6311
6312
6313
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 printf %s "checking for $ac_word... " >&6; }
6319 if test ${ac_cv_prog_OBJDUMP+y}
6320 then :
6321 printf %s "(cached) " >&6
6322 else $as_nop
6323 if test -n "$OBJDUMP"; then
6324 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329 IFS=$as_save_IFS
6330 case $as_dir in #(((
6331 '') as_dir=./ ;;
6332 */) ;;
6333 *) as_dir=$as_dir/ ;;
6334 esac
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 OBJDUMP=$ac_cv_prog_OBJDUMP
6348 if test -n "$OBJDUMP"; then
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6350 printf "%s\n" "$OBJDUMP" >&6; }
6351 else
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 printf "%s\n" "no" >&6; }
6354 fi
6355
6356
6357 fi
6358 if test -z "$ac_cv_prog_OBJDUMP"; then
6359 ac_ct_OBJDUMP=$OBJDUMP
6360 # Extract the first word of "objdump", so it can be a program name with args.
6361 set dummy objdump; ac_word=$2
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 printf %s "checking for $ac_word... " >&6; }
6364 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6365 then :
6366 printf %s "(cached) " >&6
6367 else $as_nop
6368 if test -n "$ac_ct_OBJDUMP"; then
6369 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374 IFS=$as_save_IFS
6375 case $as_dir in #(((
6376 '') as_dir=./ ;;
6377 */) ;;
6378 *) as_dir=$as_dir/ ;;
6379 esac
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6384 break 2
6385 fi
6386 done
6387 done
6388 IFS=$as_save_IFS
6389
6390 fi
6391 fi
6392 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6393 if test -n "$ac_ct_OBJDUMP"; then
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6395 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6396 else
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 printf "%s\n" "no" >&6; }
6399 fi
6400
6401 if test "x$ac_ct_OBJDUMP" = x; then
6402 OBJDUMP="false"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405 yes:)
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408 ac_tool_warned=yes ;;
6409 esac
6410 OBJDUMP=$ac_ct_OBJDUMP
6411 fi
6412 else
6413 OBJDUMP="$ac_cv_prog_OBJDUMP"
6414 fi
6415
6416 test -z "$OBJDUMP" && OBJDUMP=objdump
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6427 printf %s "checking how to recognize dependent libraries... " >&6; }
6428 if test ${lt_cv_deplibs_check_method+y}
6429 then :
6430 printf %s "(cached) " >&6
6431 else $as_nop
6432 lt_cv_file_magic_cmd='$MAGIC_CMD'
6433 lt_cv_file_magic_test_file=
6434 lt_cv_deplibs_check_method='unknown'
6435 # Need to set the preceding variable on all platforms that support
6436 # interlibrary dependencies.
6437 # 'none' -- dependencies not supported.
6438 # 'unknown' -- same as none, but documents that we really don't know.
6439 # 'pass_all' -- all dependencies passed with no checks.
6440 # 'test_compile' -- check by making test program.
6441 # 'file_magic [[regex]]' -- check by looking for files in library path
6442 # that responds to the $file_magic_cmd with a given extended regex.
6443 # If you have 'file' or equivalent on your system and you're not sure
6444 # whether 'pass_all' will *always* work, you probably want this one.
6445
6446 case $host_os in
6447 aix[4-9]*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451 beos*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454
6455 bsdi[45]*)
6456 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6457 lt_cv_file_magic_cmd='$FILECMD -L'
6458 lt_cv_file_magic_test_file=/shlib/libc.so
6459 ;;
6460
6461 cygwin*)
6462 # func_win32_libid is a shell function defined in ltmain.sh
6463 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6464 lt_cv_file_magic_cmd='func_win32_libid'
6465 ;;
6466
6467 mingw* | pw32*)
6468 # Base MSYS/MinGW do not provide the 'file' command needed by
6469 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6470 # unless we find 'file', for example because we are cross-compiling.
6471 if ( file / ) >/dev/null 2>&1; then
6472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6473 lt_cv_file_magic_cmd='func_win32_libid'
6474 else
6475 # Keep this pattern in sync with the one in func_win32_libid.
6476 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6477 lt_cv_file_magic_cmd='$OBJDUMP -f'
6478 fi
6479 ;;
6480
6481 cegcc*)
6482 # use the weaker test based on 'objdump'. See mingw*.
6483 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6484 lt_cv_file_magic_cmd='$OBJDUMP -f'
6485 ;;
6486
6487 darwin* | rhapsody*)
6488 lt_cv_deplibs_check_method=pass_all
6489 ;;
6490
6491 freebsd* | dragonfly* | midnightbsd*)
6492 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6493 case $host_cpu in
6494 i*86 )
6495 # Not sure whether the presence of OpenBSD here was a mistake.
6496 # Let's accept both of them until this is cleared up.
6497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6498 lt_cv_file_magic_cmd=$FILECMD
6499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6500 ;;
6501 esac
6502 else
6503 lt_cv_deplibs_check_method=pass_all
6504 fi
6505 ;;
6506
6507 haiku*)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510
6511 hpux10.20* | hpux11*)
6512 lt_cv_file_magic_cmd=$FILECMD
6513 case $host_cpu in
6514 ia64*)
6515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6517 ;;
6518 hppa*64*)
6519 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]'
6520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6521 ;;
6522 *)
6523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6525 ;;
6526 esac
6527 ;;
6528
6529 interix[3-9]*)
6530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6532 ;;
6533
6534 irix5* | irix6* | nonstopux*)
6535 case $LD in
6536 *-32|*"-32 ") libmagic=32-bit;;
6537 *-n32|*"-n32 ") libmagic=N32;;
6538 *-64|*"-64 ") libmagic=64-bit;;
6539 *) libmagic=never-match;;
6540 esac
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544 # This must be glibc/ELF.
6545 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6546 lt_cv_deplibs_check_method=pass_all
6547 ;;
6548
6549 netbsd*)
6550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6552 else
6553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6554 fi
6555 ;;
6556
6557 newos6*)
6558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6559 lt_cv_file_magic_cmd=$FILECMD
6560 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6561 ;;
6562
6563 *nto* | *qnx*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566
6567 openbsd* | bitrig*)
6568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6570 else
6571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6572 fi
6573 ;;
6574
6575 osf3* | osf4* | osf5*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 rdos*)
6580 lt_cv_deplibs_check_method=pass_all
6581 ;;
6582
6583 solaris*)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586
6587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
6590
6591 sysv4 | sysv4.3*)
6592 case $host_vendor in
6593 motorola)
6594 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]'
6595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6596 ;;
6597 ncr)
6598 lt_cv_deplibs_check_method=pass_all
6599 ;;
6600 sequent)
6601 lt_cv_file_magic_cmd='/bin/file'
6602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6603 ;;
6604 sni)
6605 lt_cv_file_magic_cmd='/bin/file'
6606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6607 lt_cv_file_magic_test_file=/lib/libc.so
6608 ;;
6609 siemens)
6610 lt_cv_deplibs_check_method=pass_all
6611 ;;
6612 pc)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615 esac
6616 ;;
6617
6618 tpf*)
6619 lt_cv_deplibs_check_method=pass_all
6620 ;;
6621 os2*)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624 esac
6625
6626 fi
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6628 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6629
6630 file_magic_glob=
6631 want_nocaseglob=no
6632 if test "$build" = "$host"; then
6633 case $host_os in
6634 mingw* | pw32*)
6635 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6636 want_nocaseglob=yes
6637 else
6638 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6639 fi
6640 ;;
6641 esac
6642 fi
6643
6644 file_magic_cmd=$lt_cv_file_magic_cmd
6645 deplibs_check_method=$lt_cv_deplibs_check_method
6646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 printf %s "checking for $ac_word... " >&6; }
6674 if test ${ac_cv_prog_DLLTOOL+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else $as_nop
6678 if test -n "$DLLTOOL"; then
6679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684 IFS=$as_save_IFS
6685 case $as_dir in #(((
6686 '') as_dir=./ ;;
6687 */) ;;
6688 *) as_dir=$as_dir/ ;;
6689 esac
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 DLLTOOL=$ac_cv_prog_DLLTOOL
6703 if test -n "$DLLTOOL"; then
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6705 printf "%s\n" "$DLLTOOL" >&6; }
6706 else
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 printf "%s\n" "no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_DLLTOOL"; then
6714 ac_ct_DLLTOOL=$DLLTOOL
6715 # Extract the first word of "dlltool", so it can be a program name with args.
6716 set dummy dlltool; ac_word=$2
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 printf %s "checking for $ac_word... " >&6; }
6719 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else $as_nop
6723 if test -n "$ac_ct_DLLTOOL"; then
6724 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729 IFS=$as_save_IFS
6730 case $as_dir in #(((
6731 '') as_dir=./ ;;
6732 */) ;;
6733 *) as_dir=$as_dir/ ;;
6734 esac
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6737 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745 fi
6746 fi
6747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6748 if test -n "$ac_ct_DLLTOOL"; then
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6750 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6751 else
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 printf "%s\n" "no" >&6; }
6754 fi
6755
6756 if test "x$ac_ct_DLLTOOL" = x; then
6757 DLLTOOL="false"
6758 else
6759 case $cross_compiling:$ac_tool_warned in
6760 yes:)
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6764 esac
6765 DLLTOOL=$ac_ct_DLLTOOL
6766 fi
6767 else
6768 DLLTOOL="$ac_cv_prog_DLLTOOL"
6769 fi
6770
6771 test -z "$DLLTOOL" && DLLTOOL=dlltool
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6783 printf %s "checking how to associate runtime and link libraries... " >&6; }
6784 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6785 then :
6786 printf %s "(cached) " >&6
6787 else $as_nop
6788 lt_cv_sharedlib_from_linklib_cmd='unknown'
6789
6790 case $host_os in
6791 cygwin* | mingw* | pw32* | cegcc*)
6792 # two different shell functions defined in ltmain.sh;
6793 # decide which one to use based on capabilities of $DLLTOOL
6794 case `$DLLTOOL --help 2>&1` in
6795 *--identify-strict*)
6796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6797 ;;
6798 *)
6799 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6800 ;;
6801 esac
6802 ;;
6803 *)
6804 # fallback: assume linklib IS sharedlib
6805 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6806 ;;
6807 esac
6808
6809 fi
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6811 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6812 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6813 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6814
6815
6816
6817
6818
6819
6820
6821 if test -n "$ac_tool_prefix"; then
6822 for ac_prog in ar
6823 do
6824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 printf %s "checking for $ac_word... " >&6; }
6828 if test ${ac_cv_prog_AR+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else $as_nop
6832 if test -n "$AR"; then
6833 ac_cv_prog_AR="$AR" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838 IFS=$as_save_IFS
6839 case $as_dir in #(((
6840 '') as_dir=./ ;;
6841 */) ;;
6842 *) as_dir=$as_dir/ ;;
6843 esac
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6848 break 2
6849 fi
6850 done
6851 done
6852 IFS=$as_save_IFS
6853
6854 fi
6855 fi
6856 AR=$ac_cv_prog_AR
6857 if test -n "$AR"; then
6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6859 printf "%s\n" "$AR" >&6; }
6860 else
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 printf "%s\n" "no" >&6; }
6863 fi
6864
6865
6866 test -n "$AR" && break
6867 done
6868 fi
6869 if test -z "$AR"; then
6870 ac_ct_AR=$AR
6871 for ac_prog in ar
6872 do
6873 # Extract the first word of "$ac_prog", so it can be a program name with args.
6874 set dummy $ac_prog; ac_word=$2
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 printf %s "checking for $ac_word... " >&6; }
6877 if test ${ac_cv_prog_ac_ct_AR+y}
6878 then :
6879 printf %s "(cached) " >&6
6880 else $as_nop
6881 if test -n "$ac_ct_AR"; then
6882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 case $as_dir in #(((
6889 '') as_dir=./ ;;
6890 */) ;;
6891 *) as_dir=$as_dir/ ;;
6892 esac
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6895 ac_cv_prog_ac_ct_AR="$ac_prog"
6896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6906 if test -n "$ac_ct_AR"; then
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6908 printf "%s\n" "$ac_ct_AR" >&6; }
6909 else
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6911 printf "%s\n" "no" >&6; }
6912 fi
6913
6914
6915 test -n "$ac_ct_AR" && break
6916 done
6917
6918 if test "x$ac_ct_AR" = x; then
6919 AR="false"
6920 else
6921 case $cross_compiling:$ac_tool_warned in
6922 yes:)
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925 ac_tool_warned=yes ;;
6926 esac
6927 AR=$ac_ct_AR
6928 fi
6929 fi
6930
6931 : ${AR=ar}
6932
6933
6934
6935
6936
6937
6938 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6939 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6940 # higher priority because thats what people were doing historically (setting
6941 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6942 # variable obsoleted/removed.
6943
6944 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6945 lt_ar_flags=$AR_FLAGS
6946
6947
6948
6949
6950
6951
6952 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6953 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6954
6955
6956
6957
6958
6959
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6961 printf %s "checking for archiver @FILE support... " >&6; }
6962 if test ${lt_cv_ar_at_file+y}
6963 then :
6964 printf %s "(cached) " >&6
6965 else $as_nop
6966 lt_cv_ar_at_file=no
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969
6970 int
6971 main (void)
6972 {
6973
6974 ;
6975 return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_compile "$LINENO"
6979 then :
6980 echo conftest.$ac_objext > conftest.lst
6981 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6983 (eval $lt_ar_try) 2>&5
6984 ac_status=$?
6985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6986 test $ac_status = 0; }
6987 if test 0 -eq "$ac_status"; then
6988 # Ensure the archiver fails upon bogus file names.
6989 rm -f conftest.$ac_objext libconftest.a
6990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6991 (eval $lt_ar_try) 2>&5
6992 ac_status=$?
6993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994 test $ac_status = 0; }
6995 if test 0 -ne "$ac_status"; then
6996 lt_cv_ar_at_file=@
6997 fi
6998 fi
6999 rm -f conftest.* libconftest.a
7000
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7003
7004 fi
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7006 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7007
7008 if test no = "$lt_cv_ar_at_file"; then
7009 archiver_list_spec=
7010 else
7011 archiver_list_spec=$lt_cv_ar_at_file
7012 fi
7013
7014
7015
7016
7017
7018
7019
7020 if test -n "$ac_tool_prefix"; then
7021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}strip; ac_word=$2
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 printf %s "checking for $ac_word... " >&6; }
7025 if test ${ac_cv_prog_STRIP+y}
7026 then :
7027 printf %s "(cached) " >&6
7028 else $as_nop
7029 if test -n "$STRIP"; then
7030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035 IFS=$as_save_IFS
7036 case $as_dir in #(((
7037 '') as_dir=./ ;;
7038 */) ;;
7039 *) as_dir=$as_dir/ ;;
7040 esac
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 STRIP=$ac_cv_prog_STRIP
7054 if test -n "$STRIP"; then
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7056 printf "%s\n" "$STRIP" >&6; }
7057 else
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 printf "%s\n" "no" >&6; }
7060 fi
7061
7062
7063 fi
7064 if test -z "$ac_cv_prog_STRIP"; then
7065 ac_ct_STRIP=$STRIP
7066 # Extract the first word of "strip", so it can be a program name with args.
7067 set dummy strip; ac_word=$2
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 printf %s "checking for $ac_word... " >&6; }
7070 if test ${ac_cv_prog_ac_ct_STRIP+y}
7071 then :
7072 printf %s "(cached) " >&6
7073 else $as_nop
7074 if test -n "$ac_ct_STRIP"; then
7075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080 IFS=$as_save_IFS
7081 case $as_dir in #(((
7082 '') as_dir=./ ;;
7083 */) ;;
7084 *) as_dir=$as_dir/ ;;
7085 esac
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7088 ac_cv_prog_ac_ct_STRIP="strip"
7089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096 fi
7097 fi
7098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7099 if test -n "$ac_ct_STRIP"; then
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7101 printf "%s\n" "$ac_ct_STRIP" >&6; }
7102 else
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 printf "%s\n" "no" >&6; }
7105 fi
7106
7107 if test "x$ac_ct_STRIP" = x; then
7108 STRIP=":"
7109 else
7110 case $cross_compiling:$ac_tool_warned in
7111 yes:)
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7114 ac_tool_warned=yes ;;
7115 esac
7116 STRIP=$ac_ct_STRIP
7117 fi
7118 else
7119 STRIP="$ac_cv_prog_STRIP"
7120 fi
7121
7122 test -z "$STRIP" && STRIP=:
7123
7124
7125
7126
7127
7128
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 printf %s "checking for $ac_word... " >&6; }
7134 if test ${ac_cv_prog_RANLIB+y}
7135 then :
7136 printf %s "(cached) " >&6
7137 else $as_nop
7138 if test -n "$RANLIB"; then
7139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 case $as_dir in #(((
7146 '') as_dir=./ ;;
7147 */) ;;
7148 *) as_dir=$as_dir/ ;;
7149 esac
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 RANLIB=$ac_cv_prog_RANLIB
7163 if test -n "$RANLIB"; then
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7165 printf "%s\n" "$RANLIB" >&6; }
7166 else
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 printf "%s\n" "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_prog_RANLIB"; then
7174 ac_ct_RANLIB=$RANLIB
7175 # Extract the first word of "ranlib", so it can be a program name with args.
7176 set dummy ranlib; ac_word=$2
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 printf %s "checking for $ac_word... " >&6; }
7179 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else $as_nop
7183 if test -n "$ac_ct_RANLIB"; then
7184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7185 else
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH
7188 do
7189 IFS=$as_save_IFS
7190 case $as_dir in #(((
7191 '') as_dir=./ ;;
7192 */) ;;
7193 *) as_dir=$as_dir/ ;;
7194 esac
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_RANLIB="ranlib"
7198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7208 if test -n "$ac_ct_RANLIB"; then
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7210 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7211 else
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 printf "%s\n" "no" >&6; }
7214 fi
7215
7216 if test "x$ac_ct_RANLIB" = x; then
7217 RANLIB=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 RANLIB=$ac_ct_RANLIB
7226 fi
7227 else
7228 RANLIB="$ac_cv_prog_RANLIB"
7229 fi
7230
7231 test -z "$RANLIB" && RANLIB=:
7232
7233
7234
7235
7236
7237
7238 # Determine commands to create old-style static archives.
7239 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7240 old_postinstall_cmds='chmod 644 $oldlib'
7241 old_postuninstall_cmds=
7242
7243 if test -n "$RANLIB"; then
7244 case $host_os in
7245 bitrig* | openbsd*)
7246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7247 ;;
7248 *)
7249 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7250 ;;
7251 esac
7252 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7253 fi
7254
7255 case $host_os in
7256 darwin*)
7257 lock_old_archive_extraction=yes ;;
7258 *)
7259 lock_old_archive_extraction=no ;;
7260 esac
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
7300 # If no C compiler was specified, use CC.
7301 LTCC=${LTCC-"$CC"}
7302
7303 # If no C compiler flags were specified, use CFLAGS.
7304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7305
7306 # Allow CC to be a program name with arguments.
7307 compiler=$CC
7308
7309
7310 # Check for command to grab the raw symbol name followed by C symbol from nm.
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7312 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7313 if test ${lt_cv_sys_global_symbol_pipe+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else $as_nop
7317
7318 # These are sane defaults that work on at least a few old systems.
7319 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7320
7321 # Character class describing NM global symbol codes.
7322 symcode='[BCDEGRST]'
7323
7324 # Regexp to match symbols that can be accessed directly from C.
7325 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7326
7327 # Define system-specific variables.
7328 case $host_os in
7329 aix*)
7330 symcode='[BCDT]'
7331 ;;
7332 cygwin* | mingw* | pw32* | cegcc*)
7333 symcode='[ABCDGISTW]'
7334 ;;
7335 hpux*)
7336 if test ia64 = "$host_cpu"; then
7337 symcode='[ABCDEGRST]'
7338 fi
7339 ;;
7340 irix* | nonstopux*)
7341 symcode='[BCDEGRST]'
7342 ;;
7343 osf*)
7344 symcode='[BCDEGQRST]'
7345 ;;
7346 solaris*)
7347 symcode='[BDRT]'
7348 ;;
7349 sco3.2v5*)
7350 symcode='[DT]'
7351 ;;
7352 sysv4.2uw2*)
7353 symcode='[DT]'
7354 ;;
7355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7356 symcode='[ABDT]'
7357 ;;
7358 sysv4)
7359 symcode='[DFNSTU]'
7360 ;;
7361 esac
7362
7363 # If we're using GNU nm, then use its standard symbol codes.
7364 case `$NM -V 2>&1` in
7365 *GNU* | *'with BFD'*)
7366 symcode='[ABCDGIRSTW]' ;;
7367 esac
7368
7369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7370 # Gets list of data symbols to import.
7371 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7372 # Adjust the below global symbol transforms to fixup imported variables.
7373 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7374 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7375 lt_c_name_lib_hook="\
7376 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7377 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7378 else
7379 # Disable hooks by default.
7380 lt_cv_sys_global_symbol_to_import=
7381 lt_cdecl_hook=
7382 lt_c_name_hook=
7383 lt_c_name_lib_hook=
7384 fi
7385
7386 # Transform an extracted symbol line into a proper C declaration.
7387 # Some systems (esp. on ia64) link data and code symbols differently,
7388 # so use this general approach.
7389 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7390 $lt_cdecl_hook\
7391 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7392 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7393
7394 # Transform an extracted symbol line into symbol name and symbol address
7395 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7396 $lt_c_name_hook\
7397 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7398 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7399
7400 # Transform an extracted symbol line into symbol name with lib prefix and
7401 # symbol address.
7402 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7403 $lt_c_name_lib_hook\
7404 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7405 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7406 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7407
7408 # Handle CRLF in mingw tool chain
7409 opt_cr=
7410 case $build_os in
7411 mingw*)
7412 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7413 ;;
7414 esac
7415
7416 # Try without a prefix underscore, then with it.
7417 for ac_symprfx in "" "_"; do
7418
7419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7420 symxfrm="\\1 $ac_symprfx\\2 \\2"
7421
7422 # Write the raw and C identifiers.
7423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7424 # Fake it for dumpbin and say T for any non-static function,
7425 # D for any global variable and I for any imported variable.
7426 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7427 # which start with @ or ?.
7428 lt_cv_sys_global_symbol_pipe="$AWK '"\
7429 " {last_section=section; section=\$ 3};"\
7430 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7431 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7432 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7433 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7434 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7435 " \$ 0!~/External *\|/{next};"\
7436 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7437 " {if(hide[section]) next};"\
7438 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7439 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7440 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7441 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7442 " ' prfx=^$ac_symprfx"
7443 else
7444 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7445 fi
7446 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7447
7448 # Check to see that the pipe works correctly.
7449 pipe_works=no
7450
7451 rm -f conftest*
7452 cat > conftest.$ac_ext <<_LT_EOF
7453 #ifdef __cplusplus
7454 extern "C" {
7455 #endif
7456 char nm_test_var;
7457 void nm_test_func(void);
7458 void nm_test_func(void){}
7459 #ifdef __cplusplus
7460 }
7461 #endif
7462 int main(){nm_test_var='a';nm_test_func();return(0);}
7463 _LT_EOF
7464
7465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466 (eval $ac_compile) 2>&5
7467 ac_status=$?
7468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 # Now try to grab the symbols.
7471 nlist=conftest.nm
7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7473 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7474 ac_status=$?
7475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; } && test -s "$nlist"; then
7477 # Try sorting and uniquifying the output.
7478 if sort "$nlist" | uniq > "$nlist"T; then
7479 mv -f "$nlist"T "$nlist"
7480 else
7481 rm -f "$nlist"T
7482 fi
7483
7484 # Make sure that we snagged all the symbols we need.
7485 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7486 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7487 cat <<_LT_EOF > conftest.$ac_ext
7488 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7489 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7490 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7491 relocations are performed -- see ld's documentation on pseudo-relocs. */
7492 # define LT_DLSYM_CONST
7493 #elif defined __osf__
7494 /* This system does not cope well with relocations in const data. */
7495 # define LT_DLSYM_CONST
7496 #else
7497 # define LT_DLSYM_CONST const
7498 #endif
7499
7500 #ifdef __cplusplus
7501 extern "C" {
7502 #endif
7503
7504 _LT_EOF
7505 # Now generate the symbol file.
7506 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7507
7508 cat <<_LT_EOF >> conftest.$ac_ext
7509
7510 /* The mapping between symbol names and symbols. */
7511 LT_DLSYM_CONST struct {
7512 const char *name;
7513 void *address;
7514 }
7515 lt__PROGRAM__LTX_preloaded_symbols[] =
7516 {
7517 { "@PROGRAM@", (void *) 0 },
7518 _LT_EOF
7519 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7520 cat <<\_LT_EOF >> conftest.$ac_ext
7521 {0, (void *) 0}
7522 };
7523
7524 /* This works around a problem in FreeBSD linker */
7525 #ifdef FREEBSD_WORKAROUND
7526 static const void *lt_preloaded_setup() {
7527 return lt__PROGRAM__LTX_preloaded_symbols;
7528 }
7529 #endif
7530
7531 #ifdef __cplusplus
7532 }
7533 #endif
7534 _LT_EOF
7535 # Now try linking the two files.
7536 mv conftest.$ac_objext conftstm.$ac_objext
7537 lt_globsym_save_LIBS=$LIBS
7538 lt_globsym_save_CFLAGS=$CFLAGS
7539 LIBS=conftstm.$ac_objext
7540 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7542 (eval $ac_link) 2>&5
7543 ac_status=$?
7544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7546 pipe_works=yes
7547 fi
7548 LIBS=$lt_globsym_save_LIBS
7549 CFLAGS=$lt_globsym_save_CFLAGS
7550 else
7551 echo "cannot find nm_test_func in $nlist" >&5
7552 fi
7553 else
7554 echo "cannot find nm_test_var in $nlist" >&5
7555 fi
7556 else
7557 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7558 fi
7559 else
7560 echo "$progname: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7562 fi
7563 rm -rf conftest* conftst*
7564
7565 # Do not use the global_symbol_pipe unless it works.
7566 if test yes = "$pipe_works"; then
7567 break
7568 else
7569 lt_cv_sys_global_symbol_pipe=
7570 fi
7571 done
7572
7573 fi
7574
7575 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7576 lt_cv_sys_global_symbol_to_cdecl=
7577 fi
7578 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7580 printf "%s\n" "failed" >&6; }
7581 else
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7583 printf "%s\n" "ok" >&6; }
7584 fi
7585
7586 # Response file support.
7587 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7588 nm_file_list_spec='@'
7589 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7590 nm_file_list_spec='@'
7591 fi
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
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7630 printf %s "checking for sysroot... " >&6; }
7631
7632 # Check whether --with-sysroot was given.
7633 if test ${with_sysroot+y}
7634 then :
7635 withval=$with_sysroot;
7636 else $as_nop
7637 with_sysroot=no
7638 fi
7639
7640
7641 lt_sysroot=
7642 case $with_sysroot in #(
7643 yes)
7644 if test yes = "$GCC"; then
7645 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7646 fi
7647 ;; #(
7648 /*)
7649 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7650 ;; #(
7651 no|'')
7652 ;; #(
7653 *)
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7655 printf "%s\n" "$with_sysroot" >&6; }
7656 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7657 ;;
7658 esac
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7661 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7662
7663
7664
7665
7666
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7668 printf %s "checking for a working dd... " >&6; }
7669 if test ${ac_cv_path_lt_DD+y}
7670 then :
7671 printf %s "(cached) " >&6
7672 else $as_nop
7673 printf 0123456789abcdef0123456789abcdef >conftest.i
7674 cat conftest.i conftest.i >conftest2.i
7675 : ${lt_DD:=$DD}
7676 if test -z "$lt_DD"; then
7677 ac_path_lt_DD_found=false
7678 # Loop through the user's path and test for each of PROGNAME-LIST
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 case $as_dir in #(((
7684 '') as_dir=./ ;;
7685 */) ;;
7686 *) as_dir=$as_dir/ ;;
7687 esac
7688 for ac_prog in dd
7689 do
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7692 as_fn_executable_p "$ac_path_lt_DD" || continue
7693 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7694 cmp -s conftest.i conftest.out \
7695 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7696 fi
7697 $ac_path_lt_DD_found && break 3
7698 done
7699 done
7700 done
7701 IFS=$as_save_IFS
7702 if test -z "$ac_cv_path_lt_DD"; then
7703 :
7704 fi
7705 else
7706 ac_cv_path_lt_DD=$lt_DD
7707 fi
7708
7709 rm -f conftest.i conftest2.i conftest.out
7710 fi
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7712 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7713
7714
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7716 printf %s "checking how to truncate binary pipes... " >&6; }
7717 if test ${lt_cv_truncate_bin+y}
7718 then :
7719 printf %s "(cached) " >&6
7720 else $as_nop
7721 printf 0123456789abcdef0123456789abcdef >conftest.i
7722 cat conftest.i conftest.i >conftest2.i
7723 lt_cv_truncate_bin=
7724 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7725 cmp -s conftest.i conftest.out \
7726 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7727 fi
7728 rm -f conftest.i conftest2.i conftest.out
7729 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7730 fi
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7732 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7733
7734
7735
7736
7737
7738
7739
7740 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7741 func_cc_basename ()
7742 {
7743 for cc_temp in $*""; do
7744 case $cc_temp in
7745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7747 \-*) ;;
7748 *) break;;
7749 esac
7750 done
7751 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7752 }
7753
7754 # Check whether --enable-libtool-lock was given.
7755 if test ${enable_libtool_lock+y}
7756 then :
7757 enableval=$enable_libtool_lock;
7758 fi
7759
7760 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7761
7762 # Some flags need to be propagated to the compiler or linker for good
7763 # libtool support.
7764 case $host in
7765 ia64-*-hpux*)
7766 # Find out what ABI is being produced by ac_compile, and set mode
7767 # options accordingly.
7768 echo 'int i;' > conftest.$ac_ext
7769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7770 (eval $ac_compile) 2>&5
7771 ac_status=$?
7772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7773 test $ac_status = 0; }; then
7774 case `$FILECMD conftest.$ac_objext` in
7775 *ELF-32*)
7776 HPUX_IA64_MODE=32
7777 ;;
7778 *ELF-64*)
7779 HPUX_IA64_MODE=64
7780 ;;
7781 esac
7782 fi
7783 rm -rf conftest*
7784 ;;
7785 *-*-irix6*)
7786 # Find out what ABI is being produced by ac_compile, and set linker
7787 # options accordingly.
7788 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7790 (eval $ac_compile) 2>&5
7791 ac_status=$?
7792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793 test $ac_status = 0; }; then
7794 if test yes = "$lt_cv_prog_gnu_ld"; then
7795 case `$FILECMD conftest.$ac_objext` in
7796 *32-bit*)
7797 LD="${LD-ld} -melf32bsmip"
7798 ;;
7799 *N32*)
7800 LD="${LD-ld} -melf32bmipn32"
7801 ;;
7802 *64-bit*)
7803 LD="${LD-ld} -melf64bmip"
7804 ;;
7805 esac
7806 else
7807 case `$FILECMD conftest.$ac_objext` in
7808 *32-bit*)
7809 LD="${LD-ld} -32"
7810 ;;
7811 *N32*)
7812 LD="${LD-ld} -n32"
7813 ;;
7814 *64-bit*)
7815 LD="${LD-ld} -64"
7816 ;;
7817 esac
7818 fi
7819 fi
7820 rm -rf conftest*
7821 ;;
7822
7823 mips64*-*linux*)
7824 # Find out what ABI is being produced by ac_compile, and set linker
7825 # options accordingly.
7826 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7828 (eval $ac_compile) 2>&5
7829 ac_status=$?
7830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 emul=elf
7833 case `$FILECMD conftest.$ac_objext` in
7834 *32-bit*)
7835 emul="${emul}32"
7836 ;;
7837 *64-bit*)
7838 emul="${emul}64"
7839 ;;
7840 esac
7841 case `$FILECMD conftest.$ac_objext` in
7842 *MSB*)
7843 emul="${emul}btsmip"
7844 ;;
7845 *LSB*)
7846 emul="${emul}ltsmip"
7847 ;;
7848 esac
7849 case `$FILECMD conftest.$ac_objext` in
7850 *N32*)
7851 emul="${emul}n32"
7852 ;;
7853 esac
7854 LD="${LD-ld} -m $emul"
7855 fi
7856 rm -rf conftest*
7857 ;;
7858
7859 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7860 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7861 # Find out what ABI is being produced by ac_compile, and set linker
7862 # options accordingly. Note that the listed cases only cover the
7863 # situations where additional linker options are needed (such as when
7864 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7865 # vice versa); the common cases where no linker options are needed do
7866 # not appear in the list.
7867 echo 'int i;' > conftest.$ac_ext
7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7869 (eval $ac_compile) 2>&5
7870 ac_status=$?
7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7872 test $ac_status = 0; }; then
7873 case `$FILECMD conftest.o` in
7874 *32-bit*)
7875 case $host in
7876 x86_64-*kfreebsd*-gnu)
7877 LD="${LD-ld} -m elf_i386_fbsd"
7878 ;;
7879 x86_64-*linux*)
7880 case `$FILECMD conftest.o` in
7881 *x86-64*)
7882 LD="${LD-ld} -m elf32_x86_64"
7883 ;;
7884 *)
7885 LD="${LD-ld} -m elf_i386"
7886 ;;
7887 esac
7888 ;;
7889 powerpc64le-*linux*)
7890 LD="${LD-ld} -m elf32lppclinux"
7891 ;;
7892 powerpc64-*linux*)
7893 LD="${LD-ld} -m elf32ppclinux"
7894 ;;
7895 s390x-*linux*)
7896 LD="${LD-ld} -m elf_s390"
7897 ;;
7898 sparc64-*linux*)
7899 LD="${LD-ld} -m elf32_sparc"
7900 ;;
7901 esac
7902 ;;
7903 *64-bit*)
7904 case $host in
7905 x86_64-*kfreebsd*-gnu)
7906 LD="${LD-ld} -m elf_x86_64_fbsd"
7907 ;;
7908 x86_64-*linux*)
7909 LD="${LD-ld} -m elf_x86_64"
7910 ;;
7911 powerpcle-*linux*)
7912 LD="${LD-ld} -m elf64lppc"
7913 ;;
7914 powerpc-*linux*)
7915 LD="${LD-ld} -m elf64ppc"
7916 ;;
7917 s390*-*linux*|s390*-*tpf*)
7918 LD="${LD-ld} -m elf64_s390"
7919 ;;
7920 sparc*-*linux*)
7921 LD="${LD-ld} -m elf64_sparc"
7922 ;;
7923 esac
7924 ;;
7925 esac
7926 fi
7927 rm -rf conftest*
7928 ;;
7929
7930 *-*-sco3.2v5*)
7931 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7932 SAVE_CFLAGS=$CFLAGS
7933 CFLAGS="$CFLAGS -belf"
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7935 printf %s "checking whether the C compiler needs -belf... " >&6; }
7936 if test ${lt_cv_cc_needs_belf+y}
7937 then :
7938 printf %s "(cached) " >&6
7939 else $as_nop
7940 ac_ext=c
7941 ac_cpp='$CPP $CPPFLAGS'
7942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948
7949 int
7950 main (void)
7951 {
7952
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 if ac_fn_c_try_link "$LINENO"
7958 then :
7959 lt_cv_cc_needs_belf=yes
7960 else $as_nop
7961 lt_cv_cc_needs_belf=no
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7964 conftest$ac_exeext conftest.$ac_ext
7965 ac_ext=c
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971 fi
7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7973 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7974 if test yes != "$lt_cv_cc_needs_belf"; then
7975 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7976 CFLAGS=$SAVE_CFLAGS
7977 fi
7978 ;;
7979 *-*solaris*)
7980 # Find out what ABI is being produced by ac_compile, and set linker
7981 # options accordingly.
7982 echo 'int i;' > conftest.$ac_ext
7983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7984 (eval $ac_compile) 2>&5
7985 ac_status=$?
7986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7987 test $ac_status = 0; }; then
7988 case `$FILECMD conftest.o` in
7989 *64-bit*)
7990 case $lt_cv_prog_gnu_ld in
7991 yes*)
7992 case $host in
7993 i?86-*-solaris*|x86_64-*-solaris*)
7994 LD="${LD-ld} -m elf_x86_64"
7995 ;;
7996 sparc*-*-solaris*)
7997 LD="${LD-ld} -m elf64_sparc"
7998 ;;
7999 esac
8000 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8001 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8002 LD=${LD-ld}_sol2
8003 fi
8004 ;;
8005 *)
8006 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8007 LD="${LD-ld} -64"
8008 fi
8009 ;;
8010 esac
8011 ;;
8012 esac
8013 fi
8014 rm -rf conftest*
8015 ;;
8016 esac
8017
8018 need_locks=$enable_libtool_lock
8019
8020 if test -n "$ac_tool_prefix"; then
8021 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8022 set dummy ${ac_tool_prefix}mt; ac_word=$2
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 printf %s "checking for $ac_word... " >&6; }
8025 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8026 then :
8027 printf %s "(cached) " >&6
8028 else $as_nop
8029 if test -n "$MANIFEST_TOOL"; then
8030 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035 IFS=$as_save_IFS
8036 case $as_dir in #(((
8037 '') as_dir=./ ;;
8038 */) ;;
8039 *) as_dir=$as_dir/ ;;
8040 esac
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8043 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8045 break 2
8046 fi
8047 done
8048 done
8049 IFS=$as_save_IFS
8050
8051 fi
8052 fi
8053 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8054 if test -n "$MANIFEST_TOOL"; then
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8056 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8057 else
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 printf "%s\n" "no" >&6; }
8060 fi
8061
8062
8063 fi
8064 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8065 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8066 # Extract the first word of "mt", so it can be a program name with args.
8067 set dummy mt; ac_word=$2
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069 printf %s "checking for $ac_word... " >&6; }
8070 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else $as_nop
8074 if test -n "$ac_ct_MANIFEST_TOOL"; then
8075 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8076 else
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078 for as_dir in $PATH
8079 do
8080 IFS=$as_save_IFS
8081 case $as_dir in #(((
8082 '') as_dir=./ ;;
8083 */) ;;
8084 *) as_dir=$as_dir/ ;;
8085 esac
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8088 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8090 break 2
8091 fi
8092 done
8093 done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8099 if test -n "$ac_ct_MANIFEST_TOOL"; then
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8101 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8102 else
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 printf "%s\n" "no" >&6; }
8105 fi
8106
8107 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8108 MANIFEST_TOOL=":"
8109 else
8110 case $cross_compiling:$ac_tool_warned in
8111 yes:)
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8114 ac_tool_warned=yes ;;
8115 esac
8116 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8117 fi
8118 else
8119 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8120 fi
8121
8122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8124 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8125 if test ${lt_cv_path_mainfest_tool+y}
8126 then :
8127 printf %s "(cached) " >&6
8128 else $as_nop
8129 lt_cv_path_mainfest_tool=no
8130 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8131 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8132 cat conftest.err >&5
8133 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8134 lt_cv_path_mainfest_tool=yes
8135 fi
8136 rm -f conftest*
8137 fi
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8139 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8140 if test yes != "$lt_cv_path_mainfest_tool"; then
8141 MANIFEST_TOOL=:
8142 fi
8143
8144
8145
8146
8147
8148
8149 case $host_os in
8150 rhapsody* | darwin*)
8151 if test -n "$ac_tool_prefix"; then
8152 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8153 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 printf %s "checking for $ac_word... " >&6; }
8156 if test ${ac_cv_prog_DSYMUTIL+y}
8157 then :
8158 printf %s "(cached) " >&6
8159 else $as_nop
8160 if test -n "$DSYMUTIL"; then
8161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8162 else
8163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 for as_dir in $PATH
8165 do
8166 IFS=$as_save_IFS
8167 case $as_dir in #(((
8168 '') as_dir=./ ;;
8169 */) ;;
8170 *) as_dir=$as_dir/ ;;
8171 esac
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178 done
8179 done
8180 IFS=$as_save_IFS
8181
8182 fi
8183 fi
8184 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8185 if test -n "$DSYMUTIL"; then
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8187 printf "%s\n" "$DSYMUTIL" >&6; }
8188 else
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 printf "%s\n" "no" >&6; }
8191 fi
8192
8193
8194 fi
8195 if test -z "$ac_cv_prog_DSYMUTIL"; then
8196 ac_ct_DSYMUTIL=$DSYMUTIL
8197 # Extract the first word of "dsymutil", so it can be a program name with args.
8198 set dummy dsymutil; ac_word=$2
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 printf %s "checking for $ac_word... " >&6; }
8201 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8202 then :
8203 printf %s "(cached) " >&6
8204 else $as_nop
8205 if test -n "$ac_ct_DSYMUTIL"; then
8206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8207 else
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 for as_dir in $PATH
8210 do
8211 IFS=$as_save_IFS
8212 case $as_dir in #(((
8213 '') as_dir=./ ;;
8214 */) ;;
8215 *) as_dir=$as_dir/ ;;
8216 esac
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223 done
8224 done
8225 IFS=$as_save_IFS
8226
8227 fi
8228 fi
8229 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8230 if test -n "$ac_ct_DSYMUTIL"; then
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8232 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8233 else
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 printf "%s\n" "no" >&6; }
8236 fi
8237
8238 if test "x$ac_ct_DSYMUTIL" = x; then
8239 DSYMUTIL=":"
8240 else
8241 case $cross_compiling:$ac_tool_warned in
8242 yes:)
8243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245 ac_tool_warned=yes ;;
8246 esac
8247 DSYMUTIL=$ac_ct_DSYMUTIL
8248 fi
8249 else
8250 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8251 fi
8252
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 printf %s "checking for $ac_word... " >&6; }
8258 if test ${ac_cv_prog_NMEDIT+y}
8259 then :
8260 printf %s "(cached) " >&6
8261 else $as_nop
8262 if test -n "$NMEDIT"; then
8263 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8267 do
8268 IFS=$as_save_IFS
8269 case $as_dir in #(((
8270 '') as_dir=./ ;;
8271 */) ;;
8272 *) as_dir=$as_dir/ ;;
8273 esac
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8278 break 2
8279 fi
8280 done
8281 done
8282 IFS=$as_save_IFS
8283
8284 fi
8285 fi
8286 NMEDIT=$ac_cv_prog_NMEDIT
8287 if test -n "$NMEDIT"; then
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8289 printf "%s\n" "$NMEDIT" >&6; }
8290 else
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 printf "%s\n" "no" >&6; }
8293 fi
8294
8295
8296 fi
8297 if test -z "$ac_cv_prog_NMEDIT"; then
8298 ac_ct_NMEDIT=$NMEDIT
8299 # Extract the first word of "nmedit", so it can be a program name with args.
8300 set dummy nmedit; ac_word=$2
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 printf %s "checking for $ac_word... " >&6; }
8303 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8304 then :
8305 printf %s "(cached) " >&6
8306 else $as_nop
8307 if test -n "$ac_ct_NMEDIT"; then
8308 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313 IFS=$as_save_IFS
8314 case $as_dir in #(((
8315 '') as_dir=./ ;;
8316 */) ;;
8317 *) as_dir=$as_dir/ ;;
8318 esac
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8321 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8323 break 2
8324 fi
8325 done
8326 done
8327 IFS=$as_save_IFS
8328
8329 fi
8330 fi
8331 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8332 if test -n "$ac_ct_NMEDIT"; then
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8334 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8335 else
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 printf "%s\n" "no" >&6; }
8338 fi
8339
8340 if test "x$ac_ct_NMEDIT" = x; then
8341 NMEDIT=":"
8342 else
8343 case $cross_compiling:$ac_tool_warned in
8344 yes:)
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8346 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8347 ac_tool_warned=yes ;;
8348 esac
8349 NMEDIT=$ac_ct_NMEDIT
8350 fi
8351 else
8352 NMEDIT="$ac_cv_prog_NMEDIT"
8353 fi
8354
8355 if test -n "$ac_tool_prefix"; then
8356 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8357 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 printf %s "checking for $ac_word... " >&6; }
8360 if test ${ac_cv_prog_LIPO+y}
8361 then :
8362 printf %s "(cached) " >&6
8363 else $as_nop
8364 if test -n "$LIPO"; then
8365 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370 IFS=$as_save_IFS
8371 case $as_dir in #(((
8372 '') as_dir=./ ;;
8373 */) ;;
8374 *) as_dir=$as_dir/ ;;
8375 esac
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 LIPO=$ac_cv_prog_LIPO
8389 if test -n "$LIPO"; then
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8391 printf "%s\n" "$LIPO" >&6; }
8392 else
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 printf "%s\n" "no" >&6; }
8395 fi
8396
8397
8398 fi
8399 if test -z "$ac_cv_prog_LIPO"; then
8400 ac_ct_LIPO=$LIPO
8401 # Extract the first word of "lipo", so it can be a program name with args.
8402 set dummy lipo; ac_word=$2
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 printf %s "checking for $ac_word... " >&6; }
8405 if test ${ac_cv_prog_ac_ct_LIPO+y}
8406 then :
8407 printf %s "(cached) " >&6
8408 else $as_nop
8409 if test -n "$ac_ct_LIPO"; then
8410 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415 IFS=$as_save_IFS
8416 case $as_dir in #(((
8417 '') as_dir=./ ;;
8418 */) ;;
8419 *) as_dir=$as_dir/ ;;
8420 esac
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_ac_ct_LIPO="lipo"
8424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427 done
8428 done
8429 IFS=$as_save_IFS
8430
8431 fi
8432 fi
8433 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8434 if test -n "$ac_ct_LIPO"; then
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8436 printf "%s\n" "$ac_ct_LIPO" >&6; }
8437 else
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 printf "%s\n" "no" >&6; }
8440 fi
8441
8442 if test "x$ac_ct_LIPO" = x; then
8443 LIPO=":"
8444 else
8445 case $cross_compiling:$ac_tool_warned in
8446 yes:)
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8448 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8449 ac_tool_warned=yes ;;
8450 esac
8451 LIPO=$ac_ct_LIPO
8452 fi
8453 else
8454 LIPO="$ac_cv_prog_LIPO"
8455 fi
8456
8457 if test -n "$ac_tool_prefix"; then
8458 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8459 set dummy ${ac_tool_prefix}otool; ac_word=$2
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461 printf %s "checking for $ac_word... " >&6; }
8462 if test ${ac_cv_prog_OTOOL+y}
8463 then :
8464 printf %s "(cached) " >&6
8465 else $as_nop
8466 if test -n "$OTOOL"; then
8467 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472 IFS=$as_save_IFS
8473 case $as_dir in #(((
8474 '') as_dir=./ ;;
8475 */) ;;
8476 *) as_dir=$as_dir/ ;;
8477 esac
8478 for ac_exec_ext in '' $ac_executable_extensions; do
8479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8480 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8482 break 2
8483 fi
8484 done
8485 done
8486 IFS=$as_save_IFS
8487
8488 fi
8489 fi
8490 OTOOL=$ac_cv_prog_OTOOL
8491 if test -n "$OTOOL"; then
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8493 printf "%s\n" "$OTOOL" >&6; }
8494 else
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496 printf "%s\n" "no" >&6; }
8497 fi
8498
8499
8500 fi
8501 if test -z "$ac_cv_prog_OTOOL"; then
8502 ac_ct_OTOOL=$OTOOL
8503 # Extract the first word of "otool", so it can be a program name with args.
8504 set dummy otool; ac_word=$2
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 printf %s "checking for $ac_word... " >&6; }
8507 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8508 then :
8509 printf %s "(cached) " >&6
8510 else $as_nop
8511 if test -n "$ac_ct_OTOOL"; then
8512 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517 IFS=$as_save_IFS
8518 case $as_dir in #(((
8519 '') as_dir=./ ;;
8520 */) ;;
8521 *) as_dir=$as_dir/ ;;
8522 esac
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8525 ac_cv_prog_ac_ct_OTOOL="otool"
8526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8527 break 2
8528 fi
8529 done
8530 done
8531 IFS=$as_save_IFS
8532
8533 fi
8534 fi
8535 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8536 if test -n "$ac_ct_OTOOL"; then
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8538 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8539 else
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 printf "%s\n" "no" >&6; }
8542 fi
8543
8544 if test "x$ac_ct_OTOOL" = x; then
8545 OTOOL=":"
8546 else
8547 case $cross_compiling:$ac_tool_warned in
8548 yes:)
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8550 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8551 ac_tool_warned=yes ;;
8552 esac
8553 OTOOL=$ac_ct_OTOOL
8554 fi
8555 else
8556 OTOOL="$ac_cv_prog_OTOOL"
8557 fi
8558
8559 if test -n "$ac_tool_prefix"; then
8560 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8561 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 printf %s "checking for $ac_word... " >&6; }
8564 if test ${ac_cv_prog_OTOOL64+y}
8565 then :
8566 printf %s "(cached) " >&6
8567 else $as_nop
8568 if test -n "$OTOOL64"; then
8569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574 IFS=$as_save_IFS
8575 case $as_dir in #(((
8576 '') as_dir=./ ;;
8577 */) ;;
8578 *) as_dir=$as_dir/ ;;
8579 esac
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8582 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8584 break 2
8585 fi
8586 done
8587 done
8588 IFS=$as_save_IFS
8589
8590 fi
8591 fi
8592 OTOOL64=$ac_cv_prog_OTOOL64
8593 if test -n "$OTOOL64"; then
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8595 printf "%s\n" "$OTOOL64" >&6; }
8596 else
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 printf "%s\n" "no" >&6; }
8599 fi
8600
8601
8602 fi
8603 if test -z "$ac_cv_prog_OTOOL64"; then
8604 ac_ct_OTOOL64=$OTOOL64
8605 # Extract the first word of "otool64", so it can be a program name with args.
8606 set dummy otool64; ac_word=$2
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 printf %s "checking for $ac_word... " >&6; }
8609 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8610 then :
8611 printf %s "(cached) " >&6
8612 else $as_nop
8613 if test -n "$ac_ct_OTOOL64"; then
8614 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8615 else
8616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 for as_dir in $PATH
8618 do
8619 IFS=$as_save_IFS
8620 case $as_dir in #(((
8621 '') as_dir=./ ;;
8622 */) ;;
8623 *) as_dir=$as_dir/ ;;
8624 esac
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8627 ac_cv_prog_ac_ct_OTOOL64="otool64"
8628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8629 break 2
8630 fi
8631 done
8632 done
8633 IFS=$as_save_IFS
8634
8635 fi
8636 fi
8637 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8638 if test -n "$ac_ct_OTOOL64"; then
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8640 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8641 else
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 printf "%s\n" "no" >&6; }
8644 fi
8645
8646 if test "x$ac_ct_OTOOL64" = x; then
8647 OTOOL64=":"
8648 else
8649 case $cross_compiling:$ac_tool_warned in
8650 yes:)
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8652 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8653 ac_tool_warned=yes ;;
8654 esac
8655 OTOOL64=$ac_ct_OTOOL64
8656 fi
8657 else
8658 OTOOL64="$ac_cv_prog_OTOOL64"
8659 fi
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
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8688 printf %s "checking for -single_module linker flag... " >&6; }
8689 if test ${lt_cv_apple_cc_single_mod+y}
8690 then :
8691 printf %s "(cached) " >&6
8692 else $as_nop
8693 lt_cv_apple_cc_single_mod=no
8694 if test -z "$LT_MULTI_MODULE"; then
8695 # By default we will add the -single_module flag. You can override
8696 # by either setting the environment variable LT_MULTI_MODULE
8697 # non-empty at configure time, or by adding -multi_module to the
8698 # link flags.
8699 rm -rf libconftest.dylib*
8700 echo "int foo(void){return 1;}" > conftest.c
8701 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8702 -dynamiclib -Wl,-single_module conftest.c" >&5
8703 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8704 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8705 _lt_result=$?
8706 # If there is a non-empty error log, and "single_module"
8707 # appears in it, assume the flag caused a linker warning
8708 if test -s conftest.err && $GREP single_module conftest.err; then
8709 cat conftest.err >&5
8710 # Otherwise, if the output was created with a 0 exit code from
8711 # the compiler, it worked.
8712 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8713 lt_cv_apple_cc_single_mod=yes
8714 else
8715 cat conftest.err >&5
8716 fi
8717 rm -rf libconftest.dylib*
8718 rm -f conftest.*
8719 fi
8720 fi
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8722 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8723
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8725 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8726 if test ${lt_cv_ld_exported_symbols_list+y}
8727 then :
8728 printf %s "(cached) " >&6
8729 else $as_nop
8730 lt_cv_ld_exported_symbols_list=no
8731 save_LDFLAGS=$LDFLAGS
8732 echo "_main" > conftest.sym
8733 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736
8737 int
8738 main (void)
8739 {
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_link "$LINENO"
8746 then :
8747 lt_cv_ld_exported_symbols_list=yes
8748 else $as_nop
8749 lt_cv_ld_exported_symbols_list=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8752 conftest$ac_exeext conftest.$ac_ext
8753 LDFLAGS=$save_LDFLAGS
8754
8755 fi
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8757 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8758
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8760 printf %s "checking for -force_load linker flag... " >&6; }
8761 if test ${lt_cv_ld_force_load+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else $as_nop
8765 lt_cv_ld_force_load=no
8766 cat > conftest.c << _LT_EOF
8767 int forced_loaded() { return 2;}
8768 _LT_EOF
8769 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8770 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8771 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8772 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8773 echo "$RANLIB libconftest.a" >&5
8774 $RANLIB libconftest.a 2>&5
8775 cat > conftest.c << _LT_EOF
8776 int main() { return 0;}
8777 _LT_EOF
8778 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8779 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8780 _lt_result=$?
8781 if test -s conftest.err && $GREP force_load conftest.err; then
8782 cat conftest.err >&5
8783 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8784 lt_cv_ld_force_load=yes
8785 else
8786 cat conftest.err >&5
8787 fi
8788 rm -f conftest.err libconftest.a conftest conftest.c
8789 rm -rf conftest.dSYM
8790
8791 fi
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8793 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8794 case $host_os in
8795 rhapsody* | darwin1.[012])
8796 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8797 darwin1.*)
8798 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8799 darwin*)
8800 case $MACOSX_DEPLOYMENT_TARGET,$host in
8801 10.[012],*|,*powerpc*-darwin[5-8]*)
8802 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8803 *)
8804 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8805 esac
8806 ;;
8807 esac
8808 if test yes = "$lt_cv_apple_cc_single_mod"; then
8809 _lt_dar_single_mod='$single_module'
8810 fi
8811 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8812 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8813 else
8814 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8815 fi
8816 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8817 _lt_dsymutil='~$DSYMUTIL $lib || :'
8818 else
8819 _lt_dsymutil=
8820 fi
8821 ;;
8822 esac
8823
8824 # func_munge_path_list VARIABLE PATH
8825 # -----------------------------------
8826 # VARIABLE is name of variable containing _space_ separated list of
8827 # directories to be munged by the contents of PATH, which is string
8828 # having a format:
8829 # "DIR[:DIR]:"
8830 # string "DIR[ DIR]" will be prepended to VARIABLE
8831 # ":DIR[:DIR]"
8832 # string "DIR[ DIR]" will be appended to VARIABLE
8833 # "DIRP[:DIRP]::[DIRA:]DIRA"
8834 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8835 # "DIRA[ DIRA]" will be appended to VARIABLE
8836 # "DIR[:DIR]"
8837 # VARIABLE will be replaced by "DIR[ DIR]"
8838 func_munge_path_list ()
8839 {
8840 case x$2 in
8841 x)
8842 ;;
8843 *:)
8844 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8845 ;;
8846 x:*)
8847 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8848 ;;
8849 *::*)
8850 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8851 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8852 ;;
8853 *)
8854 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8855 ;;
8856 esac
8857 }
8858
8859 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8860 "
8861 if test "x$ac_cv_header_dlfcn_h" = xyes
8862 then :
8863 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8864
8865 fi
8866
8867
8868
8869
8870
8871 # Set options
8872
8873
8874
8875 enable_dlopen=no
8876
8877
8878 enable_win32_dll=no
8879
8880
8881 # Check whether --enable-shared was given.
8882 if test ${enable_shared+y}
8883 then :
8884 enableval=$enable_shared; p=${PACKAGE-default}
8885 case $enableval in
8886 yes) enable_shared=yes ;;
8887 no) enable_shared=no ;;
8888 *)
8889 enable_shared=no
8890 # Look at the argument we got. We use all the common list separators.
8891 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8892 for pkg in $enableval; do
8893 IFS=$lt_save_ifs
8894 if test "X$pkg" = "X$p"; then
8895 enable_shared=yes
8896 fi
8897 done
8898 IFS=$lt_save_ifs
8899 ;;
8900 esac
8901 else $as_nop
8902 enable_shared=yes
8903 fi
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913 # Check whether --enable-static was given.
8914 if test ${enable_static+y}
8915 then :
8916 enableval=$enable_static; p=${PACKAGE-default}
8917 case $enableval in
8918 yes) enable_static=yes ;;
8919 no) enable_static=no ;;
8920 *)
8921 enable_static=no
8922 # Look at the argument we got. We use all the common list separators.
8923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8924 for pkg in $enableval; do
8925 IFS=$lt_save_ifs
8926 if test "X$pkg" = "X$p"; then
8927 enable_static=yes
8928 fi
8929 done
8930 IFS=$lt_save_ifs
8931 ;;
8932 esac
8933 else $as_nop
8934 enable_static=yes
8935 fi
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946 # Check whether --with-pic was given.
8947 if test ${with_pic+y}
8948 then :
8949 withval=$with_pic; lt_p=${PACKAGE-default}
8950 case $withval in
8951 yes|no) pic_mode=$withval ;;
8952 *)
8953 pic_mode=default
8954 # Look at the argument we got. We use all the common list separators.
8955 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8956 for lt_pkg in $withval; do
8957 IFS=$lt_save_ifs
8958 if test "X$lt_pkg" = "X$lt_p"; then
8959 pic_mode=yes
8960 fi
8961 done
8962 IFS=$lt_save_ifs
8963 ;;
8964 esac
8965 else $as_nop
8966 pic_mode=default
8967 fi
8968
8969
8970
8971
8972
8973
8974
8975
8976 # Check whether --enable-fast-install was given.
8977 if test ${enable_fast_install+y}
8978 then :
8979 enableval=$enable_fast_install; p=${PACKAGE-default}
8980 case $enableval in
8981 yes) enable_fast_install=yes ;;
8982 no) enable_fast_install=no ;;
8983 *)
8984 enable_fast_install=no
8985 # Look at the argument we got. We use all the common list separators.
8986 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8987 for pkg in $enableval; do
8988 IFS=$lt_save_ifs
8989 if test "X$pkg" = "X$p"; then
8990 enable_fast_install=yes
8991 fi
8992 done
8993 IFS=$lt_save_ifs
8994 ;;
8995 esac
8996 else $as_nop
8997 enable_fast_install=yes
8998 fi
8999
9000
9001
9002
9003
9004
9005
9006
9007 shared_archive_member_spec=
9008 case $host,$enable_shared in
9009 power*-*-aix[5-9]*,yes)
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9011 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9012
9013 # Check whether --with-aix-soname was given.
9014 if test ${with_aix_soname+y}
9015 then :
9016 withval=$with_aix_soname; case $withval in
9017 aix|svr4|both)
9018 ;;
9019 *)
9020 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9021 ;;
9022 esac
9023 lt_cv_with_aix_soname=$with_aix_soname
9024 else $as_nop
9025 if test ${lt_cv_with_aix_soname+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else $as_nop
9029 lt_cv_with_aix_soname=aix
9030 fi
9031
9032 with_aix_soname=$lt_cv_with_aix_soname
9033 fi
9034
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9036 printf "%s\n" "$with_aix_soname" >&6; }
9037 if test aix != "$with_aix_soname"; then
9038 # For the AIX way of multilib, we name the shared archive member
9039 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9040 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9041 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9042 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9043 if test 64 = "${OBJECT_MODE-32}"; then
9044 shared_archive_member_spec=shr_64
9045 else
9046 shared_archive_member_spec=shr
9047 fi
9048 fi
9049 ;;
9050 *)
9051 with_aix_soname=aix
9052 ;;
9053 esac
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064 # This can be used to rebuild libtool when needed
9065 LIBTOOL_DEPS=$ltmain
9066
9067 # Always use our own libtool.
9068 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
9099 test -z "$LN_S" && LN_S="ln -s"
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114 if test -n "${ZSH_VERSION+set}"; then
9115 setopt NO_GLOB_SUBST
9116 fi
9117
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9119 printf %s "checking for objdir... " >&6; }
9120 if test ${lt_cv_objdir+y}
9121 then :
9122 printf %s "(cached) " >&6
9123 else $as_nop
9124 rm -f .libs 2>/dev/null
9125 mkdir .libs 2>/dev/null
9126 if test -d .libs; then
9127 lt_cv_objdir=.libs
9128 else
9129 # MS-DOS does not allow filenames that begin with a dot.
9130 lt_cv_objdir=_libs
9131 fi
9132 rmdir .libs 2>/dev/null
9133 fi
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9135 printf "%s\n" "$lt_cv_objdir" >&6; }
9136 objdir=$lt_cv_objdir
9137
9138
9139
9140
9141
9142 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9143
9144
9145
9146
9147 case $host_os in
9148 aix3*)
9149 # AIX sometimes has problems with the GCC collect2 program. For some
9150 # reason, if we set the COLLECT_NAMES environment variable, the problems
9151 # vanish in a puff of smoke.
9152 if test set != "${COLLECT_NAMES+set}"; then
9153 COLLECT_NAMES=
9154 export COLLECT_NAMES
9155 fi
9156 ;;
9157 esac
9158
9159 # Global variables:
9160 ofile=libtool
9161 can_build_shared=yes
9162
9163 # All known linkers require a '.a' archive for static linking (except MSVC and
9164 # ICC, which need '.lib').
9165 libext=a
9166
9167 with_gnu_ld=$lt_cv_prog_gnu_ld
9168
9169 old_CC=$CC
9170 old_CFLAGS=$CFLAGS
9171
9172 # Set sane defaults for various variables
9173 test -z "$CC" && CC=cc
9174 test -z "$LTCC" && LTCC=$CC
9175 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9176 test -z "$LD" && LD=ld
9177 test -z "$ac_objext" && ac_objext=o
9178
9179 func_cc_basename $compiler
9180 cc_basename=$func_cc_basename_result
9181
9182
9183 # Only perform the check for file, if the check method requires it
9184 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9185 case $deplibs_check_method in
9186 file_magic*)
9187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9189 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9190 if test ${lt_cv_path_MAGIC_CMD+y}
9191 then :
9192 printf %s "(cached) " >&6
9193 else $as_nop
9194 case $MAGIC_CMD in
9195 [\\/*] | ?:[\\/]*)
9196 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9197 ;;
9198 *)
9199 lt_save_MAGIC_CMD=$MAGIC_CMD
9200 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9202 for ac_dir in $ac_dummy; do
9203 IFS=$lt_save_ifs
9204 test -z "$ac_dir" && ac_dir=.
9205 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9206 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9207 if test -n "$file_magic_test_file"; then
9208 case $deplibs_check_method in
9209 "file_magic "*)
9210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9211 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9213 $EGREP "$file_magic_regex" > /dev/null; then
9214 :
9215 else
9216 cat <<_LT_EOF 1>&2
9217
9218 *** Warning: the command libtool uses to detect shared libraries,
9219 *** $file_magic_cmd, produces output that libtool cannot recognize.
9220 *** The result is that libtool may fail to recognize shared libraries
9221 *** as such. This will affect the creation of libtool libraries that
9222 *** depend on shared libraries, but programs linked with such libtool
9223 *** libraries will work regardless of this problem. Nevertheless, you
9224 *** may want to report the problem to your system manager and/or to
9225 *** bug-libtool@gnu.org
9226
9227 _LT_EOF
9228 fi ;;
9229 esac
9230 fi
9231 break
9232 fi
9233 done
9234 IFS=$lt_save_ifs
9235 MAGIC_CMD=$lt_save_MAGIC_CMD
9236 ;;
9237 esac
9238 fi
9239
9240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9241 if test -n "$MAGIC_CMD"; then
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9243 printf "%s\n" "$MAGIC_CMD" >&6; }
9244 else
9245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 printf "%s\n" "no" >&6; }
9247 fi
9248
9249
9250
9251
9252
9253 if test -z "$lt_cv_path_MAGIC_CMD"; then
9254 if test -n "$ac_tool_prefix"; then
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9256 printf %s "checking for file... " >&6; }
9257 if test ${lt_cv_path_MAGIC_CMD+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else $as_nop
9261 case $MAGIC_CMD in
9262 [\\/*] | ?:[\\/]*)
9263 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9264 ;;
9265 *)
9266 lt_save_MAGIC_CMD=$MAGIC_CMD
9267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9268 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9269 for ac_dir in $ac_dummy; do
9270 IFS=$lt_save_ifs
9271 test -z "$ac_dir" && ac_dir=.
9272 if test -f "$ac_dir/file"; then
9273 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9274 if test -n "$file_magic_test_file"; then
9275 case $deplibs_check_method in
9276 "file_magic "*)
9277 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9278 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9280 $EGREP "$file_magic_regex" > /dev/null; then
9281 :
9282 else
9283 cat <<_LT_EOF 1>&2
9284
9285 *** Warning: the command libtool uses to detect shared libraries,
9286 *** $file_magic_cmd, produces output that libtool cannot recognize.
9287 *** The result is that libtool may fail to recognize shared libraries
9288 *** as such. This will affect the creation of libtool libraries that
9289 *** depend on shared libraries, but programs linked with such libtool
9290 *** libraries will work regardless of this problem. Nevertheless, you
9291 *** may want to report the problem to your system manager and/or to
9292 *** bug-libtool@gnu.org
9293
9294 _LT_EOF
9295 fi ;;
9296 esac
9297 fi
9298 break
9299 fi
9300 done
9301 IFS=$lt_save_ifs
9302 MAGIC_CMD=$lt_save_MAGIC_CMD
9303 ;;
9304 esac
9305 fi
9306
9307 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9308 if test -n "$MAGIC_CMD"; then
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9310 printf "%s\n" "$MAGIC_CMD" >&6; }
9311 else
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 printf "%s\n" "no" >&6; }
9314 fi
9315
9316
9317 else
9318 MAGIC_CMD=:
9319 fi
9320 fi
9321
9322 fi
9323 ;;
9324 esac
9325
9326 # Use C for the default configuration in the libtool script
9327
9328 lt_save_CC=$CC
9329 ac_ext=c
9330 ac_cpp='$CPP $CPPFLAGS'
9331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9334
9335
9336 # Source file extension for C test sources.
9337 ac_ext=c
9338
9339 # Object file extension for compiled C test sources.
9340 objext=o
9341 objext=$objext
9342
9343 # Code to be used in simple compile tests
9344 lt_simple_compile_test_code="int some_variable = 0;"
9345
9346 # Code to be used in simple link tests
9347 lt_simple_link_test_code='int main(){return(0);}'
9348
9349
9350
9351
9352
9353
9354
9355 # If no C compiler was specified, use CC.
9356 LTCC=${LTCC-"$CC"}
9357
9358 # If no C compiler flags were specified, use CFLAGS.
9359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9360
9361 # Allow CC to be a program name with arguments.
9362 compiler=$CC
9363
9364 # Save the default compiler, since it gets overwritten when the other
9365 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9366 compiler_DEFAULT=$CC
9367
9368 # save warnings/boilerplate of simple test code
9369 ac_outfile=conftest.$ac_objext
9370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9372 _lt_compiler_boilerplate=`cat conftest.err`
9373 $RM conftest*
9374
9375 ac_outfile=conftest.$ac_objext
9376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9378 _lt_linker_boilerplate=`cat conftest.err`
9379 $RM -r conftest*
9380
9381
9382 ## CAVEAT EMPTOR:
9383 ## There is no encapsulation within the following macros, do not change
9384 ## the running order or otherwise move them around unless you know exactly
9385 ## what you are doing...
9386 if test -n "$compiler"; then
9387
9388 lt_prog_compiler_no_builtin_flag=
9389
9390 if test yes = "$GCC"; then
9391 case $cc_basename in
9392 nvcc*)
9393 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9394 *)
9395 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9396 esac
9397
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9399 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9400 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9401 then :
9402 printf %s "(cached) " >&6
9403 else $as_nop
9404 lt_cv_prog_compiler_rtti_exceptions=no
9405 ac_outfile=conftest.$ac_objext
9406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9407 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9408 # Insert the option either (1) after the last *FLAGS variable, or
9409 # (2) before a word containing "conftest.", or (3) at the end.
9410 # Note that $ac_compile itself does not contain backslashes and begins
9411 # with a dollar sign (not a hyphen), so the echo should work correctly.
9412 # The option is referenced via a variable to avoid confusing sed.
9413 lt_compile=`echo "$ac_compile" | $SED \
9414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416 -e 's:$: $lt_compiler_flag:'`
9417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9418 (eval "$lt_compile" 2>conftest.err)
9419 ac_status=$?
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 if (exit $ac_status) && test -s "$ac_outfile"; then
9423 # The compiler can only warn and ignore the option if not recognized
9424 # So say no if there are warnings other than the usual output.
9425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9428 lt_cv_prog_compiler_rtti_exceptions=yes
9429 fi
9430 fi
9431 $RM conftest*
9432
9433 fi
9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9435 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9436
9437 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9439 else
9440 :
9441 fi
9442
9443 fi
9444
9445
9446
9447
9448
9449
9450 lt_prog_compiler_wl=
9451 lt_prog_compiler_pic=
9452 lt_prog_compiler_static=
9453
9454
9455 if test yes = "$GCC"; then
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_static='-static'
9458
9459 case $host_os in
9460 aix*)
9461 # All AIX code is PIC.
9462 if test ia64 = "$host_cpu"; then
9463 # AIX 5 now supports IA64 processor
9464 lt_prog_compiler_static='-Bstatic'
9465 fi
9466 lt_prog_compiler_pic='-fPIC'
9467 ;;
9468
9469 amigaos*)
9470 case $host_cpu in
9471 powerpc)
9472 # see comment about AmigaOS4 .so support
9473 lt_prog_compiler_pic='-fPIC'
9474 ;;
9475 m68k)
9476 # FIXME: we need at least 68020 code to build shared libraries, but
9477 # adding the '-m68020' flag to GCC prevents building anything better,
9478 # like '-m68040'.
9479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9480 ;;
9481 esac
9482 ;;
9483
9484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9485 # PIC is the default for these OSes.
9486 ;;
9487
9488 mingw* | cygwin* | pw32* | os2* | cegcc*)
9489 # This hack is so that the source file can tell whether it is being
9490 # built for inclusion in a dll (and should export symbols for example).
9491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9492 # (--disable-auto-import) libraries
9493 lt_prog_compiler_pic='-DDLL_EXPORT'
9494 case $host_os in
9495 os2*)
9496 lt_prog_compiler_static='$wl-static'
9497 ;;
9498 esac
9499 ;;
9500
9501 darwin* | rhapsody*)
9502 # PIC is the default on this platform
9503 # Common symbols not allowed in MH_DYLIB files
9504 lt_prog_compiler_pic='-fno-common'
9505 ;;
9506
9507 haiku*)
9508 # PIC is the default for Haiku.
9509 # The "-static" flag exists, but is broken.
9510 lt_prog_compiler_static=
9511 ;;
9512
9513 hpux*)
9514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9516 # sets the default TLS model and affects inlining.
9517 case $host_cpu in
9518 hppa*64*)
9519 # +Z the default
9520 ;;
9521 *)
9522 lt_prog_compiler_pic='-fPIC'
9523 ;;
9524 esac
9525 ;;
9526
9527 interix[3-9]*)
9528 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9529 # Instead, we relocate shared libraries at runtime.
9530 ;;
9531
9532 msdosdjgpp*)
9533 # Just because we use GCC doesn't mean we suddenly get shared libraries
9534 # on systems that don't support them.
9535 lt_prog_compiler_can_build_shared=no
9536 enable_shared=no
9537 ;;
9538
9539 *nto* | *qnx*)
9540 # QNX uses GNU C++, but need to define -shared option too, otherwise
9541 # it will coredump.
9542 lt_prog_compiler_pic='-fPIC -shared'
9543 ;;
9544
9545 sysv4*MP*)
9546 if test -d /usr/nec; then
9547 lt_prog_compiler_pic=-Kconform_pic
9548 fi
9549 ;;
9550
9551 *)
9552 lt_prog_compiler_pic='-fPIC'
9553 ;;
9554 esac
9555
9556 case $cc_basename in
9557 nvcc*) # Cuda Compiler Driver 2.2
9558 lt_prog_compiler_wl='-Xlinker '
9559 if test -n "$lt_prog_compiler_pic"; then
9560 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9561 fi
9562 ;;
9563 esac
9564 else
9565 # PORTME Check for flag to pass linker flags through the system compiler.
9566 case $host_os in
9567 aix*)
9568 lt_prog_compiler_wl='-Wl,'
9569 if test ia64 = "$host_cpu"; then
9570 # AIX 5 now supports IA64 processor
9571 lt_prog_compiler_static='-Bstatic'
9572 else
9573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9574 fi
9575 ;;
9576
9577 darwin* | rhapsody*)
9578 # PIC is the default on this platform
9579 # Common symbols not allowed in MH_DYLIB files
9580 lt_prog_compiler_pic='-fno-common'
9581 case $cc_basename in
9582 nagfor*)
9583 # NAG Fortran compiler
9584 lt_prog_compiler_wl='-Wl,-Wl,,'
9585 lt_prog_compiler_pic='-PIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 ;;
9588 esac
9589 ;;
9590
9591 mingw* | cygwin* | pw32* | os2* | cegcc*)
9592 # This hack is so that the source file can tell whether it is being
9593 # built for inclusion in a dll (and should export symbols for example).
9594 lt_prog_compiler_pic='-DDLL_EXPORT'
9595 case $host_os in
9596 os2*)
9597 lt_prog_compiler_static='$wl-static'
9598 ;;
9599 esac
9600 ;;
9601
9602 hpux9* | hpux10* | hpux11*)
9603 lt_prog_compiler_wl='-Wl,'
9604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9605 # not for PA HP-UX.
9606 case $host_cpu in
9607 hppa*64*|ia64*)
9608 # +Z the default
9609 ;;
9610 *)
9611 lt_prog_compiler_pic='+Z'
9612 ;;
9613 esac
9614 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9615 lt_prog_compiler_static='$wl-a ${wl}archive'
9616 ;;
9617
9618 irix5* | irix6* | nonstopux*)
9619 lt_prog_compiler_wl='-Wl,'
9620 # PIC (with -KPIC) is the default.
9621 lt_prog_compiler_static='-non_shared'
9622 ;;
9623
9624 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9625 case $cc_basename in
9626 # old Intel for x86_64, which still supported -KPIC.
9627 ecc*)
9628 lt_prog_compiler_wl='-Wl,'
9629 lt_prog_compiler_pic='-KPIC'
9630 lt_prog_compiler_static='-static'
9631 ;;
9632 # icc used to be incompatible with GCC.
9633 # ICC 10 doesn't accept -KPIC any more.
9634 icc* | ifort*)
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-fPIC'
9637 lt_prog_compiler_static='-static'
9638 ;;
9639 # Lahey Fortran 8.1.
9640 lf95*)
9641 lt_prog_compiler_wl='-Wl,'
9642 lt_prog_compiler_pic='--shared'
9643 lt_prog_compiler_static='--static'
9644 ;;
9645 nagfor*)
9646 # NAG Fortran compiler
9647 lt_prog_compiler_wl='-Wl,-Wl,,'
9648 lt_prog_compiler_pic='-PIC'
9649 lt_prog_compiler_static='-Bstatic'
9650 ;;
9651 tcc*)
9652 # Fabrice Bellard et al's Tiny C Compiler
9653 lt_prog_compiler_wl='-Wl,'
9654 lt_prog_compiler_pic='-fPIC'
9655 lt_prog_compiler_static='-static'
9656 ;;
9657 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9658 # Portland Group compilers (*not* the Pentium gcc compiler,
9659 # which looks to be a dead project)
9660 lt_prog_compiler_wl='-Wl,'
9661 lt_prog_compiler_pic='-fpic'
9662 lt_prog_compiler_static='-Bstatic'
9663 ;;
9664 ccc*)
9665 lt_prog_compiler_wl='-Wl,'
9666 # All Alpha code is PIC.
9667 lt_prog_compiler_static='-non_shared'
9668 ;;
9669 xl* | bgxl* | bgf* | mpixl*)
9670 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9671 lt_prog_compiler_wl='-Wl,'
9672 lt_prog_compiler_pic='-qpic'
9673 lt_prog_compiler_static='-qstaticlink'
9674 ;;
9675 *)
9676 case `$CC -V 2>&1 | $SED 5q` in
9677 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9678 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9679 lt_prog_compiler_pic='-KPIC'
9680 lt_prog_compiler_static='-Bstatic'
9681 lt_prog_compiler_wl=''
9682 ;;
9683 *Sun\ F* | *Sun*Fortran*)
9684 lt_prog_compiler_pic='-KPIC'
9685 lt_prog_compiler_static='-Bstatic'
9686 lt_prog_compiler_wl='-Qoption ld '
9687 ;;
9688 *Sun\ C*)
9689 # Sun C 5.9
9690 lt_prog_compiler_pic='-KPIC'
9691 lt_prog_compiler_static='-Bstatic'
9692 lt_prog_compiler_wl='-Wl,'
9693 ;;
9694 *Intel*\ [CF]*Compiler*)
9695 lt_prog_compiler_wl='-Wl,'
9696 lt_prog_compiler_pic='-fPIC'
9697 lt_prog_compiler_static='-static'
9698 ;;
9699 *Portland\ Group*)
9700 lt_prog_compiler_wl='-Wl,'
9701 lt_prog_compiler_pic='-fpic'
9702 lt_prog_compiler_static='-Bstatic'
9703 ;;
9704 esac
9705 ;;
9706 esac
9707 ;;
9708
9709 newsos6)
9710 lt_prog_compiler_pic='-KPIC'
9711 lt_prog_compiler_static='-Bstatic'
9712 ;;
9713
9714 *nto* | *qnx*)
9715 # QNX uses GNU C++, but need to define -shared option too, otherwise
9716 # it will coredump.
9717 lt_prog_compiler_pic='-fPIC -shared'
9718 ;;
9719
9720 osf3* | osf4* | osf5*)
9721 lt_prog_compiler_wl='-Wl,'
9722 # All OSF/1 code is PIC.
9723 lt_prog_compiler_static='-non_shared'
9724 ;;
9725
9726 rdos*)
9727 lt_prog_compiler_static='-non_shared'
9728 ;;
9729
9730 solaris*)
9731 lt_prog_compiler_pic='-KPIC'
9732 lt_prog_compiler_static='-Bstatic'
9733 case $cc_basename in
9734 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9735 lt_prog_compiler_wl='-Qoption ld ';;
9736 *)
9737 lt_prog_compiler_wl='-Wl,';;
9738 esac
9739 ;;
9740
9741 sunos4*)
9742 lt_prog_compiler_wl='-Qoption ld '
9743 lt_prog_compiler_pic='-PIC'
9744 lt_prog_compiler_static='-Bstatic'
9745 ;;
9746
9747 sysv4 | sysv4.2uw2* | sysv4.3*)
9748 lt_prog_compiler_wl='-Wl,'
9749 lt_prog_compiler_pic='-KPIC'
9750 lt_prog_compiler_static='-Bstatic'
9751 ;;
9752
9753 sysv4*MP*)
9754 if test -d /usr/nec; then
9755 lt_prog_compiler_pic='-Kconform_pic'
9756 lt_prog_compiler_static='-Bstatic'
9757 fi
9758 ;;
9759
9760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9761 lt_prog_compiler_wl='-Wl,'
9762 lt_prog_compiler_pic='-KPIC'
9763 lt_prog_compiler_static='-Bstatic'
9764 ;;
9765
9766 unicos*)
9767 lt_prog_compiler_wl='-Wl,'
9768 lt_prog_compiler_can_build_shared=no
9769 ;;
9770
9771 uts4*)
9772 lt_prog_compiler_pic='-pic'
9773 lt_prog_compiler_static='-Bstatic'
9774 ;;
9775
9776 *)
9777 lt_prog_compiler_can_build_shared=no
9778 ;;
9779 esac
9780 fi
9781
9782 case $host_os in
9783 # For platforms that do not support PIC, -DPIC is meaningless:
9784 *djgpp*)
9785 lt_prog_compiler_pic=
9786 ;;
9787 *)
9788 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9789 ;;
9790 esac
9791
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9793 printf %s "checking for $compiler option to produce PIC... " >&6; }
9794 if test ${lt_cv_prog_compiler_pic+y}
9795 then :
9796 printf %s "(cached) " >&6
9797 else $as_nop
9798 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9799 fi
9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9801 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9802 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9803
9804 #
9805 # Check to make sure the PIC flag actually works.
9806 #
9807 if test -n "$lt_prog_compiler_pic"; then
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9809 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9810 if test ${lt_cv_prog_compiler_pic_works+y}
9811 then :
9812 printf %s "(cached) " >&6
9813 else $as_nop
9814 lt_cv_prog_compiler_pic_works=no
9815 ac_outfile=conftest.$ac_objext
9816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9817 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9818 # Insert the option either (1) after the last *FLAGS variable, or
9819 # (2) before a word containing "conftest.", or (3) at the end.
9820 # Note that $ac_compile itself does not contain backslashes and begins
9821 # with a dollar sign (not a hyphen), so the echo should work correctly.
9822 # The option is referenced via a variable to avoid confusing sed.
9823 lt_compile=`echo "$ac_compile" | $SED \
9824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9826 -e 's:$: $lt_compiler_flag:'`
9827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9828 (eval "$lt_compile" 2>conftest.err)
9829 ac_status=$?
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 if (exit $ac_status) && test -s "$ac_outfile"; then
9833 # The compiler can only warn and ignore the option if not recognized
9834 # So say no if there are warnings other than the usual output.
9835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9838 lt_cv_prog_compiler_pic_works=yes
9839 fi
9840 fi
9841 $RM conftest*
9842
9843 fi
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9845 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9846
9847 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9848 case $lt_prog_compiler_pic in
9849 "" | " "*) ;;
9850 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9851 esac
9852 else
9853 lt_prog_compiler_pic=
9854 lt_prog_compiler_can_build_shared=no
9855 fi
9856
9857 fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869 #
9870 # Check to make sure the static flag actually works.
9871 #
9872 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9874 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9875 if test ${lt_cv_prog_compiler_static_works+y}
9876 then :
9877 printf %s "(cached) " >&6
9878 else $as_nop
9879 lt_cv_prog_compiler_static_works=no
9880 save_LDFLAGS=$LDFLAGS
9881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9882 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9884 # The linker can only warn and ignore the option if not recognized
9885 # So say no if there are warnings
9886 if test -s conftest.err; then
9887 # Append any errors to the config.log.
9888 cat conftest.err 1>&5
9889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9891 if diff conftest.exp conftest.er2 >/dev/null; then
9892 lt_cv_prog_compiler_static_works=yes
9893 fi
9894 else
9895 lt_cv_prog_compiler_static_works=yes
9896 fi
9897 fi
9898 $RM -r conftest*
9899 LDFLAGS=$save_LDFLAGS
9900
9901 fi
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9903 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9904
9905 if test yes = "$lt_cv_prog_compiler_static_works"; then
9906 :
9907 else
9908 lt_prog_compiler_static=
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9918 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9919 if test ${lt_cv_prog_compiler_c_o+y}
9920 then :
9921 printf %s "(cached) " >&6
9922 else $as_nop
9923 lt_cv_prog_compiler_c_o=no
9924 $RM -r conftest 2>/dev/null
9925 mkdir conftest
9926 cd conftest
9927 mkdir out
9928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929
9930 lt_compiler_flag="-o out/conftest2.$ac_objext"
9931 # Insert the option either (1) after the last *FLAGS variable, or
9932 # (2) before a word containing "conftest.", or (3) at the end.
9933 # Note that $ac_compile itself does not contain backslashes and begins
9934 # with a dollar sign (not a hyphen), so the echo should work correctly.
9935 lt_compile=`echo "$ac_compile" | $SED \
9936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9938 -e 's:$: $lt_compiler_flag:'`
9939 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9940 (eval "$lt_compile" 2>out/conftest.err)
9941 ac_status=$?
9942 cat out/conftest.err >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9945 then
9946 # The compiler can only warn and ignore the option if not recognized
9947 # So say no if there are warnings
9948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9951 lt_cv_prog_compiler_c_o=yes
9952 fi
9953 fi
9954 chmod u+w . 2>&5
9955 $RM conftest*
9956 # SGI C++ compiler will create directory out/ii_files/ for
9957 # template instantiation
9958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9959 $RM out/* && rmdir out
9960 cd ..
9961 $RM -r conftest
9962 $RM conftest*
9963
9964 fi
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9966 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9967
9968
9969
9970
9971
9972
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9974 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9975 if test ${lt_cv_prog_compiler_c_o+y}
9976 then :
9977 printf %s "(cached) " >&6
9978 else $as_nop
9979 lt_cv_prog_compiler_c_o=no
9980 $RM -r conftest 2>/dev/null
9981 mkdir conftest
9982 cd conftest
9983 mkdir out
9984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9985
9986 lt_compiler_flag="-o out/conftest2.$ac_objext"
9987 # Insert the option either (1) after the last *FLAGS variable, or
9988 # (2) before a word containing "conftest.", or (3) at the end.
9989 # Note that $ac_compile itself does not contain backslashes and begins
9990 # with a dollar sign (not a hyphen), so the echo should work correctly.
9991 lt_compile=`echo "$ac_compile" | $SED \
9992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9994 -e 's:$: $lt_compiler_flag:'`
9995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9996 (eval "$lt_compile" 2>out/conftest.err)
9997 ac_status=$?
9998 cat out/conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10001 then
10002 # The compiler can only warn and ignore the option if not recognized
10003 # So say no if there are warnings
10004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10007 lt_cv_prog_compiler_c_o=yes
10008 fi
10009 fi
10010 chmod u+w . 2>&5
10011 $RM conftest*
10012 # SGI C++ compiler will create directory out/ii_files/ for
10013 # template instantiation
10014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10015 $RM out/* && rmdir out
10016 cd ..
10017 $RM -r conftest
10018 $RM conftest*
10019
10020 fi
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10022 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10023
10024
10025
10026
10027 hard_links=nottested
10028 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10029 # do not overwrite the value of need_locks provided by the user
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10031 printf %s "checking if we can lock with hard links... " >&6; }
10032 hard_links=yes
10033 $RM conftest*
10034 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10035 touch conftest.a
10036 ln conftest.a conftest.b 2>&5 || hard_links=no
10037 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10039 printf "%s\n" "$hard_links" >&6; }
10040 if test no = "$hard_links"; then
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10042 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10043 need_locks=warn
10044 fi
10045 else
10046 need_locks=no
10047 fi
10048
10049
10050
10051
10052
10053
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10055 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10056
10057 runpath_var=
10058 allow_undefined_flag=
10059 always_export_symbols=no
10060 archive_cmds=
10061 archive_expsym_cmds=
10062 compiler_needs_object=no
10063 enable_shared_with_static_runtimes=no
10064 export_dynamic_flag_spec=
10065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10066 hardcode_automatic=no
10067 hardcode_direct=no
10068 hardcode_direct_absolute=no
10069 hardcode_libdir_flag_spec=
10070 hardcode_libdir_separator=
10071 hardcode_minus_L=no
10072 hardcode_shlibpath_var=unsupported
10073 inherit_rpath=no
10074 link_all_deplibs=unknown
10075 module_cmds=
10076 module_expsym_cmds=
10077 old_archive_from_new_cmds=
10078 old_archive_from_expsyms_cmds=
10079 thread_safe_flag_spec=
10080 whole_archive_flag_spec=
10081 # include_expsyms should be a list of space-separated symbols to be *always*
10082 # included in the symbol list
10083 include_expsyms=
10084 # exclude_expsyms can be an extended regexp of symbols to exclude
10085 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10086 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10087 # as well as any symbol that contains 'd'.
10088 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10090 # platforms (ab)use it in PIC code, but their linkers get confused if
10091 # the symbol is explicitly referenced. Since portable code cannot
10092 # rely on this symbol name, it's probably fine to never include it in
10093 # preloaded symbol tables.
10094 # Exclude shared library initialization/finalization symbols.
10095 extract_expsyms_cmds=
10096
10097 case $host_os in
10098 cygwin* | mingw* | pw32* | cegcc*)
10099 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10100 # When not using gcc, we currently assume that we are using
10101 # Microsoft Visual C++ or Intel C++ Compiler.
10102 if test yes != "$GCC"; then
10103 with_gnu_ld=no
10104 fi
10105 ;;
10106 interix*)
10107 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10108 with_gnu_ld=yes
10109 ;;
10110 openbsd* | bitrig*)
10111 with_gnu_ld=no
10112 ;;
10113 esac
10114
10115 ld_shlibs=yes
10116
10117 # On some targets, GNU ld is compatible enough with the native linker
10118 # that we're better off using the native interface for both.
10119 lt_use_gnu_ld_interface=no
10120 if test yes = "$with_gnu_ld"; then
10121 case $host_os in
10122 aix*)
10123 # The AIX port of GNU ld has always aspired to compatibility
10124 # with the native linker. However, as the warning in the GNU ld
10125 # block says, versions before 2.19.5* couldn't really create working
10126 # shared libraries, regardless of the interface used.
10127 case `$LD -v 2>&1` in
10128 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10129 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10130 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10131 *)
10132 lt_use_gnu_ld_interface=yes
10133 ;;
10134 esac
10135 ;;
10136 *)
10137 lt_use_gnu_ld_interface=yes
10138 ;;
10139 esac
10140 fi
10141
10142 if test yes = "$lt_use_gnu_ld_interface"; then
10143 # If archive_cmds runs LD, not CC, wlarc should be empty
10144 wlarc='$wl'
10145
10146 # Set some defaults for GNU ld with shared library support. These
10147 # are reset later if shared libraries are not supported. Putting them
10148 # here allows them to be overridden if necessary.
10149 runpath_var=LD_RUN_PATH
10150 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10151 export_dynamic_flag_spec='$wl--export-dynamic'
10152 # ancient GNU ld didn't support --whole-archive et. al.
10153 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10154 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10155 else
10156 whole_archive_flag_spec=
10157 fi
10158 supports_anon_versioning=no
10159 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10160 *GNU\ gold*) supports_anon_versioning=yes ;;
10161 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10162 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10163 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10164 *\ 2.11.*) ;; # other 2.11 versions
10165 *) supports_anon_versioning=yes ;;
10166 esac
10167
10168 # See if GNU ld supports shared libraries.
10169 case $host_os in
10170 aix[3-9]*)
10171 # On AIX/PPC, the GNU linker is very broken
10172 if test ia64 != "$host_cpu"; then
10173 ld_shlibs=no
10174 cat <<_LT_EOF 1>&2
10175
10176 *** Warning: the GNU linker, at least up to release 2.19, is reported
10177 *** to be unable to reliably create shared libraries on AIX.
10178 *** Therefore, libtool is disabling shared libraries support. If you
10179 *** really care for shared libraries, you may want to install binutils
10180 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10181 *** You will then need to restart the configuration process.
10182
10183 _LT_EOF
10184 fi
10185 ;;
10186
10187 amigaos*)
10188 case $host_cpu in
10189 powerpc)
10190 # see comment about AmigaOS4 .so support
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192 archive_expsym_cmds=''
10193 ;;
10194 m68k)
10195 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)'
10196 hardcode_libdir_flag_spec='-L$libdir'
10197 hardcode_minus_L=yes
10198 ;;
10199 esac
10200 ;;
10201
10202 beos*)
10203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204 allow_undefined_flag=unsupported
10205 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10206 # support --undefined. This deserves some investigation. FIXME
10207 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10208 else
10209 ld_shlibs=no
10210 fi
10211 ;;
10212
10213 cygwin* | mingw* | pw32* | cegcc*)
10214 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10215 # as there is no search path for DLLs.
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 export_dynamic_flag_spec='$wl--export-all-symbols'
10218 allow_undefined_flag=unsupported
10219 always_export_symbols=no
10220 enable_shared_with_static_runtimes=yes
10221 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'
10222 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10223
10224 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10226 # If the export-symbols file already is a .def file, use it as
10227 # is; otherwise, prepend EXPORTS...
10228 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10229 cp $export_symbols $output_objdir/$soname.def;
10230 else
10231 echo EXPORTS > $output_objdir/$soname.def;
10232 cat $export_symbols >> $output_objdir/$soname.def;
10233 fi~
10234 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10235 else
10236 ld_shlibs=no
10237 fi
10238 ;;
10239
10240 haiku*)
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10242 link_all_deplibs=yes
10243 ;;
10244
10245 os2*)
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_minus_L=yes
10248 allow_undefined_flag=unsupported
10249 shrext_cmds=.dll
10250 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10251 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10252 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10253 $ECHO EXPORTS >> $output_objdir/$libname.def~
10254 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10255 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10256 emximp -o $lib $output_objdir/$libname.def'
10257 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10258 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10259 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10260 $ECHO EXPORTS >> $output_objdir/$libname.def~
10261 prefix_cmds="$SED"~
10262 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10263 prefix_cmds="$prefix_cmds -e 1d";
10264 fi~
10265 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10266 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10267 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10268 emximp -o $lib $output_objdir/$libname.def'
10269 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10270 enable_shared_with_static_runtimes=yes
10271 file_list_spec='@'
10272 ;;
10273
10274 interix[3-9]*)
10275 hardcode_direct=no
10276 hardcode_shlibpath_var=no
10277 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10278 export_dynamic_flag_spec='$wl-E'
10279 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10280 # Instead, shared libraries are loaded at an image base (0x10000000 by
10281 # default) and relocated if they conflict, which is a slow very memory
10282 # consuming and fragmenting process. To avoid this, we pick a random,
10283 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10284 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10286 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'
10287 ;;
10288
10289 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10290 tmp_diet=no
10291 if test linux-dietlibc = "$host_os"; then
10292 case $cc_basename in
10293 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10294 esac
10295 fi
10296 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10297 && test no = "$tmp_diet"
10298 then
10299 tmp_addflag=' $pic_flag'
10300 tmp_sharedflag='-shared'
10301 case $cc_basename,$host_cpu in
10302 pgcc*) # Portland Group C compiler
10303 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'
10304 tmp_addflag=' $pic_flag'
10305 ;;
10306 pgf77* | pgf90* | pgf95* | pgfortran*)
10307 # Portland Group f77 and f90 compilers
10308 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'
10309 tmp_addflag=' $pic_flag -Mnomain' ;;
10310 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10311 tmp_addflag=' -i_dynamic' ;;
10312 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10313 tmp_addflag=' -i_dynamic -nofor_main' ;;
10314 ifc* | ifort*) # Intel Fortran compiler
10315 tmp_addflag=' -nofor_main' ;;
10316 lf95*) # Lahey Fortran 8.1
10317 whole_archive_flag_spec=
10318 tmp_sharedflag='--shared' ;;
10319 nagfor*) # NAGFOR 5.3
10320 tmp_sharedflag='-Wl,-shared' ;;
10321 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10322 tmp_sharedflag='-qmkshrobj'
10323 tmp_addflag= ;;
10324 nvcc*) # Cuda Compiler Driver 2.2
10325 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'
10326 compiler_needs_object=yes
10327 ;;
10328 esac
10329 case `$CC -V 2>&1 | $SED 5q` in
10330 *Sun\ C*) # Sun C 5.9
10331 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'
10332 compiler_needs_object=yes
10333 tmp_sharedflag='-G' ;;
10334 *Sun\ F*) # Sun Fortran 8.3
10335 tmp_sharedflag='-G' ;;
10336 esac
10337 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10338
10339 if test yes = "$supports_anon_versioning"; then
10340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10341 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10342 echo "local: *; };" >> $output_objdir/$libname.ver~
10343 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10344 fi
10345
10346 case $cc_basename in
10347 tcc*)
10348 export_dynamic_flag_spec='-rdynamic'
10349 ;;
10350 xlf* | bgf* | bgxlf* | mpixlf*)
10351 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10352 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10354 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10355 if test yes = "$supports_anon_versioning"; then
10356 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10357 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10358 echo "local: *; };" >> $output_objdir/$libname.ver~
10359 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10360 fi
10361 ;;
10362 esac
10363 else
10364 ld_shlibs=no
10365 fi
10366 ;;
10367
10368 netbsd*)
10369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10370 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10371 wlarc=
10372 else
10373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10374 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10375 fi
10376 ;;
10377
10378 solaris*)
10379 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10380 ld_shlibs=no
10381 cat <<_LT_EOF 1>&2
10382
10383 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10384 *** create shared libraries on Solaris systems. Therefore, libtool
10385 *** is disabling shared libraries support. We urge you to upgrade GNU
10386 *** binutils to release 2.9.1 or newer. Another option is to modify
10387 *** your PATH or compiler configuration so that the native linker is
10388 *** used, and then restart.
10389
10390 _LT_EOF
10391 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10392 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10393 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10394 else
10395 ld_shlibs=no
10396 fi
10397 ;;
10398
10399 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10400 case `$LD -v 2>&1` in
10401 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10402 ld_shlibs=no
10403 cat <<_LT_EOF 1>&2
10404
10405 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10406 *** reliably create shared libraries on SCO systems. Therefore, libtool
10407 *** is disabling shared libraries support. We urge you to upgrade GNU
10408 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10409 *** your PATH or compiler configuration so that the native linker is
10410 *** used, and then restart.
10411
10412 _LT_EOF
10413 ;;
10414 *)
10415 # For security reasons, it is highly recommended that you always
10416 # use absolute paths for naming shared libraries, and exclude the
10417 # DT_RUNPATH tag from executables and libraries. But doing so
10418 # requires that you compile everything twice, which is a pain.
10419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10420 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10423 else
10424 ld_shlibs=no
10425 fi
10426 ;;
10427 esac
10428 ;;
10429
10430 sunos4*)
10431 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10432 wlarc=
10433 hardcode_direct=yes
10434 hardcode_shlibpath_var=no
10435 ;;
10436
10437 *)
10438 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10439 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10440 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10441 else
10442 ld_shlibs=no
10443 fi
10444 ;;
10445 esac
10446
10447 if test no = "$ld_shlibs"; then
10448 runpath_var=
10449 hardcode_libdir_flag_spec=
10450 export_dynamic_flag_spec=
10451 whole_archive_flag_spec=
10452 fi
10453 else
10454 # PORTME fill in a description of your system's linker (not GNU ld)
10455 case $host_os in
10456 aix3*)
10457 allow_undefined_flag=unsupported
10458 always_export_symbols=yes
10459 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'
10460 # Note: this linker hardcodes the directories in LIBPATH if there
10461 # are no directories specified by -L.
10462 hardcode_minus_L=yes
10463 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10464 # Neither direct hardcoding nor static linking is supported with a
10465 # broken collect2.
10466 hardcode_direct=unsupported
10467 fi
10468 ;;
10469
10470 aix[4-9]*)
10471 if test ia64 = "$host_cpu"; then
10472 # On IA64, the linker does run time linking by default, so we don't
10473 # have to do anything special.
10474 aix_use_runtimelinking=no
10475 exp_sym_flag='-Bexport'
10476 no_entry_flag=
10477 else
10478 # If we're using GNU nm, then we don't want the "-C" option.
10479 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10480 # Without the "-l" option, or with the "-B" option, AIX nm treats
10481 # weak defined symbols like other global defined symbols, whereas
10482 # GNU nm marks them as "W".
10483 # While the 'weak' keyword is ignored in the Export File, we need
10484 # it in the Import File for the 'aix-soname' feature, so we have
10485 # to replace the "-B" option with "-P" for AIX nm.
10486 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10487 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'
10488 else
10489 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'
10490 fi
10491 aix_use_runtimelinking=no
10492
10493 # Test if we are trying to use run time linking or normal
10494 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10495 # have runtime linking enabled, and use it for executables.
10496 # For shared libraries, we enable/disable runtime linking
10497 # depending on the kind of the shared library created -
10498 # when "with_aix_soname,aix_use_runtimelinking" is:
10499 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10500 # "aix,yes" lib.so shared, rtl:yes, for executables
10501 # lib.a static archive
10502 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10503 # lib.a(lib.so.V) shared, rtl:no, for executables
10504 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10505 # lib.a(lib.so.V) shared, rtl:no
10506 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10507 # lib.a static archive
10508 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10509 for ld_flag in $LDFLAGS; do
10510 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10511 aix_use_runtimelinking=yes
10512 break
10513 fi
10514 done
10515 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10516 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10517 # so we don't have lib.a shared libs to link our executables.
10518 # We have to force runtime linking in this case.
10519 aix_use_runtimelinking=yes
10520 LDFLAGS="$LDFLAGS -Wl,-brtl"
10521 fi
10522 ;;
10523 esac
10524
10525 exp_sym_flag='-bexport'
10526 no_entry_flag='-bnoentry'
10527 fi
10528
10529 # When large executables or shared objects are built, AIX ld can
10530 # have problems creating the table of contents. If linking a library
10531 # or program results in "error TOC overflow" add -mminimal-toc to
10532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10534
10535 archive_cmds=''
10536 hardcode_direct=yes
10537 hardcode_direct_absolute=yes
10538 hardcode_libdir_separator=':'
10539 link_all_deplibs=yes
10540 file_list_spec='$wl-f,'
10541 case $with_aix_soname,$aix_use_runtimelinking in
10542 aix,*) ;; # traditional, no import file
10543 svr4,* | *,yes) # use import file
10544 # The Import File defines what to hardcode.
10545 hardcode_direct=no
10546 hardcode_direct_absolute=no
10547 ;;
10548 esac
10549
10550 if test yes = "$GCC"; then
10551 case $host_os in aix4.[012]|aix4.[012].*)
10552 # We only want to do this on AIX 4.2 and lower, the check
10553 # below for broken collect2 doesn't work under 4.3+
10554 collect2name=`$CC -print-prog-name=collect2`
10555 if test -f "$collect2name" &&
10556 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10557 then
10558 # We have reworked collect2
10559 :
10560 else
10561 # We have old collect2
10562 hardcode_direct=unsupported
10563 # It fails to find uninstalled libraries when the uninstalled
10564 # path is not listed in the libpath. Setting hardcode_minus_L
10565 # to unsupported forces relinking
10566 hardcode_minus_L=yes
10567 hardcode_libdir_flag_spec='-L$libdir'
10568 hardcode_libdir_separator=
10569 fi
10570 ;;
10571 esac
10572 shared_flag='-shared'
10573 if test yes = "$aix_use_runtimelinking"; then
10574 shared_flag="$shared_flag "'$wl-G'
10575 fi
10576 # Need to ensure runtime linking is disabled for the traditional
10577 # shared library, or the linker may eventually find shared libraries
10578 # /with/ Import File - we do not want to mix them.
10579 shared_flag_aix='-shared'
10580 shared_flag_svr4='-shared $wl-G'
10581 else
10582 # not using gcc
10583 if test ia64 = "$host_cpu"; then
10584 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10585 # chokes on -Wl,-G. The following line is correct:
10586 shared_flag='-G'
10587 else
10588 if test yes = "$aix_use_runtimelinking"; then
10589 shared_flag='$wl-G'
10590 else
10591 shared_flag='$wl-bM:SRE'
10592 fi
10593 shared_flag_aix='$wl-bM:SRE'
10594 shared_flag_svr4='$wl-G'
10595 fi
10596 fi
10597
10598 export_dynamic_flag_spec='$wl-bexpall'
10599 # It seems that -bexpall does not export symbols beginning with
10600 # underscore (_), so it is better to generate a list of symbols to export.
10601 always_export_symbols=yes
10602 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10603 # Warning - without using the other runtime loading flags (-brtl),
10604 # -berok will link without error, but may produce a broken library.
10605 allow_undefined_flag='-berok'
10606 # Determine the default libpath from the value encoded in an
10607 # empty executable.
10608 if test set = "${lt_cv_aix_libpath+set}"; then
10609 aix_libpath=$lt_cv_aix_libpath
10610 else
10611 if test ${lt_cv_aix_libpath_+y}
10612 then :
10613 printf %s "(cached) " >&6
10614 else $as_nop
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617
10618 int
10619 main (void)
10620 {
10621
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 if ac_fn_c_try_link "$LINENO"
10627 then :
10628
10629 lt_aix_libpath_sed='
10630 /Import File Strings/,/^$/ {
10631 /^0/ {
10632 s/^0 *\([^ ]*\) *$/\1/
10633 p
10634 }
10635 }'
10636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10637 # Check for a 64-bit object if we didn't find anything.
10638 if test -z "$lt_cv_aix_libpath_"; then
10639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10640 fi
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10643 conftest$ac_exeext conftest.$ac_ext
10644 if test -z "$lt_cv_aix_libpath_"; then
10645 lt_cv_aix_libpath_=/usr/lib:/lib
10646 fi
10647
10648 fi
10649
10650 aix_libpath=$lt_cv_aix_libpath_
10651 fi
10652
10653 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10654 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
10655 else
10656 if test ia64 = "$host_cpu"; then
10657 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10658 allow_undefined_flag="-z nodefs"
10659 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"
10660 else
10661 # Determine the default libpath from the value encoded in an
10662 # empty executable.
10663 if test set = "${lt_cv_aix_libpath+set}"; then
10664 aix_libpath=$lt_cv_aix_libpath
10665 else
10666 if test ${lt_cv_aix_libpath_+y}
10667 then :
10668 printf %s "(cached) " >&6
10669 else $as_nop
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672
10673 int
10674 main (void)
10675 {
10676
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"
10682 then :
10683
10684 lt_aix_libpath_sed='
10685 /Import File Strings/,/^$/ {
10686 /^0/ {
10687 s/^0 *\([^ ]*\) *$/\1/
10688 p
10689 }
10690 }'
10691 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10692 # Check for a 64-bit object if we didn't find anything.
10693 if test -z "$lt_cv_aix_libpath_"; then
10694 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10695 fi
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10698 conftest$ac_exeext conftest.$ac_ext
10699 if test -z "$lt_cv_aix_libpath_"; then
10700 lt_cv_aix_libpath_=/usr/lib:/lib
10701 fi
10702
10703 fi
10704
10705 aix_libpath=$lt_cv_aix_libpath_
10706 fi
10707
10708 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10709 # Warning - without using the other run time loading flags,
10710 # -berok will link without error, but may produce a broken library.
10711 no_undefined_flag=' $wl-bernotok'
10712 allow_undefined_flag=' $wl-berok'
10713 if test yes = "$with_gnu_ld"; then
10714 # We only use this code for GNU lds that support --whole-archive.
10715 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10716 else
10717 # Exported symbols can be pulled into shared objects from archives
10718 whole_archive_flag_spec='$convenience'
10719 fi
10720 archive_cmds_need_lc=yes
10721 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10722 # -brtl affects multiple linker settings, -berok does not and is overridden later
10723 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10724 if test svr4 != "$with_aix_soname"; then
10725 # This is similar to how AIX traditionally builds its shared libraries.
10726 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'
10727 fi
10728 if test aix != "$with_aix_soname"; then
10729 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'
10730 else
10731 # used by -dlpreopen to get the symbols
10732 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10733 fi
10734 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10735 fi
10736 fi
10737 ;;
10738
10739 amigaos*)
10740 case $host_cpu in
10741 powerpc)
10742 # see comment about AmigaOS4 .so support
10743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10744 archive_expsym_cmds=''
10745 ;;
10746 m68k)
10747 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)'
10748 hardcode_libdir_flag_spec='-L$libdir'
10749 hardcode_minus_L=yes
10750 ;;
10751 esac
10752 ;;
10753
10754 bsdi[45]*)
10755 export_dynamic_flag_spec=-rdynamic
10756 ;;
10757
10758 cygwin* | mingw* | pw32* | cegcc*)
10759 # When not using gcc, we currently assume that we are using
10760 # Microsoft Visual C++ or Intel C++ Compiler.
10761 # hardcode_libdir_flag_spec is actually meaningless, as there is
10762 # no search path for DLLs.
10763 case $cc_basename in
10764 cl* | icl*)
10765 # Native MSVC or ICC
10766 hardcode_libdir_flag_spec=' '
10767 allow_undefined_flag=unsupported
10768 always_export_symbols=yes
10769 file_list_spec='@'
10770 # Tell ltmain to make .lib files, not .a files.
10771 libext=lib
10772 # Tell ltmain to make .dll files, not .so files.
10773 shrext_cmds=.dll
10774 # FIXME: Setting linknames here is a bad hack.
10775 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10776 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10777 cp "$export_symbols" "$output_objdir/$soname.def";
10778 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10779 else
10780 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10781 fi~
10782 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10783 linknames='
10784 # The linker will not automatically build a static lib if we build a DLL.
10785 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10786 enable_shared_with_static_runtimes=yes
10787 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10789 # Don't use ranlib
10790 old_postinstall_cmds='chmod 644 $oldlib'
10791 postlink_cmds='lt_outputfile="@OUTPUT@"~
10792 lt_tool_outputfile="@TOOL_OUTPUT@"~
10793 case $lt_outputfile in
10794 *.exe|*.EXE) ;;
10795 *)
10796 lt_outputfile=$lt_outputfile.exe
10797 lt_tool_outputfile=$lt_tool_outputfile.exe
10798 ;;
10799 esac~
10800 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10801 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10802 $RM "$lt_outputfile.manifest";
10803 fi'
10804 ;;
10805 *)
10806 # Assume MSVC and ICC wrapper
10807 hardcode_libdir_flag_spec=' '
10808 allow_undefined_flag=unsupported
10809 # Tell ltmain to make .lib files, not .a files.
10810 libext=lib
10811 # Tell ltmain to make .dll files, not .so files.
10812 shrext_cmds=.dll
10813 # FIXME: Setting linknames here is a bad hack.
10814 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10815 # The linker will automatically build a .lib file if we build a DLL.
10816 old_archive_from_new_cmds='true'
10817 # FIXME: Should let the user specify the lib program.
10818 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10819 enable_shared_with_static_runtimes=yes
10820 ;;
10821 esac
10822 ;;
10823
10824 darwin* | rhapsody*)
10825
10826
10827 archive_cmds_need_lc=no
10828 hardcode_direct=no
10829 hardcode_automatic=yes
10830 hardcode_shlibpath_var=unsupported
10831 if test yes = "$lt_cv_ld_force_load"; then
10832 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\"`'
10833
10834 else
10835 whole_archive_flag_spec=''
10836 fi
10837 link_all_deplibs=yes
10838 allow_undefined_flag=$_lt_dar_allow_undefined
10839 case $cc_basename in
10840 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10841 *) _lt_dar_can_shared=$GCC ;;
10842 esac
10843 if test yes = "$_lt_dar_can_shared"; then
10844 output_verbose_link_cmd=func_echo_all
10845 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10846 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10847 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"
10848 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"
10849
10850 else
10851 ld_shlibs=no
10852 fi
10853
10854 ;;
10855
10856 dgux*)
10857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_shlibpath_var=no
10860 ;;
10861
10862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10863 # support. Future versions do this automatically, but an explicit c++rt0.o
10864 # does not break anything, and helps significantly (at the cost of a little
10865 # extra space).
10866 freebsd2.2*)
10867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10868 hardcode_libdir_flag_spec='-R$libdir'
10869 hardcode_direct=yes
10870 hardcode_shlibpath_var=no
10871 ;;
10872
10873 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10874 freebsd2.*)
10875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_direct=yes
10877 hardcode_minus_L=yes
10878 hardcode_shlibpath_var=no
10879 ;;
10880
10881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10882 freebsd* | dragonfly* | midnightbsd*)
10883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10884 hardcode_libdir_flag_spec='-R$libdir'
10885 hardcode_direct=yes
10886 hardcode_shlibpath_var=no
10887 ;;
10888
10889 hpux9*)
10890 if test yes = "$GCC"; then
10891 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'
10892 else
10893 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'
10894 fi
10895 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10896 hardcode_libdir_separator=:
10897 hardcode_direct=yes
10898
10899 # hardcode_minus_L: Not really in the search PATH,
10900 # but as the default location of the library.
10901 hardcode_minus_L=yes
10902 export_dynamic_flag_spec='$wl-E'
10903 ;;
10904
10905 hpux10*)
10906 if test yes,no = "$GCC,$with_gnu_ld"; then
10907 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10908 else
10909 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10910 fi
10911 if test no = "$with_gnu_ld"; then
10912 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10913 hardcode_libdir_separator=:
10914 hardcode_direct=yes
10915 hardcode_direct_absolute=yes
10916 export_dynamic_flag_spec='$wl-E'
10917 # hardcode_minus_L: Not really in the search PATH,
10918 # but as the default location of the library.
10919 hardcode_minus_L=yes
10920 fi
10921 ;;
10922
10923 hpux11*)
10924 if test yes,no = "$GCC,$with_gnu_ld"; then
10925 case $host_cpu in
10926 hppa*64*)
10927 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 ;;
10929 ia64*)
10930 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10931 ;;
10932 *)
10933 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10934 ;;
10935 esac
10936 else
10937 case $host_cpu in
10938 hppa*64*)
10939 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10940 ;;
10941 ia64*)
10942 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10943 ;;
10944 *)
10945
10946 # Older versions of the 11.00 compiler do not understand -b yet
10947 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10949 printf %s "checking if $CC understands -b... " >&6; }
10950 if test ${lt_cv_prog_compiler__b+y}
10951 then :
10952 printf %s "(cached) " >&6
10953 else $as_nop
10954 lt_cv_prog_compiler__b=no
10955 save_LDFLAGS=$LDFLAGS
10956 LDFLAGS="$LDFLAGS -b"
10957 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10959 # The linker can only warn and ignore the option if not recognized
10960 # So say no if there are warnings
10961 if test -s conftest.err; then
10962 # Append any errors to the config.log.
10963 cat conftest.err 1>&5
10964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10966 if diff conftest.exp conftest.er2 >/dev/null; then
10967 lt_cv_prog_compiler__b=yes
10968 fi
10969 else
10970 lt_cv_prog_compiler__b=yes
10971 fi
10972 fi
10973 $RM -r conftest*
10974 LDFLAGS=$save_LDFLAGS
10975
10976 fi
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10978 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10979
10980 if test yes = "$lt_cv_prog_compiler__b"; then
10981 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10982 else
10983 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10984 fi
10985
10986 ;;
10987 esac
10988 fi
10989 if test no = "$with_gnu_ld"; then
10990 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10991 hardcode_libdir_separator=:
10992
10993 case $host_cpu in
10994 hppa*64*|ia64*)
10995 hardcode_direct=no
10996 hardcode_shlibpath_var=no
10997 ;;
10998 *)
10999 hardcode_direct=yes
11000 hardcode_direct_absolute=yes
11001 export_dynamic_flag_spec='$wl-E'
11002
11003 # hardcode_minus_L: Not really in the search PATH,
11004 # but as the default location of the library.
11005 hardcode_minus_L=yes
11006 ;;
11007 esac
11008 fi
11009 ;;
11010
11011 irix5* | irix6* | nonstopux*)
11012 if test yes = "$GCC"; then
11013 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'
11014 # Try to use the -exported_symbol ld option, if it does not
11015 # work, assume that -exports_file does not work either and
11016 # implicitly export all symbols.
11017 # This should be the same for all languages, so no per-tag cache variable.
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11019 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11020 if test ${lt_cv_irix_exported_symbol+y}
11021 then :
11022 printf %s "(cached) " >&6
11023 else $as_nop
11024 save_LDFLAGS=$LDFLAGS
11025 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028 int foo (void) { return 0; }
11029 _ACEOF
11030 if ac_fn_c_try_link "$LINENO"
11031 then :
11032 lt_cv_irix_exported_symbol=yes
11033 else $as_nop
11034 lt_cv_irix_exported_symbol=no
11035 fi
11036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11037 conftest$ac_exeext conftest.$ac_ext
11038 LDFLAGS=$save_LDFLAGS
11039 fi
11040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11041 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11042 if test yes = "$lt_cv_irix_exported_symbol"; then
11043 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'
11044 fi
11045 else
11046 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'
11047 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'
11048 fi
11049 archive_cmds_need_lc='no'
11050 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11051 hardcode_libdir_separator=:
11052 inherit_rpath=yes
11053 link_all_deplibs=yes
11054 ;;
11055
11056 linux*)
11057 case $cc_basename in
11058 tcc*)
11059 # Fabrice Bellard et al's Tiny C Compiler
11060 ld_shlibs=yes
11061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11062 ;;
11063 esac
11064 ;;
11065
11066 netbsd*)
11067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11069 else
11070 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11071 fi
11072 hardcode_libdir_flag_spec='-R$libdir'
11073 hardcode_direct=yes
11074 hardcode_shlibpath_var=no
11075 ;;
11076
11077 newsos6)
11078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11079 hardcode_direct=yes
11080 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11081 hardcode_libdir_separator=:
11082 hardcode_shlibpath_var=no
11083 ;;
11084
11085 *nto* | *qnx*)
11086 ;;
11087
11088 openbsd* | bitrig*)
11089 if test -f /usr/libexec/ld.so; then
11090 hardcode_direct=yes
11091 hardcode_shlibpath_var=no
11092 hardcode_direct_absolute=yes
11093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11096 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11097 export_dynamic_flag_spec='$wl-E'
11098 else
11099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11100 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11101 fi
11102 else
11103 ld_shlibs=no
11104 fi
11105 ;;
11106
11107 os2*)
11108 hardcode_libdir_flag_spec='-L$libdir'
11109 hardcode_minus_L=yes
11110 allow_undefined_flag=unsupported
11111 shrext_cmds=.dll
11112 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11113 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11114 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11115 $ECHO EXPORTS >> $output_objdir/$libname.def~
11116 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11118 emximp -o $lib $output_objdir/$libname.def'
11119 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11120 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11121 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11122 $ECHO EXPORTS >> $output_objdir/$libname.def~
11123 prefix_cmds="$SED"~
11124 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11125 prefix_cmds="$prefix_cmds -e 1d";
11126 fi~
11127 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11128 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11129 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11130 emximp -o $lib $output_objdir/$libname.def'
11131 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11132 enable_shared_with_static_runtimes=yes
11133 file_list_spec='@'
11134 ;;
11135
11136 osf3*)
11137 if test yes = "$GCC"; then
11138 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11139 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'
11140 else
11141 allow_undefined_flag=' -expect_unresolved \*'
11142 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'
11143 fi
11144 archive_cmds_need_lc='no'
11145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11146 hardcode_libdir_separator=:
11147 ;;
11148
11149 osf4* | osf5*) # as osf3* with the addition of -msym flag
11150 if test yes = "$GCC"; then
11151 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11152 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'
11153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11154 else
11155 allow_undefined_flag=' -expect_unresolved \*'
11156 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'
11157 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~
11158 $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'
11159
11160 # Both c and cxx compiler support -rpath directly
11161 hardcode_libdir_flag_spec='-rpath $libdir'
11162 fi
11163 archive_cmds_need_lc='no'
11164 hardcode_libdir_separator=:
11165 ;;
11166
11167 solaris*)
11168 no_undefined_flag=' -z defs'
11169 if test yes = "$GCC"; then
11170 wlarc='$wl'
11171 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11173 $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'
11174 else
11175 case `$CC -V 2>&1` in
11176 *"Compilers 5.0"*)
11177 wlarc=''
11178 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11180 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11181 ;;
11182 *)
11183 wlarc='$wl'
11184 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11186 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11187 ;;
11188 esac
11189 fi
11190 hardcode_libdir_flag_spec='-R$libdir'
11191 hardcode_shlibpath_var=no
11192 case $host_os in
11193 solaris2.[0-5] | solaris2.[0-5].*) ;;
11194 *)
11195 # The compiler driver will combine and reorder linker options,
11196 # but understands '-z linker_flag'. GCC discards it without '$wl',
11197 # but is careful enough not to reorder.
11198 # Supported since Solaris 2.6 (maybe 2.5.1?)
11199 if test yes = "$GCC"; then
11200 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11201 else
11202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11203 fi
11204 ;;
11205 esac
11206 link_all_deplibs=yes
11207 ;;
11208
11209 sunos4*)
11210 if test sequent = "$host_vendor"; then
11211 # Use $CC to link under sequent, because it throws in some extra .o
11212 # files that make .init and .fini sections work.
11213 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11214 else
11215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11216 fi
11217 hardcode_libdir_flag_spec='-L$libdir'
11218 hardcode_direct=yes
11219 hardcode_minus_L=yes
11220 hardcode_shlibpath_var=no
11221 ;;
11222
11223 sysv4)
11224 case $host_vendor in
11225 sni)
11226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_direct=yes # is this really true???
11228 ;;
11229 siemens)
11230 ## LD is ld it makes a PLAMLIB
11231 ## CC just makes a GrossModule.
11232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11233 reload_cmds='$CC -r -o $output$reload_objs'
11234 hardcode_direct=no
11235 ;;
11236 motorola)
11237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11239 ;;
11240 esac
11241 runpath_var='LD_RUN_PATH'
11242 hardcode_shlibpath_var=no
11243 ;;
11244
11245 sysv4.3*)
11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247 hardcode_shlibpath_var=no
11248 export_dynamic_flag_spec='-Bexport'
11249 ;;
11250
11251 sysv4*MP*)
11252 if test -d /usr/nec; then
11253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11254 hardcode_shlibpath_var=no
11255 runpath_var=LD_RUN_PATH
11256 hardcode_runpath_var=yes
11257 ld_shlibs=yes
11258 fi
11259 ;;
11260
11261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11262 no_undefined_flag='$wl-z,text'
11263 archive_cmds_need_lc=no
11264 hardcode_shlibpath_var=no
11265 runpath_var='LD_RUN_PATH'
11266
11267 if test yes = "$GCC"; then
11268 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11270 else
11271 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11273 fi
11274 ;;
11275
11276 sysv5* | sco3.2v5* | sco5v6*)
11277 # Note: We CANNOT use -z defs as we might desire, because we do not
11278 # link with -lc, and that would cause any symbols used from libc to
11279 # always be unresolved, which means just about no library would
11280 # ever link correctly. If we're not using GNU ld we use -z text
11281 # though, which does catch some bad symbols but isn't as heavy-handed
11282 # as -z defs.
11283 no_undefined_flag='$wl-z,text'
11284 allow_undefined_flag='$wl-z,nodefs'
11285 archive_cmds_need_lc=no
11286 hardcode_shlibpath_var=no
11287 hardcode_libdir_flag_spec='$wl-R,$libdir'
11288 hardcode_libdir_separator=':'
11289 link_all_deplibs=yes
11290 export_dynamic_flag_spec='$wl-Bexport'
11291 runpath_var='LD_RUN_PATH'
11292
11293 if test yes = "$GCC"; then
11294 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11296 else
11297 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11299 fi
11300 ;;
11301
11302 uts4*)
11303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304 hardcode_libdir_flag_spec='-L$libdir'
11305 hardcode_shlibpath_var=no
11306 ;;
11307
11308 *)
11309 ld_shlibs=no
11310 ;;
11311 esac
11312
11313 if test sni = "$host_vendor"; then
11314 case $host in
11315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11316 export_dynamic_flag_spec='$wl-Blargedynsym'
11317 ;;
11318 esac
11319 fi
11320 fi
11321
11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11323 printf "%s\n" "$ld_shlibs" >&6; }
11324 test no = "$ld_shlibs" && can_build_shared=no
11325
11326 with_gnu_ld=$with_gnu_ld
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342 #
11343 # Do we need to explicitly link libc?
11344 #
11345 case "x$archive_cmds_need_lc" in
11346 x|xyes)
11347 # Assume -lc should be added
11348 archive_cmds_need_lc=yes
11349
11350 if test yes,yes = "$GCC,$enable_shared"; then
11351 case $archive_cmds in
11352 *'~'*)
11353 # FIXME: we may have to deal with multi-command sequences.
11354 ;;
11355 '$CC '*)
11356 # Test whether the compiler implicitly links with -lc since on some
11357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11358 # to ld, don't add -lc before -lgcc.
11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11360 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11361 if test ${lt_cv_archive_cmds_need_lc+y}
11362 then :
11363 printf %s "(cached) " >&6
11364 else $as_nop
11365 $RM conftest*
11366 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11367
11368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11369 (eval $ac_compile) 2>&5
11370 ac_status=$?
11371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372 test $ac_status = 0; } 2>conftest.err; then
11373 soname=conftest
11374 lib=conftest
11375 libobjs=conftest.$ac_objext
11376 deplibs=
11377 wl=$lt_prog_compiler_wl
11378 pic_flag=$lt_prog_compiler_pic
11379 compiler_flags=-v
11380 linker_flags=-v
11381 verstring=
11382 output_objdir=.
11383 libname=conftest
11384 lt_save_allow_undefined_flag=$allow_undefined_flag
11385 allow_undefined_flag=
11386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11387 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11388 ac_status=$?
11389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11390 test $ac_status = 0; }
11391 then
11392 lt_cv_archive_cmds_need_lc=no
11393 else
11394 lt_cv_archive_cmds_need_lc=yes
11395 fi
11396 allow_undefined_flag=$lt_save_allow_undefined_flag
11397 else
11398 cat conftest.err 1>&5
11399 fi
11400 $RM conftest*
11401
11402 fi
11403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11404 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11405 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11406 ;;
11407 esac
11408 fi
11409 ;;
11410 esac
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
11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11564 printf %s "checking dynamic linker characteristics... " >&6; }
11565
11566 if test yes = "$GCC"; then
11567 case $host_os in
11568 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11569 *) lt_awk_arg='/^libraries:/' ;;
11570 esac
11571 case $host_os in
11572 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11573 *) lt_sed_strip_eq='s|=/|/|g' ;;
11574 esac
11575 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11576 case $lt_search_path_spec in
11577 *\;*)
11578 # if the path contains ";" then we assume it to be the separator
11579 # otherwise default to the standard path separator (i.e. ":") - it is
11580 # assumed that no part of a normal pathname contains ";" but that should
11581 # okay in the real world where ";" in dirpaths is itself problematic.
11582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11583 ;;
11584 *)
11585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11586 ;;
11587 esac
11588 # Ok, now we have the path, separated by spaces, we can step through it
11589 # and add multilib dir if necessary...
11590 lt_tmp_lt_search_path_spec=
11591 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11592 # ...but if some path component already ends with the multilib dir we assume
11593 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11594 case "$lt_multi_os_dir; $lt_search_path_spec " in
11595 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11596 lt_multi_os_dir=
11597 ;;
11598 esac
11599 for lt_sys_path in $lt_search_path_spec; do
11600 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11602 elif test -n "$lt_multi_os_dir"; then
11603 test -d "$lt_sys_path" && \
11604 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11605 fi
11606 done
11607 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11608 BEGIN {RS = " "; FS = "/|\n";} {
11609 lt_foo = "";
11610 lt_count = 0;
11611 for (lt_i = NF; lt_i > 0; lt_i--) {
11612 if ($lt_i != "" && $lt_i != ".") {
11613 if ($lt_i == "..") {
11614 lt_count++;
11615 } else {
11616 if (lt_count == 0) {
11617 lt_foo = "/" $lt_i lt_foo;
11618 } else {
11619 lt_count--;
11620 }
11621 }
11622 }
11623 }
11624 if (lt_foo != "") { lt_freq[lt_foo]++; }
11625 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11626 }'`
11627 # AWK program above erroneously prepends '/' to C:/dos/paths
11628 # for these hosts.
11629 case $host_os in
11630 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11631 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11632 esac
11633 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11634 else
11635 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11636 fi
11637 library_names_spec=
11638 libname_spec='lib$name'
11639 soname_spec=
11640 shrext_cmds=.so
11641 postinstall_cmds=
11642 postuninstall_cmds=
11643 finish_cmds=
11644 finish_eval=
11645 shlibpath_var=
11646 shlibpath_overrides_runpath=unknown
11647 version_type=none
11648 dynamic_linker="$host_os ld.so"
11649 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11650 need_lib_prefix=unknown
11651 hardcode_into_libs=no
11652
11653 # when you set need_version to no, make sure it does not cause -set_version
11654 # flags to be left without arguments
11655 need_version=unknown
11656
11657
11658
11659 case $host_os in
11660 aix3*)
11661 version_type=linux # correct to gnu/linux during the next big refactor
11662 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11663 shlibpath_var=LIBPATH
11664
11665 # AIX 3 has no versioning support, so we append a major version to the name.
11666 soname_spec='$libname$release$shared_ext$major'
11667 ;;
11668
11669 aix[4-9]*)
11670 version_type=linux # correct to gnu/linux during the next big refactor
11671 need_lib_prefix=no
11672 need_version=no
11673 hardcode_into_libs=yes
11674 if test ia64 = "$host_cpu"; then
11675 # AIX 5 supports IA64
11676 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11677 shlibpath_var=LD_LIBRARY_PATH
11678 else
11679 # With GCC up to 2.95.x, collect2 would create an import file
11680 # for dependence libraries. The import file would start with
11681 # the line '#! .'. This would cause the generated library to
11682 # depend on '.', always an invalid library. This was fixed in
11683 # development snapshots of GCC prior to 3.0.
11684 case $host_os in
11685 aix4 | aix4.[01] | aix4.[01].*)
11686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11687 echo ' yes '
11688 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11689 :
11690 else
11691 can_build_shared=no
11692 fi
11693 ;;
11694 esac
11695 # Using Import Files as archive members, it is possible to support
11696 # filename-based versioning of shared library archives on AIX. While
11697 # this would work for both with and without runtime linking, it will
11698 # prevent static linking of such archives. So we do filename-based
11699 # shared library versioning with .so extension only, which is used
11700 # when both runtime linking and shared linking is enabled.
11701 # Unfortunately, runtime linking may impact performance, so we do
11702 # not want this to be the default eventually. Also, we use the
11703 # versioned .so libs for executables only if there is the -brtl
11704 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11705 # To allow for filename-based versioning support, we need to create
11706 # libNAME.so.V as an archive file, containing:
11707 # *) an Import File, referring to the versioned filename of the
11708 # archive as well as the shared archive member, telling the
11709 # bitwidth (32 or 64) of that shared object, and providing the
11710 # list of exported symbols of that shared object, eventually
11711 # decorated with the 'weak' keyword
11712 # *) the shared object with the F_LOADONLY flag set, to really avoid
11713 # it being seen by the linker.
11714 # At run time we better use the real file rather than another symlink,
11715 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11716
11717 case $with_aix_soname,$aix_use_runtimelinking in
11718 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11719 # soname into executable. Probably we can add versioning support to
11720 # collect2, so additional links can be useful in future.
11721 aix,yes) # traditional libtool
11722 dynamic_linker='AIX unversionable lib.so'
11723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11724 # instead of lib<name>.a to let people know that these are not
11725 # typical AIX shared libraries.
11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11727 ;;
11728 aix,no) # traditional AIX only
11729 dynamic_linker='AIX lib.a(lib.so.V)'
11730 # We preserve .a as extension for shared libraries through AIX4.2
11731 # and later when we are not doing run time linking.
11732 library_names_spec='$libname$release.a $libname.a'
11733 soname_spec='$libname$release$shared_ext$major'
11734 ;;
11735 svr4,*) # full svr4 only
11736 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11737 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11738 # We do not specify a path in Import Files, so LIBPATH fires.
11739 shlibpath_overrides_runpath=yes
11740 ;;
11741 *,yes) # both, prefer svr4
11742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11744 # unpreferred sharedlib libNAME.a needs extra handling
11745 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"'
11746 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"'
11747 # We do not specify a path in Import Files, so LIBPATH fires.
11748 shlibpath_overrides_runpath=yes
11749 ;;
11750 *,no) # both, prefer aix
11751 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11752 library_names_spec='$libname$release.a $libname.a'
11753 soname_spec='$libname$release$shared_ext$major'
11754 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11755 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)'
11756 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"'
11757 ;;
11758 esac
11759 shlibpath_var=LIBPATH
11760 fi
11761 ;;
11762
11763 amigaos*)
11764 case $host_cpu in
11765 powerpc)
11766 # Since July 2007 AmigaOS4 officially supports .so libraries.
11767 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11769 ;;
11770 m68k)
11771 library_names_spec='$libname.ixlibrary $libname.a'
11772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11773 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'
11774 ;;
11775 esac
11776 ;;
11777
11778 beos*)
11779 library_names_spec='$libname$shared_ext'
11780 dynamic_linker="$host_os ld.so"
11781 shlibpath_var=LIBRARY_PATH
11782 ;;
11783
11784 bsdi[45]*)
11785 version_type=linux # correct to gnu/linux during the next big refactor
11786 need_version=no
11787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11788 soname_spec='$libname$release$shared_ext$major'
11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11793 # the default ld.so.conf also contains /usr/contrib/lib and
11794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11795 # libtool to hard-code these into programs
11796 ;;
11797
11798 cygwin* | mingw* | pw32* | cegcc*)
11799 version_type=windows
11800 shrext_cmds=.dll
11801 need_version=no
11802 need_lib_prefix=no
11803
11804 case $GCC,$cc_basename in
11805 yes,*)
11806 # gcc
11807 library_names_spec='$libname.dll.a'
11808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11809 postinstall_cmds='base_file=`basename \$file`~
11810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11811 dldir=$destdir/`dirname \$dlpath`~
11812 test -d \$dldir || mkdir -p \$dldir~
11813 $install_prog $dir/$dlname \$dldir/$dlname~
11814 chmod a+x \$dldir/$dlname~
11815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11817 fi'
11818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11819 dlpath=$dir/\$dldll~
11820 $RM \$dlpath'
11821 shlibpath_overrides_runpath=yes
11822
11823 case $host_os in
11824 cygwin*)
11825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11826 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11827
11828 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11829 ;;
11830 mingw* | cegcc*)
11831 # MinGW DLLs use traditional 'lib' prefix
11832 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11833 ;;
11834 pw32*)
11835 # pw32 DLLs use 'pw' prefix rather than 'lib'
11836 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11837 ;;
11838 esac
11839 dynamic_linker='Win32 ld.exe'
11840 ;;
11841
11842 *,cl* | *,icl*)
11843 # Native MSVC or ICC
11844 libname_spec='$name'
11845 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11846 library_names_spec='$libname.dll.lib'
11847
11848 case $build_os in
11849 mingw*)
11850 sys_lib_search_path_spec=
11851 lt_save_ifs=$IFS
11852 IFS=';'
11853 for lt_path in $LIB
11854 do
11855 IFS=$lt_save_ifs
11856 # Let DOS variable expansion print the short 8.3 style file name.
11857 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11858 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11859 done
11860 IFS=$lt_save_ifs
11861 # Convert to MSYS style.
11862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11863 ;;
11864 cygwin*)
11865 # Convert to unix form, then to dos form, then back to unix form
11866 # but this time dos style (no spaces!) so that the unix form looks
11867 # like /cygdrive/c/PROGRA~1:/cygdr...
11868 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11869 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11870 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11871 ;;
11872 *)
11873 sys_lib_search_path_spec=$LIB
11874 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11875 # It is most probably a Windows format PATH.
11876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11877 else
11878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11879 fi
11880 # FIXME: find the short name or the path components, as spaces are
11881 # common. (e.g. "Program Files" -> "PROGRA~1")
11882 ;;
11883 esac
11884
11885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11886 postinstall_cmds='base_file=`basename \$file`~
11887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11888 dldir=$destdir/`dirname \$dlpath`~
11889 test -d \$dldir || mkdir -p \$dldir~
11890 $install_prog $dir/$dlname \$dldir/$dlname'
11891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11892 dlpath=$dir/\$dldll~
11893 $RM \$dlpath'
11894 shlibpath_overrides_runpath=yes
11895 dynamic_linker='Win32 link.exe'
11896 ;;
11897
11898 *)
11899 # Assume MSVC and ICC wrapper
11900 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11901 dynamic_linker='Win32 ld.exe'
11902 ;;
11903 esac
11904 # FIXME: first we should search . and the directory the executable is in
11905 shlibpath_var=PATH
11906 ;;
11907
11908 darwin* | rhapsody*)
11909 dynamic_linker="$host_os dyld"
11910 version_type=darwin
11911 need_lib_prefix=no
11912 need_version=no
11913 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11914 soname_spec='$libname$release$major$shared_ext'
11915 shlibpath_overrides_runpath=yes
11916 shlibpath_var=DYLD_LIBRARY_PATH
11917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11918
11919 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11921 ;;
11922
11923 dgux*)
11924 version_type=linux # correct to gnu/linux during the next big refactor
11925 need_lib_prefix=no
11926 need_version=no
11927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11928 soname_spec='$libname$release$shared_ext$major'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 ;;
11931
11932 freebsd* | dragonfly* | midnightbsd*)
11933 # DragonFly does not have aout. When/if they implement a new
11934 # versioning mechanism, adjust this.
11935 if test -x /usr/bin/objformat; then
11936 objformat=`/usr/bin/objformat`
11937 else
11938 case $host_os in
11939 freebsd[23].*) objformat=aout ;;
11940 *) objformat=elf ;;
11941 esac
11942 fi
11943 version_type=freebsd-$objformat
11944 case $version_type in
11945 freebsd-elf*)
11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11947 soname_spec='$libname$release$shared_ext$major'
11948 need_version=no
11949 need_lib_prefix=no
11950 ;;
11951 freebsd-*)
11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11953 need_version=yes
11954 ;;
11955 esac
11956 shlibpath_var=LD_LIBRARY_PATH
11957 case $host_os in
11958 freebsd2.*)
11959 shlibpath_overrides_runpath=yes
11960 ;;
11961 freebsd3.[01]* | freebsdelf3.[01]*)
11962 shlibpath_overrides_runpath=yes
11963 hardcode_into_libs=yes
11964 ;;
11965 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11966 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11967 shlibpath_overrides_runpath=no
11968 hardcode_into_libs=yes
11969 ;;
11970 *) # from 4.6 on, and DragonFly
11971 shlibpath_overrides_runpath=yes
11972 hardcode_into_libs=yes
11973 ;;
11974 esac
11975 ;;
11976
11977 haiku*)
11978 version_type=linux # correct to gnu/linux during the next big refactor
11979 need_lib_prefix=no
11980 need_version=no
11981 dynamic_linker="$host_os runtime_loader"
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983 soname_spec='$libname$release$shared_ext$major'
11984 shlibpath_var=LIBRARY_PATH
11985 shlibpath_overrides_runpath=no
11986 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11987 hardcode_into_libs=yes
11988 ;;
11989
11990 hpux9* | hpux10* | hpux11*)
11991 # Give a soname corresponding to the major version so that dld.sl refuses to
11992 # link against other versions.
11993 version_type=sunos
11994 need_lib_prefix=no
11995 need_version=no
11996 case $host_cpu in
11997 ia64*)
11998 shrext_cmds='.so'
11999 hardcode_into_libs=yes
12000 dynamic_linker="$host_os dld.so"
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12004 soname_spec='$libname$release$shared_ext$major'
12005 if test 32 = "$HPUX_IA64_MODE"; then
12006 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12007 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12008 else
12009 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12010 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12011 fi
12012 ;;
12013 hppa*64*)
12014 shrext_cmds='.sl'
12015 hardcode_into_libs=yes
12016 dynamic_linker="$host_os dld.sl"
12017 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020 soname_spec='$libname$release$shared_ext$major'
12021 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12023 ;;
12024 *)
12025 shrext_cmds='.sl'
12026 dynamic_linker="$host_os dld.sl"
12027 shlibpath_var=SHLIB_PATH
12028 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12030 soname_spec='$libname$release$shared_ext$major'
12031 ;;
12032 esac
12033 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12034 postinstall_cmds='chmod 555 $lib'
12035 # or fails outright, so override atomically:
12036 install_override_mode=555
12037 ;;
12038
12039 interix[3-9]*)
12040 version_type=linux # correct to gnu/linux during the next big refactor
12041 need_lib_prefix=no
12042 need_version=no
12043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12044 soname_spec='$libname$release$shared_ext$major'
12045 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 shlibpath_overrides_runpath=no
12048 hardcode_into_libs=yes
12049 ;;
12050
12051 irix5* | irix6* | nonstopux*)
12052 case $host_os in
12053 nonstopux*) version_type=nonstopux ;;
12054 *)
12055 if test yes = "$lt_cv_prog_gnu_ld"; then
12056 version_type=linux # correct to gnu/linux during the next big refactor
12057 else
12058 version_type=irix
12059 fi ;;
12060 esac
12061 need_lib_prefix=no
12062 need_version=no
12063 soname_spec='$libname$release$shared_ext$major'
12064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12065 case $host_os in
12066 irix5* | nonstopux*)
12067 libsuff= shlibsuff=
12068 ;;
12069 *)
12070 case $LD in # libtool.m4 will add one of these switches to LD
12071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12072 libsuff= shlibsuff= libmagic=32-bit;;
12073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12074 libsuff=32 shlibsuff=N32 libmagic=N32;;
12075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12076 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12077 *) libsuff= shlibsuff= libmagic=never-match;;
12078 esac
12079 ;;
12080 esac
12081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12082 shlibpath_overrides_runpath=no
12083 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12084 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12085 hardcode_into_libs=yes
12086 ;;
12087
12088 # No shared lib support for Linux oldld, aout, or coff.
12089 linux*oldld* | linux*aout* | linux*coff*)
12090 dynamic_linker=no
12091 ;;
12092
12093 linux*android*)
12094 version_type=none # Android doesn't support versioned libraries.
12095 need_lib_prefix=no
12096 need_version=no
12097 library_names_spec='$libname$release$shared_ext'
12098 soname_spec='$libname$release$shared_ext'
12099 finish_cmds=
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes
12102
12103 # This implies no fast_install, which is unacceptable.
12104 # Some rework will be needed to allow for fast_install
12105 # before this can be enabled.
12106 hardcode_into_libs=yes
12107
12108 dynamic_linker='Android linker'
12109 # Don't embed -rpath directories since the linker doesn't support them.
12110 hardcode_libdir_flag_spec='-L$libdir'
12111 ;;
12112
12113 # This must be glibc/ELF.
12114 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12115 version_type=linux # correct to gnu/linux during the next big refactor
12116 need_lib_prefix=no
12117 need_version=no
12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12119 soname_spec='$libname$release$shared_ext$major'
12120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=no
12123
12124 # Some binutils ld are patched to set DT_RUNPATH
12125 if test ${lt_cv_shlibpath_overrides_runpath+y}
12126 then :
12127 printf %s "(cached) " >&6
12128 else $as_nop
12129 lt_cv_shlibpath_overrides_runpath=no
12130 save_LDFLAGS=$LDFLAGS
12131 save_libdir=$libdir
12132 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12133 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136
12137 int
12138 main (void)
12139 {
12140
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_link "$LINENO"
12146 then :
12147 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12148 then :
12149 lt_cv_shlibpath_overrides_runpath=yes
12150 fi
12151 fi
12152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12153 conftest$ac_exeext conftest.$ac_ext
12154 LDFLAGS=$save_LDFLAGS
12155 libdir=$save_libdir
12156
12157 fi
12158
12159 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12160
12161 # This implies no fast_install, which is unacceptable.
12162 # Some rework will be needed to allow for fast_install
12163 # before this can be enabled.
12164 hardcode_into_libs=yes
12165
12166 # Ideally, we could use ldconfig to report *all* directores which are
12167 # searched for libraries, however this is still not possible. Aside from not
12168 # being certain /sbin/ldconfig is available, command
12169 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12170 # even though it is searched at run-time. Try to do the best guess by
12171 # appending ld.so.conf contents (and includes) to the search path.
12172 if test -f /etc/ld.so.conf; then
12173 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' ' '`
12174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12175 fi
12176
12177 # We used to test for /lib/ld.so.1 and disable shared libraries on
12178 # powerpc, because MkLinux only supported shared libraries with the
12179 # GNU dynamic linker. Since this was broken with cross compilers,
12180 # most powerpc-linux boxes support dynamic linking these days and
12181 # people can always --disable-shared, the test was removed, and we
12182 # assume the GNU/Linux dynamic linker is in use.
12183 dynamic_linker='GNU/Linux ld.so'
12184 ;;
12185
12186 netbsd*)
12187 version_type=sunos
12188 need_lib_prefix=no
12189 need_version=no
12190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12191 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12193 dynamic_linker='NetBSD (a.out) ld.so'
12194 else
12195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12196 soname_spec='$libname$release$shared_ext$major'
12197 dynamic_linker='NetBSD ld.elf_so'
12198 fi
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes
12201 hardcode_into_libs=yes
12202 ;;
12203
12204 newsos6)
12205 version_type=linux # correct to gnu/linux during the next big refactor
12206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12207 shlibpath_var=LD_LIBRARY_PATH
12208 shlibpath_overrides_runpath=yes
12209 ;;
12210
12211 *nto* | *qnx*)
12212 version_type=qnx
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12216 soname_spec='$libname$release$shared_ext$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=no
12219 hardcode_into_libs=yes
12220 dynamic_linker='ldqnx.so'
12221 ;;
12222
12223 openbsd* | bitrig*)
12224 version_type=sunos
12225 sys_lib_dlsearch_path_spec=/usr/lib
12226 need_lib_prefix=no
12227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12228 need_version=no
12229 else
12230 need_version=yes
12231 fi
12232 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 ;;
12237
12238 os2*)
12239 libname_spec='$name'
12240 version_type=windows
12241 shrext_cmds=.dll
12242 need_version=no
12243 need_lib_prefix=no
12244 # OS/2 can only load a DLL with a base name of 8 characters or less.
12245 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12246 v=$($ECHO $release$versuffix | tr -d .-);
12247 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12248 $ECHO $n$v`$shared_ext'
12249 library_names_spec='${libname}_dll.$libext'
12250 dynamic_linker='OS/2 ld.exe'
12251 shlibpath_var=BEGINLIBPATH
12252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12254 postinstall_cmds='base_file=`basename \$file`~
12255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12256 dldir=$destdir/`dirname \$dlpath`~
12257 test -d \$dldir || mkdir -p \$dldir~
12258 $install_prog $dir/$dlname \$dldir/$dlname~
12259 chmod a+x \$dldir/$dlname~
12260 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12261 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12262 fi'
12263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12264 dlpath=$dir/\$dldll~
12265 $RM \$dlpath'
12266 ;;
12267
12268 osf3* | osf4* | osf5*)
12269 version_type=osf
12270 need_lib_prefix=no
12271 need_version=no
12272 soname_spec='$libname$release$shared_ext$major'
12273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12277 ;;
12278
12279 rdos*)
12280 dynamic_linker=no
12281 ;;
12282
12283 solaris*)
12284 version_type=linux # correct to gnu/linux during the next big refactor
12285 need_lib_prefix=no
12286 need_version=no
12287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12288 soname_spec='$libname$release$shared_ext$major'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 shlibpath_overrides_runpath=yes
12291 hardcode_into_libs=yes
12292 # ldd complains unless libraries are executable
12293 postinstall_cmds='chmod +x $lib'
12294 ;;
12295
12296 sunos4*)
12297 version_type=sunos
12298 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12300 shlibpath_var=LD_LIBRARY_PATH
12301 shlibpath_overrides_runpath=yes
12302 if test yes = "$with_gnu_ld"; then
12303 need_lib_prefix=no
12304 fi
12305 need_version=yes
12306 ;;
12307
12308 sysv4 | sysv4.3*)
12309 version_type=linux # correct to gnu/linux during the next big refactor
12310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12311 soname_spec='$libname$release$shared_ext$major'
12312 shlibpath_var=LD_LIBRARY_PATH
12313 case $host_vendor in
12314 sni)
12315 shlibpath_overrides_runpath=no
12316 need_lib_prefix=no
12317 runpath_var=LD_RUN_PATH
12318 ;;
12319 siemens)
12320 need_lib_prefix=no
12321 ;;
12322 motorola)
12323 need_lib_prefix=no
12324 need_version=no
12325 shlibpath_overrides_runpath=no
12326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12327 ;;
12328 esac
12329 ;;
12330
12331 sysv4*MP*)
12332 if test -d /usr/nec; then
12333 version_type=linux # correct to gnu/linux during the next big refactor
12334 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12335 soname_spec='$libname$shared_ext.$major'
12336 shlibpath_var=LD_LIBRARY_PATH
12337 fi
12338 ;;
12339
12340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12341 version_type=sco
12342 need_lib_prefix=no
12343 need_version=no
12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12345 soname_spec='$libname$release$shared_ext$major'
12346 shlibpath_var=LD_LIBRARY_PATH
12347 shlibpath_overrides_runpath=yes
12348 hardcode_into_libs=yes
12349 if test yes = "$with_gnu_ld"; then
12350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12351 else
12352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12353 case $host_os in
12354 sco3.2v5*)
12355 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12356 ;;
12357 esac
12358 fi
12359 sys_lib_dlsearch_path_spec='/usr/lib'
12360 ;;
12361
12362 tpf*)
12363 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12364 version_type=linux # correct to gnu/linux during the next big refactor
12365 need_lib_prefix=no
12366 need_version=no
12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 shlibpath_overrides_runpath=no
12370 hardcode_into_libs=yes
12371 ;;
12372
12373 uts4*)
12374 version_type=linux # correct to gnu/linux during the next big refactor
12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12376 soname_spec='$libname$release$shared_ext$major'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 ;;
12379
12380 *)
12381 dynamic_linker=no
12382 ;;
12383 esac
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12385 printf "%s\n" "$dynamic_linker" >&6; }
12386 test no = "$dynamic_linker" && can_build_shared=no
12387
12388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12389 if test yes = "$GCC"; then
12390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12391 fi
12392
12393 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12394 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12395 fi
12396
12397 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12398 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12399 fi
12400
12401 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12402 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12403
12404 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12405 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12406
12407 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12408 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12507 printf %s "checking how to hardcode library paths into programs... " >&6; }
12508 hardcode_action=
12509 if test -n "$hardcode_libdir_flag_spec" ||
12510 test -n "$runpath_var" ||
12511 test yes = "$hardcode_automatic"; then
12512
12513 # We can hardcode non-existent directories.
12514 if test no != "$hardcode_direct" &&
12515 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12516 # have to relink, otherwise we might link with an installed library
12517 # when we should be linking with a yet-to-be-installed one
12518 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12519 test no != "$hardcode_minus_L"; then
12520 # Linking always hardcodes the temporary library directory.
12521 hardcode_action=relink
12522 else
12523 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12524 hardcode_action=immediate
12525 fi
12526 else
12527 # We cannot hardcode anything, or else we can only hardcode existing
12528 # directories.
12529 hardcode_action=unsupported
12530 fi
12531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12532 printf "%s\n" "$hardcode_action" >&6; }
12533
12534 if test relink = "$hardcode_action" ||
12535 test yes = "$inherit_rpath"; then
12536 # Fast installation is not supported
12537 enable_fast_install=no
12538 elif test yes = "$shlibpath_overrides_runpath" ||
12539 test no = "$enable_shared"; then
12540 # Fast installation is not necessary
12541 enable_fast_install=needless
12542 fi
12543
12544
12545
12546
12547
12548
12549 if test yes != "$enable_dlopen"; then
12550 enable_dlopen=unknown
12551 enable_dlopen_self=unknown
12552 enable_dlopen_self_static=unknown
12553 else
12554 lt_cv_dlopen=no
12555 lt_cv_dlopen_libs=
12556
12557 case $host_os in
12558 beos*)
12559 lt_cv_dlopen=load_add_on
12560 lt_cv_dlopen_libs=
12561 lt_cv_dlopen_self=yes
12562 ;;
12563
12564 mingw* | pw32* | cegcc*)
12565 lt_cv_dlopen=LoadLibrary
12566 lt_cv_dlopen_libs=
12567 ;;
12568
12569 cygwin*)
12570 lt_cv_dlopen=dlopen
12571 lt_cv_dlopen_libs=
12572 ;;
12573
12574 darwin*)
12575 # if libdl is installed we need to link against it
12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12577 printf %s "checking for dlopen in -ldl... " >&6; }
12578 if test ${ac_cv_lib_dl_dlopen+y}
12579 then :
12580 printf %s "(cached) " >&6
12581 else $as_nop
12582 ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldl $LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12590 char dlopen ();
12591 int
12592 main (void)
12593 {
12594 return dlopen ();
12595 ;
12596 return 0;
12597 }
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"
12600 then :
12601 ac_cv_lib_dl_dlopen=yes
12602 else $as_nop
12603 ac_cv_lib_dl_dlopen=no
12604 fi
12605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12608 fi
12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12610 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12611 if test "x$ac_cv_lib_dl_dlopen" = xyes
12612 then :
12613 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12614 else $as_nop
12615
12616 lt_cv_dlopen=dyld
12617 lt_cv_dlopen_libs=
12618 lt_cv_dlopen_self=yes
12619
12620 fi
12621
12622 ;;
12623
12624 tpf*)
12625 # Don't try to run any link tests for TPF. We know it's impossible
12626 # because TPF is a cross-compiler, and we know how we open DSOs.
12627 lt_cv_dlopen=dlopen
12628 lt_cv_dlopen_libs=
12629 lt_cv_dlopen_self=no
12630 ;;
12631
12632 *)
12633 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12634 if test "x$ac_cv_func_shl_load" = xyes
12635 then :
12636 lt_cv_dlopen=shl_load
12637 else $as_nop
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12639 printf %s "checking for shl_load in -ldld... " >&6; }
12640 if test ${ac_cv_lib_dld_shl_load+y}
12641 then :
12642 printf %s "(cached) " >&6
12643 else $as_nop
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-ldld $LIBS"
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12652 char shl_load ();
12653 int
12654 main (void)
12655 {
12656 return shl_load ();
12657 ;
12658 return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_link "$LINENO"
12662 then :
12663 ac_cv_lib_dld_shl_load=yes
12664 else $as_nop
12665 ac_cv_lib_dld_shl_load=no
12666 fi
12667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12668 conftest$ac_exeext conftest.$ac_ext
12669 LIBS=$ac_check_lib_save_LIBS
12670 fi
12671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12672 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12673 if test "x$ac_cv_lib_dld_shl_load" = xyes
12674 then :
12675 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12676 else $as_nop
12677 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12678 if test "x$ac_cv_func_dlopen" = xyes
12679 then :
12680 lt_cv_dlopen=dlopen
12681 else $as_nop
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12683 printf %s "checking for dlopen in -ldl... " >&6; }
12684 if test ${ac_cv_lib_dl_dlopen+y}
12685 then :
12686 printf %s "(cached) " >&6
12687 else $as_nop
12688 ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-ldl $LIBS"
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692
12693 /* Override any GCC internal prototype to avoid an error.
12694 Use char because int might match the return type of a GCC
12695 builtin and then its argument prototype would still apply. */
12696 char dlopen ();
12697 int
12698 main (void)
12699 {
12700 return dlopen ();
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 if ac_fn_c_try_link "$LINENO"
12706 then :
12707 ac_cv_lib_dl_dlopen=yes
12708 else $as_nop
12709 ac_cv_lib_dl_dlopen=no
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12714 fi
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12716 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12717 if test "x$ac_cv_lib_dl_dlopen" = xyes
12718 then :
12719 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12720 else $as_nop
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12722 printf %s "checking for dlopen in -lsvld... " >&6; }
12723 if test ${ac_cv_lib_svld_dlopen+y}
12724 then :
12725 printf %s "(cached) " >&6
12726 else $as_nop
12727 ac_check_lib_save_LIBS=$LIBS
12728 LIBS="-lsvld $LIBS"
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12735 char dlopen ();
12736 int
12737 main (void)
12738 {
12739 return dlopen ();
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_link "$LINENO"
12745 then :
12746 ac_cv_lib_svld_dlopen=yes
12747 else $as_nop
12748 ac_cv_lib_svld_dlopen=no
12749 fi
12750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12751 conftest$ac_exeext conftest.$ac_ext
12752 LIBS=$ac_check_lib_save_LIBS
12753 fi
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12755 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12756 if test "x$ac_cv_lib_svld_dlopen" = xyes
12757 then :
12758 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12759 else $as_nop
12760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12761 printf %s "checking for dld_link in -ldld... " >&6; }
12762 if test ${ac_cv_lib_dld_dld_link+y}
12763 then :
12764 printf %s "(cached) " >&6
12765 else $as_nop
12766 ac_check_lib_save_LIBS=$LIBS
12767 LIBS="-ldld $LIBS"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12774 char dld_link ();
12775 int
12776 main (void)
12777 {
12778 return dld_link ();
12779 ;
12780 return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_c_try_link "$LINENO"
12784 then :
12785 ac_cv_lib_dld_dld_link=yes
12786 else $as_nop
12787 ac_cv_lib_dld_dld_link=no
12788 fi
12789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12790 conftest$ac_exeext conftest.$ac_ext
12791 LIBS=$ac_check_lib_save_LIBS
12792 fi
12793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12794 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12795 if test "x$ac_cv_lib_dld_dld_link" = xyes
12796 then :
12797 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12798 fi
12799
12800
12801 fi
12802
12803
12804 fi
12805
12806
12807 fi
12808
12809
12810 fi
12811
12812
12813 fi
12814
12815 ;;
12816 esac
12817
12818 if test no = "$lt_cv_dlopen"; then
12819 enable_dlopen=no
12820 else
12821 enable_dlopen=yes
12822 fi
12823
12824 case $lt_cv_dlopen in
12825 dlopen)
12826 save_CPPFLAGS=$CPPFLAGS
12827 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12828
12829 save_LDFLAGS=$LDFLAGS
12830 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12831
12832 save_LIBS=$LIBS
12833 LIBS="$lt_cv_dlopen_libs $LIBS"
12834
12835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12836 printf %s "checking whether a program can dlopen itself... " >&6; }
12837 if test ${lt_cv_dlopen_self+y}
12838 then :
12839 printf %s "(cached) " >&6
12840 else $as_nop
12841 if test yes = "$cross_compiling"; then :
12842 lt_cv_dlopen_self=cross
12843 else
12844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12845 lt_status=$lt_dlunknown
12846 cat > conftest.$ac_ext <<_LT_EOF
12847 #line $LINENO "configure"
12848 #include "confdefs.h"
12849
12850 #if HAVE_DLFCN_H
12851 #include <dlfcn.h>
12852 #endif
12853
12854 #include <stdio.h>
12855
12856 #ifdef RTLD_GLOBAL
12857 # define LT_DLGLOBAL RTLD_GLOBAL
12858 #else
12859 # ifdef DL_GLOBAL
12860 # define LT_DLGLOBAL DL_GLOBAL
12861 # else
12862 # define LT_DLGLOBAL 0
12863 # endif
12864 #endif
12865
12866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12867 find out it does not work in some platform. */
12868 #ifndef LT_DLLAZY_OR_NOW
12869 # ifdef RTLD_LAZY
12870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12871 # else
12872 # ifdef DL_LAZY
12873 # define LT_DLLAZY_OR_NOW DL_LAZY
12874 # else
12875 # ifdef RTLD_NOW
12876 # define LT_DLLAZY_OR_NOW RTLD_NOW
12877 # else
12878 # ifdef DL_NOW
12879 # define LT_DLLAZY_OR_NOW DL_NOW
12880 # else
12881 # define LT_DLLAZY_OR_NOW 0
12882 # endif
12883 # endif
12884 # endif
12885 # endif
12886 #endif
12887
12888 /* When -fvisibility=hidden is used, assume the code has been annotated
12889 correspondingly for the symbols needed. */
12890 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12891 int fnord () __attribute__((visibility("default")));
12892 #endif
12893
12894 int fnord () { return 42; }
12895 int main ()
12896 {
12897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12898 int status = $lt_dlunknown;
12899
12900 if (self)
12901 {
12902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12903 else
12904 {
12905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12906 else puts (dlerror ());
12907 }
12908 /* dlclose (self); */
12909 }
12910 else
12911 puts (dlerror ());
12912
12913 return status;
12914 }
12915 _LT_EOF
12916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12917 (eval $ac_link) 2>&5
12918 ac_status=$?
12919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12921 (./conftest; exit; ) >&5 2>/dev/null
12922 lt_status=$?
12923 case x$lt_status in
12924 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12925 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12926 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12927 esac
12928 else :
12929 # compilation failed
12930 lt_cv_dlopen_self=no
12931 fi
12932 fi
12933 rm -fr conftest*
12934
12935
12936 fi
12937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12938 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12939
12940 if test yes = "$lt_cv_dlopen_self"; then
12941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12943 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12944 if test ${lt_cv_dlopen_self_static+y}
12945 then :
12946 printf %s "(cached) " >&6
12947 else $as_nop
12948 if test yes = "$cross_compiling"; then :
12949 lt_cv_dlopen_self_static=cross
12950 else
12951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12952 lt_status=$lt_dlunknown
12953 cat > conftest.$ac_ext <<_LT_EOF
12954 #line $LINENO "configure"
12955 #include "confdefs.h"
12956
12957 #if HAVE_DLFCN_H
12958 #include <dlfcn.h>
12959 #endif
12960
12961 #include <stdio.h>
12962
12963 #ifdef RTLD_GLOBAL
12964 # define LT_DLGLOBAL RTLD_GLOBAL
12965 #else
12966 # ifdef DL_GLOBAL
12967 # define LT_DLGLOBAL DL_GLOBAL
12968 # else
12969 # define LT_DLGLOBAL 0
12970 # endif
12971 #endif
12972
12973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12974 find out it does not work in some platform. */
12975 #ifndef LT_DLLAZY_OR_NOW
12976 # ifdef RTLD_LAZY
12977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12978 # else
12979 # ifdef DL_LAZY
12980 # define LT_DLLAZY_OR_NOW DL_LAZY
12981 # else
12982 # ifdef RTLD_NOW
12983 # define LT_DLLAZY_OR_NOW RTLD_NOW
12984 # else
12985 # ifdef DL_NOW
12986 # define LT_DLLAZY_OR_NOW DL_NOW
12987 # else
12988 # define LT_DLLAZY_OR_NOW 0
12989 # endif
12990 # endif
12991 # endif
12992 # endif
12993 #endif
12994
12995 /* When -fvisibility=hidden is used, assume the code has been annotated
12996 correspondingly for the symbols needed. */
12997 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12998 int fnord () __attribute__((visibility("default")));
12999 #endif
13000
13001 int fnord () { return 42; }
13002 int main ()
13003 {
13004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13005 int status = $lt_dlunknown;
13006
13007 if (self)
13008 {
13009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13010 else
13011 {
13012 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13013 else puts (dlerror ());
13014 }
13015 /* dlclose (self); */
13016 }
13017 else
13018 puts (dlerror ());
13019
13020 return status;
13021 }
13022 _LT_EOF
13023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13024 (eval $ac_link) 2>&5
13025 ac_status=$?
13026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13028 (./conftest; exit; ) >&5 2>/dev/null
13029 lt_status=$?
13030 case x$lt_status in
13031 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13032 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13033 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13034 esac
13035 else :
13036 # compilation failed
13037 lt_cv_dlopen_self_static=no
13038 fi
13039 fi
13040 rm -fr conftest*
13041
13042
13043 fi
13044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13045 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13046 fi
13047
13048 CPPFLAGS=$save_CPPFLAGS
13049 LDFLAGS=$save_LDFLAGS
13050 LIBS=$save_LIBS
13051 ;;
13052 esac
13053
13054 case $lt_cv_dlopen_self in
13055 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13056 *) enable_dlopen_self=unknown ;;
13057 esac
13058
13059 case $lt_cv_dlopen_self_static in
13060 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13061 *) enable_dlopen_self_static=unknown ;;
13062 esac
13063 fi
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081 striplib=
13082 old_striplib=
13083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13084 printf %s "checking whether stripping libraries is possible... " >&6; }
13085 if test -z "$STRIP"; then
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 printf "%s\n" "no" >&6; }
13088 else
13089 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13090 old_striplib="$STRIP --strip-debug"
13091 striplib="$STRIP --strip-unneeded"
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093 printf "%s\n" "yes" >&6; }
13094 else
13095 case $host_os in
13096 darwin*)
13097 # FIXME - insert some real tests, host_os isn't really good enough
13098 striplib="$STRIP -x"
13099 old_striplib="$STRIP -S"
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13101 printf "%s\n" "yes" >&6; }
13102 ;;
13103 freebsd*)
13104 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13105 old_striplib="$STRIP --strip-debug"
13106 striplib="$STRIP --strip-unneeded"
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13108 printf "%s\n" "yes" >&6; }
13109 else
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 printf "%s\n" "no" >&6; }
13112 fi
13113 ;;
13114 *)
13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 printf "%s\n" "no" >&6; }
13117 ;;
13118 esac
13119 fi
13120 fi
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133 # Report what library types will actually be built
13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13135 printf %s "checking if libtool supports shared libraries... " >&6; }
13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13137 printf "%s\n" "$can_build_shared" >&6; }
13138
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13140 printf %s "checking whether to build shared libraries... " >&6; }
13141 test no = "$can_build_shared" && enable_shared=no
13142
13143 # On AIX, shared libraries and static libraries use the same namespace, and
13144 # are all built from PIC.
13145 case $host_os in
13146 aix3*)
13147 test yes = "$enable_shared" && enable_static=no
13148 if test -n "$RANLIB"; then
13149 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13150 postinstall_cmds='$RANLIB $lib'
13151 fi
13152 ;;
13153
13154 aix[4-9]*)
13155 if test ia64 != "$host_cpu"; then
13156 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13157 yes,aix,yes) ;; # shared object as lib.so file only
13158 yes,svr4,*) ;; # shared object as lib.so archive member only
13159 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13160 esac
13161 fi
13162 ;;
13163 esac
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13165 printf "%s\n" "$enable_shared" >&6; }
13166
13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13168 printf %s "checking whether to build static libraries... " >&6; }
13169 # Make sure either enable_shared or enable_static is yes.
13170 test yes = "$enable_shared" || enable_static=yes
13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13172 printf "%s\n" "$enable_static" >&6; }
13173
13174
13175
13176
13177 fi
13178 ac_ext=c
13179 ac_cpp='$CPP $CPPFLAGS'
13180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13183
13184 CC=$lt_save_CC
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 ac_config_commands="$ac_config_commands libtool"
13201
13202
13203
13204
13205 # Only expand once:
13206
13207
13208
13209 # Check whether --enable-largefile was given.
13210 if test ${enable_largefile+y}
13211 then :
13212 enableval=$enable_largefile;
13213 fi
13214
13215 if test "$enable_largefile" != no; then
13216
13217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13218 printf %s "checking for special C compiler options needed for large files... " >&6; }
13219 if test ${ac_cv_sys_largefile_CC+y}
13220 then :
13221 printf %s "(cached) " >&6
13222 else $as_nop
13223 ac_cv_sys_largefile_CC=no
13224 if test "$GCC" != yes; then
13225 ac_save_CC=$CC
13226 while :; do
13227 # IRIX 6.2 and later do not support large files by default,
13228 # so use the C compiler's -n32 option if that helps.
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <sys/types.h>
13232 /* Check that off_t can represent 2**63 - 1 correctly.
13233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13234 since some C++ compilers masquerading as C compilers
13235 incorrectly reject 9223372036854775807. */
13236 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13238 && LARGE_OFF_T % 2147483647 == 1)
13239 ? 1 : -1];
13240 int
13241 main (void)
13242 {
13243
13244 ;
13245 return 0;
13246 }
13247 _ACEOF
13248 if ac_fn_c_try_compile "$LINENO"
13249 then :
13250 break
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.beam
13253 CC="$CC -n32"
13254 if ac_fn_c_try_compile "$LINENO"
13255 then :
13256 ac_cv_sys_largefile_CC=' -n32'; break
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext conftest.beam
13259 break
13260 done
13261 CC=$ac_save_CC
13262 rm -f conftest.$ac_ext
13263 fi
13264 fi
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13266 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13267 if test "$ac_cv_sys_largefile_CC" != no; then
13268 CC=$CC$ac_cv_sys_largefile_CC
13269 fi
13270
13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13272 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13273 if test ${ac_cv_sys_file_offset_bits+y}
13274 then :
13275 printf %s "(cached) " >&6
13276 else $as_nop
13277 while :; do
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #include <sys/types.h>
13281 /* Check that off_t can represent 2**63 - 1 correctly.
13282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13283 since some C++ compilers masquerading as C compilers
13284 incorrectly reject 9223372036854775807. */
13285 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13287 && LARGE_OFF_T % 2147483647 == 1)
13288 ? 1 : -1];
13289 int
13290 main (void)
13291 {
13292
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_compile "$LINENO"
13298 then :
13299 ac_cv_sys_file_offset_bits=no; break
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 #define _FILE_OFFSET_BITS 64
13305 #include <sys/types.h>
13306 /* Check that off_t can represent 2**63 - 1 correctly.
13307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13308 since some C++ compilers masquerading as C compilers
13309 incorrectly reject 9223372036854775807. */
13310 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13312 && LARGE_OFF_T % 2147483647 == 1)
13313 ? 1 : -1];
13314 int
13315 main (void)
13316 {
13317
13318 ;
13319 return 0;
13320 }
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"
13323 then :
13324 ac_cv_sys_file_offset_bits=64; break
13325 fi
13326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13327 ac_cv_sys_file_offset_bits=unknown
13328 break
13329 done
13330 fi
13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13332 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13333 case $ac_cv_sys_file_offset_bits in #(
13334 no | unknown) ;;
13335 *)
13336 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13337 ;;
13338 esac
13339 rm -rf conftest*
13340 if test $ac_cv_sys_file_offset_bits = unknown; then
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13342 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13343 if test ${ac_cv_sys_large_files+y}
13344 then :
13345 printf %s "(cached) " >&6
13346 else $as_nop
13347 while :; do
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350 #include <sys/types.h>
13351 /* Check that off_t can represent 2**63 - 1 correctly.
13352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13353 since some C++ compilers masquerading as C compilers
13354 incorrectly reject 9223372036854775807. */
13355 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13357 && LARGE_OFF_T % 2147483647 == 1)
13358 ? 1 : -1];
13359 int
13360 main (void)
13361 {
13362
13363 ;
13364 return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_compile "$LINENO"
13368 then :
13369 ac_cv_sys_large_files=no; break
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13374 #define _LARGE_FILES 1
13375 #include <sys/types.h>
13376 /* Check that off_t can represent 2**63 - 1 correctly.
13377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13378 since some C++ compilers masquerading as C compilers
13379 incorrectly reject 9223372036854775807. */
13380 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13382 && LARGE_OFF_T % 2147483647 == 1)
13383 ? 1 : -1];
13384 int
13385 main (void)
13386 {
13387
13388 ;
13389 return 0;
13390 }
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"
13393 then :
13394 ac_cv_sys_large_files=1; break
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13397 ac_cv_sys_large_files=unknown
13398 break
13399 done
13400 fi
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13402 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13403 case $ac_cv_sys_large_files in #(
13404 no | unknown) ;;
13405 *)
13406 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13407 ;;
13408 esac
13409 rm -rf conftest*
13410 fi
13411 fi
13412
13413
13414 # Require xorg-macros minimum of 1.15 for fop minimum version
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13428 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13429 if test ${ac_cv_c_undeclared_builtin_options+y}
13430 then :
13431 printf %s "(cached) " >&6
13432 else $as_nop
13433 ac_save_CFLAGS=$CFLAGS
13434 ac_cv_c_undeclared_builtin_options='cannot detect'
13435 for ac_arg in '' -fno-builtin; do
13436 CFLAGS="$ac_save_CFLAGS $ac_arg"
13437 # This test program should *not* compile successfully.
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440
13441 int
13442 main (void)
13443 {
13444 (void) strchr;
13445 ;
13446 return 0;
13447 }
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"
13450 then :
13451
13452 else $as_nop
13453 # This test program should compile successfully.
13454 # No library function is consistently available on
13455 # freestanding implementations, so test against a dummy
13456 # declaration. Include always-available headers on the
13457 # off chance that they somehow elicit warnings.
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460 #include <float.h>
13461 #include <limits.h>
13462 #include <stdarg.h>
13463 #include <stddef.h>
13464 extern void ac_decl (int, char *);
13465
13466 int
13467 main (void)
13468 {
13469 (void) ac_decl (0, (char *) 0);
13470 (void) ac_decl;
13471
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"
13477 then :
13478 if test x"$ac_arg" = x
13479 then :
13480 ac_cv_c_undeclared_builtin_options='none needed'
13481 else $as_nop
13482 ac_cv_c_undeclared_builtin_options=$ac_arg
13483 fi
13484 break
13485 fi
13486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13489 done
13490 CFLAGS=$ac_save_CFLAGS
13491
13492 fi
13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13494 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13495 case $ac_cv_c_undeclared_builtin_options in #(
13496 'cannot detect') :
13497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13498 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13499 as_fn_error $? "cannot make $CC report undeclared builtins
13500 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13501 'none needed') :
13502 ac_c_undeclared_builtin_options='' ;; #(
13503 *) :
13504 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13505 esac
13506
13507
13508
13509
13510
13511 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13512 if test "x$ac_cv_have_decl___clang__" = xyes
13513 then :
13514 CLANGCC="yes"
13515 else $as_nop
13516 CLANGCC="no"
13517 fi
13518 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13519 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13520 then :
13521 INTELCC="yes"
13522 else $as_nop
13523 INTELCC="no"
13524 fi
13525 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13526 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13527 then :
13528 SUNCC="yes"
13529 else $as_nop
13530 SUNCC="no"
13531 fi
13532
13533
13534
13535
13536
13537
13538
13539
13540 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13541 if test -n "$ac_tool_prefix"; then
13542 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13543 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545 printf %s "checking for $ac_word... " >&6; }
13546 if test ${ac_cv_path_PKG_CONFIG+y}
13547 then :
13548 printf %s "(cached) " >&6
13549 else $as_nop
13550 case $PKG_CONFIG in
13551 [\\/]* | ?:[\\/]*)
13552 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13553 ;;
13554 *)
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13557 do
13558 IFS=$as_save_IFS
13559 case $as_dir in #(((
13560 '') as_dir=./ ;;
13561 */) ;;
13562 *) as_dir=$as_dir/ ;;
13563 esac
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13566 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13568 break 2
13569 fi
13570 done
13571 done
13572 IFS=$as_save_IFS
13573
13574 ;;
13575 esac
13576 fi
13577 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13578 if test -n "$PKG_CONFIG"; then
13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13580 printf "%s\n" "$PKG_CONFIG" >&6; }
13581 else
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 printf "%s\n" "no" >&6; }
13584 fi
13585
13586
13587 fi
13588 if test -z "$ac_cv_path_PKG_CONFIG"; then
13589 ac_pt_PKG_CONFIG=$PKG_CONFIG
13590 # Extract the first word of "pkg-config", so it can be a program name with args.
13591 set dummy pkg-config; ac_word=$2
13592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13593 printf %s "checking for $ac_word... " >&6; }
13594 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13595 then :
13596 printf %s "(cached) " >&6
13597 else $as_nop
13598 case $ac_pt_PKG_CONFIG in
13599 [\\/]* | ?:[\\/]*)
13600 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13601 ;;
13602 *)
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13605 do
13606 IFS=$as_save_IFS
13607 case $as_dir in #(((
13608 '') as_dir=./ ;;
13609 */) ;;
13610 *) as_dir=$as_dir/ ;;
13611 esac
13612 for ac_exec_ext in '' $ac_executable_extensions; do
13613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13614 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13616 break 2
13617 fi
13618 done
13619 done
13620 IFS=$as_save_IFS
13621
13622 ;;
13623 esac
13624 fi
13625 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13626 if test -n "$ac_pt_PKG_CONFIG"; then
13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13628 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13629 else
13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631 printf "%s\n" "no" >&6; }
13632 fi
13633
13634 if test "x$ac_pt_PKG_CONFIG" = x; then
13635 PKG_CONFIG=""
13636 else
13637 case $cross_compiling:$ac_tool_warned in
13638 yes:)
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13641 ac_tool_warned=yes ;;
13642 esac
13643 PKG_CONFIG=$ac_pt_PKG_CONFIG
13644 fi
13645 else
13646 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13647 fi
13648
13649 fi
13650 if test -n "$PKG_CONFIG"; then
13651 _pkg_min_version=0.9.0
13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13653 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13654 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13656 printf "%s\n" "yes" >&6; }
13657 else
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 printf "%s\n" "no" >&6; }
13660 PKG_CONFIG=""
13661 fi
13662 fi
13663
13664
13665
13666
13667
13668 # Check whether --enable-selective-werror was given.
13669 if test ${enable_selective_werror+y}
13670 then :
13671 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13672 else $as_nop
13673 SELECTIVE_WERROR=yes
13674 fi
13675
13676
13677
13678
13679
13680 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13681 if test "x$SUNCC" = "xyes"; then
13682 BASE_CFLAGS="-v"
13683 else
13684 BASE_CFLAGS=""
13685 fi
13686
13687 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701 xorg_testset_save_CFLAGS="$CFLAGS"
13702
13703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13706 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13707 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13708 then :
13709 printf %s "(cached) " >&6
13710 else $as_nop
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 int i;
13714 _ACEOF
13715 if ac_fn_c_try_compile "$LINENO"
13716 then :
13717 xorg_cv_cc_flag_unknown_warning_option=yes
13718 else $as_nop
13719 xorg_cv_cc_flag_unknown_warning_option=no
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13722 fi
13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13724 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13726 CFLAGS="$xorg_testset_save_CFLAGS"
13727 fi
13728
13729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13732 fi
13733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13735 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13736 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13737 then :
13738 printf %s "(cached) " >&6
13739 else $as_nop
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 int i;
13743 _ACEOF
13744 if ac_fn_c_try_compile "$LINENO"
13745 then :
13746 xorg_cv_cc_flag_unused_command_line_argument=yes
13747 else $as_nop
13748 xorg_cv_cc_flag_unused_command_line_argument=no
13749 fi
13750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13751 fi
13752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13755 CFLAGS="$xorg_testset_save_CFLAGS"
13756 fi
13757
13758 found="no"
13759
13760 if test $found = "no" ; then
13761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13763 fi
13764
13765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13767 fi
13768
13769 CFLAGS="$CFLAGS -Wall"
13770
13771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13772 printf %s "checking if $CC supports -Wall... " >&6; }
13773 cacheid=xorg_cv_cc_flag__Wall
13774 if eval test \${$cacheid+y}
13775 then :
13776 printf %s "(cached) " >&6
13777 else $as_nop
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 int i;
13781 int
13782 main (void)
13783 {
13784
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_link "$LINENO"
13790 then :
13791 eval $cacheid=yes
13792 else $as_nop
13793 eval $cacheid=no
13794 fi
13795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13796 conftest$ac_exeext conftest.$ac_ext
13797 fi
13798
13799
13800 CFLAGS="$xorg_testset_save_CFLAGS"
13801
13802 eval supported=\$$cacheid
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13804 printf "%s\n" "$supported" >&6; }
13805 if test "$supported" = "yes" ; then
13806 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13807 found="yes"
13808 fi
13809 fi
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825 xorg_testset_save_CFLAGS="$CFLAGS"
13826
13827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13831 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13832 then :
13833 printf %s "(cached) " >&6
13834 else $as_nop
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837 int i;
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"
13840 then :
13841 xorg_cv_cc_flag_unknown_warning_option=yes
13842 else $as_nop
13843 xorg_cv_cc_flag_unknown_warning_option=no
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13846 fi
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13848 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13850 CFLAGS="$xorg_testset_save_CFLAGS"
13851 fi
13852
13853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856 fi
13857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13861 then :
13862 printf %s "(cached) " >&6
13863 else $as_nop
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13866 int i;
13867 _ACEOF
13868 if ac_fn_c_try_compile "$LINENO"
13869 then :
13870 xorg_cv_cc_flag_unused_command_line_argument=yes
13871 else $as_nop
13872 xorg_cv_cc_flag_unused_command_line_argument=no
13873 fi
13874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13875 fi
13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13879 CFLAGS="$xorg_testset_save_CFLAGS"
13880 fi
13881
13882 found="no"
13883
13884 if test $found = "no" ; then
13885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13887 fi
13888
13889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13891 fi
13892
13893 CFLAGS="$CFLAGS -Wpointer-arith"
13894
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13896 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13897 cacheid=xorg_cv_cc_flag__Wpointer_arith
13898 if eval test \${$cacheid+y}
13899 then :
13900 printf %s "(cached) " >&6
13901 else $as_nop
13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13903 /* end confdefs.h. */
13904 int i;
13905 int
13906 main (void)
13907 {
13908
13909 ;
13910 return 0;
13911 }
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"
13914 then :
13915 eval $cacheid=yes
13916 else $as_nop
13917 eval $cacheid=no
13918 fi
13919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13920 conftest$ac_exeext conftest.$ac_ext
13921 fi
13922
13923
13924 CFLAGS="$xorg_testset_save_CFLAGS"
13925
13926 eval supported=\$$cacheid
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13928 printf "%s\n" "$supported" >&6; }
13929 if test "$supported" = "yes" ; then
13930 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13931 found="yes"
13932 fi
13933 fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949 xorg_testset_save_CFLAGS="$CFLAGS"
13950
13951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13954 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13955 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13956 then :
13957 printf %s "(cached) " >&6
13958 else $as_nop
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h. */
13961 int i;
13962 _ACEOF
13963 if ac_fn_c_try_compile "$LINENO"
13964 then :
13965 xorg_cv_cc_flag_unknown_warning_option=yes
13966 else $as_nop
13967 xorg_cv_cc_flag_unknown_warning_option=no
13968 fi
13969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13970 fi
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13974 CFLAGS="$xorg_testset_save_CFLAGS"
13975 fi
13976
13977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13980 fi
13981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13985 then :
13986 printf %s "(cached) " >&6
13987 else $as_nop
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 int i;
13991 _ACEOF
13992 if ac_fn_c_try_compile "$LINENO"
13993 then :
13994 xorg_cv_cc_flag_unused_command_line_argument=yes
13995 else $as_nop
13996 xorg_cv_cc_flag_unused_command_line_argument=no
13997 fi
13998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13999 fi
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14003 CFLAGS="$xorg_testset_save_CFLAGS"
14004 fi
14005
14006 found="no"
14007
14008 if test $found = "no" ; then
14009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011 fi
14012
14013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14015 fi
14016
14017 CFLAGS="$CFLAGS -Wmissing-declarations"
14018
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14020 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14021 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14022 if eval test \${$cacheid+y}
14023 then :
14024 printf %s "(cached) " >&6
14025 else $as_nop
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 int i;
14029 int
14030 main (void)
14031 {
14032
14033 ;
14034 return 0;
14035 }
14036 _ACEOF
14037 if ac_fn_c_try_link "$LINENO"
14038 then :
14039 eval $cacheid=yes
14040 else $as_nop
14041 eval $cacheid=no
14042 fi
14043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14044 conftest$ac_exeext conftest.$ac_ext
14045 fi
14046
14047
14048 CFLAGS="$xorg_testset_save_CFLAGS"
14049
14050 eval supported=\$$cacheid
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14052 printf "%s\n" "$supported" >&6; }
14053 if test "$supported" = "yes" ; then
14054 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14055 found="yes"
14056 fi
14057 fi
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073 xorg_testset_save_CFLAGS="$CFLAGS"
14074
14075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14078 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14079 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14080 then :
14081 printf %s "(cached) " >&6
14082 else $as_nop
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h. */
14085 int i;
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"
14088 then :
14089 xorg_cv_cc_flag_unknown_warning_option=yes
14090 else $as_nop
14091 xorg_cv_cc_flag_unknown_warning_option=no
14092 fi
14093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14094 fi
14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14096 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14098 CFLAGS="$xorg_testset_save_CFLAGS"
14099 fi
14100
14101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14104 fi
14105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14107 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14108 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14109 then :
14110 printf %s "(cached) " >&6
14111 else $as_nop
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 int i;
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"
14117 then :
14118 xorg_cv_cc_flag_unused_command_line_argument=yes
14119 else $as_nop
14120 xorg_cv_cc_flag_unused_command_line_argument=no
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14123 fi
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14125 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14127 CFLAGS="$xorg_testset_save_CFLAGS"
14128 fi
14129
14130 found="no"
14131
14132 if test $found = "no" ; then
14133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14135 fi
14136
14137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14139 fi
14140
14141 CFLAGS="$CFLAGS -Wformat=2"
14142
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14144 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14145 cacheid=xorg_cv_cc_flag__Wformat_2
14146 if eval test \${$cacheid+y}
14147 then :
14148 printf %s "(cached) " >&6
14149 else $as_nop
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14152 int i;
14153 int
14154 main (void)
14155 {
14156
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_link "$LINENO"
14162 then :
14163 eval $cacheid=yes
14164 else $as_nop
14165 eval $cacheid=no
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14168 conftest$ac_exeext conftest.$ac_ext
14169 fi
14170
14171
14172 CFLAGS="$xorg_testset_save_CFLAGS"
14173
14174 eval supported=\$$cacheid
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14176 printf "%s\n" "$supported" >&6; }
14177 if test "$supported" = "yes" ; then
14178 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14179 found="yes"
14180 fi
14181 fi
14182
14183 if test $found = "no" ; then
14184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14186 fi
14187
14188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14190 fi
14191
14192 CFLAGS="$CFLAGS -Wformat"
14193
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14195 printf %s "checking if $CC supports -Wformat... " >&6; }
14196 cacheid=xorg_cv_cc_flag__Wformat
14197 if eval test \${$cacheid+y}
14198 then :
14199 printf %s "(cached) " >&6
14200 else $as_nop
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203 int i;
14204 int
14205 main (void)
14206 {
14207
14208 ;
14209 return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"
14213 then :
14214 eval $cacheid=yes
14215 else $as_nop
14216 eval $cacheid=no
14217 fi
14218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14219 conftest$ac_exeext conftest.$ac_ext
14220 fi
14221
14222
14223 CFLAGS="$xorg_testset_save_CFLAGS"
14224
14225 eval supported=\$$cacheid
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14227 printf "%s\n" "$supported" >&6; }
14228 if test "$supported" = "yes" ; then
14229 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14230 found="yes"
14231 fi
14232 fi
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250 xorg_testset_save_CFLAGS="$CFLAGS"
14251
14252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14256 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14257 then :
14258 printf %s "(cached) " >&6
14259 else $as_nop
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262 int i;
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"
14265 then :
14266 xorg_cv_cc_flag_unknown_warning_option=yes
14267 else $as_nop
14268 xorg_cv_cc_flag_unknown_warning_option=no
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14271 fi
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14273 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14275 CFLAGS="$xorg_testset_save_CFLAGS"
14276 fi
14277
14278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14281 fi
14282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14286 then :
14287 printf %s "(cached) " >&6
14288 else $as_nop
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 int i;
14292 _ACEOF
14293 if ac_fn_c_try_compile "$LINENO"
14294 then :
14295 xorg_cv_cc_flag_unused_command_line_argument=yes
14296 else $as_nop
14297 xorg_cv_cc_flag_unused_command_line_argument=no
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14300 fi
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14304 CFLAGS="$xorg_testset_save_CFLAGS"
14305 fi
14306
14307 found="no"
14308
14309 if test $found = "no" ; then
14310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14312 fi
14313
14314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14316 fi
14317
14318 CFLAGS="$CFLAGS -Wstrict-prototypes"
14319
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14321 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14322 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14323 if eval test \${$cacheid+y}
14324 then :
14325 printf %s "(cached) " >&6
14326 else $as_nop
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329 int i;
14330 int
14331 main (void)
14332 {
14333
14334 ;
14335 return 0;
14336 }
14337 _ACEOF
14338 if ac_fn_c_try_link "$LINENO"
14339 then :
14340 eval $cacheid=yes
14341 else $as_nop
14342 eval $cacheid=no
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14345 conftest$ac_exeext conftest.$ac_ext
14346 fi
14347
14348
14349 CFLAGS="$xorg_testset_save_CFLAGS"
14350
14351 eval supported=\$$cacheid
14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14353 printf "%s\n" "$supported" >&6; }
14354 if test "$supported" = "yes" ; then
14355 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14356 found="yes"
14357 fi
14358 fi
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374 xorg_testset_save_CFLAGS="$CFLAGS"
14375
14376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14379 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14380 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else $as_nop
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 int i;
14387 _ACEOF
14388 if ac_fn_c_try_compile "$LINENO"
14389 then :
14390 xorg_cv_cc_flag_unknown_warning_option=yes
14391 else $as_nop
14392 xorg_cv_cc_flag_unknown_warning_option=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14395 fi
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14397 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14399 CFLAGS="$xorg_testset_save_CFLAGS"
14400 fi
14401
14402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14405 fi
14406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14408 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14409 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14410 then :
14411 printf %s "(cached) " >&6
14412 else $as_nop
14413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h. */
14415 int i;
14416 _ACEOF
14417 if ac_fn_c_try_compile "$LINENO"
14418 then :
14419 xorg_cv_cc_flag_unused_command_line_argument=yes
14420 else $as_nop
14421 xorg_cv_cc_flag_unused_command_line_argument=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14424 fi
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14426 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14428 CFLAGS="$xorg_testset_save_CFLAGS"
14429 fi
14430
14431 found="no"
14432
14433 if test $found = "no" ; then
14434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14436 fi
14437
14438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14440 fi
14441
14442 CFLAGS="$CFLAGS -Wmissing-prototypes"
14443
14444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14445 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14446 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14447 if eval test \${$cacheid+y}
14448 then :
14449 printf %s "(cached) " >&6
14450 else $as_nop
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 int i;
14454 int
14455 main (void)
14456 {
14457
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"
14463 then :
14464 eval $cacheid=yes
14465 else $as_nop
14466 eval $cacheid=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14469 conftest$ac_exeext conftest.$ac_ext
14470 fi
14471
14472
14473 CFLAGS="$xorg_testset_save_CFLAGS"
14474
14475 eval supported=\$$cacheid
14476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14477 printf "%s\n" "$supported" >&6; }
14478 if test "$supported" = "yes" ; then
14479 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14480 found="yes"
14481 fi
14482 fi
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498 xorg_testset_save_CFLAGS="$CFLAGS"
14499
14500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14505 then :
14506 printf %s "(cached) " >&6
14507 else $as_nop
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510 int i;
14511 _ACEOF
14512 if ac_fn_c_try_compile "$LINENO"
14513 then :
14514 xorg_cv_cc_flag_unknown_warning_option=yes
14515 else $as_nop
14516 xorg_cv_cc_flag_unknown_warning_option=no
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14519 fi
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14521 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14523 CFLAGS="$xorg_testset_save_CFLAGS"
14524 fi
14525
14526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14529 fi
14530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14534 then :
14535 printf %s "(cached) " >&6
14536 else $as_nop
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 int i;
14540 _ACEOF
14541 if ac_fn_c_try_compile "$LINENO"
14542 then :
14543 xorg_cv_cc_flag_unused_command_line_argument=yes
14544 else $as_nop
14545 xorg_cv_cc_flag_unused_command_line_argument=no
14546 fi
14547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14548 fi
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14550 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14552 CFLAGS="$xorg_testset_save_CFLAGS"
14553 fi
14554
14555 found="no"
14556
14557 if test $found = "no" ; then
14558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14560 fi
14561
14562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14564 fi
14565
14566 CFLAGS="$CFLAGS -Wnested-externs"
14567
14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14569 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14570 cacheid=xorg_cv_cc_flag__Wnested_externs
14571 if eval test \${$cacheid+y}
14572 then :
14573 printf %s "(cached) " >&6
14574 else $as_nop
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 int i;
14578 int
14579 main (void)
14580 {
14581
14582 ;
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_link "$LINENO"
14587 then :
14588 eval $cacheid=yes
14589 else $as_nop
14590 eval $cacheid=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14593 conftest$ac_exeext conftest.$ac_ext
14594 fi
14595
14596
14597 CFLAGS="$xorg_testset_save_CFLAGS"
14598
14599 eval supported=\$$cacheid
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14601 printf "%s\n" "$supported" >&6; }
14602 if test "$supported" = "yes" ; then
14603 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14604 found="yes"
14605 fi
14606 fi
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622 xorg_testset_save_CFLAGS="$CFLAGS"
14623
14624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14627 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14628 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14629 then :
14630 printf %s "(cached) " >&6
14631 else $as_nop
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14634 int i;
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"
14637 then :
14638 xorg_cv_cc_flag_unknown_warning_option=yes
14639 else $as_nop
14640 xorg_cv_cc_flag_unknown_warning_option=no
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14643 fi
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14645 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14647 CFLAGS="$xorg_testset_save_CFLAGS"
14648 fi
14649
14650 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14653 fi
14654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14656 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14657 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14658 then :
14659 printf %s "(cached) " >&6
14660 else $as_nop
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663 int i;
14664 _ACEOF
14665 if ac_fn_c_try_compile "$LINENO"
14666 then :
14667 xorg_cv_cc_flag_unused_command_line_argument=yes
14668 else $as_nop
14669 xorg_cv_cc_flag_unused_command_line_argument=no
14670 fi
14671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14672 fi
14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14676 CFLAGS="$xorg_testset_save_CFLAGS"
14677 fi
14678
14679 found="no"
14680
14681 if test $found = "no" ; then
14682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14684 fi
14685
14686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14688 fi
14689
14690 CFLAGS="$CFLAGS -Wbad-function-cast"
14691
14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14693 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14694 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14695 if eval test \${$cacheid+y}
14696 then :
14697 printf %s "(cached) " >&6
14698 else $as_nop
14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701 int i;
14702 int
14703 main (void)
14704 {
14705
14706 ;
14707 return 0;
14708 }
14709 _ACEOF
14710 if ac_fn_c_try_link "$LINENO"
14711 then :
14712 eval $cacheid=yes
14713 else $as_nop
14714 eval $cacheid=no
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14717 conftest$ac_exeext conftest.$ac_ext
14718 fi
14719
14720
14721 CFLAGS="$xorg_testset_save_CFLAGS"
14722
14723 eval supported=\$$cacheid
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14725 printf "%s\n" "$supported" >&6; }
14726 if test "$supported" = "yes" ; then
14727 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14728 found="yes"
14729 fi
14730 fi
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746 xorg_testset_save_CFLAGS="$CFLAGS"
14747
14748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14751 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14752 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14753 then :
14754 printf %s "(cached) " >&6
14755 else $as_nop
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14758 int i;
14759 _ACEOF
14760 if ac_fn_c_try_compile "$LINENO"
14761 then :
14762 xorg_cv_cc_flag_unknown_warning_option=yes
14763 else $as_nop
14764 xorg_cv_cc_flag_unknown_warning_option=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14767 fi
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14769 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14771 CFLAGS="$xorg_testset_save_CFLAGS"
14772 fi
14773
14774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14777 fi
14778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14780 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14781 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14782 then :
14783 printf %s "(cached) " >&6
14784 else $as_nop
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 int i;
14788 _ACEOF
14789 if ac_fn_c_try_compile "$LINENO"
14790 then :
14791 xorg_cv_cc_flag_unused_command_line_argument=yes
14792 else $as_nop
14793 xorg_cv_cc_flag_unused_command_line_argument=no
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14796 fi
14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14800 CFLAGS="$xorg_testset_save_CFLAGS"
14801 fi
14802
14803 found="no"
14804
14805 if test $found = "no" ; then
14806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14808 fi
14809
14810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14812 fi
14813
14814 CFLAGS="$CFLAGS -Wold-style-definition"
14815
14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14817 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14818 cacheid=xorg_cv_cc_flag__Wold_style_definition
14819 if eval test \${$cacheid+y}
14820 then :
14821 printf %s "(cached) " >&6
14822 else $as_nop
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 int i;
14826 int
14827 main (void)
14828 {
14829
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 if ac_fn_c_try_link "$LINENO"
14835 then :
14836 eval $cacheid=yes
14837 else $as_nop
14838 eval $cacheid=no
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14841 conftest$ac_exeext conftest.$ac_ext
14842 fi
14843
14844
14845 CFLAGS="$xorg_testset_save_CFLAGS"
14846
14847 eval supported=\$$cacheid
14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14849 printf "%s\n" "$supported" >&6; }
14850 if test "$supported" = "yes" ; then
14851 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14852 found="yes"
14853 fi
14854 fi
14855
14856 if test $found = "no" ; then
14857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14859 fi
14860
14861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14863 fi
14864
14865 CFLAGS="$CFLAGS -fd"
14866
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14868 printf %s "checking if $CC supports -fd... " >&6; }
14869 cacheid=xorg_cv_cc_flag__fd
14870 if eval test \${$cacheid+y}
14871 then :
14872 printf %s "(cached) " >&6
14873 else $as_nop
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14876 int i;
14877 int
14878 main (void)
14879 {
14880
14881 ;
14882 return 0;
14883 }
14884 _ACEOF
14885 if ac_fn_c_try_link "$LINENO"
14886 then :
14887 eval $cacheid=yes
14888 else $as_nop
14889 eval $cacheid=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14892 conftest$ac_exeext conftest.$ac_ext
14893 fi
14894
14895
14896 CFLAGS="$xorg_testset_save_CFLAGS"
14897
14898 eval supported=\$$cacheid
14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14900 printf "%s\n" "$supported" >&6; }
14901 if test "$supported" = "yes" ; then
14902 BASE_CFLAGS="$BASE_CFLAGS -fd"
14903 found="yes"
14904 fi
14905 fi
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921 xorg_testset_save_CFLAGS="$CFLAGS"
14922
14923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14927 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14928 then :
14929 printf %s "(cached) " >&6
14930 else $as_nop
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14933 int i;
14934 _ACEOF
14935 if ac_fn_c_try_compile "$LINENO"
14936 then :
14937 xorg_cv_cc_flag_unknown_warning_option=yes
14938 else $as_nop
14939 xorg_cv_cc_flag_unknown_warning_option=no
14940 fi
14941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14942 fi
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14944 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14946 CFLAGS="$xorg_testset_save_CFLAGS"
14947 fi
14948
14949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952 fi
14953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14955 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14956 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14957 then :
14958 printf %s "(cached) " >&6
14959 else $as_nop
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 int i;
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"
14965 then :
14966 xorg_cv_cc_flag_unused_command_line_argument=yes
14967 else $as_nop
14968 xorg_cv_cc_flag_unused_command_line_argument=no
14969 fi
14970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14971 fi
14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14973 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14975 CFLAGS="$xorg_testset_save_CFLAGS"
14976 fi
14977
14978 found="no"
14979
14980 if test $found = "no" ; then
14981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14983 fi
14984
14985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14987 fi
14988
14989 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14990
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14992 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14993 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14994 if eval test \${$cacheid+y}
14995 then :
14996 printf %s "(cached) " >&6
14997 else $as_nop
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000 int i;
15001 int
15002 main (void)
15003 {
15004
15005 ;
15006 return 0;
15007 }
15008 _ACEOF
15009 if ac_fn_c_try_link "$LINENO"
15010 then :
15011 eval $cacheid=yes
15012 else $as_nop
15013 eval $cacheid=no
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15016 conftest$ac_exeext conftest.$ac_ext
15017 fi
15018
15019
15020 CFLAGS="$xorg_testset_save_CFLAGS"
15021
15022 eval supported=\$$cacheid
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15024 printf "%s\n" "$supported" >&6; }
15025 if test "$supported" = "yes" ; then
15026 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15027 found="yes"
15028 fi
15029 fi
15030
15031
15032
15033
15034
15035 # This chunk adds additional warnings that could catch undesired effects.
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049 xorg_testset_save_CFLAGS="$CFLAGS"
15050
15051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15056 then :
15057 printf %s "(cached) " >&6
15058 else $as_nop
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 int i;
15062 _ACEOF
15063 if ac_fn_c_try_compile "$LINENO"
15064 then :
15065 xorg_cv_cc_flag_unknown_warning_option=yes
15066 else $as_nop
15067 xorg_cv_cc_flag_unknown_warning_option=no
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15070 fi
15071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15074 CFLAGS="$xorg_testset_save_CFLAGS"
15075 fi
15076
15077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080 fi
15081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15085 then :
15086 printf %s "(cached) " >&6
15087 else $as_nop
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 int i;
15091 _ACEOF
15092 if ac_fn_c_try_compile "$LINENO"
15093 then :
15094 xorg_cv_cc_flag_unused_command_line_argument=yes
15095 else $as_nop
15096 xorg_cv_cc_flag_unused_command_line_argument=no
15097 fi
15098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15099 fi
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15101 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15103 CFLAGS="$xorg_testset_save_CFLAGS"
15104 fi
15105
15106 found="no"
15107
15108 if test $found = "no" ; then
15109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15111 fi
15112
15113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115 fi
15116
15117 CFLAGS="$CFLAGS -Wunused"
15118
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15120 printf %s "checking if $CC supports -Wunused... " >&6; }
15121 cacheid=xorg_cv_cc_flag__Wunused
15122 if eval test \${$cacheid+y}
15123 then :
15124 printf %s "(cached) " >&6
15125 else $as_nop
15126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15128 int i;
15129 int
15130 main (void)
15131 {
15132
15133 ;
15134 return 0;
15135 }
15136 _ACEOF
15137 if ac_fn_c_try_link "$LINENO"
15138 then :
15139 eval $cacheid=yes
15140 else $as_nop
15141 eval $cacheid=no
15142 fi
15143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15144 conftest$ac_exeext conftest.$ac_ext
15145 fi
15146
15147
15148 CFLAGS="$xorg_testset_save_CFLAGS"
15149
15150 eval supported=\$$cacheid
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15152 printf "%s\n" "$supported" >&6; }
15153 if test "$supported" = "yes" ; then
15154 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15155 found="yes"
15156 fi
15157 fi
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173 xorg_testset_save_CFLAGS="$CFLAGS"
15174
15175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15180 then :
15181 printf %s "(cached) " >&6
15182 else $as_nop
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185 int i;
15186 _ACEOF
15187 if ac_fn_c_try_compile "$LINENO"
15188 then :
15189 xorg_cv_cc_flag_unknown_warning_option=yes
15190 else $as_nop
15191 xorg_cv_cc_flag_unknown_warning_option=no
15192 fi
15193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15194 fi
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15196 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15198 CFLAGS="$xorg_testset_save_CFLAGS"
15199 fi
15200
15201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15204 fi
15205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15207 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15208 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15209 then :
15210 printf %s "(cached) " >&6
15211 else $as_nop
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214 int i;
15215 _ACEOF
15216 if ac_fn_c_try_compile "$LINENO"
15217 then :
15218 xorg_cv_cc_flag_unused_command_line_argument=yes
15219 else $as_nop
15220 xorg_cv_cc_flag_unused_command_line_argument=no
15221 fi
15222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15223 fi
15224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15225 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15227 CFLAGS="$xorg_testset_save_CFLAGS"
15228 fi
15229
15230 found="no"
15231
15232 if test $found = "no" ; then
15233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15235 fi
15236
15237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15239 fi
15240
15241 CFLAGS="$CFLAGS -Wuninitialized"
15242
15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15244 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15245 cacheid=xorg_cv_cc_flag__Wuninitialized
15246 if eval test \${$cacheid+y}
15247 then :
15248 printf %s "(cached) " >&6
15249 else $as_nop
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15252 int i;
15253 int
15254 main (void)
15255 {
15256
15257 ;
15258 return 0;
15259 }
15260 _ACEOF
15261 if ac_fn_c_try_link "$LINENO"
15262 then :
15263 eval $cacheid=yes
15264 else $as_nop
15265 eval $cacheid=no
15266 fi
15267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15268 conftest$ac_exeext conftest.$ac_ext
15269 fi
15270
15271
15272 CFLAGS="$xorg_testset_save_CFLAGS"
15273
15274 eval supported=\$$cacheid
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15276 printf "%s\n" "$supported" >&6; }
15277 if test "$supported" = "yes" ; then
15278 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15279 found="yes"
15280 fi
15281 fi
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297 xorg_testset_save_CFLAGS="$CFLAGS"
15298
15299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15303 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15304 then :
15305 printf %s "(cached) " >&6
15306 else $as_nop
15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308 /* end confdefs.h. */
15309 int i;
15310 _ACEOF
15311 if ac_fn_c_try_compile "$LINENO"
15312 then :
15313 xorg_cv_cc_flag_unknown_warning_option=yes
15314 else $as_nop
15315 xorg_cv_cc_flag_unknown_warning_option=no
15316 fi
15317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15318 fi
15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15322 CFLAGS="$xorg_testset_save_CFLAGS"
15323 fi
15324
15325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15328 fi
15329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15333 then :
15334 printf %s "(cached) " >&6
15335 else $as_nop
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 int i;
15339 _ACEOF
15340 if ac_fn_c_try_compile "$LINENO"
15341 then :
15342 xorg_cv_cc_flag_unused_command_line_argument=yes
15343 else $as_nop
15344 xorg_cv_cc_flag_unused_command_line_argument=no
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15347 fi
15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15351 CFLAGS="$xorg_testset_save_CFLAGS"
15352 fi
15353
15354 found="no"
15355
15356 if test $found = "no" ; then
15357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15359 fi
15360
15361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15363 fi
15364
15365 CFLAGS="$CFLAGS -Wshadow"
15366
15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15368 printf %s "checking if $CC supports -Wshadow... " >&6; }
15369 cacheid=xorg_cv_cc_flag__Wshadow
15370 if eval test \${$cacheid+y}
15371 then :
15372 printf %s "(cached) " >&6
15373 else $as_nop
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376 int i;
15377 int
15378 main (void)
15379 {
15380
15381 ;
15382 return 0;
15383 }
15384 _ACEOF
15385 if ac_fn_c_try_link "$LINENO"
15386 then :
15387 eval $cacheid=yes
15388 else $as_nop
15389 eval $cacheid=no
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15392 conftest$ac_exeext conftest.$ac_ext
15393 fi
15394
15395
15396 CFLAGS="$xorg_testset_save_CFLAGS"
15397
15398 eval supported=\$$cacheid
15399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15400 printf "%s\n" "$supported" >&6; }
15401 if test "$supported" = "yes" ; then
15402 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15403 found="yes"
15404 fi
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421 xorg_testset_save_CFLAGS="$CFLAGS"
15422
15423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15427 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15428 then :
15429 printf %s "(cached) " >&6
15430 else $as_nop
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433 int i;
15434 _ACEOF
15435 if ac_fn_c_try_compile "$LINENO"
15436 then :
15437 xorg_cv_cc_flag_unknown_warning_option=yes
15438 else $as_nop
15439 xorg_cv_cc_flag_unknown_warning_option=no
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15442 fi
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15444 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15446 CFLAGS="$xorg_testset_save_CFLAGS"
15447 fi
15448
15449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15452 fi
15453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15455 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15456 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15457 then :
15458 printf %s "(cached) " >&6
15459 else $as_nop
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15462 int i;
15463 _ACEOF
15464 if ac_fn_c_try_compile "$LINENO"
15465 then :
15466 xorg_cv_cc_flag_unused_command_line_argument=yes
15467 else $as_nop
15468 xorg_cv_cc_flag_unused_command_line_argument=no
15469 fi
15470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15471 fi
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15473 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15475 CFLAGS="$xorg_testset_save_CFLAGS"
15476 fi
15477
15478 found="no"
15479
15480 if test $found = "no" ; then
15481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483 fi
15484
15485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15487 fi
15488
15489 CFLAGS="$CFLAGS -Wmissing-noreturn"
15490
15491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15492 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15493 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15494 if eval test \${$cacheid+y}
15495 then :
15496 printf %s "(cached) " >&6
15497 else $as_nop
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15500 int i;
15501 int
15502 main (void)
15503 {
15504
15505 ;
15506 return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_link "$LINENO"
15510 then :
15511 eval $cacheid=yes
15512 else $as_nop
15513 eval $cacheid=no
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15516 conftest$ac_exeext conftest.$ac_ext
15517 fi
15518
15519
15520 CFLAGS="$xorg_testset_save_CFLAGS"
15521
15522 eval supported=\$$cacheid
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15524 printf "%s\n" "$supported" >&6; }
15525 if test "$supported" = "yes" ; then
15526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15527 found="yes"
15528 fi
15529 fi
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545 xorg_testset_save_CFLAGS="$CFLAGS"
15546
15547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15551 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15552 then :
15553 printf %s "(cached) " >&6
15554 else $as_nop
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 int i;
15558 _ACEOF
15559 if ac_fn_c_try_compile "$LINENO"
15560 then :
15561 xorg_cv_cc_flag_unknown_warning_option=yes
15562 else $as_nop
15563 xorg_cv_cc_flag_unknown_warning_option=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15566 fi
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571 fi
15572
15573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15576 fi
15577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15581 then :
15582 printf %s "(cached) " >&6
15583 else $as_nop
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586 int i;
15587 _ACEOF
15588 if ac_fn_c_try_compile "$LINENO"
15589 then :
15590 xorg_cv_cc_flag_unused_command_line_argument=yes
15591 else $as_nop
15592 xorg_cv_cc_flag_unused_command_line_argument=no
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15595 fi
15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15597 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15599 CFLAGS="$xorg_testset_save_CFLAGS"
15600 fi
15601
15602 found="no"
15603
15604 if test $found = "no" ; then
15605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15607 fi
15608
15609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15611 fi
15612
15613 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15614
15615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15616 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15617 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15618 if eval test \${$cacheid+y}
15619 then :
15620 printf %s "(cached) " >&6
15621 else $as_nop
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 int i;
15625 int
15626 main (void)
15627 {
15628
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"
15634 then :
15635 eval $cacheid=yes
15636 else $as_nop
15637 eval $cacheid=no
15638 fi
15639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15640 conftest$ac_exeext conftest.$ac_ext
15641 fi
15642
15643
15644 CFLAGS="$xorg_testset_save_CFLAGS"
15645
15646 eval supported=\$$cacheid
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15648 printf "%s\n" "$supported" >&6; }
15649 if test "$supported" = "yes" ; then
15650 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15651 found="yes"
15652 fi
15653 fi
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669 xorg_testset_save_CFLAGS="$CFLAGS"
15670
15671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15676 then :
15677 printf %s "(cached) " >&6
15678 else $as_nop
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 int i;
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"
15684 then :
15685 xorg_cv_cc_flag_unknown_warning_option=yes
15686 else $as_nop
15687 xorg_cv_cc_flag_unknown_warning_option=no
15688 fi
15689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15690 fi
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15694 CFLAGS="$xorg_testset_save_CFLAGS"
15695 fi
15696
15697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700 fi
15701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15705 then :
15706 printf %s "(cached) " >&6
15707 else $as_nop
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 int i;
15711 _ACEOF
15712 if ac_fn_c_try_compile "$LINENO"
15713 then :
15714 xorg_cv_cc_flag_unused_command_line_argument=yes
15715 else $as_nop
15716 xorg_cv_cc_flag_unused_command_line_argument=no
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15723 CFLAGS="$xorg_testset_save_CFLAGS"
15724 fi
15725
15726 found="no"
15727
15728 if test $found = "no" ; then
15729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731 fi
15732
15733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15735 fi
15736
15737 CFLAGS="$CFLAGS -Wredundant-decls"
15738
15739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15740 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15741 cacheid=xorg_cv_cc_flag__Wredundant_decls
15742 if eval test \${$cacheid+y}
15743 then :
15744 printf %s "(cached) " >&6
15745 else $as_nop
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15748 int i;
15749 int
15750 main (void)
15751 {
15752
15753 ;
15754 return 0;
15755 }
15756 _ACEOF
15757 if ac_fn_c_try_link "$LINENO"
15758 then :
15759 eval $cacheid=yes
15760 else $as_nop
15761 eval $cacheid=no
15762 fi
15763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15764 conftest$ac_exeext conftest.$ac_ext
15765 fi
15766
15767
15768 CFLAGS="$xorg_testset_save_CFLAGS"
15769
15770 eval supported=\$$cacheid
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15772 printf "%s\n" "$supported" >&6; }
15773 if test "$supported" = "yes" ; then
15774 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15775 found="yes"
15776 fi
15777 fi
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793 xorg_testset_save_CFLAGS="$CFLAGS"
15794
15795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15800 then :
15801 printf %s "(cached) " >&6
15802 else $as_nop
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 int i;
15806 _ACEOF
15807 if ac_fn_c_try_compile "$LINENO"
15808 then :
15809 xorg_cv_cc_flag_unknown_warning_option=yes
15810 else $as_nop
15811 xorg_cv_cc_flag_unknown_warning_option=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 fi
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15818 CFLAGS="$xorg_testset_save_CFLAGS"
15819 fi
15820
15821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824 fi
15825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15829 then :
15830 printf %s "(cached) " >&6
15831 else $as_nop
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 int i;
15835 _ACEOF
15836 if ac_fn_c_try_compile "$LINENO"
15837 then :
15838 xorg_cv_cc_flag_unused_command_line_argument=yes
15839 else $as_nop
15840 xorg_cv_cc_flag_unused_command_line_argument=no
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15843 fi
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15847 CFLAGS="$xorg_testset_save_CFLAGS"
15848 fi
15849
15850 found="no"
15851
15852 if test $found = "no" ; then
15853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15855 fi
15856
15857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15859 fi
15860
15861 CFLAGS="$CFLAGS -Wlogical-op"
15862
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15864 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15865 cacheid=xorg_cv_cc_flag__Wlogical_op
15866 if eval test \${$cacheid+y}
15867 then :
15868 printf %s "(cached) " >&6
15869 else $as_nop
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872 int i;
15873 int
15874 main (void)
15875 {
15876
15877 ;
15878 return 0;
15879 }
15880 _ACEOF
15881 if ac_fn_c_try_link "$LINENO"
15882 then :
15883 eval $cacheid=yes
15884 else $as_nop
15885 eval $cacheid=no
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15888 conftest$ac_exeext conftest.$ac_ext
15889 fi
15890
15891
15892 CFLAGS="$xorg_testset_save_CFLAGS"
15893
15894 eval supported=\$$cacheid
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15896 printf "%s\n" "$supported" >&6; }
15897 if test "$supported" = "yes" ; then
15898 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15899 found="yes"
15900 fi
15901 fi
15902
15903
15904
15905 # These are currently disabled because they are noisy. They will be enabled
15906 # in the future once the codebase is sufficiently modernized to silence
15907 # them. For now, I don't want them to drown out the other warnings.
15908 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15909 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15910 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15911
15912 # Turn some warnings into errors, so we don't accidently get successful builds
15913 # when there are problems that should be fixed.
15914
15915 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929 xorg_testset_save_CFLAGS="$CFLAGS"
15930
15931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15934 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15935 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15936 then :
15937 printf %s "(cached) " >&6
15938 else $as_nop
15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15940 /* end confdefs.h. */
15941 int i;
15942 _ACEOF
15943 if ac_fn_c_try_compile "$LINENO"
15944 then :
15945 xorg_cv_cc_flag_unknown_warning_option=yes
15946 else $as_nop
15947 xorg_cv_cc_flag_unknown_warning_option=no
15948 fi
15949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15950 fi
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15952 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15954 CFLAGS="$xorg_testset_save_CFLAGS"
15955 fi
15956
15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960 fi
15961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15963 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15964 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15965 then :
15966 printf %s "(cached) " >&6
15967 else $as_nop
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970 int i;
15971 _ACEOF
15972 if ac_fn_c_try_compile "$LINENO"
15973 then :
15974 xorg_cv_cc_flag_unused_command_line_argument=yes
15975 else $as_nop
15976 xorg_cv_cc_flag_unused_command_line_argument=no
15977 fi
15978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15979 fi
15980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15981 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15983 CFLAGS="$xorg_testset_save_CFLAGS"
15984 fi
15985
15986 found="no"
15987
15988 if test $found = "no" ; then
15989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15991 fi
15992
15993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15995 fi
15996
15997 CFLAGS="$CFLAGS -Werror=implicit"
15998
15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16000 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16001 cacheid=xorg_cv_cc_flag__Werror_implicit
16002 if eval test \${$cacheid+y}
16003 then :
16004 printf %s "(cached) " >&6
16005 else $as_nop
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16008 int i;
16009 int
16010 main (void)
16011 {
16012
16013 ;
16014 return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_c_try_link "$LINENO"
16018 then :
16019 eval $cacheid=yes
16020 else $as_nop
16021 eval $cacheid=no
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16024 conftest$ac_exeext conftest.$ac_ext
16025 fi
16026
16027
16028 CFLAGS="$xorg_testset_save_CFLAGS"
16029
16030 eval supported=\$$cacheid
16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16032 printf "%s\n" "$supported" >&6; }
16033 if test "$supported" = "yes" ; then
16034 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16035 found="yes"
16036 fi
16037 fi
16038
16039 if test $found = "no" ; then
16040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16042 fi
16043
16044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16046 fi
16047
16048 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16049
16050 { 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
16051 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16052 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16053 if eval test \${$cacheid+y}
16054 then :
16055 printf %s "(cached) " >&6
16056 else $as_nop
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16059 int i;
16060 int
16061 main (void)
16062 {
16063
16064 ;
16065 return 0;
16066 }
16067 _ACEOF
16068 if ac_fn_c_try_link "$LINENO"
16069 then :
16070 eval $cacheid=yes
16071 else $as_nop
16072 eval $cacheid=no
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16075 conftest$ac_exeext conftest.$ac_ext
16076 fi
16077
16078
16079 CFLAGS="$xorg_testset_save_CFLAGS"
16080
16081 eval supported=\$$cacheid
16082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16083 printf "%s\n" "$supported" >&6; }
16084 if test "$supported" = "yes" ; then
16085 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16086 found="yes"
16087 fi
16088 fi
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104 xorg_testset_save_CFLAGS="$CFLAGS"
16105
16106 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16109 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16110 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16111 then :
16112 printf %s "(cached) " >&6
16113 else $as_nop
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115 /* end confdefs.h. */
16116 int i;
16117 _ACEOF
16118 if ac_fn_c_try_compile "$LINENO"
16119 then :
16120 xorg_cv_cc_flag_unknown_warning_option=yes
16121 else $as_nop
16122 xorg_cv_cc_flag_unknown_warning_option=no
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16125 fi
16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16127 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16129 CFLAGS="$xorg_testset_save_CFLAGS"
16130 fi
16131
16132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16135 fi
16136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16138 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16139 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16140 then :
16141 printf %s "(cached) " >&6
16142 else $as_nop
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16145 int i;
16146 _ACEOF
16147 if ac_fn_c_try_compile "$LINENO"
16148 then :
16149 xorg_cv_cc_flag_unused_command_line_argument=yes
16150 else $as_nop
16151 xorg_cv_cc_flag_unused_command_line_argument=no
16152 fi
16153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16154 fi
16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16156 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16158 CFLAGS="$xorg_testset_save_CFLAGS"
16159 fi
16160
16161 found="no"
16162
16163 if test $found = "no" ; then
16164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16166 fi
16167
16168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16170 fi
16171
16172 CFLAGS="$CFLAGS -Werror=nonnull"
16173
16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16175 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16176 cacheid=xorg_cv_cc_flag__Werror_nonnull
16177 if eval test \${$cacheid+y}
16178 then :
16179 printf %s "(cached) " >&6
16180 else $as_nop
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 int i;
16184 int
16185 main (void)
16186 {
16187
16188 ;
16189 return 0;
16190 }
16191 _ACEOF
16192 if ac_fn_c_try_link "$LINENO"
16193 then :
16194 eval $cacheid=yes
16195 else $as_nop
16196 eval $cacheid=no
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16199 conftest$ac_exeext conftest.$ac_ext
16200 fi
16201
16202
16203 CFLAGS="$xorg_testset_save_CFLAGS"
16204
16205 eval supported=\$$cacheid
16206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16207 printf "%s\n" "$supported" >&6; }
16208 if test "$supported" = "yes" ; then
16209 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16210 found="yes"
16211 fi
16212 fi
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228 xorg_testset_save_CFLAGS="$CFLAGS"
16229
16230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16233 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16234 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16235 then :
16236 printf %s "(cached) " >&6
16237 else $as_nop
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240 int i;
16241 _ACEOF
16242 if ac_fn_c_try_compile "$LINENO"
16243 then :
16244 xorg_cv_cc_flag_unknown_warning_option=yes
16245 else $as_nop
16246 xorg_cv_cc_flag_unknown_warning_option=no
16247 fi
16248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16249 fi
16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16253 CFLAGS="$xorg_testset_save_CFLAGS"
16254 fi
16255
16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259 fi
16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16264 then :
16265 printf %s "(cached) " >&6
16266 else $as_nop
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16269 int i;
16270 _ACEOF
16271 if ac_fn_c_try_compile "$LINENO"
16272 then :
16273 xorg_cv_cc_flag_unused_command_line_argument=yes
16274 else $as_nop
16275 xorg_cv_cc_flag_unused_command_line_argument=no
16276 fi
16277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16278 fi
16279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16280 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16281 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16282 CFLAGS="$xorg_testset_save_CFLAGS"
16283 fi
16284
16285 found="no"
16286
16287 if test $found = "no" ; then
16288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16290 fi
16291
16292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16294 fi
16295
16296 CFLAGS="$CFLAGS -Werror=init-self"
16297
16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16299 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16300 cacheid=xorg_cv_cc_flag__Werror_init_self
16301 if eval test \${$cacheid+y}
16302 then :
16303 printf %s "(cached) " >&6
16304 else $as_nop
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 int i;
16308 int
16309 main (void)
16310 {
16311
16312 ;
16313 return 0;
16314 }
16315 _ACEOF
16316 if ac_fn_c_try_link "$LINENO"
16317 then :
16318 eval $cacheid=yes
16319 else $as_nop
16320 eval $cacheid=no
16321 fi
16322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16323 conftest$ac_exeext conftest.$ac_ext
16324 fi
16325
16326
16327 CFLAGS="$xorg_testset_save_CFLAGS"
16328
16329 eval supported=\$$cacheid
16330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16331 printf "%s\n" "$supported" >&6; }
16332 if test "$supported" = "yes" ; then
16333 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16334 found="yes"
16335 fi
16336 fi
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352 xorg_testset_save_CFLAGS="$CFLAGS"
16353
16354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16358 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16359 then :
16360 printf %s "(cached) " >&6
16361 else $as_nop
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16364 int i;
16365 _ACEOF
16366 if ac_fn_c_try_compile "$LINENO"
16367 then :
16368 xorg_cv_cc_flag_unknown_warning_option=yes
16369 else $as_nop
16370 xorg_cv_cc_flag_unknown_warning_option=no
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16373 fi
16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16375 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16377 CFLAGS="$xorg_testset_save_CFLAGS"
16378 fi
16379
16380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16383 fi
16384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16386 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16387 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16388 then :
16389 printf %s "(cached) " >&6
16390 else $as_nop
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 int i;
16394 _ACEOF
16395 if ac_fn_c_try_compile "$LINENO"
16396 then :
16397 xorg_cv_cc_flag_unused_command_line_argument=yes
16398 else $as_nop
16399 xorg_cv_cc_flag_unused_command_line_argument=no
16400 fi
16401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16402 fi
16403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16404 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16406 CFLAGS="$xorg_testset_save_CFLAGS"
16407 fi
16408
16409 found="no"
16410
16411 if test $found = "no" ; then
16412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414 fi
16415
16416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16418 fi
16419
16420 CFLAGS="$CFLAGS -Werror=main"
16421
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16423 printf %s "checking if $CC supports -Werror=main... " >&6; }
16424 cacheid=xorg_cv_cc_flag__Werror_main
16425 if eval test \${$cacheid+y}
16426 then :
16427 printf %s "(cached) " >&6
16428 else $as_nop
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16431 int i;
16432 int
16433 main (void)
16434 {
16435
16436 ;
16437 return 0;
16438 }
16439 _ACEOF
16440 if ac_fn_c_try_link "$LINENO"
16441 then :
16442 eval $cacheid=yes
16443 else $as_nop
16444 eval $cacheid=no
16445 fi
16446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16447 conftest$ac_exeext conftest.$ac_ext
16448 fi
16449
16450
16451 CFLAGS="$xorg_testset_save_CFLAGS"
16452
16453 eval supported=\$$cacheid
16454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16455 printf "%s\n" "$supported" >&6; }
16456 if test "$supported" = "yes" ; then
16457 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16458 found="yes"
16459 fi
16460 fi
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476 xorg_testset_save_CFLAGS="$CFLAGS"
16477
16478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16483 then :
16484 printf %s "(cached) " >&6
16485 else $as_nop
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16488 int i;
16489 _ACEOF
16490 if ac_fn_c_try_compile "$LINENO"
16491 then :
16492 xorg_cv_cc_flag_unknown_warning_option=yes
16493 else $as_nop
16494 xorg_cv_cc_flag_unknown_warning_option=no
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16497 fi
16498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16499 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16501 CFLAGS="$xorg_testset_save_CFLAGS"
16502 fi
16503
16504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16507 fi
16508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16510 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16511 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16512 then :
16513 printf %s "(cached) " >&6
16514 else $as_nop
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16517 int i;
16518 _ACEOF
16519 if ac_fn_c_try_compile "$LINENO"
16520 then :
16521 xorg_cv_cc_flag_unused_command_line_argument=yes
16522 else $as_nop
16523 xorg_cv_cc_flag_unused_command_line_argument=no
16524 fi
16525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16526 fi
16527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16530 CFLAGS="$xorg_testset_save_CFLAGS"
16531 fi
16532
16533 found="no"
16534
16535 if test $found = "no" ; then
16536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16538 fi
16539
16540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16542 fi
16543
16544 CFLAGS="$CFLAGS -Werror=missing-braces"
16545
16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16547 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16548 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16549 if eval test \${$cacheid+y}
16550 then :
16551 printf %s "(cached) " >&6
16552 else $as_nop
16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554 /* end confdefs.h. */
16555 int i;
16556 int
16557 main (void)
16558 {
16559
16560 ;
16561 return 0;
16562 }
16563 _ACEOF
16564 if ac_fn_c_try_link "$LINENO"
16565 then :
16566 eval $cacheid=yes
16567 else $as_nop
16568 eval $cacheid=no
16569 fi
16570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16571 conftest$ac_exeext conftest.$ac_ext
16572 fi
16573
16574
16575 CFLAGS="$xorg_testset_save_CFLAGS"
16576
16577 eval supported=\$$cacheid
16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16579 printf "%s\n" "$supported" >&6; }
16580 if test "$supported" = "yes" ; then
16581 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16582 found="yes"
16583 fi
16584 fi
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600 xorg_testset_save_CFLAGS="$CFLAGS"
16601
16602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16606 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16607 then :
16608 printf %s "(cached) " >&6
16609 else $as_nop
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"
16615 then :
16616 xorg_cv_cc_flag_unknown_warning_option=yes
16617 else $as_nop
16618 xorg_cv_cc_flag_unknown_warning_option=no
16619 fi
16620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16621 fi
16622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16623 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16625 CFLAGS="$xorg_testset_save_CFLAGS"
16626 fi
16627
16628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16631 fi
16632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16634 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16635 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16636 then :
16637 printf %s "(cached) " >&6
16638 else $as_nop
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641 int i;
16642 _ACEOF
16643 if ac_fn_c_try_compile "$LINENO"
16644 then :
16645 xorg_cv_cc_flag_unused_command_line_argument=yes
16646 else $as_nop
16647 xorg_cv_cc_flag_unused_command_line_argument=no
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16650 fi
16651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16652 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16654 CFLAGS="$xorg_testset_save_CFLAGS"
16655 fi
16656
16657 found="no"
16658
16659 if test $found = "no" ; then
16660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16662 fi
16663
16664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16666 fi
16667
16668 CFLAGS="$CFLAGS -Werror=sequence-point"
16669
16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16671 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16672 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16673 if eval test \${$cacheid+y}
16674 then :
16675 printf %s "(cached) " >&6
16676 else $as_nop
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679 int i;
16680 int
16681 main (void)
16682 {
16683
16684 ;
16685 return 0;
16686 }
16687 _ACEOF
16688 if ac_fn_c_try_link "$LINENO"
16689 then :
16690 eval $cacheid=yes
16691 else $as_nop
16692 eval $cacheid=no
16693 fi
16694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16695 conftest$ac_exeext conftest.$ac_ext
16696 fi
16697
16698
16699 CFLAGS="$xorg_testset_save_CFLAGS"
16700
16701 eval supported=\$$cacheid
16702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16703 printf "%s\n" "$supported" >&6; }
16704 if test "$supported" = "yes" ; then
16705 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16706 found="yes"
16707 fi
16708 fi
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724 xorg_testset_save_CFLAGS="$CFLAGS"
16725
16726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16729 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16730 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16731 then :
16732 printf %s "(cached) " >&6
16733 else $as_nop
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16736 int i;
16737 _ACEOF
16738 if ac_fn_c_try_compile "$LINENO"
16739 then :
16740 xorg_cv_cc_flag_unknown_warning_option=yes
16741 else $as_nop
16742 xorg_cv_cc_flag_unknown_warning_option=no
16743 fi
16744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16745 fi
16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16747 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16749 CFLAGS="$xorg_testset_save_CFLAGS"
16750 fi
16751
16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16755 fi
16756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16758 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16759 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16760 then :
16761 printf %s "(cached) " >&6
16762 else $as_nop
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765 int i;
16766 _ACEOF
16767 if ac_fn_c_try_compile "$LINENO"
16768 then :
16769 xorg_cv_cc_flag_unused_command_line_argument=yes
16770 else $as_nop
16771 xorg_cv_cc_flag_unused_command_line_argument=no
16772 fi
16773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16774 fi
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16776 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16778 CFLAGS="$xorg_testset_save_CFLAGS"
16779 fi
16780
16781 found="no"
16782
16783 if test $found = "no" ; then
16784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786 fi
16787
16788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790 fi
16791
16792 CFLAGS="$CFLAGS -Werror=return-type"
16793
16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16795 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16796 cacheid=xorg_cv_cc_flag__Werror_return_type
16797 if eval test \${$cacheid+y}
16798 then :
16799 printf %s "(cached) " >&6
16800 else $as_nop
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803 int i;
16804 int
16805 main (void)
16806 {
16807
16808 ;
16809 return 0;
16810 }
16811 _ACEOF
16812 if ac_fn_c_try_link "$LINENO"
16813 then :
16814 eval $cacheid=yes
16815 else $as_nop
16816 eval $cacheid=no
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16819 conftest$ac_exeext conftest.$ac_ext
16820 fi
16821
16822
16823 CFLAGS="$xorg_testset_save_CFLAGS"
16824
16825 eval supported=\$$cacheid
16826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16827 printf "%s\n" "$supported" >&6; }
16828 if test "$supported" = "yes" ; then
16829 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16830 found="yes"
16831 fi
16832 fi
16833
16834 if test $found = "no" ; then
16835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16837 fi
16838
16839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16841 fi
16842
16843 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16844
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16846 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16847 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16848 if eval test \${$cacheid+y}
16849 then :
16850 printf %s "(cached) " >&6
16851 else $as_nop
16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853 /* end confdefs.h. */
16854 int i;
16855 int
16856 main (void)
16857 {
16858
16859 ;
16860 return 0;
16861 }
16862 _ACEOF
16863 if ac_fn_c_try_link "$LINENO"
16864 then :
16865 eval $cacheid=yes
16866 else $as_nop
16867 eval $cacheid=no
16868 fi
16869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16870 conftest$ac_exeext conftest.$ac_ext
16871 fi
16872
16873
16874 CFLAGS="$xorg_testset_save_CFLAGS"
16875
16876 eval supported=\$$cacheid
16877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16878 printf "%s\n" "$supported" >&6; }
16879 if test "$supported" = "yes" ; then
16880 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16881 found="yes"
16882 fi
16883 fi
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899 xorg_testset_save_CFLAGS="$CFLAGS"
16900
16901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16904 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16905 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16906 then :
16907 printf %s "(cached) " >&6
16908 else $as_nop
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 int i;
16912 _ACEOF
16913 if ac_fn_c_try_compile "$LINENO"
16914 then :
16915 xorg_cv_cc_flag_unknown_warning_option=yes
16916 else $as_nop
16917 xorg_cv_cc_flag_unknown_warning_option=no
16918 fi
16919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16920 fi
16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16922 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16924 CFLAGS="$xorg_testset_save_CFLAGS"
16925 fi
16926
16927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16930 fi
16931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16933 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16934 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16935 then :
16936 printf %s "(cached) " >&6
16937 else $as_nop
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 int i;
16941 _ACEOF
16942 if ac_fn_c_try_compile "$LINENO"
16943 then :
16944 xorg_cv_cc_flag_unused_command_line_argument=yes
16945 else $as_nop
16946 xorg_cv_cc_flag_unused_command_line_argument=no
16947 fi
16948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16949 fi
16950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16953 CFLAGS="$xorg_testset_save_CFLAGS"
16954 fi
16955
16956 found="no"
16957
16958 if test $found = "no" ; then
16959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16961 fi
16962
16963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16965 fi
16966
16967 CFLAGS="$CFLAGS -Werror=trigraphs"
16968
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16970 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16971 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16972 if eval test \${$cacheid+y}
16973 then :
16974 printf %s "(cached) " >&6
16975 else $as_nop
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978 int i;
16979 int
16980 main (void)
16981 {
16982
16983 ;
16984 return 0;
16985 }
16986 _ACEOF
16987 if ac_fn_c_try_link "$LINENO"
16988 then :
16989 eval $cacheid=yes
16990 else $as_nop
16991 eval $cacheid=no
16992 fi
16993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16994 conftest$ac_exeext conftest.$ac_ext
16995 fi
16996
16997
16998 CFLAGS="$xorg_testset_save_CFLAGS"
16999
17000 eval supported=\$$cacheid
17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17002 printf "%s\n" "$supported" >&6; }
17003 if test "$supported" = "yes" ; then
17004 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17005 found="yes"
17006 fi
17007 fi
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023 xorg_testset_save_CFLAGS="$CFLAGS"
17024
17025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17029 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17030 then :
17031 printf %s "(cached) " >&6
17032 else $as_nop
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035 int i;
17036 _ACEOF
17037 if ac_fn_c_try_compile "$LINENO"
17038 then :
17039 xorg_cv_cc_flag_unknown_warning_option=yes
17040 else $as_nop
17041 xorg_cv_cc_flag_unknown_warning_option=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17044 fi
17045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17046 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049 fi
17050
17051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17054 fi
17055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17059 then :
17060 printf %s "(cached) " >&6
17061 else $as_nop
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 int i;
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"
17067 then :
17068 xorg_cv_cc_flag_unused_command_line_argument=yes
17069 else $as_nop
17070 xorg_cv_cc_flag_unused_command_line_argument=no
17071 fi
17072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17073 fi
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17075 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17077 CFLAGS="$xorg_testset_save_CFLAGS"
17078 fi
17079
17080 found="no"
17081
17082 if test $found = "no" ; then
17083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17085 fi
17086
17087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17089 fi
17090
17091 CFLAGS="$CFLAGS -Werror=array-bounds"
17092
17093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17094 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17095 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17096 if eval test \${$cacheid+y}
17097 then :
17098 printf %s "(cached) " >&6
17099 else $as_nop
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17102 int i;
17103 int
17104 main (void)
17105 {
17106
17107 ;
17108 return 0;
17109 }
17110 _ACEOF
17111 if ac_fn_c_try_link "$LINENO"
17112 then :
17113 eval $cacheid=yes
17114 else $as_nop
17115 eval $cacheid=no
17116 fi
17117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17118 conftest$ac_exeext conftest.$ac_ext
17119 fi
17120
17121
17122 CFLAGS="$xorg_testset_save_CFLAGS"
17123
17124 eval supported=\$$cacheid
17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17126 printf "%s\n" "$supported" >&6; }
17127 if test "$supported" = "yes" ; then
17128 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17129 found="yes"
17130 fi
17131 fi
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147 xorg_testset_save_CFLAGS="$CFLAGS"
17148
17149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17152 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17153 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17154 then :
17155 printf %s "(cached) " >&6
17156 else $as_nop
17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17158 /* end confdefs.h. */
17159 int i;
17160 _ACEOF
17161 if ac_fn_c_try_compile "$LINENO"
17162 then :
17163 xorg_cv_cc_flag_unknown_warning_option=yes
17164 else $as_nop
17165 xorg_cv_cc_flag_unknown_warning_option=no
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17168 fi
17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17170 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17172 CFLAGS="$xorg_testset_save_CFLAGS"
17173 fi
17174
17175 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178 fi
17179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17181 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17182 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17183 then :
17184 printf %s "(cached) " >&6
17185 else $as_nop
17186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17187 /* end confdefs.h. */
17188 int i;
17189 _ACEOF
17190 if ac_fn_c_try_compile "$LINENO"
17191 then :
17192 xorg_cv_cc_flag_unused_command_line_argument=yes
17193 else $as_nop
17194 xorg_cv_cc_flag_unused_command_line_argument=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17197 fi
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17199 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17201 CFLAGS="$xorg_testset_save_CFLAGS"
17202 fi
17203
17204 found="no"
17205
17206 if test $found = "no" ; then
17207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17209 fi
17210
17211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213 fi
17214
17215 CFLAGS="$CFLAGS -Werror=write-strings"
17216
17217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17218 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17219 cacheid=xorg_cv_cc_flag__Werror_write_strings
17220 if eval test \${$cacheid+y}
17221 then :
17222 printf %s "(cached) " >&6
17223 else $as_nop
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17226 int i;
17227 int
17228 main (void)
17229 {
17230
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 if ac_fn_c_try_link "$LINENO"
17236 then :
17237 eval $cacheid=yes
17238 else $as_nop
17239 eval $cacheid=no
17240 fi
17241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17242 conftest$ac_exeext conftest.$ac_ext
17243 fi
17244
17245
17246 CFLAGS="$xorg_testset_save_CFLAGS"
17247
17248 eval supported=\$$cacheid
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17250 printf "%s\n" "$supported" >&6; }
17251 if test "$supported" = "yes" ; then
17252 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17253 found="yes"
17254 fi
17255 fi
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271 xorg_testset_save_CFLAGS="$CFLAGS"
17272
17273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17277 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17278 then :
17279 printf %s "(cached) " >&6
17280 else $as_nop
17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 int i;
17284 _ACEOF
17285 if ac_fn_c_try_compile "$LINENO"
17286 then :
17287 xorg_cv_cc_flag_unknown_warning_option=yes
17288 else $as_nop
17289 xorg_cv_cc_flag_unknown_warning_option=no
17290 fi
17291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17292 fi
17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17296 CFLAGS="$xorg_testset_save_CFLAGS"
17297 fi
17298
17299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17302 fi
17303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17307 then :
17308 printf %s "(cached) " >&6
17309 else $as_nop
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312 int i;
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"
17315 then :
17316 xorg_cv_cc_flag_unused_command_line_argument=yes
17317 else $as_nop
17318 xorg_cv_cc_flag_unused_command_line_argument=no
17319 fi
17320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17321 fi
17322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17325 CFLAGS="$xorg_testset_save_CFLAGS"
17326 fi
17327
17328 found="no"
17329
17330 if test $found = "no" ; then
17331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17337 fi
17338
17339 CFLAGS="$CFLAGS -Werror=address"
17340
17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17342 printf %s "checking if $CC supports -Werror=address... " >&6; }
17343 cacheid=xorg_cv_cc_flag__Werror_address
17344 if eval test \${$cacheid+y}
17345 then :
17346 printf %s "(cached) " >&6
17347 else $as_nop
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 int
17352 main (void)
17353 {
17354
17355 ;
17356 return 0;
17357 }
17358 _ACEOF
17359 if ac_fn_c_try_link "$LINENO"
17360 then :
17361 eval $cacheid=yes
17362 else $as_nop
17363 eval $cacheid=no
17364 fi
17365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17366 conftest$ac_exeext conftest.$ac_ext
17367 fi
17368
17369
17370 CFLAGS="$xorg_testset_save_CFLAGS"
17371
17372 eval supported=\$$cacheid
17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17374 printf "%s\n" "$supported" >&6; }
17375 if test "$supported" = "yes" ; then
17376 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17377 found="yes"
17378 fi
17379 fi
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395 xorg_testset_save_CFLAGS="$CFLAGS"
17396
17397 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17400 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17401 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17402 then :
17403 printf %s "(cached) " >&6
17404 else $as_nop
17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406 /* end confdefs.h. */
17407 int i;
17408 _ACEOF
17409 if ac_fn_c_try_compile "$LINENO"
17410 then :
17411 xorg_cv_cc_flag_unknown_warning_option=yes
17412 else $as_nop
17413 xorg_cv_cc_flag_unknown_warning_option=no
17414 fi
17415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17416 fi
17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17420 CFLAGS="$xorg_testset_save_CFLAGS"
17421 fi
17422
17423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17426 fi
17427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17430 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17431 then :
17432 printf %s "(cached) " >&6
17433 else $as_nop
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17436 int i;
17437 _ACEOF
17438 if ac_fn_c_try_compile "$LINENO"
17439 then :
17440 xorg_cv_cc_flag_unused_command_line_argument=yes
17441 else $as_nop
17442 xorg_cv_cc_flag_unused_command_line_argument=no
17443 fi
17444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17445 fi
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17447 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17449 CFLAGS="$xorg_testset_save_CFLAGS"
17450 fi
17451
17452 found="no"
17453
17454 if test $found = "no" ; then
17455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17457 fi
17458
17459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17461 fi
17462
17463 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17464
17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17466 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17467 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17468 if eval test \${$cacheid+y}
17469 then :
17470 printf %s "(cached) " >&6
17471 else $as_nop
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474 int i;
17475 int
17476 main (void)
17477 {
17478
17479 ;
17480 return 0;
17481 }
17482 _ACEOF
17483 if ac_fn_c_try_link "$LINENO"
17484 then :
17485 eval $cacheid=yes
17486 else $as_nop
17487 eval $cacheid=no
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17490 conftest$ac_exeext conftest.$ac_ext
17491 fi
17492
17493
17494 CFLAGS="$xorg_testset_save_CFLAGS"
17495
17496 eval supported=\$$cacheid
17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17498 printf "%s\n" "$supported" >&6; }
17499 if test "$supported" = "yes" ; then
17500 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17501 found="yes"
17502 fi
17503 fi
17504
17505 if test $found = "no" ; then
17506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17508 fi
17509
17510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17512 fi
17513
17514 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17515
17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17517 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17518 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17519 if eval test \${$cacheid+y}
17520 then :
17521 printf %s "(cached) " >&6
17522 else $as_nop
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17525 int i;
17526 int
17527 main (void)
17528 {
17529
17530 ;
17531 return 0;
17532 }
17533 _ACEOF
17534 if ac_fn_c_try_link "$LINENO"
17535 then :
17536 eval $cacheid=yes
17537 else $as_nop
17538 eval $cacheid=no
17539 fi
17540 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17541 conftest$ac_exeext conftest.$ac_ext
17542 fi
17543
17544
17545 CFLAGS="$xorg_testset_save_CFLAGS"
17546
17547 eval supported=\$$cacheid
17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17549 printf "%s\n" "$supported" >&6; }
17550 if test "$supported" = "yes" ; then
17551 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17552 found="yes"
17553 fi
17554 fi
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570 xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17577 then :
17578 printf %s "(cached) " >&6
17579 else $as_nop
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582 int i;
17583 _ACEOF
17584 if ac_fn_c_try_compile "$LINENO"
17585 then :
17586 xorg_cv_cc_flag_unknown_warning_option=yes
17587 else $as_nop
17588 xorg_cv_cc_flag_unknown_warning_option=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17591 fi
17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17593 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17595 CFLAGS="$xorg_testset_save_CFLAGS"
17596 fi
17597
17598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17601 fi
17602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17604 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17605 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17606 then :
17607 printf %s "(cached) " >&6
17608 else $as_nop
17609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610 /* end confdefs.h. */
17611 int i;
17612 _ACEOF
17613 if ac_fn_c_try_compile "$LINENO"
17614 then :
17615 xorg_cv_cc_flag_unused_command_line_argument=yes
17616 else $as_nop
17617 xorg_cv_cc_flag_unused_command_line_argument=no
17618 fi
17619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17620 fi
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17624 CFLAGS="$xorg_testset_save_CFLAGS"
17625 fi
17626
17627 found="no"
17628
17629 if test $found = "no" ; then
17630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17632 fi
17633
17634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17636 fi
17637
17638 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17639
17640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17641 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17642 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17643 if eval test \${$cacheid+y}
17644 then :
17645 printf %s "(cached) " >&6
17646 else $as_nop
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17649 int i;
17650 int
17651 main (void)
17652 {
17653
17654 ;
17655 return 0;
17656 }
17657 _ACEOF
17658 if ac_fn_c_try_link "$LINENO"
17659 then :
17660 eval $cacheid=yes
17661 else $as_nop
17662 eval $cacheid=no
17663 fi
17664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17665 conftest$ac_exeext conftest.$ac_ext
17666 fi
17667
17668
17669 CFLAGS="$xorg_testset_save_CFLAGS"
17670
17671 eval supported=\$$cacheid
17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17673 printf "%s\n" "$supported" >&6; }
17674 if test "$supported" = "yes" ; then
17675 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17676 found="yes"
17677 fi
17678 fi
17679
17680 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17681 else
17682 { 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
17683 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;}
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697 xorg_testset_save_CFLAGS="$CFLAGS"
17698
17699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17704 then :
17705 printf %s "(cached) " >&6
17706 else $as_nop
17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h. */
17709 int i;
17710 _ACEOF
17711 if ac_fn_c_try_compile "$LINENO"
17712 then :
17713 xorg_cv_cc_flag_unknown_warning_option=yes
17714 else $as_nop
17715 xorg_cv_cc_flag_unknown_warning_option=no
17716 fi
17717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17718 fi
17719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17722 CFLAGS="$xorg_testset_save_CFLAGS"
17723 fi
17724
17725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17728 fi
17729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17733 then :
17734 printf %s "(cached) " >&6
17735 else $as_nop
17736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17737 /* end confdefs.h. */
17738 int i;
17739 _ACEOF
17740 if ac_fn_c_try_compile "$LINENO"
17741 then :
17742 xorg_cv_cc_flag_unused_command_line_argument=yes
17743 else $as_nop
17744 xorg_cv_cc_flag_unused_command_line_argument=no
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17747 fi
17748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17751 CFLAGS="$xorg_testset_save_CFLAGS"
17752 fi
17753
17754 found="no"
17755
17756 if test $found = "no" ; then
17757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17759 fi
17760
17761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17763 fi
17764
17765 CFLAGS="$CFLAGS -Wimplicit"
17766
17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17768 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17769 cacheid=xorg_cv_cc_flag__Wimplicit
17770 if eval test \${$cacheid+y}
17771 then :
17772 printf %s "(cached) " >&6
17773 else $as_nop
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17776 int i;
17777 int
17778 main (void)
17779 {
17780
17781 ;
17782 return 0;
17783 }
17784 _ACEOF
17785 if ac_fn_c_try_link "$LINENO"
17786 then :
17787 eval $cacheid=yes
17788 else $as_nop
17789 eval $cacheid=no
17790 fi
17791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17792 conftest$ac_exeext conftest.$ac_ext
17793 fi
17794
17795
17796 CFLAGS="$xorg_testset_save_CFLAGS"
17797
17798 eval supported=\$$cacheid
17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17800 printf "%s\n" "$supported" >&6; }
17801 if test "$supported" = "yes" ; then
17802 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17803 found="yes"
17804 fi
17805 fi
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821 xorg_testset_save_CFLAGS="$CFLAGS"
17822
17823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17828 then :
17829 printf %s "(cached) " >&6
17830 else $as_nop
17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17833 int i;
17834 _ACEOF
17835 if ac_fn_c_try_compile "$LINENO"
17836 then :
17837 xorg_cv_cc_flag_unknown_warning_option=yes
17838 else $as_nop
17839 xorg_cv_cc_flag_unknown_warning_option=no
17840 fi
17841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17842 fi
17843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17846 CFLAGS="$xorg_testset_save_CFLAGS"
17847 fi
17848
17849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17852 fi
17853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17857 then :
17858 printf %s "(cached) " >&6
17859 else $as_nop
17860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17862 int i;
17863 _ACEOF
17864 if ac_fn_c_try_compile "$LINENO"
17865 then :
17866 xorg_cv_cc_flag_unused_command_line_argument=yes
17867 else $as_nop
17868 xorg_cv_cc_flag_unused_command_line_argument=no
17869 fi
17870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17871 fi
17872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17875 CFLAGS="$xorg_testset_save_CFLAGS"
17876 fi
17877
17878 found="no"
17879
17880 if test $found = "no" ; then
17881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17883 fi
17884
17885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17887 fi
17888
17889 CFLAGS="$CFLAGS -Wnonnull"
17890
17891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17892 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17893 cacheid=xorg_cv_cc_flag__Wnonnull
17894 if eval test \${$cacheid+y}
17895 then :
17896 printf %s "(cached) " >&6
17897 else $as_nop
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900 int i;
17901 int
17902 main (void)
17903 {
17904
17905 ;
17906 return 0;
17907 }
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"
17910 then :
17911 eval $cacheid=yes
17912 else $as_nop
17913 eval $cacheid=no
17914 fi
17915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17916 conftest$ac_exeext conftest.$ac_ext
17917 fi
17918
17919
17920 CFLAGS="$xorg_testset_save_CFLAGS"
17921
17922 eval supported=\$$cacheid
17923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17924 printf "%s\n" "$supported" >&6; }
17925 if test "$supported" = "yes" ; then
17926 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17927 found="yes"
17928 fi
17929 fi
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945 xorg_testset_save_CFLAGS="$CFLAGS"
17946
17947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17952 then :
17953 printf %s "(cached) " >&6
17954 else $as_nop
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957 int i;
17958 _ACEOF
17959 if ac_fn_c_try_compile "$LINENO"
17960 then :
17961 xorg_cv_cc_flag_unknown_warning_option=yes
17962 else $as_nop
17963 xorg_cv_cc_flag_unknown_warning_option=no
17964 fi
17965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17966 fi
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17970 CFLAGS="$xorg_testset_save_CFLAGS"
17971 fi
17972
17973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17976 fi
17977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17981 then :
17982 printf %s "(cached) " >&6
17983 else $as_nop
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h. */
17986 int i;
17987 _ACEOF
17988 if ac_fn_c_try_compile "$LINENO"
17989 then :
17990 xorg_cv_cc_flag_unused_command_line_argument=yes
17991 else $as_nop
17992 xorg_cv_cc_flag_unused_command_line_argument=no
17993 fi
17994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17995 fi
17996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17999 CFLAGS="$xorg_testset_save_CFLAGS"
18000 fi
18001
18002 found="no"
18003
18004 if test $found = "no" ; then
18005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18007 fi
18008
18009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18011 fi
18012
18013 CFLAGS="$CFLAGS -Winit-self"
18014
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18016 printf %s "checking if $CC supports -Winit-self... " >&6; }
18017 cacheid=xorg_cv_cc_flag__Winit_self
18018 if eval test \${$cacheid+y}
18019 then :
18020 printf %s "(cached) " >&6
18021 else $as_nop
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 int i;
18025 int
18026 main (void)
18027 {
18028
18029 ;
18030 return 0;
18031 }
18032 _ACEOF
18033 if ac_fn_c_try_link "$LINENO"
18034 then :
18035 eval $cacheid=yes
18036 else $as_nop
18037 eval $cacheid=no
18038 fi
18039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18040 conftest$ac_exeext conftest.$ac_ext
18041 fi
18042
18043
18044 CFLAGS="$xorg_testset_save_CFLAGS"
18045
18046 eval supported=\$$cacheid
18047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18048 printf "%s\n" "$supported" >&6; }
18049 if test "$supported" = "yes" ; then
18050 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18051 found="yes"
18052 fi
18053 fi
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069 xorg_testset_save_CFLAGS="$CFLAGS"
18070
18071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18075 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18076 then :
18077 printf %s "(cached) " >&6
18078 else $as_nop
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18081 int i;
18082 _ACEOF
18083 if ac_fn_c_try_compile "$LINENO"
18084 then :
18085 xorg_cv_cc_flag_unknown_warning_option=yes
18086 else $as_nop
18087 xorg_cv_cc_flag_unknown_warning_option=no
18088 fi
18089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18090 fi
18091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18094 CFLAGS="$xorg_testset_save_CFLAGS"
18095 fi
18096
18097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18100 fi
18101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18105 then :
18106 printf %s "(cached) " >&6
18107 else $as_nop
18108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18109 /* end confdefs.h. */
18110 int i;
18111 _ACEOF
18112 if ac_fn_c_try_compile "$LINENO"
18113 then :
18114 xorg_cv_cc_flag_unused_command_line_argument=yes
18115 else $as_nop
18116 xorg_cv_cc_flag_unused_command_line_argument=no
18117 fi
18118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18119 fi
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18121 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18123 CFLAGS="$xorg_testset_save_CFLAGS"
18124 fi
18125
18126 found="no"
18127
18128 if test $found = "no" ; then
18129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18131 fi
18132
18133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18135 fi
18136
18137 CFLAGS="$CFLAGS -Wmain"
18138
18139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18140 printf %s "checking if $CC supports -Wmain... " >&6; }
18141 cacheid=xorg_cv_cc_flag__Wmain
18142 if eval test \${$cacheid+y}
18143 then :
18144 printf %s "(cached) " >&6
18145 else $as_nop
18146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18147 /* end confdefs.h. */
18148 int i;
18149 int
18150 main (void)
18151 {
18152
18153 ;
18154 return 0;
18155 }
18156 _ACEOF
18157 if ac_fn_c_try_link "$LINENO"
18158 then :
18159 eval $cacheid=yes
18160 else $as_nop
18161 eval $cacheid=no
18162 fi
18163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18164 conftest$ac_exeext conftest.$ac_ext
18165 fi
18166
18167
18168 CFLAGS="$xorg_testset_save_CFLAGS"
18169
18170 eval supported=\$$cacheid
18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18172 printf "%s\n" "$supported" >&6; }
18173 if test "$supported" = "yes" ; then
18174 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18175 found="yes"
18176 fi
18177 fi
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193 xorg_testset_save_CFLAGS="$CFLAGS"
18194
18195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18198 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18199 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18200 then :
18201 printf %s "(cached) " >&6
18202 else $as_nop
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18205 int i;
18206 _ACEOF
18207 if ac_fn_c_try_compile "$LINENO"
18208 then :
18209 xorg_cv_cc_flag_unknown_warning_option=yes
18210 else $as_nop
18211 xorg_cv_cc_flag_unknown_warning_option=no
18212 fi
18213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18214 fi
18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18218 CFLAGS="$xorg_testset_save_CFLAGS"
18219 fi
18220
18221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18224 fi
18225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18228 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18229 then :
18230 printf %s "(cached) " >&6
18231 else $as_nop
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18234 int i;
18235 _ACEOF
18236 if ac_fn_c_try_compile "$LINENO"
18237 then :
18238 xorg_cv_cc_flag_unused_command_line_argument=yes
18239 else $as_nop
18240 xorg_cv_cc_flag_unused_command_line_argument=no
18241 fi
18242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18243 fi
18244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18245 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18247 CFLAGS="$xorg_testset_save_CFLAGS"
18248 fi
18249
18250 found="no"
18251
18252 if test $found = "no" ; then
18253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18255 fi
18256
18257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18259 fi
18260
18261 CFLAGS="$CFLAGS -Wmissing-braces"
18262
18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18264 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18265 cacheid=xorg_cv_cc_flag__Wmissing_braces
18266 if eval test \${$cacheid+y}
18267 then :
18268 printf %s "(cached) " >&6
18269 else $as_nop
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272 int i;
18273 int
18274 main (void)
18275 {
18276
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 if ac_fn_c_try_link "$LINENO"
18282 then :
18283 eval $cacheid=yes
18284 else $as_nop
18285 eval $cacheid=no
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18288 conftest$ac_exeext conftest.$ac_ext
18289 fi
18290
18291
18292 CFLAGS="$xorg_testset_save_CFLAGS"
18293
18294 eval supported=\$$cacheid
18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18296 printf "%s\n" "$supported" >&6; }
18297 if test "$supported" = "yes" ; then
18298 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18299 found="yes"
18300 fi
18301 fi
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317 xorg_testset_save_CFLAGS="$CFLAGS"
18318
18319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18322 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18323 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18324 then :
18325 printf %s "(cached) " >&6
18326 else $as_nop
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18329 int i;
18330 _ACEOF
18331 if ac_fn_c_try_compile "$LINENO"
18332 then :
18333 xorg_cv_cc_flag_unknown_warning_option=yes
18334 else $as_nop
18335 xorg_cv_cc_flag_unknown_warning_option=no
18336 fi
18337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18338 fi
18339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18342 CFLAGS="$xorg_testset_save_CFLAGS"
18343 fi
18344
18345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18348 fi
18349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18353 then :
18354 printf %s "(cached) " >&6
18355 else $as_nop
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18358 int i;
18359 _ACEOF
18360 if ac_fn_c_try_compile "$LINENO"
18361 then :
18362 xorg_cv_cc_flag_unused_command_line_argument=yes
18363 else $as_nop
18364 xorg_cv_cc_flag_unused_command_line_argument=no
18365 fi
18366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18367 fi
18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18371 CFLAGS="$xorg_testset_save_CFLAGS"
18372 fi
18373
18374 found="no"
18375
18376 if test $found = "no" ; then
18377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18379 fi
18380
18381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18383 fi
18384
18385 CFLAGS="$CFLAGS -Wsequence-point"
18386
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18388 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18389 cacheid=xorg_cv_cc_flag__Wsequence_point
18390 if eval test \${$cacheid+y}
18391 then :
18392 printf %s "(cached) " >&6
18393 else $as_nop
18394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395 /* end confdefs.h. */
18396 int i;
18397 int
18398 main (void)
18399 {
18400
18401 ;
18402 return 0;
18403 }
18404 _ACEOF
18405 if ac_fn_c_try_link "$LINENO"
18406 then :
18407 eval $cacheid=yes
18408 else $as_nop
18409 eval $cacheid=no
18410 fi
18411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18412 conftest$ac_exeext conftest.$ac_ext
18413 fi
18414
18415
18416 CFLAGS="$xorg_testset_save_CFLAGS"
18417
18418 eval supported=\$$cacheid
18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18420 printf "%s\n" "$supported" >&6; }
18421 if test "$supported" = "yes" ; then
18422 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18423 found="yes"
18424 fi
18425 fi
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441 xorg_testset_save_CFLAGS="$CFLAGS"
18442
18443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18447 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18448 then :
18449 printf %s "(cached) " >&6
18450 else $as_nop
18451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18452 /* end confdefs.h. */
18453 int i;
18454 _ACEOF
18455 if ac_fn_c_try_compile "$LINENO"
18456 then :
18457 xorg_cv_cc_flag_unknown_warning_option=yes
18458 else $as_nop
18459 xorg_cv_cc_flag_unknown_warning_option=no
18460 fi
18461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18462 fi
18463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18464 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18466 CFLAGS="$xorg_testset_save_CFLAGS"
18467 fi
18468
18469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18472 fi
18473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18477 then :
18478 printf %s "(cached) " >&6
18479 else $as_nop
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482 int i;
18483 _ACEOF
18484 if ac_fn_c_try_compile "$LINENO"
18485 then :
18486 xorg_cv_cc_flag_unused_command_line_argument=yes
18487 else $as_nop
18488 xorg_cv_cc_flag_unused_command_line_argument=no
18489 fi
18490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18491 fi
18492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18495 CFLAGS="$xorg_testset_save_CFLAGS"
18496 fi
18497
18498 found="no"
18499
18500 if test $found = "no" ; then
18501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18503 fi
18504
18505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18507 fi
18508
18509 CFLAGS="$CFLAGS -Wreturn-type"
18510
18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18512 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18513 cacheid=xorg_cv_cc_flag__Wreturn_type
18514 if eval test \${$cacheid+y}
18515 then :
18516 printf %s "(cached) " >&6
18517 else $as_nop
18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18519 /* end confdefs.h. */
18520 int i;
18521 int
18522 main (void)
18523 {
18524
18525 ;
18526 return 0;
18527 }
18528 _ACEOF
18529 if ac_fn_c_try_link "$LINENO"
18530 then :
18531 eval $cacheid=yes
18532 else $as_nop
18533 eval $cacheid=no
18534 fi
18535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18536 conftest$ac_exeext conftest.$ac_ext
18537 fi
18538
18539
18540 CFLAGS="$xorg_testset_save_CFLAGS"
18541
18542 eval supported=\$$cacheid
18543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18544 printf "%s\n" "$supported" >&6; }
18545 if test "$supported" = "yes" ; then
18546 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18547 found="yes"
18548 fi
18549 fi
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565 xorg_testset_save_CFLAGS="$CFLAGS"
18566
18567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18571 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18572 then :
18573 printf %s "(cached) " >&6
18574 else $as_nop
18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576 /* end confdefs.h. */
18577 int i;
18578 _ACEOF
18579 if ac_fn_c_try_compile "$LINENO"
18580 then :
18581 xorg_cv_cc_flag_unknown_warning_option=yes
18582 else $as_nop
18583 xorg_cv_cc_flag_unknown_warning_option=no
18584 fi
18585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18586 fi
18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18588 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18590 CFLAGS="$xorg_testset_save_CFLAGS"
18591 fi
18592
18593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18596 fi
18597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18601 then :
18602 printf %s "(cached) " >&6
18603 else $as_nop
18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605 /* end confdefs.h. */
18606 int i;
18607 _ACEOF
18608 if ac_fn_c_try_compile "$LINENO"
18609 then :
18610 xorg_cv_cc_flag_unused_command_line_argument=yes
18611 else $as_nop
18612 xorg_cv_cc_flag_unused_command_line_argument=no
18613 fi
18614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18615 fi
18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18617 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18619 CFLAGS="$xorg_testset_save_CFLAGS"
18620 fi
18621
18622 found="no"
18623
18624 if test $found = "no" ; then
18625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18627 fi
18628
18629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18631 fi
18632
18633 CFLAGS="$CFLAGS -Wtrigraphs"
18634
18635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18636 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18637 cacheid=xorg_cv_cc_flag__Wtrigraphs
18638 if eval test \${$cacheid+y}
18639 then :
18640 printf %s "(cached) " >&6
18641 else $as_nop
18642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643 /* end confdefs.h. */
18644 int i;
18645 int
18646 main (void)
18647 {
18648
18649 ;
18650 return 0;
18651 }
18652 _ACEOF
18653 if ac_fn_c_try_link "$LINENO"
18654 then :
18655 eval $cacheid=yes
18656 else $as_nop
18657 eval $cacheid=no
18658 fi
18659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18660 conftest$ac_exeext conftest.$ac_ext
18661 fi
18662
18663
18664 CFLAGS="$xorg_testset_save_CFLAGS"
18665
18666 eval supported=\$$cacheid
18667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18668 printf "%s\n" "$supported" >&6; }
18669 if test "$supported" = "yes" ; then
18670 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18671 found="yes"
18672 fi
18673 fi
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689 xorg_testset_save_CFLAGS="$CFLAGS"
18690
18691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18694 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18695 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18696 then :
18697 printf %s "(cached) " >&6
18698 else $as_nop
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701 int i;
18702 _ACEOF
18703 if ac_fn_c_try_compile "$LINENO"
18704 then :
18705 xorg_cv_cc_flag_unknown_warning_option=yes
18706 else $as_nop
18707 xorg_cv_cc_flag_unknown_warning_option=no
18708 fi
18709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18710 fi
18711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18714 CFLAGS="$xorg_testset_save_CFLAGS"
18715 fi
18716
18717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18720 fi
18721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18725 then :
18726 printf %s "(cached) " >&6
18727 else $as_nop
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18730 int i;
18731 _ACEOF
18732 if ac_fn_c_try_compile "$LINENO"
18733 then :
18734 xorg_cv_cc_flag_unused_command_line_argument=yes
18735 else $as_nop
18736 xorg_cv_cc_flag_unused_command_line_argument=no
18737 fi
18738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18739 fi
18740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18741 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18743 CFLAGS="$xorg_testset_save_CFLAGS"
18744 fi
18745
18746 found="no"
18747
18748 if test $found = "no" ; then
18749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18751 fi
18752
18753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18755 fi
18756
18757 CFLAGS="$CFLAGS -Warray-bounds"
18758
18759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18760 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18761 cacheid=xorg_cv_cc_flag__Warray_bounds
18762 if eval test \${$cacheid+y}
18763 then :
18764 printf %s "(cached) " >&6
18765 else $as_nop
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18768 int i;
18769 int
18770 main (void)
18771 {
18772
18773 ;
18774 return 0;
18775 }
18776 _ACEOF
18777 if ac_fn_c_try_link "$LINENO"
18778 then :
18779 eval $cacheid=yes
18780 else $as_nop
18781 eval $cacheid=no
18782 fi
18783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18784 conftest$ac_exeext conftest.$ac_ext
18785 fi
18786
18787
18788 CFLAGS="$xorg_testset_save_CFLAGS"
18789
18790 eval supported=\$$cacheid
18791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18792 printf "%s\n" "$supported" >&6; }
18793 if test "$supported" = "yes" ; then
18794 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18795 found="yes"
18796 fi
18797 fi
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813 xorg_testset_save_CFLAGS="$CFLAGS"
18814
18815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18819 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18820 then :
18821 printf %s "(cached) " >&6
18822 else $as_nop
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18825 int i;
18826 _ACEOF
18827 if ac_fn_c_try_compile "$LINENO"
18828 then :
18829 xorg_cv_cc_flag_unknown_warning_option=yes
18830 else $as_nop
18831 xorg_cv_cc_flag_unknown_warning_option=no
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18834 fi
18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18836 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18838 CFLAGS="$xorg_testset_save_CFLAGS"
18839 fi
18840
18841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18844 fi
18845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18847 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18848 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18849 then :
18850 printf %s "(cached) " >&6
18851 else $as_nop
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854 int i;
18855 _ACEOF
18856 if ac_fn_c_try_compile "$LINENO"
18857 then :
18858 xorg_cv_cc_flag_unused_command_line_argument=yes
18859 else $as_nop
18860 xorg_cv_cc_flag_unused_command_line_argument=no
18861 fi
18862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18863 fi
18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18865 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18867 CFLAGS="$xorg_testset_save_CFLAGS"
18868 fi
18869
18870 found="no"
18871
18872 if test $found = "no" ; then
18873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18875 fi
18876
18877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18879 fi
18880
18881 CFLAGS="$CFLAGS -Wwrite-strings"
18882
18883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18884 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18885 cacheid=xorg_cv_cc_flag__Wwrite_strings
18886 if eval test \${$cacheid+y}
18887 then :
18888 printf %s "(cached) " >&6
18889 else $as_nop
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 int i;
18893 int
18894 main (void)
18895 {
18896
18897 ;
18898 return 0;
18899 }
18900 _ACEOF
18901 if ac_fn_c_try_link "$LINENO"
18902 then :
18903 eval $cacheid=yes
18904 else $as_nop
18905 eval $cacheid=no
18906 fi
18907 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18908 conftest$ac_exeext conftest.$ac_ext
18909 fi
18910
18911
18912 CFLAGS="$xorg_testset_save_CFLAGS"
18913
18914 eval supported=\$$cacheid
18915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18916 printf "%s\n" "$supported" >&6; }
18917 if test "$supported" = "yes" ; then
18918 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18919 found="yes"
18920 fi
18921 fi
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937 xorg_testset_save_CFLAGS="$CFLAGS"
18938
18939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18943 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18944 then :
18945 printf %s "(cached) " >&6
18946 else $as_nop
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18949 int i;
18950 _ACEOF
18951 if ac_fn_c_try_compile "$LINENO"
18952 then :
18953 xorg_cv_cc_flag_unknown_warning_option=yes
18954 else $as_nop
18955 xorg_cv_cc_flag_unknown_warning_option=no
18956 fi
18957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18958 fi
18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18960 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18962 CFLAGS="$xorg_testset_save_CFLAGS"
18963 fi
18964
18965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18968 fi
18969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18971 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18972 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18973 then :
18974 printf %s "(cached) " >&6
18975 else $as_nop
18976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977 /* end confdefs.h. */
18978 int i;
18979 _ACEOF
18980 if ac_fn_c_try_compile "$LINENO"
18981 then :
18982 xorg_cv_cc_flag_unused_command_line_argument=yes
18983 else $as_nop
18984 xorg_cv_cc_flag_unused_command_line_argument=no
18985 fi
18986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18987 fi
18988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18989 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18991 CFLAGS="$xorg_testset_save_CFLAGS"
18992 fi
18993
18994 found="no"
18995
18996 if test $found = "no" ; then
18997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18999 fi
19000
19001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19003 fi
19004
19005 CFLAGS="$CFLAGS -Waddress"
19006
19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19008 printf %s "checking if $CC supports -Waddress... " >&6; }
19009 cacheid=xorg_cv_cc_flag__Waddress
19010 if eval test \${$cacheid+y}
19011 then :
19012 printf %s "(cached) " >&6
19013 else $as_nop
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19016 int i;
19017 int
19018 main (void)
19019 {
19020
19021 ;
19022 return 0;
19023 }
19024 _ACEOF
19025 if ac_fn_c_try_link "$LINENO"
19026 then :
19027 eval $cacheid=yes
19028 else $as_nop
19029 eval $cacheid=no
19030 fi
19031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19032 conftest$ac_exeext conftest.$ac_ext
19033 fi
19034
19035
19036 CFLAGS="$xorg_testset_save_CFLAGS"
19037
19038 eval supported=\$$cacheid
19039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19040 printf "%s\n" "$supported" >&6; }
19041 if test "$supported" = "yes" ; then
19042 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19043 found="yes"
19044 fi
19045 fi
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061 xorg_testset_save_CFLAGS="$CFLAGS"
19062
19063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19066 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19067 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19068 then :
19069 printf %s "(cached) " >&6
19070 else $as_nop
19071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073 int i;
19074 _ACEOF
19075 if ac_fn_c_try_compile "$LINENO"
19076 then :
19077 xorg_cv_cc_flag_unknown_warning_option=yes
19078 else $as_nop
19079 xorg_cv_cc_flag_unknown_warning_option=no
19080 fi
19081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19082 fi
19083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19086 CFLAGS="$xorg_testset_save_CFLAGS"
19087 fi
19088
19089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19092 fi
19093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19097 then :
19098 printf %s "(cached) " >&6
19099 else $as_nop
19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19102 int i;
19103 _ACEOF
19104 if ac_fn_c_try_compile "$LINENO"
19105 then :
19106 xorg_cv_cc_flag_unused_command_line_argument=yes
19107 else $as_nop
19108 xorg_cv_cc_flag_unused_command_line_argument=no
19109 fi
19110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19111 fi
19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19113 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19115 CFLAGS="$xorg_testset_save_CFLAGS"
19116 fi
19117
19118 found="no"
19119
19120 if test $found = "no" ; then
19121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19123 fi
19124
19125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19127 fi
19128
19129 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19130
19131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19132 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19133 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19134 if eval test \${$cacheid+y}
19135 then :
19136 printf %s "(cached) " >&6
19137 else $as_nop
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19140 int i;
19141 int
19142 main (void)
19143 {
19144
19145 ;
19146 return 0;
19147 }
19148 _ACEOF
19149 if ac_fn_c_try_link "$LINENO"
19150 then :
19151 eval $cacheid=yes
19152 else $as_nop
19153 eval $cacheid=no
19154 fi
19155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19156 conftest$ac_exeext conftest.$ac_ext
19157 fi
19158
19159
19160 CFLAGS="$xorg_testset_save_CFLAGS"
19161
19162 eval supported=\$$cacheid
19163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19164 printf "%s\n" "$supported" >&6; }
19165 if test "$supported" = "yes" ; then
19166 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19167 found="yes"
19168 fi
19169 fi
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185 xorg_testset_save_CFLAGS="$CFLAGS"
19186
19187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19191 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19192 then :
19193 printf %s "(cached) " >&6
19194 else $as_nop
19195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19196 /* end confdefs.h. */
19197 int i;
19198 _ACEOF
19199 if ac_fn_c_try_compile "$LINENO"
19200 then :
19201 xorg_cv_cc_flag_unknown_warning_option=yes
19202 else $as_nop
19203 xorg_cv_cc_flag_unknown_warning_option=no
19204 fi
19205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19206 fi
19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19210 CFLAGS="$xorg_testset_save_CFLAGS"
19211 fi
19212
19213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19216 fi
19217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19221 then :
19222 printf %s "(cached) " >&6
19223 else $as_nop
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226 int i;
19227 _ACEOF
19228 if ac_fn_c_try_compile "$LINENO"
19229 then :
19230 xorg_cv_cc_flag_unused_command_line_argument=yes
19231 else $as_nop
19232 xorg_cv_cc_flag_unused_command_line_argument=no
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19235 fi
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19239 CFLAGS="$xorg_testset_save_CFLAGS"
19240 fi
19241
19242 found="no"
19243
19244 if test $found = "no" ; then
19245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19247 fi
19248
19249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19251 fi
19252
19253 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19254
19255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19256 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19257 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19258 if eval test \${$cacheid+y}
19259 then :
19260 printf %s "(cached) " >&6
19261 else $as_nop
19262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263 /* end confdefs.h. */
19264 int i;
19265 int
19266 main (void)
19267 {
19268
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 if ac_fn_c_try_link "$LINENO"
19274 then :
19275 eval $cacheid=yes
19276 else $as_nop
19277 eval $cacheid=no
19278 fi
19279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19280 conftest$ac_exeext conftest.$ac_ext
19281 fi
19282
19283
19284 CFLAGS="$xorg_testset_save_CFLAGS"
19285
19286 eval supported=\$$cacheid
19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19288 printf "%s\n" "$supported" >&6; }
19289 if test "$supported" = "yes" ; then
19290 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19291 found="yes"
19292 fi
19293 fi
19294
19295
19296 fi
19297
19298
19299
19300
19301
19302
19303
19304 CWARNFLAGS="$BASE_CFLAGS"
19305 if test "x$GCC" = xyes ; then
19306 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19307 fi
19308
19309
19310
19311
19312
19313
19314
19315
19316 # Check whether --enable-strict-compilation was given.
19317 if test ${enable_strict_compilation+y}
19318 then :
19319 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19320 else $as_nop
19321 STRICT_COMPILE=no
19322 fi
19323
19324
19325
19326
19327
19328
19329 STRICT_CFLAGS=""
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343 xorg_testset_save_CFLAGS="$CFLAGS"
19344
19345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19349 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19350 then :
19351 printf %s "(cached) " >&6
19352 else $as_nop
19353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354 /* end confdefs.h. */
19355 int i;
19356 _ACEOF
19357 if ac_fn_c_try_compile "$LINENO"
19358 then :
19359 xorg_cv_cc_flag_unknown_warning_option=yes
19360 else $as_nop
19361 xorg_cv_cc_flag_unknown_warning_option=no
19362 fi
19363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19364 fi
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19366 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19368 CFLAGS="$xorg_testset_save_CFLAGS"
19369 fi
19370
19371 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19374 fi
19375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19377 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19378 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19379 then :
19380 printf %s "(cached) " >&6
19381 else $as_nop
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19384 int i;
19385 _ACEOF
19386 if ac_fn_c_try_compile "$LINENO"
19387 then :
19388 xorg_cv_cc_flag_unused_command_line_argument=yes
19389 else $as_nop
19390 xorg_cv_cc_flag_unused_command_line_argument=no
19391 fi
19392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19393 fi
19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19395 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19397 CFLAGS="$xorg_testset_save_CFLAGS"
19398 fi
19399
19400 found="no"
19401
19402 if test $found = "no" ; then
19403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19405 fi
19406
19407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19409 fi
19410
19411 CFLAGS="$CFLAGS -pedantic"
19412
19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19414 printf %s "checking if $CC supports -pedantic... " >&6; }
19415 cacheid=xorg_cv_cc_flag__pedantic
19416 if eval test \${$cacheid+y}
19417 then :
19418 printf %s "(cached) " >&6
19419 else $as_nop
19420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421 /* end confdefs.h. */
19422 int i;
19423 int
19424 main (void)
19425 {
19426
19427 ;
19428 return 0;
19429 }
19430 _ACEOF
19431 if ac_fn_c_try_link "$LINENO"
19432 then :
19433 eval $cacheid=yes
19434 else $as_nop
19435 eval $cacheid=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19438 conftest$ac_exeext conftest.$ac_ext
19439 fi
19440
19441
19442 CFLAGS="$xorg_testset_save_CFLAGS"
19443
19444 eval supported=\$$cacheid
19445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19446 printf "%s\n" "$supported" >&6; }
19447 if test "$supported" = "yes" ; then
19448 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19449 found="yes"
19450 fi
19451 fi
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467 xorg_testset_save_CFLAGS="$CFLAGS"
19468
19469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19473 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19474 then :
19475 printf %s "(cached) " >&6
19476 else $as_nop
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 int i;
19480 _ACEOF
19481 if ac_fn_c_try_compile "$LINENO"
19482 then :
19483 xorg_cv_cc_flag_unknown_warning_option=yes
19484 else $as_nop
19485 xorg_cv_cc_flag_unknown_warning_option=no
19486 fi
19487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19488 fi
19489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19490 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19492 CFLAGS="$xorg_testset_save_CFLAGS"
19493 fi
19494
19495 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19498 fi
19499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19501 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19502 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19503 then :
19504 printf %s "(cached) " >&6
19505 else $as_nop
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508 int i;
19509 _ACEOF
19510 if ac_fn_c_try_compile "$LINENO"
19511 then :
19512 xorg_cv_cc_flag_unused_command_line_argument=yes
19513 else $as_nop
19514 xorg_cv_cc_flag_unused_command_line_argument=no
19515 fi
19516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19517 fi
19518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19519 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19521 CFLAGS="$xorg_testset_save_CFLAGS"
19522 fi
19523
19524 found="no"
19525
19526 if test $found = "no" ; then
19527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19529 fi
19530
19531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19533 fi
19534
19535 CFLAGS="$CFLAGS -Werror"
19536
19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19538 printf %s "checking if $CC supports -Werror... " >&6; }
19539 cacheid=xorg_cv_cc_flag__Werror
19540 if eval test \${$cacheid+y}
19541 then :
19542 printf %s "(cached) " >&6
19543 else $as_nop
19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19545 /* end confdefs.h. */
19546 int i;
19547 int
19548 main (void)
19549 {
19550
19551 ;
19552 return 0;
19553 }
19554 _ACEOF
19555 if ac_fn_c_try_link "$LINENO"
19556 then :
19557 eval $cacheid=yes
19558 else $as_nop
19559 eval $cacheid=no
19560 fi
19561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19562 conftest$ac_exeext conftest.$ac_ext
19563 fi
19564
19565
19566 CFLAGS="$xorg_testset_save_CFLAGS"
19567
19568 eval supported=\$$cacheid
19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19570 printf "%s\n" "$supported" >&6; }
19571 if test "$supported" = "yes" ; then
19572 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19573 found="yes"
19574 fi
19575 fi
19576
19577 if test $found = "no" ; then
19578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19580 fi
19581
19582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19584 fi
19585
19586 CFLAGS="$CFLAGS -errwarn"
19587
19588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19589 printf %s "checking if $CC supports -errwarn... " >&6; }
19590 cacheid=xorg_cv_cc_flag__errwarn
19591 if eval test \${$cacheid+y}
19592 then :
19593 printf %s "(cached) " >&6
19594 else $as_nop
19595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h. */
19597 int i;
19598 int
19599 main (void)
19600 {
19601
19602 ;
19603 return 0;
19604 }
19605 _ACEOF
19606 if ac_fn_c_try_link "$LINENO"
19607 then :
19608 eval $cacheid=yes
19609 else $as_nop
19610 eval $cacheid=no
19611 fi
19612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19613 conftest$ac_exeext conftest.$ac_ext
19614 fi
19615
19616
19617 CFLAGS="$xorg_testset_save_CFLAGS"
19618
19619 eval supported=\$$cacheid
19620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19621 printf "%s\n" "$supported" >&6; }
19622 if test "$supported" = "yes" ; then
19623 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19624 found="yes"
19625 fi
19626 fi
19627
19628
19629
19630 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19631 # activate it with -Werror, so we add it here explicitly.
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645 xorg_testset_save_CFLAGS="$CFLAGS"
19646
19647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19651 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19652 then :
19653 printf %s "(cached) " >&6
19654 else $as_nop
19655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h. */
19657 int i;
19658 _ACEOF
19659 if ac_fn_c_try_compile "$LINENO"
19660 then :
19661 xorg_cv_cc_flag_unknown_warning_option=yes
19662 else $as_nop
19663 xorg_cv_cc_flag_unknown_warning_option=no
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19666 fi
19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19670 CFLAGS="$xorg_testset_save_CFLAGS"
19671 fi
19672
19673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19676 fi
19677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19681 then :
19682 printf %s "(cached) " >&6
19683 else $as_nop
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686 int i;
19687 _ACEOF
19688 if ac_fn_c_try_compile "$LINENO"
19689 then :
19690 xorg_cv_cc_flag_unused_command_line_argument=yes
19691 else $as_nop
19692 xorg_cv_cc_flag_unused_command_line_argument=no
19693 fi
19694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19695 fi
19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19699 CFLAGS="$xorg_testset_save_CFLAGS"
19700 fi
19701
19702 found="no"
19703
19704 if test $found = "no" ; then
19705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19707 fi
19708
19709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19711 fi
19712
19713 CFLAGS="$CFLAGS -Werror=attributes"
19714
19715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19716 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19717 cacheid=xorg_cv_cc_flag__Werror_attributes
19718 if eval test \${$cacheid+y}
19719 then :
19720 printf %s "(cached) " >&6
19721 else $as_nop
19722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19724 int i;
19725 int
19726 main (void)
19727 {
19728
19729 ;
19730 return 0;
19731 }
19732 _ACEOF
19733 if ac_fn_c_try_link "$LINENO"
19734 then :
19735 eval $cacheid=yes
19736 else $as_nop
19737 eval $cacheid=no
19738 fi
19739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19740 conftest$ac_exeext conftest.$ac_ext
19741 fi
19742
19743
19744 CFLAGS="$xorg_testset_save_CFLAGS"
19745
19746 eval supported=\$$cacheid
19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19748 printf "%s\n" "$supported" >&6; }
19749 if test "$supported" = "yes" ; then
19750 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19751 found="yes"
19752 fi
19753 fi
19754
19755
19756
19757 if test "x$STRICT_COMPILE" = "xyes"; then
19758 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19759 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19760 fi
19761
19762
19763
19764
19765
19766
19767 cat >>confdefs.h <<_ACEOF
19768 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19769 _ACEOF
19770
19771 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19772 if test "x$PVM" = "x"; then
19773 PVM="0"
19774 fi
19775
19776 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19777
19778 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19779 if test "x$PVP" = "x"; then
19780 PVP="0"
19781 fi
19782
19783 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19784
19785
19786
19787 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19788 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19789 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19790 touch \$(top_srcdir)/ChangeLog; \
19791 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19792
19793
19794
19795
19796 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19797 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19798 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19799 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19800 touch \$(top_srcdir)/INSTALL; \
19801 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19802
19803
19804
19805
19806
19807
19808 case $host_os in
19809 solaris*)
19810 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19811 # check for a man page file found in later versions that use
19812 # traditional section numbers instead
19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19814 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19815 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19816 then :
19817 printf %s "(cached) " >&6
19818 else $as_nop
19819 test "$cross_compiling" = yes &&
19820 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19821 if test -r "/usr/share/man/man7/attributes.7"; then
19822 ac_cv_file__usr_share_man_man7_attributes_7=yes
19823 else
19824 ac_cv_file__usr_share_man_man7_attributes_7=no
19825 fi
19826 fi
19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19828 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19829 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19830 then :
19831 SYSV_MAN_SECTIONS=false
19832 else $as_nop
19833 SYSV_MAN_SECTIONS=true
19834 fi
19835
19836 ;;
19837 *) SYSV_MAN_SECTIONS=false ;;
19838 esac
19839
19840 if test x$APP_MAN_SUFFIX = x ; then
19841 APP_MAN_SUFFIX=1
19842 fi
19843 if test x$APP_MAN_DIR = x ; then
19844 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19845 fi
19846
19847 if test x$LIB_MAN_SUFFIX = x ; then
19848 LIB_MAN_SUFFIX=3
19849 fi
19850 if test x$LIB_MAN_DIR = x ; then
19851 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19852 fi
19853
19854 if test x$FILE_MAN_SUFFIX = x ; then
19855 case $SYSV_MAN_SECTIONS in
19856 true) FILE_MAN_SUFFIX=4 ;;
19857 *) FILE_MAN_SUFFIX=5 ;;
19858 esac
19859 fi
19860 if test x$FILE_MAN_DIR = x ; then
19861 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19862 fi
19863
19864 if test x$MISC_MAN_SUFFIX = x ; then
19865 case $SYSV_MAN_SECTIONS in
19866 true) MISC_MAN_SUFFIX=5 ;;
19867 *) MISC_MAN_SUFFIX=7 ;;
19868 esac
19869 fi
19870 if test x$MISC_MAN_DIR = x ; then
19871 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19872 fi
19873
19874 if test x$DRIVER_MAN_SUFFIX = x ; then
19875 case $SYSV_MAN_SECTIONS in
19876 true) DRIVER_MAN_SUFFIX=7 ;;
19877 *) DRIVER_MAN_SUFFIX=4 ;;
19878 esac
19879 fi
19880 if test x$DRIVER_MAN_DIR = x ; then
19881 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19882 fi
19883
19884 if test x$ADMIN_MAN_SUFFIX = x ; then
19885 case $SYSV_MAN_SECTIONS in
19886 true) ADMIN_MAN_SUFFIX=1m ;;
19887 *) ADMIN_MAN_SUFFIX=8 ;;
19888 esac
19889 fi
19890 if test x$ADMIN_MAN_DIR = x ; then
19891 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19892 fi
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908 XORG_MAN_PAGE="X Version 11"
19909
19910 MAN_SUBSTS="\
19911 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19912 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19913 -e 's|__xservername__|Xorg|g' \
19914 -e 's|__xconfigfile__|xorg.conf|g' \
19915 -e 's|__projectroot__|\$(prefix)|g' \
19916 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19917 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19918 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19919 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19920 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19921 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19922 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19923
19924
19925
19926 # Check whether --enable-silent-rules was given.
19927 if test ${enable_silent_rules+y}
19928 then :
19929 enableval=$enable_silent_rules;
19930 fi
19931
19932 case $enable_silent_rules in # (((
19933 yes) AM_DEFAULT_VERBOSITY=0;;
19934 no) AM_DEFAULT_VERBOSITY=1;;
19935 *) AM_DEFAULT_VERBOSITY=0;;
19936 esac
19937 am_make=${MAKE-make}
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19939 printf %s "checking whether $am_make supports nested variables... " >&6; }
19940 if test ${am_cv_make_support_nested_variables+y}
19941 then :
19942 printf %s "(cached) " >&6
19943 else $as_nop
19944 if printf "%s\n" 'TRUE=$(BAR$(V))
19945 BAR0=false
19946 BAR1=true
19947 V=1
19948 am__doit:
19949 @$(TRUE)
19950 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19951 am_cv_make_support_nested_variables=yes
19952 else
19953 am_cv_make_support_nested_variables=no
19954 fi
19955 fi
19956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19957 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19958 if test $am_cv_make_support_nested_variables = yes; then
19959 AM_V='$(V)'
19960 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19961 else
19962 AM_V=$AM_DEFAULT_VERBOSITY
19963 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19964 fi
19965 AM_BACKSLASH='\'
19966
19967
19968
19969
19970 # Check whether --enable-specs was given.
19971 if test ${enable_specs+y}
19972 then :
19973 enableval=$enable_specs; build_specs=$enableval
19974 else $as_nop
19975 build_specs=yes
19976 fi
19977
19978
19979 if test x$build_specs = xyes; then
19980 ENABLE_SPECS_TRUE=
19981 ENABLE_SPECS_FALSE='#'
19982 else
19983 ENABLE_SPECS_TRUE='#'
19984 ENABLE_SPECS_FALSE=
19985 fi
19986
19987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
19988 printf %s "checking whether to build functional specifications... " >&6; }
19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
19990 printf "%s\n" "$build_specs" >&6; }
19991
19992
19993
19994
19995
19996 # Check whether --with-xmlto was given.
19997 if test ${with_xmlto+y}
19998 then :
19999 withval=$with_xmlto; use_xmlto=$withval
20000 else $as_nop
20001 use_xmlto=auto
20002 fi
20003
20004
20005
20006 if test "x$use_xmlto" = x"auto"; then
20007 # Extract the first word of "xmlto", so it can be a program name with args.
20008 set dummy xmlto; ac_word=$2
20009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20010 printf %s "checking for $ac_word... " >&6; }
20011 if test ${ac_cv_path_XMLTO+y}
20012 then :
20013 printf %s "(cached) " >&6
20014 else $as_nop
20015 case $XMLTO in
20016 [\\/]* | ?:[\\/]*)
20017 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20018 ;;
20019 *)
20020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20021 for as_dir in $PATH
20022 do
20023 IFS=$as_save_IFS
20024 case $as_dir in #(((
20025 '') as_dir=./ ;;
20026 */) ;;
20027 *) as_dir=$as_dir/ ;;
20028 esac
20029 for ac_exec_ext in '' $ac_executable_extensions; do
20030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20031 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20033 break 2
20034 fi
20035 done
20036 done
20037 IFS=$as_save_IFS
20038
20039 ;;
20040 esac
20041 fi
20042 XMLTO=$ac_cv_path_XMLTO
20043 if test -n "$XMLTO"; then
20044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20045 printf "%s\n" "$XMLTO" >&6; }
20046 else
20047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20048 printf "%s\n" "no" >&6; }
20049 fi
20050
20051
20052 if test "x$XMLTO" = "x"; then
20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
20054 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
20055 have_xmlto=no
20056 else
20057 have_xmlto=yes
20058 fi
20059 elif test "x$use_xmlto" = x"yes" ; then
20060 # Extract the first word of "xmlto", so it can be a program name with args.
20061 set dummy xmlto; ac_word=$2
20062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20063 printf %s "checking for $ac_word... " >&6; }
20064 if test ${ac_cv_path_XMLTO+y}
20065 then :
20066 printf %s "(cached) " >&6
20067 else $as_nop
20068 case $XMLTO in
20069 [\\/]* | ?:[\\/]*)
20070 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
20071 ;;
20072 *)
20073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074 for as_dir in $PATH
20075 do
20076 IFS=$as_save_IFS
20077 case $as_dir in #(((
20078 '') as_dir=./ ;;
20079 */) ;;
20080 *) as_dir=$as_dir/ ;;
20081 esac
20082 for ac_exec_ext in '' $ac_executable_extensions; do
20083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20084 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
20085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20086 break 2
20087 fi
20088 done
20089 done
20090 IFS=$as_save_IFS
20091
20092 ;;
20093 esac
20094 fi
20095 XMLTO=$ac_cv_path_XMLTO
20096 if test -n "$XMLTO"; then
20097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
20098 printf "%s\n" "$XMLTO" >&6; }
20099 else
20100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20101 printf "%s\n" "no" >&6; }
20102 fi
20103
20104
20105 if test "x$XMLTO" = "x"; then
20106 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
20107 fi
20108 have_xmlto=yes
20109 elif test "x$use_xmlto" = x"no" ; then
20110 if test "x$XMLTO" != "x"; then
20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
20112 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
20113 fi
20114 have_xmlto=no
20115 else
20116 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
20117 fi
20118
20119 # Test for a minimum version of xmlto, if provided.
20120 if test "$have_xmlto" = yes; then
20121 # scrape the xmlto version
20122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
20123 printf %s "checking the xmlto version... " >&6; }
20124 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
20125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
20126 printf "%s\n" "$xmlto_version" >&6; }
20127 as_arg_v1=$xmlto_version
20128 as_arg_v2=0.0.22
20129 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
20130 case $? in #(
20131 1) :
20132 if test "x$use_xmlto" = xauto; then
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
20134 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
20135 have_xmlto=no
20136 else
20137 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
20138 fi ;; #(
20139 0) :
20140 ;; #(
20141 2) :
20142 ;; #(
20143 *) :
20144 ;;
20145 esac
20146 fi
20147
20148 # Test for the ability of xmlto to generate a text target
20149 #
20150 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
20151 # following test for empty XML docbook files.
20152 # For compatibility reasons use the following empty XML docbook file and if
20153 # it fails try it again with a non-empty XML file.
20154 have_xmlto_text=no
20155 cat > conftest.xml << "EOF"
20156 EOF
20157 if test "$have_xmlto" = yes
20158 then :
20159 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20160 then :
20161 have_xmlto_text=yes
20162 else $as_nop
20163 # Try it again with a non-empty XML file.
20164 cat > conftest.xml << "EOF"
20165 <x></x>
20166 EOF
20167 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
20168 then :
20169 have_xmlto_text=yes
20170 else $as_nop
20171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
20172 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
20173 fi
20174 fi
20175 fi
20176 rm -f conftest.xml
20177 if test $have_xmlto_text = yes; then
20178 HAVE_XMLTO_TEXT_TRUE=
20179 HAVE_XMLTO_TEXT_FALSE='#'
20180 else
20181 HAVE_XMLTO_TEXT_TRUE='#'
20182 HAVE_XMLTO_TEXT_FALSE=
20183 fi
20184
20185 if test "$have_xmlto" = yes; then
20186 HAVE_XMLTO_TRUE=
20187 HAVE_XMLTO_FALSE='#'
20188 else
20189 HAVE_XMLTO_TRUE='#'
20190 HAVE_XMLTO_FALSE=
20191 fi
20192
20193
20194
20195
20196
20197
20198 # Check whether --with-fop was given.
20199 if test ${with_fop+y}
20200 then :
20201 withval=$with_fop; use_fop=$withval
20202 else $as_nop
20203 use_fop=no
20204 fi
20205
20206
20207
20208 if test "x$use_fop" = x"auto"; then
20209 # Extract the first word of "fop", so it can be a program name with args.
20210 set dummy fop; ac_word=$2
20211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20212 printf %s "checking for $ac_word... " >&6; }
20213 if test ${ac_cv_path_FOP+y}
20214 then :
20215 printf %s "(cached) " >&6
20216 else $as_nop
20217 case $FOP in
20218 [\\/]* | ?:[\\/]*)
20219 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20220 ;;
20221 *)
20222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20223 for as_dir in $PATH
20224 do
20225 IFS=$as_save_IFS
20226 case $as_dir in #(((
20227 '') as_dir=./ ;;
20228 */) ;;
20229 *) as_dir=$as_dir/ ;;
20230 esac
20231 for ac_exec_ext in '' $ac_executable_extensions; do
20232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20233 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20235 break 2
20236 fi
20237 done
20238 done
20239 IFS=$as_save_IFS
20240
20241 ;;
20242 esac
20243 fi
20244 FOP=$ac_cv_path_FOP
20245 if test -n "$FOP"; then
20246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20247 printf "%s\n" "$FOP" >&6; }
20248 else
20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20250 printf "%s\n" "no" >&6; }
20251 fi
20252
20253
20254 if test "x$FOP" = "x"; then
20255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
20256 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
20257 have_fop=no
20258 else
20259 have_fop=yes
20260 fi
20261 elif test "x$use_fop" = x"yes" ; then
20262 # Extract the first word of "fop", so it can be a program name with args.
20263 set dummy fop; ac_word=$2
20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20265 printf %s "checking for $ac_word... " >&6; }
20266 if test ${ac_cv_path_FOP+y}
20267 then :
20268 printf %s "(cached) " >&6
20269 else $as_nop
20270 case $FOP in
20271 [\\/]* | ?:[\\/]*)
20272 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
20273 ;;
20274 *)
20275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20276 for as_dir in $PATH
20277 do
20278 IFS=$as_save_IFS
20279 case $as_dir in #(((
20280 '') as_dir=./ ;;
20281 */) ;;
20282 *) as_dir=$as_dir/ ;;
20283 esac
20284 for ac_exec_ext in '' $ac_executable_extensions; do
20285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20286 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
20287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20288 break 2
20289 fi
20290 done
20291 done
20292 IFS=$as_save_IFS
20293
20294 ;;
20295 esac
20296 fi
20297 FOP=$ac_cv_path_FOP
20298 if test -n "$FOP"; then
20299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
20300 printf "%s\n" "$FOP" >&6; }
20301 else
20302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303 printf "%s\n" "no" >&6; }
20304 fi
20305
20306
20307 if test "x$FOP" = "x"; then
20308 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
20309 fi
20310 have_fop=yes
20311 elif test "x$use_fop" = x"no" ; then
20312 if test "x$FOP" != "x"; then
20313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
20314 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
20315 fi
20316 have_fop=no
20317 else
20318 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
20319 fi
20320
20321 # Test for a minimum version of fop, if provided.
20322
20323 if test "$have_fop" = yes; then
20324 HAVE_FOP_TRUE=
20325 HAVE_FOP_FALSE='#'
20326 else
20327 HAVE_FOP_TRUE='#'
20328 HAVE_FOP_FALSE=
20329 fi
20330
20331
20332
20333
20334 # Preserves the interface, should it be implemented later
20335
20336
20337
20338 # Check whether --with-xsltproc was given.
20339 if test ${with_xsltproc+y}
20340 then :
20341 withval=$with_xsltproc; use_xsltproc=$withval
20342 else $as_nop
20343 use_xsltproc=auto
20344 fi
20345
20346
20347
20348 if test "x$use_xsltproc" = x"auto"; then
20349 # Extract the first word of "xsltproc", so it can be a program name with args.
20350 set dummy xsltproc; ac_word=$2
20351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20352 printf %s "checking for $ac_word... " >&6; }
20353 if test ${ac_cv_path_XSLTPROC+y}
20354 then :
20355 printf %s "(cached) " >&6
20356 else $as_nop
20357 case $XSLTPROC in
20358 [\\/]* | ?:[\\/]*)
20359 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20360 ;;
20361 *)
20362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20363 for as_dir in $PATH
20364 do
20365 IFS=$as_save_IFS
20366 case $as_dir in #(((
20367 '') as_dir=./ ;;
20368 */) ;;
20369 *) as_dir=$as_dir/ ;;
20370 esac
20371 for ac_exec_ext in '' $ac_executable_extensions; do
20372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20373 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20375 break 2
20376 fi
20377 done
20378 done
20379 IFS=$as_save_IFS
20380
20381 ;;
20382 esac
20383 fi
20384 XSLTPROC=$ac_cv_path_XSLTPROC
20385 if test -n "$XSLTPROC"; then
20386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20387 printf "%s\n" "$XSLTPROC" >&6; }
20388 else
20389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20390 printf "%s\n" "no" >&6; }
20391 fi
20392
20393
20394 if test "x$XSLTPROC" = "x"; then
20395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
20396 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
20397 have_xsltproc=no
20398 else
20399 have_xsltproc=yes
20400 fi
20401 elif test "x$use_xsltproc" = x"yes" ; then
20402 # Extract the first word of "xsltproc", so it can be a program name with args.
20403 set dummy xsltproc; ac_word=$2
20404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20405 printf %s "checking for $ac_word... " >&6; }
20406 if test ${ac_cv_path_XSLTPROC+y}
20407 then :
20408 printf %s "(cached) " >&6
20409 else $as_nop
20410 case $XSLTPROC in
20411 [\\/]* | ?:[\\/]*)
20412 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20413 ;;
20414 *)
20415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20416 for as_dir in $PATH
20417 do
20418 IFS=$as_save_IFS
20419 case $as_dir in #(((
20420 '') as_dir=./ ;;
20421 */) ;;
20422 *) as_dir=$as_dir/ ;;
20423 esac
20424 for ac_exec_ext in '' $ac_executable_extensions; do
20425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20426 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20428 break 2
20429 fi
20430 done
20431 done
20432 IFS=$as_save_IFS
20433
20434 ;;
20435 esac
20436 fi
20437 XSLTPROC=$ac_cv_path_XSLTPROC
20438 if test -n "$XSLTPROC"; then
20439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20440 printf "%s\n" "$XSLTPROC" >&6; }
20441 else
20442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20443 printf "%s\n" "no" >&6; }
20444 fi
20445
20446
20447 if test "x$XSLTPROC" = "x"; then
20448 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
20449 fi
20450 have_xsltproc=yes
20451 elif test "x$use_xsltproc" = x"no" ; then
20452 if test "x$XSLTPROC" != "x"; then
20453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
20454 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
20455 fi
20456 have_xsltproc=no
20457 else
20458 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
20459 fi
20460
20461 if test "$have_xsltproc" = yes; then
20462 HAVE_XSLTPROC_TRUE=
20463 HAVE_XSLTPROC_FALSE='#'
20464 else
20465 HAVE_XSLTPROC_TRUE='#'
20466 HAVE_XSLTPROC_FALSE=
20467 fi
20468
20469
20470
20471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
20472 printf %s "checking for X.Org SGML entities >= 1.10... " >&6; }
20473 XORG_SGML_PATH=
20474 if test -n "$PKG_CONFIG" && \
20475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
20476 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
20477 ac_status=$?
20478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20479 test $ac_status = 0; }; then
20480 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
20481 else
20482 :
20483
20484 fi
20485
20486 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
20487 # the path and the name of the doc stylesheet
20488 if test "x$XORG_SGML_PATH" != "x" ; then
20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20490 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20491 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20492 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20493 else
20494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20495 printf "%s\n" "no" >&6; }
20496 fi
20497
20498
20499
20500
20501 if test "x$XSL_STYLESHEET" != "x"; then
20502 HAVE_STYLESHEETS_TRUE=
20503 HAVE_STYLESHEETS_FALSE='#'
20504 else
20505 HAVE_STYLESHEETS_TRUE='#'
20506 HAVE_STYLESHEETS_FALSE=
20507 fi
20508
20509
20510 ac_ext=c
20511 ac_cpp='$CPP $CPPFLAGS'
20512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
20516 printf %s "checking how to run the C preprocessor... " >&6; }
20517 # On Suns, sometimes $CPP names a directory.
20518 if test -n "$CPP" && test -d "$CPP"; then
20519 CPP=
20520 fi
20521 if test -z "$CPP"; then
20522 if test ${ac_cv_prog_CPP+y}
20523 then :
20524 printf %s "(cached) " >&6
20525 else $as_nop
20526 # Double quotes because $CC needs to be expanded
20527 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
20528 do
20529 ac_preproc_ok=false
20530 for ac_c_preproc_warn_flag in '' yes
20531 do
20532 # Use a header file that comes with gcc, so configuring glibc
20533 # with a fresh cross-compiler works.
20534 # On the NeXT, cc -E runs the code through the compiler's parser,
20535 # not just through cpp. "Syntax error" is here to catch this case.
20536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537 /* end confdefs.h. */
20538 #include <limits.h>
20539 Syntax error
20540 _ACEOF
20541 if ac_fn_c_try_cpp "$LINENO"
20542 then :
20543
20544 else $as_nop
20545 # Broken: fails on valid input.
20546 continue
20547 fi
20548 rm -f conftest.err conftest.i conftest.$ac_ext
20549
20550 # OK, works on sane cases. Now check whether nonexistent headers
20551 # can be detected and how.
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20554 #include <ac_nonexistent.h>
20555 _ACEOF
20556 if ac_fn_c_try_cpp "$LINENO"
20557 then :
20558 # Broken: success on invalid input.
20559 continue
20560 else $as_nop
20561 # Passes both tests.
20562 ac_preproc_ok=:
20563 break
20564 fi
20565 rm -f conftest.err conftest.i conftest.$ac_ext
20566
20567 done
20568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20569 rm -f conftest.i conftest.err conftest.$ac_ext
20570 if $ac_preproc_ok
20571 then :
20572 break
20573 fi
20574
20575 done
20576 ac_cv_prog_CPP=$CPP
20577
20578 fi
20579 CPP=$ac_cv_prog_CPP
20580 else
20581 ac_cv_prog_CPP=$CPP
20582 fi
20583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
20584 printf "%s\n" "$CPP" >&6; }
20585 ac_preproc_ok=false
20586 for ac_c_preproc_warn_flag in '' yes
20587 do
20588 # Use a header file that comes with gcc, so configuring glibc
20589 # with a fresh cross-compiler works.
20590 # On the NeXT, cc -E runs the code through the compiler's parser,
20591 # not just through cpp. "Syntax error" is here to catch this case.
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20594 #include <limits.h>
20595 Syntax error
20596 _ACEOF
20597 if ac_fn_c_try_cpp "$LINENO"
20598 then :
20599
20600 else $as_nop
20601 # Broken: fails on valid input.
20602 continue
20603 fi
20604 rm -f conftest.err conftest.i conftest.$ac_ext
20605
20606 # OK, works on sane cases. Now check whether nonexistent headers
20607 # can be detected and how.
20608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20609 /* end confdefs.h. */
20610 #include <ac_nonexistent.h>
20611 _ACEOF
20612 if ac_fn_c_try_cpp "$LINENO"
20613 then :
20614 # Broken: success on invalid input.
20615 continue
20616 else $as_nop
20617 # Passes both tests.
20618 ac_preproc_ok=:
20619 break
20620 fi
20621 rm -f conftest.err conftest.i conftest.$ac_ext
20622
20623 done
20624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20625 rm -f conftest.i conftest.err conftest.$ac_ext
20626 if $ac_preproc_ok
20627 then :
20628
20629 else $as_nop
20630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20632 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
20633 See \`config.log' for more details" "$LINENO" 5; }
20634 fi
20635
20636 ac_ext=c
20637 ac_cpp='$CPP $CPPFLAGS'
20638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20641
20642
20643
20644 if test -n "$ac_tool_prefix"; then
20645 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
20646 set dummy ${ac_tool_prefix}cpp; ac_word=$2
20647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20648 printf %s "checking for $ac_word... " >&6; }
20649 if test ${ac_cv_path_RAWCPP+y}
20650 then :
20651 printf %s "(cached) " >&6
20652 else $as_nop
20653 case $RAWCPP in
20654 [\\/]* | ?:[\\/]*)
20655 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
20656 ;;
20657 *)
20658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20659 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20660 for as_dir in $as_dummy
20661 do
20662 IFS=$as_save_IFS
20663 case $as_dir in #(((
20664 '') as_dir=./ ;;
20665 */) ;;
20666 *) as_dir=$as_dir/ ;;
20667 esac
20668 for ac_exec_ext in '' $ac_executable_extensions; do
20669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20670 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20672 break 2
20673 fi
20674 done
20675 done
20676 IFS=$as_save_IFS
20677
20678 ;;
20679 esac
20680 fi
20681 RAWCPP=$ac_cv_path_RAWCPP
20682 if test -n "$RAWCPP"; then
20683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
20684 printf "%s\n" "$RAWCPP" >&6; }
20685 else
20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20687 printf "%s\n" "no" >&6; }
20688 fi
20689
20690
20691 fi
20692 if test -z "$ac_cv_path_RAWCPP"; then
20693 ac_pt_RAWCPP=$RAWCPP
20694 # Extract the first word of "cpp", so it can be a program name with args.
20695 set dummy cpp; ac_word=$2
20696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20697 printf %s "checking for $ac_word... " >&6; }
20698 if test ${ac_cv_path_ac_pt_RAWCPP+y}
20699 then :
20700 printf %s "(cached) " >&6
20701 else $as_nop
20702 case $ac_pt_RAWCPP in
20703 [\\/]* | ?:[\\/]*)
20704 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
20705 ;;
20706 *)
20707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20708 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
20709 for as_dir in $as_dummy
20710 do
20711 IFS=$as_save_IFS
20712 case $as_dir in #(((
20713 '') as_dir=./ ;;
20714 */) ;;
20715 *) as_dir=$as_dir/ ;;
20716 esac
20717 for ac_exec_ext in '' $ac_executable_extensions; do
20718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20719 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
20720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20721 break 2
20722 fi
20723 done
20724 done
20725 IFS=$as_save_IFS
20726
20727 ;;
20728 esac
20729 fi
20730 ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
20731 if test -n "$ac_pt_RAWCPP"; then
20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
20733 printf "%s\n" "$ac_pt_RAWCPP" >&6; }
20734 else
20735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20736 printf "%s\n" "no" >&6; }
20737 fi
20738
20739 if test "x$ac_pt_RAWCPP" = x; then
20740 RAWCPP="${CPP}"
20741 else
20742 case $cross_compiling:$ac_tool_warned in
20743 yes:)
20744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20746 ac_tool_warned=yes ;;
20747 esac
20748 RAWCPP=$ac_pt_RAWCPP
20749 fi
20750 else
20751 RAWCPP="$ac_cv_path_RAWCPP"
20752 fi
20753
20754
20755 # Check for flag to avoid builtin definitions - assumes unix is predefined,
20756 # which is not the best choice for supporting other OS'es, but covers most
20757 # of the ones we need for now.
20758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
20759 printf %s "checking if $RAWCPP requires -undef... " >&6; }
20760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h. */
20762 Does cpp redefine unix ?
20763 _ACEOF
20764 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20766 printf "%s\n" "no" >&6; }
20767 else
20768 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20769 RAWCPPFLAGS=-undef
20770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20771 printf "%s\n" "yes" >&6; }
20772 # under Cygwin unix is still defined even with -undef
20773 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
20774 RAWCPPFLAGS="-undef -ansi"
20775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
20776 printf "%s\n" "yes, with -ansi" >&6; }
20777 else
20778 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
20779 fi
20780 fi
20781 rm -f conftest.$ac_ext
20782
20783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
20784 printf %s "checking if $RAWCPP requires -traditional... " >&6; }
20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20786 /* end confdefs.h. */
20787 Does cpp preserve "whitespace"?
20788 _ACEOF
20789 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 printf "%s\n" "no" >&6; }
20792 else
20793 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
20794 TRADITIONALCPPFLAGS="-traditional"
20795 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
20796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20797 printf "%s\n" "yes" >&6; }
20798 else
20799 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
20800 fi
20801 fi
20802 rm -f conftest.$ac_ext
20803
20804
20805
20806
20807
20808 # Preserves the interface, should it be implemented later
20809
20810
20811
20812 # Check whether --with-perl was given.
20813 if test ${with_perl+y}
20814 then :
20815 withval=$with_perl; use_perl=$withval
20816 else $as_nop
20817 use_perl=auto
20818 fi
20819
20820
20821
20822 if test "x$use_perl" = x"auto"; then
20823 # Extract the first word of "perl", so it can be a program name with args.
20824 set dummy perl; ac_word=$2
20825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20826 printf %s "checking for $ac_word... " >&6; }
20827 if test ${ac_cv_path_PERL+y}
20828 then :
20829 printf %s "(cached) " >&6
20830 else $as_nop
20831 case $PERL in
20832 [\\/]* | ?:[\\/]*)
20833 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20834 ;;
20835 *)
20836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20838 do
20839 IFS=$as_save_IFS
20840 case $as_dir in #(((
20841 '') as_dir=./ ;;
20842 */) ;;
20843 *) as_dir=$as_dir/ ;;
20844 esac
20845 for ac_exec_ext in '' $ac_executable_extensions; do
20846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20847 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20849 break 2
20850 fi
20851 done
20852 done
20853 IFS=$as_save_IFS
20854
20855 ;;
20856 esac
20857 fi
20858 PERL=$ac_cv_path_PERL
20859 if test -n "$PERL"; then
20860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20861 printf "%s\n" "$PERL" >&6; }
20862 else
20863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864 printf "%s\n" "no" >&6; }
20865 fi
20866
20867
20868 if test "x$PERL" = "x"; then
20869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
20870 printf "%s\n" "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
20871 have_perl=no
20872 else
20873 have_perl=yes
20874 fi
20875 elif test "x$use_perl" = x"yes" ; then
20876 # Extract the first word of "perl", so it can be a program name with args.
20877 set dummy perl; ac_word=$2
20878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20879 printf %s "checking for $ac_word... " >&6; }
20880 if test ${ac_cv_path_PERL+y}
20881 then :
20882 printf %s "(cached) " >&6
20883 else $as_nop
20884 case $PERL in
20885 [\\/]* | ?:[\\/]*)
20886 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20887 ;;
20888 *)
20889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20890 for as_dir in $PATH
20891 do
20892 IFS=$as_save_IFS
20893 case $as_dir in #(((
20894 '') as_dir=./ ;;
20895 */) ;;
20896 *) as_dir=$as_dir/ ;;
20897 esac
20898 for ac_exec_ext in '' $ac_executable_extensions; do
20899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20900 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
20901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20902 break 2
20903 fi
20904 done
20905 done
20906 IFS=$as_save_IFS
20907
20908 ;;
20909 esac
20910 fi
20911 PERL=$ac_cv_path_PERL
20912 if test -n "$PERL"; then
20913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20914 printf "%s\n" "$PERL" >&6; }
20915 else
20916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20917 printf "%s\n" "no" >&6; }
20918 fi
20919
20920
20921 if test "x$PERL" = "x"; then
20922 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
20923 fi
20924 have_perl=yes
20925 elif test "x$use_perl" = x"no" ; then
20926 if test "x$PERL" != "x"; then
20927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
20928 printf "%s\n" "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
20929 fi
20930 have_perl=no
20931 else
20932 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
20933 fi
20934
20935 if test "$have_perl" = yes; then
20936 HAVE_PERL_TRUE=
20937 HAVE_PERL_FALSE='#'
20938 else
20939 HAVE_PERL_TRUE='#'
20940 HAVE_PERL_FALSE=
20941 fi
20942
20943
20944
20945 # Required when PKG_CHECK_MODULES called within an if statement
20946
20947
20948
20949
20950
20951
20952
20953 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20954 if test -n "$ac_tool_prefix"; then
20955 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20956 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20958 printf %s "checking for $ac_word... " >&6; }
20959 if test ${ac_cv_path_PKG_CONFIG+y}
20960 then :
20961 printf %s "(cached) " >&6
20962 else $as_nop
20963 case $PKG_CONFIG in
20964 [\\/]* | ?:[\\/]*)
20965 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20966 ;;
20967 *)
20968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969 for as_dir in $PATH
20970 do
20971 IFS=$as_save_IFS
20972 case $as_dir in #(((
20973 '') as_dir=./ ;;
20974 */) ;;
20975 *) as_dir=$as_dir/ ;;
20976 esac
20977 for ac_exec_ext in '' $ac_executable_extensions; do
20978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20979 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20981 break 2
20982 fi
20983 done
20984 done
20985 IFS=$as_save_IFS
20986
20987 ;;
20988 esac
20989 fi
20990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20991 if test -n "$PKG_CONFIG"; then
20992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20993 printf "%s\n" "$PKG_CONFIG" >&6; }
20994 else
20995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20996 printf "%s\n" "no" >&6; }
20997 fi
20998
20999
21000 fi
21001 if test -z "$ac_cv_path_PKG_CONFIG"; then
21002 ac_pt_PKG_CONFIG=$PKG_CONFIG
21003 # Extract the first word of "pkg-config", so it can be a program name with args.
21004 set dummy pkg-config; ac_word=$2
21005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21006 printf %s "checking for $ac_word... " >&6; }
21007 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21008 then :
21009 printf %s "(cached) " >&6
21010 else $as_nop
21011 case $ac_pt_PKG_CONFIG in
21012 [\\/]* | ?:[\\/]*)
21013 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21014 ;;
21015 *)
21016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21017 for as_dir in $PATH
21018 do
21019 IFS=$as_save_IFS
21020 case $as_dir in #(((
21021 '') as_dir=./ ;;
21022 */) ;;
21023 *) as_dir=$as_dir/ ;;
21024 esac
21025 for ac_exec_ext in '' $ac_executable_extensions; do
21026 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21027 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21029 break 2
21030 fi
21031 done
21032 done
21033 IFS=$as_save_IFS
21034
21035 ;;
21036 esac
21037 fi
21038 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21039 if test -n "$ac_pt_PKG_CONFIG"; then
21040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21041 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21042 else
21043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044 printf "%s\n" "no" >&6; }
21045 fi
21046
21047 if test "x$ac_pt_PKG_CONFIG" = x; then
21048 PKG_CONFIG=""
21049 else
21050 case $cross_compiling:$ac_tool_warned in
21051 yes:)
21052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21053 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21054 ac_tool_warned=yes ;;
21055 esac
21056 PKG_CONFIG=$ac_pt_PKG_CONFIG
21057 fi
21058 else
21059 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21060 fi
21061
21062 fi
21063 if test -n "$PKG_CONFIG"; then
21064 _pkg_min_version=0.9.0
21065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21066 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21067 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21069 printf "%s\n" "yes" >&6; }
21070 else
21071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21072 printf "%s\n" "no" >&6; }
21073 PKG_CONFIG=""
21074 fi
21075 fi
21076
21077 if test x"$CC_FOR_BUILD" = x; then
21078 if test x"$cross_compiling" = xyes; then
21079 for ac_prog in gcc cc
21080 do
21081 # Extract the first word of "$ac_prog", so it can be a program name with args.
21082 set dummy $ac_prog; ac_word=$2
21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21084 printf %s "checking for $ac_word... " >&6; }
21085 if test ${ac_cv_prog_CC_FOR_BUILD+y}
21086 then :
21087 printf %s "(cached) " >&6
21088 else $as_nop
21089 if test -n "$CC_FOR_BUILD"; then
21090 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
21091 else
21092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21093 for as_dir in $PATH
21094 do
21095 IFS=$as_save_IFS
21096 case $as_dir in #(((
21097 '') as_dir=./ ;;
21098 */) ;;
21099 *) as_dir=$as_dir/ ;;
21100 esac
21101 for ac_exec_ext in '' $ac_executable_extensions; do
21102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21103 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
21104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21105 break 2
21106 fi
21107 done
21108 done
21109 IFS=$as_save_IFS
21110
21111 fi
21112 fi
21113 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
21114 if test -n "$CC_FOR_BUILD"; then
21115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
21116 printf "%s\n" "$CC_FOR_BUILD" >&6; }
21117 else
21118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21119 printf "%s\n" "no" >&6; }
21120 fi
21121
21122
21123 test -n "$CC_FOR_BUILD" && break
21124 done
21125
21126 else
21127 CC_FOR_BUILD="$CC"
21128 fi
21129 fi
21130
21131
21132 if test x"$CPPFLAGS_FOR_BUILD" = x; then
21133 if test ! x"$cross_compiling" = xyes; then
21134 CPPFLAGS_FOR_BUILD=${CPPFLAGS}
21135 fi
21136 fi
21137
21138
21139 if test x"$CFLAGS_FOR_BUILD" = x; then
21140 if test ! x"$cross_compiling" = xyes; then
21141 CFLAGS_FOR_BUILD=${CFLAGS}
21142 fi
21143 fi
21144
21145
21146 if test x"$LDFLAGS_FOR_BUILD" = x; then
21147 if test ! x"$cross_compiling" = xyes; then
21148 LDFLAGS_FOR_BUILD=${LDFLAGS}
21149 fi
21150 fi
21151
21152
21153 if test x"$EXEEXT_FOR_BUILD" = x; then
21154 if test x"$cross_compiling" = xno; then
21155 EXEEXT_FOR_BUILD=${EXEEXT}
21156 fi
21157 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
21158 fi
21159
21160
21161 # Checks for pkg-config packages
21162
21163 # Always required
21164 X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
21165 X11_EXTRA_DEPS="xcb >= 1.11.1"
21166
21167
21168
21169
21170
21171
21172
21173
21174 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21175 if test -n "$ac_tool_prefix"; then
21176 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21177 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21179 printf %s "checking for $ac_word... " >&6; }
21180 if test ${ac_cv_path_PKG_CONFIG+y}
21181 then :
21182 printf %s "(cached) " >&6
21183 else $as_nop
21184 case $PKG_CONFIG in
21185 [\\/]* | ?:[\\/]*)
21186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21187 ;;
21188 *)
21189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21190 for as_dir in $PATH
21191 do
21192 IFS=$as_save_IFS
21193 case $as_dir in #(((
21194 '') as_dir=./ ;;
21195 */) ;;
21196 *) as_dir=$as_dir/ ;;
21197 esac
21198 for ac_exec_ext in '' $ac_executable_extensions; do
21199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21200 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21202 break 2
21203 fi
21204 done
21205 done
21206 IFS=$as_save_IFS
21207
21208 ;;
21209 esac
21210 fi
21211 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21212 if test -n "$PKG_CONFIG"; then
21213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21214 printf "%s\n" "$PKG_CONFIG" >&6; }
21215 else
21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217 printf "%s\n" "no" >&6; }
21218 fi
21219
21220
21221 fi
21222 if test -z "$ac_cv_path_PKG_CONFIG"; then
21223 ac_pt_PKG_CONFIG=$PKG_CONFIG
21224 # Extract the first word of "pkg-config", so it can be a program name with args.
21225 set dummy pkg-config; ac_word=$2
21226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21227 printf %s "checking for $ac_word... " >&6; }
21228 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21229 then :
21230 printf %s "(cached) " >&6
21231 else $as_nop
21232 case $ac_pt_PKG_CONFIG in
21233 [\\/]* | ?:[\\/]*)
21234 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21235 ;;
21236 *)
21237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21238 for as_dir in $PATH
21239 do
21240 IFS=$as_save_IFS
21241 case $as_dir in #(((
21242 '') as_dir=./ ;;
21243 */) ;;
21244 *) as_dir=$as_dir/ ;;
21245 esac
21246 for ac_exec_ext in '' $ac_executable_extensions; do
21247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21250 break 2
21251 fi
21252 done
21253 done
21254 IFS=$as_save_IFS
21255
21256 ;;
21257 esac
21258 fi
21259 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21260 if test -n "$ac_pt_PKG_CONFIG"; then
21261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21262 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21263 else
21264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21265 printf "%s\n" "no" >&6; }
21266 fi
21267
21268 if test "x$ac_pt_PKG_CONFIG" = x; then
21269 PKG_CONFIG=""
21270 else
21271 case $cross_compiling:$ac_tool_warned in
21272 yes:)
21273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21274 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21275 ac_tool_warned=yes ;;
21276 esac
21277 PKG_CONFIG=$ac_pt_PKG_CONFIG
21278 fi
21279 else
21280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21281 fi
21282
21283 fi
21284 if test -n "$PKG_CONFIG"; then
21285 _pkg_min_version=0.9.0
21286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21287 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21290 printf "%s\n" "yes" >&6; }
21291 else
21292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21293 printf "%s\n" "no" >&6; }
21294 PKG_CONFIG=""
21295 fi
21296 fi
21297
21298
21299
21300 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
21301 # was not expanded, since libX11 with no transport types is rather useless.
21302 #
21303 # If you're seeing an error here, be sure you installed the lib/xtrans module
21304 # first and if it's not in the default location, that you set the ACLOCAL
21305 # environment variable to find it, such as:
21306 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
21307
21308
21309 # Transport selection macro from xtrans.m4
21310
21311
21312 case $host_os in
21313 mingw*) unixdef="no" ;;
21314 *) unixdef="yes" ;;
21315 esac
21316 # Check whether --enable-unix-transport was given.
21317 if test ${enable_unix_transport+y}
21318 then :
21319 enableval=$enable_unix_transport; UNIXCONN=$enableval
21320 else $as_nop
21321 UNIXCONN=$unixdef
21322 fi
21323
21324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21325 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21326 if test "$UNIXCONN" = "yes"; then
21327
21328 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21329
21330 fi
21331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21332 printf "%s\n" "$UNIXCONN" >&6; }
21333 # Check whether --enable-tcp-transport was given.
21334 if test ${enable_tcp_transport+y}
21335 then :
21336 enableval=$enable_tcp_transport; TCPCONN=$enableval
21337 else $as_nop
21338 TCPCONN=yes
21339 fi
21340
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21342 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21344 printf "%s\n" "$TCPCONN" >&6; }
21345 if test "$TCPCONN" = "yes"; then
21346
21347 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21348
21349
21350 # SVR4 hides these in libraries other than libc
21351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21352 printf %s "checking for library containing socket... " >&6; }
21353 if test ${ac_cv_search_socket+y}
21354 then :
21355 printf %s "(cached) " >&6
21356 else $as_nop
21357 ac_func_search_save_LIBS=$LIBS
21358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21359 /* end confdefs.h. */
21360
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21364 char socket ();
21365 int
21366 main (void)
21367 {
21368 return socket ();
21369 ;
21370 return 0;
21371 }
21372 _ACEOF
21373 for ac_lib in '' socket
21374 do
21375 if test -z "$ac_lib"; then
21376 ac_res="none required"
21377 else
21378 ac_res=-l$ac_lib
21379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21380 fi
21381 if ac_fn_c_try_link "$LINENO"
21382 then :
21383 ac_cv_search_socket=$ac_res
21384 fi
21385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21386 conftest$ac_exeext
21387 if test ${ac_cv_search_socket+y}
21388 then :
21389 break
21390 fi
21391 done
21392 if test ${ac_cv_search_socket+y}
21393 then :
21394
21395 else $as_nop
21396 ac_cv_search_socket=no
21397 fi
21398 rm conftest.$ac_ext
21399 LIBS=$ac_func_search_save_LIBS
21400 fi
21401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21402 printf "%s\n" "$ac_cv_search_socket" >&6; }
21403 ac_res=$ac_cv_search_socket
21404 if test "$ac_res" != no
21405 then :
21406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21407
21408 fi
21409
21410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21411 printf %s "checking for library containing gethostbyname... " >&6; }
21412 if test ${ac_cv_search_gethostbyname+y}
21413 then :
21414 printf %s "(cached) " >&6
21415 else $as_nop
21416 ac_func_search_save_LIBS=$LIBS
21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418 /* end confdefs.h. */
21419
21420 /* Override any GCC internal prototype to avoid an error.
21421 Use char because int might match the return type of a GCC
21422 builtin and then its argument prototype would still apply. */
21423 char gethostbyname ();
21424 int
21425 main (void)
21426 {
21427 return gethostbyname ();
21428 ;
21429 return 0;
21430 }
21431 _ACEOF
21432 for ac_lib in '' nsl
21433 do
21434 if test -z "$ac_lib"; then
21435 ac_res="none required"
21436 else
21437 ac_res=-l$ac_lib
21438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21439 fi
21440 if ac_fn_c_try_link "$LINENO"
21441 then :
21442 ac_cv_search_gethostbyname=$ac_res
21443 fi
21444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21445 conftest$ac_exeext
21446 if test ${ac_cv_search_gethostbyname+y}
21447 then :
21448 break
21449 fi
21450 done
21451 if test ${ac_cv_search_gethostbyname+y}
21452 then :
21453
21454 else $as_nop
21455 ac_cv_search_gethostbyname=no
21456 fi
21457 rm conftest.$ac_ext
21458 LIBS=$ac_func_search_save_LIBS
21459 fi
21460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21461 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21462 ac_res=$ac_cv_search_gethostbyname
21463 if test "$ac_res" != no
21464 then :
21465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21466
21467 fi
21468
21469 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21471 printf %s "checking for main in -lws2_32... " >&6; }
21472 if test ${ac_cv_lib_ws2_32_main+y}
21473 then :
21474 printf %s "(cached) " >&6
21475 else $as_nop
21476 ac_check_lib_save_LIBS=$LIBS
21477 LIBS="-lws2_32 $LIBS"
21478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21479 /* end confdefs.h. */
21480
21481
21482 int
21483 main (void)
21484 {
21485 return main ();
21486 ;
21487 return 0;
21488 }
21489 _ACEOF
21490 if ac_fn_c_try_link "$LINENO"
21491 then :
21492 ac_cv_lib_ws2_32_main=yes
21493 else $as_nop
21494 ac_cv_lib_ws2_32_main=no
21495 fi
21496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21497 conftest$ac_exeext conftest.$ac_ext
21498 LIBS=$ac_check_lib_save_LIBS
21499 fi
21500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21501 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21502 if test "x$ac_cv_lib_ws2_32_main" = xyes
21503 then :
21504 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21505
21506 LIBS="-lws2_32 $LIBS"
21507
21508 fi
21509
21510 fi
21511
21512 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21513 # Check whether --enable-ipv6 was given.
21514 if test ${enable_ipv6+y}
21515 then :
21516 enableval=$enable_ipv6; IPV6CONN=$enableval
21517 else $as_nop
21518 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21519 if test "x$ac_cv_func_getaddrinfo" = xyes
21520 then :
21521 IPV6CONN=yes
21522 else $as_nop
21523 IPV6CONN=no
21524 fi
21525
21526 fi
21527
21528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21529 printf %s "checking if IPv6 support should be built... " >&6; }
21530 if test "$IPV6CONN" = "yes"; then
21531
21532 printf "%s\n" "#define IPv6 1" >>confdefs.h
21533
21534 fi
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21536 printf "%s\n" "$IPV6CONN" >&6; }
21537
21538 # 4.3BSD-Reno added a new member to struct sockaddr_in
21539 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21540 #include <sys/types.h>
21541 #include <sys/socket.h>
21542 #include <netinet/in.h>
21543
21544 "
21545 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21546 then :
21547
21548 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21549
21550 fi
21551
21552
21553 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21554 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21555 $ac_includes_default
21556 #include <sys/socket.h>
21557 "
21558 if test "x$ac_cv_type_socklen_t" = xyes
21559 then :
21560
21561 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21562
21563
21564 fi
21565
21566
21567 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21568 # _XOPEN_SOURCE to get it (such as on Solaris)
21569 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21570 $ac_includes_default
21571 #include <sys/socket.h>
21572
21573 "
21574 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21575 then :
21576
21577 fi
21578
21579 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21580 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21581 unset ac_cv_member_struct_msghdr_msg_control
21582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21583 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21584 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21585 #define _XOPEN_SOURCE 600
21586 $ac_includes_default
21587 #include <sys/socket.h>
21588
21589 "
21590 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21591 then :
21592
21593 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21594
21595
21596 fi
21597
21598 fi
21599 # If that didn't work, fall back to XPG5/UNIX98 with C89
21600 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21601 unset ac_cv_member_struct_msghdr_msg_control
21602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21603 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21604 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21605 #define _XOPEN_SOURCE 500
21606 $ac_includes_default
21607 #include <sys/socket.h>
21608
21609 "
21610 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21611 then :
21612
21613 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21614
21615
21616 fi
21617
21618 fi
21619
21620
21621
21622 fi
21623 case $host_os in
21624 solaris*) localdef="yes" ;;
21625 *) localdef="no" ;;
21626 esac
21627 # Check whether --enable-local-transport was given.
21628 if test ${enable_local_transport+y}
21629 then :
21630 enableval=$enable_local_transport; LOCALCONN=$enableval
21631 else $as_nop
21632 LOCALCONN=$localdef
21633 fi
21634
21635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21636 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21638 printf "%s\n" "$LOCALCONN" >&6; }
21639 if test "$LOCALCONN" = "yes"; then
21640
21641 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21642
21643 fi
21644
21645 # Other functions Xtrans may need
21646 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21647 if test "x$ac_cv_func_strcasecmp" = xyes
21648 then :
21649 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21650
21651 fi
21652 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21653 if test "x$ac_cv_func_strlcpy" = xyes
21654 then :
21655 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21656
21657 fi
21658
21659
21660
21661
21662 # Check for dlopen
21663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
21664 printf %s "checking if run-time linking is supported... " >&6; }
21665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
21666 printf %s "checking for library containing dlopen... " >&6; }
21667 if test ${ac_cv_search_dlopen+y}
21668 then :
21669 printf %s "(cached) " >&6
21670 else $as_nop
21671 ac_func_search_save_LIBS=$LIBS
21672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673 /* end confdefs.h. */
21674
21675 /* Override any GCC internal prototype to avoid an error.
21676 Use char because int might match the return type of a GCC
21677 builtin and then its argument prototype would still apply. */
21678 char dlopen ();
21679 int
21680 main (void)
21681 {
21682 return dlopen ();
21683 ;
21684 return 0;
21685 }
21686 _ACEOF
21687 for ac_lib in '' dl svld
21688 do
21689 if test -z "$ac_lib"; then
21690 ac_res="none required"
21691 else
21692 ac_res=-l$ac_lib
21693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21694 fi
21695 if ac_fn_c_try_link "$LINENO"
21696 then :
21697 ac_cv_search_dlopen=$ac_res
21698 fi
21699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21700 conftest$ac_exeext
21701 if test ${ac_cv_search_dlopen+y}
21702 then :
21703 break
21704 fi
21705 done
21706 if test ${ac_cv_search_dlopen+y}
21707 then :
21708
21709 else $as_nop
21710 ac_cv_search_dlopen=no
21711 fi
21712 rm conftest.$ac_ext
21713 LIBS=$ac_func_search_save_LIBS
21714 fi
21715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
21716 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
21717 ac_res=$ac_cv_search_dlopen
21718 if test "$ac_res" != no
21719 then :
21720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21721
21722 fi
21723
21724 if test "x$ac_cv_search_dlopen" = xno; then
21725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
21726 printf %s "checking for library containing shl_load... " >&6; }
21727 if test ${ac_cv_search_shl_load+y}
21728 then :
21729 printf %s "(cached) " >&6
21730 else $as_nop
21731 ac_func_search_save_LIBS=$LIBS
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21734
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21738 char shl_load ();
21739 int
21740 main (void)
21741 {
21742 return shl_load ();
21743 ;
21744 return 0;
21745 }
21746 _ACEOF
21747 for ac_lib in '' dld
21748 do
21749 if test -z "$ac_lib"; then
21750 ac_res="none required"
21751 else
21752 ac_res=-l$ac_lib
21753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21754 fi
21755 if ac_fn_c_try_link "$LINENO"
21756 then :
21757 ac_cv_search_shl_load=$ac_res
21758 fi
21759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21760 conftest$ac_exeext
21761 if test ${ac_cv_search_shl_load+y}
21762 then :
21763 break
21764 fi
21765 done
21766 if test ${ac_cv_search_shl_load+y}
21767 then :
21768
21769 else $as_nop
21770 ac_cv_search_shl_load=no
21771 fi
21772 rm conftest.$ac_ext
21773 LIBS=$ac_func_search_save_LIBS
21774 fi
21775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
21776 printf "%s\n" "$ac_cv_search_shl_load" >&6; }
21777 ac_res=$ac_cv_search_shl_load
21778 if test "$ac_res" != no
21779 then :
21780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21781
21782 fi
21783
21784 if test "x$ac_cv_search_shl_load" != xno; then
21785
21786 printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
21787
21788 ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
21789 if test "x$ac_cv_header_dl_h" = xyes
21790 then :
21791 printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21792
21793 fi
21794
21795 fi
21796 else
21797
21798 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
21799
21800 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
21801 if test "x$ac_cv_header_dlfcn_h" = xyes
21802 then :
21803 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
21804
21805 fi
21806
21807 fi
21808 if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
21809 HAVE_LOADABLE_MODULES=yes
21810 else
21811 HAVE_LOADABLE_MODULES=no
21812 fi
21813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
21814 printf "%s\n" "$HAVE_LOADABLE_MODULES" >&6; }
21815
21816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
21817 printf %s "checking if loadable i18n module support should be enabled... " >&6; }
21818 # Check whether --enable-loadable-i18n was given.
21819 if test ${enable_loadable_i18n+y}
21820 then :
21821 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
21822 else $as_nop
21823 XLIB_LOADABLE_I18N="no"
21824 fi
21825
21826 if test x$XLIB_LOADABLE_I18N = xyes; then
21827 if test x$HAVE_LOADABLE_MODULES = xno; then
21828 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
21829 fi
21830
21831 printf "%s\n" "#define USE_DYNAMIC_LC 1" >>confdefs.h
21832
21833 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
21834
21835 fi
21836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
21837 printf "%s\n" "$XLIB_LOADABLE_I18N" >&6; }
21838
21839 if test x$XLIB_LOADABLE_I18N = xyes; then
21840 XLIB_LOADABLE_I18N_TRUE=
21841 XLIB_LOADABLE_I18N_FALSE='#'
21842 else
21843 XLIB_LOADABLE_I18N_TRUE='#'
21844 XLIB_LOADABLE_I18N_FALSE=
21845 fi
21846
21847
21848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
21849 printf %s "checking if loadable Xcursor library support should be enabled... " >&6; }
21850 # Check whether --enable-loadable-xcursor was given.
21851 if test ${enable_loadable_xcursor+y}
21852 then :
21853 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
21854 else $as_nop
21855 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
21856 fi
21857
21858 if test x$XLIB_LOADABLE_XCURSOR = xyes; then
21859
21860 printf "%s\n" "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
21861
21862 fi
21863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
21864 printf "%s\n" "$XLIB_LOADABLE_XCURSOR" >&6; }
21865
21866 # Check whether --enable-thread-safety-constructor was given.
21867 if test ${enable_thread_safety_constructor+y}
21868 then :
21869 enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval
21870 else $as_nop
21871 USE_THREAD_SAFETY_CONSTRUCTOR="yes"
21872 fi
21873
21874 if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
21875
21876 printf "%s\n" "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h
21877
21878 fi
21879
21880 # Checks for header files.
21881 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
21882 if test "x$ac_cv_header_sys_filio_h" = xyes
21883 then :
21884 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
21885
21886 fi
21887 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
21888 if test "x$ac_cv_header_sys_select_h" = xyes
21889 then :
21890 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
21891
21892 fi
21893 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
21894 if test "x$ac_cv_header_sys_ioctl_h" = xyes
21895 then :
21896 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
21897
21898 fi
21899 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
21900 if test "x$ac_cv_header_sys_socket_h" = xyes
21901 then :
21902 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
21903
21904 fi
21905
21906
21907 # Checks for typedefs, structures, and compiler characteristics.
21908
21909
21910
21911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
21912 printf %s "checking for __builtin_popcountl... " >&6; }
21913 if test ${ax_cv_have___builtin_popcountl+y}
21914 then :
21915 printf %s "(cached) " >&6
21916 else $as_nop
21917
21918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h. */
21920
21921 int
21922 main (void)
21923 {
21924
21925 __builtin_popcountl(0)
21926
21927 ;
21928 return 0;
21929 }
21930 _ACEOF
21931 if ac_fn_c_try_link "$LINENO"
21932 then :
21933 ax_cv_have___builtin_popcountl=yes
21934 else $as_nop
21935 ax_cv_have___builtin_popcountl=no
21936 fi
21937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21938 conftest$ac_exeext conftest.$ac_ext
21939
21940 fi
21941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
21942 printf "%s\n" "$ax_cv_have___builtin_popcountl" >&6; }
21943
21944 if test yes = $ax_cv_have___builtin_popcountl
21945 then :
21946
21947 printf "%s\n" "#define HAVE___BUILTIN_POPCOUNTL 1" >>confdefs.h
21948
21949 fi
21950
21951
21952
21953
21954 # Checks for library functions.
21955 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
21956 if test "x$ac_cv_func_strtol" = xyes
21957 then :
21958 printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
21959
21960 fi
21961 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
21962 if test "x$ac_cv_func_seteuid" = xyes
21963 then :
21964 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
21965
21966 fi
21967
21968 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21969 if test "x$ac_cv_func_reallocarray" = xyes
21970 then :
21971 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21972
21973 else $as_nop
21974 case " $LIBOBJS " in
21975 *" reallocarray.$ac_objext "* ) ;;
21976 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21977 ;;
21978 esac
21979
21980 fi
21981
21982 # Used in lcFile.c (see also --enable-xlocaledir settings below)
21983 XLOCALEDIR_IS_SAFE="no"
21984 ac_fn_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21985 if test "x$ac_cv_have_decl_issetugid" = xyes
21986 then :
21987
21988 fi
21989 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21990 if test "x$ac_cv_func_issetugid" = xyes
21991 then :
21992
21993 fi
21994
21995 if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
21996 XLOCALEDIR_IS_SAFE="yes"
21997
21998 printf "%s\n" "#define HASSETUGID 1" >>confdefs.h
21999
22000 fi
22001 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
22002 if test "x$ac_cv_func_getresuid" = xyes
22003 then :
22004 XLOCALEDIR_IS_SAFE="yes"
22005
22006 printf "%s\n" "#define HASGETRESUID 1" >>confdefs.h
22007
22008 fi
22009
22010 # Used in Font.c
22011 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
22012 if test "x$ac_cv_func_shmat" = xyes
22013 then :
22014
22015 printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
22016
22017 fi
22018
22019
22020 # Checks for system services
22021 # AC_PATH_XTRA
22022
22023 # arch specific things
22024 WCHAR32="1"
22025 case $host_os in
22026 os2*) os2="true" ; WCHAR32="0" ;;
22027 *) ;;
22028 esac
22029
22030
22031 if test x$os2 = xtrue; then
22032 OS2_TRUE=
22033 OS2_FALSE='#'
22034 else
22035 OS2_TRUE='#'
22036 OS2_FALSE=
22037 fi
22038
22039
22040
22041 # Check whether --with-launchd was given.
22042 if test ${with_launchd+y}
22043 then :
22044 withval=$with_launchd; LAUNCHD=$withval
22045 else $as_nop
22046 LAUNCHD=auto
22047 fi
22048
22049 if test "x$LAUNCHD" = xauto; then
22050 unset LAUNCHD
22051 # Extract the first word of "launchd", so it can be a program name with args.
22052 set dummy launchd; ac_word=$2
22053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22054 printf %s "checking for $ac_word... " >&6; }
22055 if test ${ac_cv_prog_LAUNCHD+y}
22056 then :
22057 printf %s "(cached) " >&6
22058 else $as_nop
22059 if test -n "$LAUNCHD"; then
22060 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
22061 else
22062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22063 for as_dir in $PATH$PATH_SEPARATOR/sbin
22064 do
22065 IFS=$as_save_IFS
22066 case $as_dir in #(((
22067 '') as_dir=./ ;;
22068 */) ;;
22069 *) as_dir=$as_dir/ ;;
22070 esac
22071 for ac_exec_ext in '' $ac_executable_extensions; do
22072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22073 ac_cv_prog_LAUNCHD="yes"
22074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22075 break 2
22076 fi
22077 done
22078 done
22079 IFS=$as_save_IFS
22080
22081 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
22082 fi
22083 fi
22084 LAUNCHD=$ac_cv_prog_LAUNCHD
22085 if test -n "$LAUNCHD"; then
22086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
22087 printf "%s\n" "$LAUNCHD" >&6; }
22088 else
22089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22090 printf "%s\n" "no" >&6; }
22091 fi
22092
22093
22094 fi
22095
22096 if test "x$LAUNCHD" = xyes ; then
22097
22098 printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
22099
22100
22101 printf "%s\n" "#define TRANS_REOPEN 1" >>confdefs.h
22102
22103 fi
22104
22105 # Check whether --enable-xthreads was given.
22106 if test ${enable_xthreads+y}
22107 then :
22108 enableval=$enable_xthreads; xthreads=$enableval
22109 else $as_nop
22110 xthreads=yes
22111 fi
22112
22113
22114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
22115 printf %s "checking for getpwuid_r in -lc... " >&6; }
22116 if test ${ac_cv_lib_c_getpwuid_r+y}
22117 then :
22118 printf %s "(cached) " >&6
22119 else $as_nop
22120 ac_check_lib_save_LIBS=$LIBS
22121 LIBS="-lc $LIBS"
22122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22123 /* end confdefs.h. */
22124
22125 /* Override any GCC internal prototype to avoid an error.
22126 Use char because int might match the return type of a GCC
22127 builtin and then its argument prototype would still apply. */
22128 char getpwuid_r ();
22129 int
22130 main (void)
22131 {
22132 return getpwuid_r ();
22133 ;
22134 return 0;
22135 }
22136 _ACEOF
22137 if ac_fn_c_try_link "$LINENO"
22138 then :
22139 ac_cv_lib_c_getpwuid_r=yes
22140 else $as_nop
22141 ac_cv_lib_c_getpwuid_r=no
22142 fi
22143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22144 conftest$ac_exeext conftest.$ac_ext
22145 LIBS=$ac_check_lib_save_LIBS
22146 fi
22147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
22148 printf "%s\n" "$ac_cv_lib_c_getpwuid_r" >&6; }
22149 if test "x$ac_cv_lib_c_getpwuid_r" = xyes
22150 then :
22151 mtsafeapi="yes"
22152 else $as_nop
22153 mtsafeapi="no"
22154 fi
22155
22156
22157 case x$xthreads in
22158 xyes)
22159
22160 printf "%s\n" "#define XTHREADS 1" >>confdefs.h
22161
22162 if test x$mtsafeapi = xyes
22163 then
22164
22165 printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h
22166
22167 fi
22168 ;;
22169 *)
22170 ;;
22171 esac
22172
22173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5
22174 printf %s "checking for pthread_self in -lc... " >&6; }
22175 if test ${ac_cv_lib_c_pthread_self+y}
22176 then :
22177 printf %s "(cached) " >&6
22178 else $as_nop
22179 ac_check_lib_save_LIBS=$LIBS
22180 LIBS="-lc $LIBS"
22181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22182 /* end confdefs.h. */
22183
22184 /* Override any GCC internal prototype to avoid an error.
22185 Use char because int might match the return type of a GCC
22186 builtin and then its argument prototype would still apply. */
22187 char pthread_self ();
22188 int
22189 main (void)
22190 {
22191 return pthread_self ();
22192 ;
22193 return 0;
22194 }
22195 _ACEOF
22196 if ac_fn_c_try_link "$LINENO"
22197 then :
22198 ac_cv_lib_c_pthread_self=yes
22199 else $as_nop
22200 ac_cv_lib_c_pthread_self=no
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22203 conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22205 fi
22206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5
22207 printf "%s\n" "$ac_cv_lib_c_pthread_self" >&6; }
22208 if test "x$ac_cv_lib_c_pthread_self" = xyes
22209 then :
22210 thrstubs="no"
22211 else $as_nop
22212 thrstubs="yes"
22213 fi
22214
22215 if test x$thrstubs = xyes; then
22216 THRSTUBS_TRUE=
22217 THRSTUBS_FALSE='#'
22218 else
22219 THRSTUBS_TRUE='#'
22220 THRSTUBS_FALSE=
22221 fi
22222
22223
22224 # XXX incomplete, please fill this in
22225 if test x$xthreads = xyes ; then
22226 case $host_os in
22227 linux*|gnu*|k*bsd*-gnu)
22228 XTHREADLIB=-lpthread ;;
22229 netbsd*)
22230 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
22231 XTHREADLIB="-lpthread" ;;
22232 freebsd*)
22233 XTHREAD_CFLAGS="-D_THREAD_SAFE"
22234 XTHREADLIB="-pthread" ;;
22235 dragonfly*|openbsd*)
22236 XTHREADLIB="-pthread" ;;
22237 solaris*)
22238 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
22239 esac
22240 fi
22241
22242
22243
22244 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
22245 if test "x$ac_cv_func_poll" = xyes
22246 then :
22247
22248 printf "%s\n" "#define USE_POLL 1" >>confdefs.h
22249
22250 fi
22251
22252
22253 #
22254 # Find keysymdef.h
22255 #
22256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
22257 printf %s "checking keysym definitions... " >&6; }
22258
22259 # Check whether --with-keysymdefdir was given.
22260 if test ${with_keysymdefdir+y}
22261 then :
22262 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
22263 else $as_nop
22264 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
22265 fi
22266
22267
22268 if test ! -d "$KEYSYMDEFDIR"; then
22269 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
22270 fi
22271
22272 FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
22273 for i in $FILES; do
22274 if test -f "$KEYSYMDEFDIR/$i"; then
22275 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
22276 elif test "x$i" = "xkeysymdef.h"; then
22277 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
22278 fi
22279 done
22280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
22281 printf "%s\n" "$KEYSYMDEFS" >&6; }
22282
22283
22284 # Check whether --enable-xcms was given.
22285 if test ${enable_xcms+y}
22286 then :
22287 enableval=$enable_xcms; XCMS=$enableval
22288 else $as_nop
22289 XCMS=yes
22290 fi
22291
22292 if test x$XCMS = xyes ; then
22293 XCMS_TRUE=
22294 XCMS_FALSE='#'
22295 else
22296 XCMS_TRUE='#'
22297 XCMS_FALSE=
22298 fi
22299
22300 if test x"$XCMS" = "xyes"; then
22301
22302 printf "%s\n" "#define XCMS 1" >>confdefs.h
22303
22304 fi
22305
22306 # Check whether --enable-xlocale was given.
22307 if test ${enable_xlocale+y}
22308 then :
22309 enableval=$enable_xlocale; XLOCALE=$enableval
22310 else $as_nop
22311 XLOCALE=yes
22312 fi
22313
22314
22315 if test x$XLOCALE = xyes ; then
22316 XLOCALE_TRUE=
22317 XLOCALE_FALSE='#'
22318 else
22319 XLOCALE_TRUE='#'
22320 XLOCALE_FALSE=
22321 fi
22322
22323 if test x"$XLOCALE" = "xyes"; then
22324
22325 printf "%s\n" "#define XLOCALE 1" >>confdefs.h
22326
22327 fi
22328
22329 # This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n,
22330 # don't have either issetugid() or getresuid(), and you need to protect
22331 # clients that are setgid or setuid to an id other than 0.
22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
22333 printf %s "checking if XLOCALEDIR support should be enabled... " >&6; }
22334 # Check whether --enable-xlocaledir was given.
22335 if test ${enable_xlocaledir+y}
22336 then :
22337 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
22338 else $as_nop
22339 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
22340 fi
22341
22342 if test "x$ENABLE_XLOCALEDIR" = "xno"; then
22343
22344 printf "%s\n" "#define NO_XLOCALEDIR 1" >>confdefs.h
22345
22346 fi
22347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
22348 printf "%s\n" "$ENABLE_XLOCALEDIR" >&6; }
22349
22350 # Check whether --enable-xf86bigfont was given.
22351 if test ${enable_xf86bigfont+y}
22352 then :
22353 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
22354 else $as_nop
22355 XF86BIGFONT="yes"
22356 fi
22357
22358 if test "x$XF86BIGFONT" = "xyes"; then
22359
22360 pkg_failed=no
22361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
22362 printf %s "checking for BIGFONT... " >&6; }
22363
22364 if test -n "$BIGFONT_CFLAGS"; then
22365 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
22366 elif test -n "$PKG_CONFIG"; then
22367 if test -n "$PKG_CONFIG" && \
22368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22369 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22370 ac_status=$?
22371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; then
22373 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22374 test "x$?" != "x0" && pkg_failed=yes
22375 else
22376 pkg_failed=yes
22377 fi
22378 else
22379 pkg_failed=untried
22380 fi
22381 if test -n "$BIGFONT_LIBS"; then
22382 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
22383 elif test -n "$PKG_CONFIG"; then
22384 if test -n "$PKG_CONFIG" && \
22385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
22386 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
22387 ac_status=$?
22388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22389 test $ac_status = 0; }; then
22390 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
22391 test "x$?" != "x0" && pkg_failed=yes
22392 else
22393 pkg_failed=yes
22394 fi
22395 else
22396 pkg_failed=untried
22397 fi
22398
22399
22400
22401 if test $pkg_failed = yes; then
22402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 printf "%s\n" "no" >&6; }
22404
22405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22406 _pkg_short_errors_supported=yes
22407 else
22408 _pkg_short_errors_supported=no
22409 fi
22410 if test $_pkg_short_errors_supported = yes; then
22411 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22412 else
22413 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
22414 fi
22415 # Put the nasty error message in config.log where it belongs
22416 echo "$BIGFONT_PKG_ERRORS" >&5
22417
22418 XF86BIGFONT="no"
22419 elif test $pkg_failed = untried; then
22420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22421 printf "%s\n" "no" >&6; }
22422 XF86BIGFONT="no"
22423 else
22424 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
22425 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
22426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427 printf "%s\n" "yes" >&6; }
22428
22429 printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
22430
22431 fi
22432 fi
22433
22434 # Check whether --enable-xkb was given.
22435 if test ${enable_xkb+y}
22436 then :
22437 enableval=$enable_xkb; XKB=$enableval
22438 else $as_nop
22439 XKB=yes
22440 fi
22441
22442
22443 if test x$XKB = xyes ; then
22444 XKB_TRUE=
22445 XKB_FALSE='#'
22446 else
22447 XKB_TRUE='#'
22448 XKB_FALSE=
22449 fi
22450
22451 if test x"$XKB" = "xyes"; then
22452 XKBPROTO_REQUIRES="kbproto"
22453 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
22454
22455 printf "%s\n" "#define XKB 1" >>confdefs.h
22456
22457 else
22458 XKBPROTO_REQUIRES=""
22459 fi
22460
22461
22462
22463 ac_func=
22464 for ac_item in $ac_func_c_list
22465 do
22466 if test $ac_func; then
22467 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
22468 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
22469 echo "#define $ac_item 1" >> confdefs.h
22470 fi
22471 ac_func=
22472 else
22473 ac_func=$ac_item
22474 fi
22475 done
22476
22477
22478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22479 printf %s "checking for working mmap... " >&6; }
22480 if test ${ac_cv_func_mmap_fixed_mapped+y}
22481 then :
22482 printf %s "(cached) " >&6
22483 else $as_nop
22484 if test "$cross_compiling" = yes
22485 then :
22486 case "$host_os" in # ((
22487 # Guess yes on platforms where we know the result.
22488 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
22489 # If we don't know, assume the worst.
22490 *) ac_cv_func_mmap_fixed_mapped=no ;;
22491 esac
22492 else $as_nop
22493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22494 /* end confdefs.h. */
22495 $ac_includes_default
22496 /* malloc might have been renamed as rpl_malloc. */
22497 #undef malloc
22498
22499 /* Thanks to Mike Haertel and Jim Avera for this test.
22500 Here is a matrix of mmap possibilities:
22501 mmap private not fixed
22502 mmap private fixed at somewhere currently unmapped
22503 mmap private fixed at somewhere already mapped
22504 mmap shared not fixed
22505 mmap shared fixed at somewhere currently unmapped
22506 mmap shared fixed at somewhere already mapped
22507 For private mappings, we should verify that changes cannot be read()
22508 back from the file, nor mmap's back from the file at a different
22509 address. (There have been systems where private was not correctly
22510 implemented like the infamous i386 svr4.0, and systems where the
22511 VM page cache was not coherent with the file system buffer cache
22512 like early versions of FreeBSD and possibly contemporary NetBSD.)
22513 For shared mappings, we should conversely verify that changes get
22514 propagated back to all the places they're supposed to be.
22515
22516 Grep wants private fixed already mapped.
22517 The main things grep needs to know about mmap are:
22518 * does it exist and is it safe to write into the mmap'd area
22519 * how to use it (BSD variants) */
22520
22521 #include <fcntl.h>
22522 #include <sys/mman.h>
22523
22524 /* This mess was copied from the GNU getpagesize.h. */
22525 #ifndef HAVE_GETPAGESIZE
22526 # ifdef _SC_PAGESIZE
22527 # define getpagesize() sysconf(_SC_PAGESIZE)
22528 # else /* no _SC_PAGESIZE */
22529 # ifdef HAVE_SYS_PARAM_H
22530 # include <sys/param.h>
22531 # ifdef EXEC_PAGESIZE
22532 # define getpagesize() EXEC_PAGESIZE
22533 # else /* no EXEC_PAGESIZE */
22534 # ifdef NBPG
22535 # define getpagesize() NBPG * CLSIZE
22536 # ifndef CLSIZE
22537 # define CLSIZE 1
22538 # endif /* no CLSIZE */
22539 # else /* no NBPG */
22540 # ifdef NBPC
22541 # define getpagesize() NBPC
22542 # else /* no NBPC */
22543 # ifdef PAGESIZE
22544 # define getpagesize() PAGESIZE
22545 # endif /* PAGESIZE */
22546 # endif /* no NBPC */
22547 # endif /* no NBPG */
22548 # endif /* no EXEC_PAGESIZE */
22549 # else /* no HAVE_SYS_PARAM_H */
22550 # define getpagesize() 8192 /* punt totally */
22551 # endif /* no HAVE_SYS_PARAM_H */
22552 # endif /* no _SC_PAGESIZE */
22553
22554 #endif /* no HAVE_GETPAGESIZE */
22555
22556 int
22557 main (void)
22558 {
22559 char *data, *data2, *data3;
22560 const char *cdata2;
22561 int i, pagesize;
22562 int fd, fd2;
22563
22564 pagesize = getpagesize ();
22565
22566 /* First, make a file with some known garbage in it. */
22567 data = (char *) malloc (pagesize);
22568 if (!data)
22569 return 1;
22570 for (i = 0; i < pagesize; ++i)
22571 *(data + i) = rand ();
22572 umask (0);
22573 fd = creat ("conftest.mmap", 0600);
22574 if (fd < 0)
22575 return 2;
22576 if (write (fd, data, pagesize) != pagesize)
22577 return 3;
22578 close (fd);
22579
22580 /* Next, check that the tail of a page is zero-filled. File must have
22581 non-zero length, otherwise we risk SIGBUS for entire page. */
22582 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22583 if (fd2 < 0)
22584 return 4;
22585 cdata2 = "";
22586 if (write (fd2, cdata2, 1) != 1)
22587 return 5;
22588 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22589 if (data2 == MAP_FAILED)
22590 return 6;
22591 for (i = 0; i < pagesize; ++i)
22592 if (*(data2 + i))
22593 return 7;
22594 close (fd2);
22595 if (munmap (data2, pagesize))
22596 return 8;
22597
22598 /* Next, try to mmap the file at a fixed address which already has
22599 something else allocated at it. If we can, also make sure that
22600 we see the same garbage. */
22601 fd = open ("conftest.mmap", O_RDWR);
22602 if (fd < 0)
22603 return 9;
22604 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22605 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22606 return 10;
22607 for (i = 0; i < pagesize; ++i)
22608 if (*(data + i) != *(data2 + i))
22609 return 11;
22610
22611 /* Finally, make sure that changes to the mapped area do not
22612 percolate back to the file as seen by read(). (This is a bug on
22613 some variants of i386 svr4.0.) */
22614 for (i = 0; i < pagesize; ++i)
22615 *(data2 + i) = *(data2 + i) + 1;
22616 data3 = (char *) malloc (pagesize);
22617 if (!data3)
22618 return 12;
22619 if (read (fd, data3, pagesize) != pagesize)
22620 return 13;
22621 for (i = 0; i < pagesize; ++i)
22622 if (*(data + i) != *(data3 + i))
22623 return 14;
22624 close (fd);
22625 free (data);
22626 free (data3);
22627 return 0;
22628 }
22629 _ACEOF
22630 if ac_fn_c_try_run "$LINENO"
22631 then :
22632 ac_cv_func_mmap_fixed_mapped=yes
22633 else $as_nop
22634 ac_cv_func_mmap_fixed_mapped=no
22635 fi
22636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22637 conftest.$ac_objext conftest.beam conftest.$ac_ext
22638 fi
22639
22640 fi
22641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22642 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
22643 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22644
22645 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22646
22647 fi
22648 rm -f conftest.mmap conftest.txt
22649
22650 composecache_default=$ac_cv_func_mmap_fixed_mapped
22651 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
22652 if test "x$ac_cv_func_nl_langinfo" = xyes
22653 then :
22654
22655 else $as_nop
22656 composecache_default=no
22657 fi
22658
22659 # Check whether --enable-composecache was given.
22660 if test ${enable_composecache+y}
22661 then :
22662 enableval=$enable_composecache; COMPOSECACHE=$enableval
22663 else $as_nop
22664 COMPOSECACHE=$composecache_default
22665 fi
22666
22667 if test x"$COMPOSECACHE" = "xyes"; then
22668
22669 printf "%s\n" "#define COMPOSECACHE 1" >>confdefs.h
22670
22671 fi
22672
22673 # Allow checking code with lint, sparse, etc.
22674
22675
22676
22677
22678
22679 # Check whether --with-lint was given.
22680 if test ${with_lint+y}
22681 then :
22682 withval=$with_lint; use_lint=$withval
22683 else $as_nop
22684 use_lint=no
22685 fi
22686
22687
22688 # Obtain platform specific info like program name and options
22689 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
22690 case $host_os in
22691 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
22692 lint_name=splint
22693 lint_options="-badflag"
22694 ;;
22695 *freebsd* | *netbsd*)
22696 lint_name=lint
22697 lint_options="-u -b"
22698 ;;
22699 *solaris*)
22700 lint_name=lint
22701 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
22702 ;;
22703 esac
22704
22705 # Test for the presence of the program (either guessed by the code or spelled out by the user)
22706 if test "x$use_lint" = x"yes" ; then
22707 # Extract the first word of "$lint_name", so it can be a program name with args.
22708 set dummy $lint_name; ac_word=$2
22709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22710 printf %s "checking for $ac_word... " >&6; }
22711 if test ${ac_cv_path_LINT+y}
22712 then :
22713 printf %s "(cached) " >&6
22714 else $as_nop
22715 case $LINT in
22716 [\\/]* | ?:[\\/]*)
22717 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
22718 ;;
22719 *)
22720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22721 for as_dir in $PATH
22722 do
22723 IFS=$as_save_IFS
22724 case $as_dir in #(((
22725 '') as_dir=./ ;;
22726 */) ;;
22727 *) as_dir=$as_dir/ ;;
22728 esac
22729 for ac_exec_ext in '' $ac_executable_extensions; do
22730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22731 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
22732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22733 break 2
22734 fi
22735 done
22736 done
22737 IFS=$as_save_IFS
22738
22739 ;;
22740 esac
22741 fi
22742 LINT=$ac_cv_path_LINT
22743 if test -n "$LINT"; then
22744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
22745 printf "%s\n" "$LINT" >&6; }
22746 else
22747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22748 printf "%s\n" "no" >&6; }
22749 fi
22750
22751
22752 if test "x$LINT" = "x"; then
22753 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
22754 fi
22755 elif test "x$use_lint" = x"no" ; then
22756 if test "x$LINT" != "x"; then
22757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
22758 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
22759 fi
22760 else
22761 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
22762 fi
22763
22764 # User supplied flags override default flags
22765 if test "x$LINT_FLAGS" != "x"; then
22766 lint_options=$LINT_FLAGS
22767 fi
22768
22769 LINT_FLAGS=$lint_options
22770
22771 if test "x$LINT" != x; then
22772 LINT_TRUE=
22773 LINT_FALSE='#'
22774 else
22775 LINT_TRUE='#'
22776 LINT_FALSE=
22777 fi
22778
22779
22780
22781
22782
22783 # Check whether --enable-lint-library was given.
22784 if test ${enable_lint_library+y}
22785 then :
22786 enableval=$enable_lint_library; make_lint_lib=$enableval
22787 else $as_nop
22788 make_lint_lib=no
22789 fi
22790
22791
22792 if test "x$make_lint_lib" = x"yes" ; then
22793 LINTLIB=llib-lX11.ln
22794 if test "x$LINT" = "x"; then
22795 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
22796 fi
22797 elif test "x$make_lint_lib" != x"no" ; then
22798 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
22799 fi
22800
22801
22802 if test x$make_lint_lib != xno; then
22803 MAKE_LINT_LIB_TRUE=
22804 MAKE_LINT_LIB_FALSE='#'
22805 else
22806 MAKE_LINT_LIB_TRUE='#'
22807 MAKE_LINT_LIB_FALSE=
22808 fi
22809
22810
22811
22812
22813 X11_DATADIR="${datadir}/X11"
22814
22815 prefix_NONE=
22816 exec_prefix_NONE=
22817 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22818 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22819 eval ax_define_dir="\"$X11_DATADIR\""
22820 eval ax_define_dir="\"$ax_define_dir\""
22821 X11_DATADIR="$ax_define_dir"
22822
22823
22824 printf "%s\n" "#define X11_DATADIR \"$ax_define_dir\"" >>confdefs.h
22825
22826 test "$prefix_NONE" && prefix=NONE
22827 test "$exec_prefix_NONE" && exec_prefix=NONE
22828
22829
22830
22831 X11_LIBDIR="${libdir}/X11"
22832
22833 prefix_NONE=
22834 exec_prefix_NONE=
22835 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22836 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22837 eval ax_define_dir="\"$X11_LIBDIR\""
22838 eval ax_define_dir="\"$ax_define_dir\""
22839 X11_LIBDIR="$ax_define_dir"
22840
22841
22842 printf "%s\n" "#define X11_LIBDIR \"$ax_define_dir\"" >>confdefs.h
22843
22844 test "$prefix_NONE" && prefix=NONE
22845 test "$exec_prefix_NONE" && exec_prefix=NONE
22846
22847
22848
22849
22850 pkg_failed=no
22851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
22852 printf %s "checking for X11... " >&6; }
22853
22854 if test -n "$X11_CFLAGS"; then
22855 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
22856 elif test -n "$PKG_CONFIG"; then
22857 if test -n "$PKG_CONFIG" && \
22858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22859 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22860 ac_status=$?
22861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22862 test $ac_status = 0; }; then
22863 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
22864 test "x$?" != "x0" && pkg_failed=yes
22865 else
22866 pkg_failed=yes
22867 fi
22868 else
22869 pkg_failed=untried
22870 fi
22871 if test -n "$X11_LIBS"; then
22872 pkg_cv_X11_LIBS="$X11_LIBS"
22873 elif test -n "$PKG_CONFIG"; then
22874 if test -n "$PKG_CONFIG" && \
22875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
22876 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
22877 ac_status=$?
22878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22879 test $ac_status = 0; }; then
22880 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
22881 test "x$?" != "x0" && pkg_failed=yes
22882 else
22883 pkg_failed=yes
22884 fi
22885 else
22886 pkg_failed=untried
22887 fi
22888
22889
22890
22891 if test $pkg_failed = yes; then
22892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22893 printf "%s\n" "no" >&6; }
22894
22895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22896 _pkg_short_errors_supported=yes
22897 else
22898 _pkg_short_errors_supported=no
22899 fi
22900 if test $_pkg_short_errors_supported = yes; then
22901 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22902 else
22903 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
22904 fi
22905 # Put the nasty error message in config.log where it belongs
22906 echo "$X11_PKG_ERRORS" >&5
22907
22908 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
22909
22910 $X11_PKG_ERRORS
22911
22912 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22913 installed software in a non-standard prefix.
22914
22915 Alternatively, you may set the environment variables X11_CFLAGS
22916 and X11_LIBS to avoid the need to call pkg-config.
22917 See the pkg-config man page for more details." "$LINENO" 5
22918 elif test $pkg_failed = untried; then
22919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920 printf "%s\n" "no" >&6; }
22921 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22922 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22923 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22924 is in your PATH or set the PKG_CONFIG environment variable to the full
22925 path to pkg-config.
22926
22927 Alternatively, you may set the environment variables X11_CFLAGS
22928 and X11_LIBS to avoid the need to call pkg-config.
22929 See the pkg-config man page for more details.
22930
22931 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22932 See \`config.log' for more details" "$LINENO" 5; }
22933 else
22934 X11_CFLAGS=$pkg_cv_X11_CFLAGS
22935 X11_LIBS=$pkg_cv_X11_LIBS
22936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22937 printf "%s\n" "yes" >&6; }
22938
22939 fi
22940 X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
22941
22942 #
22943 # Yes, it would be nice to put the locale data in
22944 # /usr/share, but the locale stuff includes loadable
22945 # libraries which must be located in the same directory
22946 # as the other locale data, so for now, everything lives
22947 # in ${libdir}
22948 #
22949
22950 X11_LOCALEDATADIR="${X11_DATADIR}/locale"
22951
22952 prefix_NONE=
22953 exec_prefix_NONE=
22954 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22955 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22956 eval ax_define_dir="\"$X11_LOCALEDATADIR\""
22957 eval ax_define_dir="\"$ax_define_dir\""
22958 XLOCALEDATADIR="$ax_define_dir"
22959
22960
22961 printf "%s\n" "#define XLOCALEDATADIR \"$ax_define_dir\"" >>confdefs.h
22962
22963 test "$prefix_NONE" && prefix=NONE
22964 test "$exec_prefix_NONE" && exec_prefix=NONE
22965
22966
22967
22968
22969 # Check whether --with-locale-lib-dir was given.
22970 if test ${with_locale_lib_dir+y}
22971 then :
22972 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval"
22973 else $as_nop
22974 X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
22975 fi
22976
22977
22978 prefix_NONE=
22979 exec_prefix_NONE=
22980 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22981 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
22982 eval ax_define_dir="\"$X11_LOCALELIBDIR\""
22983 eval ax_define_dir="\"$ax_define_dir\""
22984 XLOCALELIBDIR="$ax_define_dir"
22985
22986
22987 printf "%s\n" "#define XLOCALELIBDIR \"$ax_define_dir\"" >>confdefs.h
22988
22989 test "$prefix_NONE" && prefix=NONE
22990 test "$exec_prefix_NONE" && exec_prefix=NONE
22991
22992
22993
22994 X11_LOCALEDIR="${X11_LOCALEDATADIR}"
22995
22996 prefix_NONE=
22997 exec_prefix_NONE=
22998 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
22999 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23000 eval ax_define_dir="\"$X11_LOCALEDIR\""
23001 eval ax_define_dir="\"$ax_define_dir\""
23002 XLOCALEDIR="$ax_define_dir"
23003
23004
23005 printf "%s\n" "#define XLOCALEDIR \"$ax_define_dir\"" >>confdefs.h
23006
23007 test "$prefix_NONE" && prefix=NONE
23008 test "$exec_prefix_NONE" && exec_prefix=NONE
23009
23010
23011
23012 locales="\
23013 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \
23014 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \
23015 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \
23016 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \
23017 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \
23018 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \
23019 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \
23020 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \
23021 ru_RU.UTF-8 sr_RS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \
23022 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \
23023 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \
23024 zh_TW zh_TW.big5 zh_TW.UTF-8"
23025
23026
23027 XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
23028
23029 prefix_NONE=
23030 exec_prefix_NONE=
23031 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23032 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23033 eval ax_define_dir="\"$XKEYSYMDB\""
23034 eval ax_define_dir="\"$ax_define_dir\""
23035 XKEYSYMDB="$ax_define_dir"
23036
23037
23038 printf "%s\n" "#define XKEYSYMDB \"$ax_define_dir\"" >>confdefs.h
23039
23040 test "$prefix_NONE" && prefix=NONE
23041 test "$exec_prefix_NONE" && exec_prefix=NONE
23042
23043
23044 XERRORDB="${X11_DATADIR}/XErrorDB"
23045
23046 prefix_NONE=
23047 exec_prefix_NONE=
23048 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
23049 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
23050 eval ax_define_dir="\"$XERRORDB\""
23051 eval ax_define_dir="\"$ax_define_dir\""
23052 XERRORDB="$ax_define_dir"
23053
23054
23055 printf "%s\n" "#define XERRORDB \"$ax_define_dir\"" >>confdefs.h
23056
23057 test "$prefix_NONE" && prefix=NONE
23058 test "$exec_prefix_NONE" && exec_prefix=NONE
23059
23060
23061
23062 # Check whether --enable-malloc0returnsnull was given.
23063 if test ${enable_malloc0returnsnull+y}
23064 then :
23065 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
23066 else $as_nop
23067 MALLOC_ZERO_RETURNS_NULL=auto
23068 fi
23069
23070
23071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
23072 printf %s "checking whether malloc(0) returns NULL... " >&6; }
23073 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
23074 if test ${xorg_cv_malloc0_returns_null+y}
23075 then :
23076 printf %s "(cached) " >&6
23077 else $as_nop
23078 if test "$cross_compiling" = yes
23079 then :
23080 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23081 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23082 as_fn_error $? "cannot run test program while cross compiling
23083 See \`config.log' for more details" "$LINENO" 5; }
23084 else $as_nop
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23087
23088 #include <stdlib.h>
23089
23090 int
23091 main (void)
23092 {
23093
23094 char *m0, *r0, *c0, *p;
23095 m0 = malloc(0);
23096 p = malloc(10);
23097 r0 = realloc(p,0);
23098 c0 = calloc(0,10);
23099 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
23100
23101 ;
23102 return 0;
23103 }
23104 _ACEOF
23105 if ac_fn_c_try_run "$LINENO"
23106 then :
23107 xorg_cv_malloc0_returns_null=yes
23108 else $as_nop
23109 xorg_cv_malloc0_returns_null=no
23110 fi
23111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23112 conftest.$ac_objext conftest.beam conftest.$ac_ext
23113 fi
23114
23115 fi
23116
23117 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
23118 fi
23119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
23120 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
23121
23122 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
23123 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
23124 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
23125 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
23126 else
23127 MALLOC_ZERO_CFLAGS=""
23128 XMALLOC_ZERO_CFLAGS=""
23129 XTMALLOC_ZERO_CFLAGS=""
23130 fi
23131
23132
23133
23134
23135
23136
23137 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"
23138
23139 cat >confcache <<\_ACEOF
23140 # This file is a shell script that caches the results of configure
23141 # tests run on this system so they can be shared between configure
23142 # scripts and configure runs, see configure's option --config-cache.
23143 # It is not useful on other systems. If it contains results you don't
23144 # want to keep, you may remove or edit it.
23145 #
23146 # config.status only pays attention to the cache file if you give it
23147 # the --recheck option to rerun configure.
23148 #
23149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23151 # following values.
23152
23153 _ACEOF
23154
23155 # The following way of writing the cache mishandles newlines in values,
23156 # but we know of no workaround that is simple, portable, and efficient.
23157 # So, we kill variables containing newlines.
23158 # Ultrix sh set writes to stderr and can't be redirected directly,
23159 # and sets the high bit in the cache file unless we assign to the vars.
23160 (
23161 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23162 eval ac_val=\$$ac_var
23163 case $ac_val in #(
23164 *${as_nl}*)
23165 case $ac_var in #(
23166 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23167 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23168 esac
23169 case $ac_var in #(
23170 _ | IFS | as_nl) ;; #(
23171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23172 *) { eval $ac_var=; unset $ac_var;} ;;
23173 esac ;;
23174 esac
23175 done
23176
23177 (set) 2>&1 |
23178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23179 *${as_nl}ac_space=\ *)
23180 # `set' does not quote correctly, so add quotes: double-quote
23181 # substitution turns \\\\ into \\, and sed turns \\ into \.
23182 sed -n \
23183 "s/'/'\\\\''/g;
23184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23185 ;; #(
23186 *)
23187 # `set' quotes correctly as required by POSIX, so do not add quotes.
23188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23189 ;;
23190 esac |
23191 sort
23192 ) |
23193 sed '
23194 /^ac_cv_env_/b end
23195 t clear
23196 :clear
23197 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23198 t end
23199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23200 :end' >>confcache
23201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23202 if test -w "$cache_file"; then
23203 if test "x$cache_file" != "x/dev/null"; then
23204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23205 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23206 if test ! -f "$cache_file" || test -h "$cache_file"; then
23207 cat confcache >"$cache_file"
23208 else
23209 case $cache_file in #(
23210 */* | ?:*)
23211 mv -f confcache "$cache_file"$$ &&
23212 mv -f "$cache_file"$$ "$cache_file" ;; #(
23213 *)
23214 mv -f confcache "$cache_file" ;;
23215 esac
23216 fi
23217 fi
23218 else
23219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23220 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23221 fi
23222 fi
23223 rm -f confcache
23224
23225 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23226 # Let make expand exec_prefix.
23227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23228
23229 DEFS=-DHAVE_CONFIG_H
23230
23231 ac_libobjs=
23232 ac_ltlibobjs=
23233 U=
23234 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23235 # 1. Remove the extension, and $U if already installed.
23236 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23237 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23239 # will be set to the directory where LIBOBJS objects are built.
23240 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23241 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23242 done
23243 LIBOBJS=$ac_libobjs
23244
23245 LTLIBOBJS=$ac_ltlibobjs
23246
23247
23248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23249 printf %s "checking that generated files are newer than configure... " >&6; }
23250 if test -n "$am_sleep_pid"; then
23251 # Hide warnings about reused PIDs.
23252 wait $am_sleep_pid 2>/dev/null
23253 fi
23254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23255 printf "%s\n" "done" >&6; }
23256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23257 as_fn_error $? "conditional \"AMDEP\" was never defined.
23258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23259 fi
23260 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23261 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23263 fi
23264 if test -n "$EXEEXT"; then
23265 am__EXEEXT_TRUE=
23266 am__EXEEXT_FALSE='#'
23267 else
23268 am__EXEEXT_TRUE='#'
23269 am__EXEEXT_FALSE=
23270 fi
23271
23272 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
23273 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
23274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23275 fi
23276 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
23277 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
23278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23279 fi
23280 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
23281 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
23282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23283 fi
23284 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
23285 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
23286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23287 fi
23288 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
23289 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
23290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23291 fi
23292 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
23293 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
23294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23295 fi
23296 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
23297 as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
23298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23299 fi
23300 if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
23301 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
23302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23303 fi
23304 if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
23305 as_fn_error $? "conditional \"OS2\" was never defined.
23306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23307 fi
23308 if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then
23309 as_fn_error $? "conditional \"THRSTUBS\" was never defined.
23310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23311 fi
23312 if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
23313 as_fn_error $? "conditional \"XCMS\" was never defined.
23314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23315 fi
23316 if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
23317 as_fn_error $? "conditional \"XLOCALE\" was never defined.
23318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23319 fi
23320 if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
23321 as_fn_error $? "conditional \"XKB\" was never defined.
23322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23323 fi
23324 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
23325 as_fn_error $? "conditional \"LINT\" was never defined.
23326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23327 fi
23328 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
23329 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
23330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23331 fi
23332
23333 : "${CONFIG_STATUS=./config.status}"
23334 ac_write_fail=0
23335 ac_clean_files_save=$ac_clean_files
23336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23338 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23339 as_write_fail=0
23340 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23341 #! $SHELL
23342 # Generated by $as_me.
23343 # Run this file to recreate the current configuration.
23344 # Compiler output produced by configure, useful for debugging
23345 # configure, is in config.log if it exists.
23346
23347 debug=false
23348 ac_cs_recheck=false
23349 ac_cs_silent=false
23350
23351 SHELL=\${CONFIG_SHELL-$SHELL}
23352 export SHELL
23353 _ASEOF
23354 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23355 ## -------------------- ##
23356 ## M4sh Initialization. ##
23357 ## -------------------- ##
23358
23359 # Be more Bourne compatible
23360 DUALCASE=1; export DUALCASE # for MKS sh
23361 as_nop=:
23362 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23363 then :
23364 emulate sh
23365 NULLCMD=:
23366 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23367 # is contrary to our usage. Disable this feature.
23368 alias -g '${1+"$@"}'='"$@"'
23369 setopt NO_GLOB_SUBST
23370 else $as_nop
23371 case `(set -o) 2>/dev/null` in #(
23372 *posix*) :
23373 set -o posix ;; #(
23374 *) :
23375 ;;
23376 esac
23377 fi
23378
23379
23380
23381 # Reset variables that may have inherited troublesome values from
23382 # the environment.
23383
23384 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23385 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23386 # side effect of setting IFS to empty, thus disabling word splitting.)
23387 # Quoting is to prevent editors from complaining about space-tab.
23388 as_nl='
23389 '
23390 export as_nl
23391 IFS=" "" $as_nl"
23392
23393 PS1='$ '
23394 PS2='> '
23395 PS4='+ '
23396
23397 # Ensure predictable behavior from utilities with locale-dependent output.
23398 LC_ALL=C
23399 export LC_ALL
23400 LANGUAGE=C
23401 export LANGUAGE
23402
23403 # We cannot yet rely on "unset" to work, but we need these variables
23404 # to be unset--not just set to an empty or harmless value--now, to
23405 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23406 # also avoids known problems related to "unset" and subshell syntax
23407 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23408 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23409 do eval test \${$as_var+y} \
23410 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23411 done
23412
23413 # Ensure that fds 0, 1, and 2 are open.
23414 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23415 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23416 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23417
23418 # The user is always right.
23419 if ${PATH_SEPARATOR+false} :; then
23420 PATH_SEPARATOR=:
23421 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23422 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23423 PATH_SEPARATOR=';'
23424 }
23425 fi
23426
23427
23428 # Find who we are. Look in the path if we contain no directory separator.
23429 as_myself=
23430 case $0 in #((
23431 *[\\/]* ) as_myself=$0 ;;
23432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23433 for as_dir in $PATH
23434 do
23435 IFS=$as_save_IFS
23436 case $as_dir in #(((
23437 '') as_dir=./ ;;
23438 */) ;;
23439 *) as_dir=$as_dir/ ;;
23440 esac
23441 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23442 done
23443 IFS=$as_save_IFS
23444
23445 ;;
23446 esac
23447 # We did not find ourselves, most probably we were run as `sh COMMAND'
23448 # in which case we are not to be found in the path.
23449 if test "x$as_myself" = x; then
23450 as_myself=$0
23451 fi
23452 if test ! -f "$as_myself"; then
23453 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23454 exit 1
23455 fi
23456
23457
23458
23459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23460 # ----------------------------------------
23461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23463 # script with STATUS, using 1 if that was 0.
23464 as_fn_error ()
23465 {
23466 as_status=$1; test $as_status -eq 0 && as_status=1
23467 if test "$4"; then
23468 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23470 fi
23471 printf "%s\n" "$as_me: error: $2" >&2
23472 as_fn_exit $as_status
23473 } # as_fn_error
23474
23475
23476
23477 # as_fn_set_status STATUS
23478 # -----------------------
23479 # Set $? to STATUS, without forking.
23480 as_fn_set_status ()
23481 {
23482 return $1
23483 } # as_fn_set_status
23484
23485 # as_fn_exit STATUS
23486 # -----------------
23487 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23488 as_fn_exit ()
23489 {
23490 set +e
23491 as_fn_set_status $1
23492 exit $1
23493 } # as_fn_exit
23494
23495 # as_fn_unset VAR
23496 # ---------------
23497 # Portably unset VAR.
23498 as_fn_unset ()
23499 {
23500 { eval $1=; unset $1;}
23501 }
23502 as_unset=as_fn_unset
23503
23504 # as_fn_append VAR VALUE
23505 # ----------------------
23506 # Append the text in VALUE to the end of the definition contained in VAR. Take
23507 # advantage of any shell optimizations that allow amortized linear growth over
23508 # repeated appends, instead of the typical quadratic growth present in naive
23509 # implementations.
23510 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23511 then :
23512 eval 'as_fn_append ()
23513 {
23514 eval $1+=\$2
23515 }'
23516 else $as_nop
23517 as_fn_append ()
23518 {
23519 eval $1=\$$1\$2
23520 }
23521 fi # as_fn_append
23522
23523 # as_fn_arith ARG...
23524 # ------------------
23525 # Perform arithmetic evaluation on the ARGs, and store the result in the
23526 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23527 # must be portable across $(()) and expr.
23528 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23529 then :
23530 eval 'as_fn_arith ()
23531 {
23532 as_val=$(( $* ))
23533 }'
23534 else $as_nop
23535 as_fn_arith ()
23536 {
23537 as_val=`expr "$@" || test $? -eq 1`
23538 }
23539 fi # as_fn_arith
23540
23541
23542 if expr a : '\(a\)' >/dev/null 2>&1 &&
23543 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23544 as_expr=expr
23545 else
23546 as_expr=false
23547 fi
23548
23549 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23550 as_basename=basename
23551 else
23552 as_basename=false
23553 fi
23554
23555 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23556 as_dirname=dirname
23557 else
23558 as_dirname=false
23559 fi
23560
23561 as_me=`$as_basename -- "$0" ||
23562 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23563 X"$0" : 'X\(//\)$' \| \
23564 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23565 printf "%s\n" X/"$0" |
23566 sed '/^.*\/\([^/][^/]*\)\/*$/{
23567 s//\1/
23568 q
23569 }
23570 /^X\/\(\/\/\)$/{
23571 s//\1/
23572 q
23573 }
23574 /^X\/\(\/\).*/{
23575 s//\1/
23576 q
23577 }
23578 s/.*/./; q'`
23579
23580 # Avoid depending upon Character Ranges.
23581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23584 as_cr_digits='0123456789'
23585 as_cr_alnum=$as_cr_Letters$as_cr_digits
23586
23587
23588 # Determine whether it's possible to make 'echo' print without a newline.
23589 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23590 # for compatibility with existing Makefiles.
23591 ECHO_C= ECHO_N= ECHO_T=
23592 case `echo -n x` in #(((((
23593 -n*)
23594 case `echo 'xy\c'` in
23595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23596 xy) ECHO_C='\c';;
23597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23598 ECHO_T=' ';;
23599 esac;;
23600 *)
23601 ECHO_N='-n';;
23602 esac
23603
23604 # For backward compatibility with old third-party macros, we provide
23605 # the shell variables $as_echo and $as_echo_n. New code should use
23606 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23607 as_echo='printf %s\n'
23608 as_echo_n='printf %s'
23609
23610 rm -f conf$$ conf$$.exe conf$$.file
23611 if test -d conf$$.dir; then
23612 rm -f conf$$.dir/conf$$.file
23613 else
23614 rm -f conf$$.dir
23615 mkdir conf$$.dir 2>/dev/null
23616 fi
23617 if (echo >conf$$.file) 2>/dev/null; then
23618 if ln -s conf$$.file conf$$ 2>/dev/null; then
23619 as_ln_s='ln -s'
23620 # ... but there are two gotchas:
23621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23623 # In both cases, we have to default to `cp -pR'.
23624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23625 as_ln_s='cp -pR'
23626 elif ln conf$$.file conf$$ 2>/dev/null; then
23627 as_ln_s=ln
23628 else
23629 as_ln_s='cp -pR'
23630 fi
23631 else
23632 as_ln_s='cp -pR'
23633 fi
23634 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23635 rmdir conf$$.dir 2>/dev/null
23636
23637
23638 # as_fn_mkdir_p
23639 # -------------
23640 # Create "$as_dir" as a directory, including parents if necessary.
23641 as_fn_mkdir_p ()
23642 {
23643
23644 case $as_dir in #(
23645 -*) as_dir=./$as_dir;;
23646 esac
23647 test -d "$as_dir" || eval $as_mkdir_p || {
23648 as_dirs=
23649 while :; do
23650 case $as_dir in #(
23651 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23652 *) as_qdir=$as_dir;;
23653 esac
23654 as_dirs="'$as_qdir' $as_dirs"
23655 as_dir=`$as_dirname -- "$as_dir" ||
23656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23657 X"$as_dir" : 'X\(//\)[^/]' \| \
23658 X"$as_dir" : 'X\(//\)$' \| \
23659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23660 printf "%s\n" X"$as_dir" |
23661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23662 s//\1/
23663 q
23664 }
23665 /^X\(\/\/\)[^/].*/{
23666 s//\1/
23667 q
23668 }
23669 /^X\(\/\/\)$/{
23670 s//\1/
23671 q
23672 }
23673 /^X\(\/\).*/{
23674 s//\1/
23675 q
23676 }
23677 s/.*/./; q'`
23678 test -d "$as_dir" && break
23679 done
23680 test -z "$as_dirs" || eval "mkdir $as_dirs"
23681 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23682
23683
23684 } # as_fn_mkdir_p
23685 if mkdir -p . 2>/dev/null; then
23686 as_mkdir_p='mkdir -p "$as_dir"'
23687 else
23688 test -d ./-p && rmdir ./-p
23689 as_mkdir_p=false
23690 fi
23691
23692
23693 # as_fn_executable_p FILE
23694 # -----------------------
23695 # Test if FILE is an executable regular file.
23696 as_fn_executable_p ()
23697 {
23698 test -f "$1" && test -x "$1"
23699 } # as_fn_executable_p
23700 as_test_x='test -x'
23701 as_executable_p=as_fn_executable_p
23702
23703 # Sed expression to map a string onto a valid CPP name.
23704 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23705
23706 # Sed expression to map a string onto a valid variable name.
23707 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23708
23709
23710 exec 6>&1
23711 ## ----------------------------------- ##
23712 ## Main body of $CONFIG_STATUS script. ##
23713 ## ----------------------------------- ##
23714 _ASEOF
23715 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23716
23717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23718 # Save the log message, to keep $0 and so on meaningful, and to
23719 # report actual input values of CONFIG_FILES etc. instead of their
23720 # values after options handling.
23721 ac_log="
23722 This file was extended by libX11 $as_me 1.8.1, which was
23723 generated by GNU Autoconf 2.71. Invocation command line was
23724
23725 CONFIG_FILES = $CONFIG_FILES
23726 CONFIG_HEADERS = $CONFIG_HEADERS
23727 CONFIG_LINKS = $CONFIG_LINKS
23728 CONFIG_COMMANDS = $CONFIG_COMMANDS
23729 $ $0 $@
23730
23731 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23732 "
23733
23734 _ACEOF
23735
23736 case $ac_config_files in *"
23737 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23738 esac
23739
23740 case $ac_config_headers in *"
23741 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23742 esac
23743
23744
23745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23746 # Files that config.status was made for.
23747 config_files="$ac_config_files"
23748 config_headers="$ac_config_headers"
23749 config_commands="$ac_config_commands"
23750
23751 _ACEOF
23752
23753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23754 ac_cs_usage="\
23755 \`$as_me' instantiates files and other configuration actions
23756 from templates according to the current configuration. Unless the files
23757 and actions are specified as TAGs, all are instantiated by default.
23758
23759 Usage: $0 [OPTION]... [TAG]...
23760
23761 -h, --help print this help, then exit
23762 -V, --version print version number and configuration settings, then exit
23763 --config print configuration, then exit
23764 -q, --quiet, --silent
23765 do not print progress messages
23766 -d, --debug don't remove temporary files
23767 --recheck update $as_me by reconfiguring in the same conditions
23768 --file=FILE[:TEMPLATE]
23769 instantiate the configuration file FILE
23770 --header=FILE[:TEMPLATE]
23771 instantiate the configuration header FILE
23772
23773 Configuration files:
23774 $config_files
23775
23776 Configuration headers:
23777 $config_headers
23778
23779 Configuration commands:
23780 $config_commands
23781
23782 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/issues>."
23783
23784 _ACEOF
23785 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23786 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23788 ac_cs_config='$ac_cs_config_escaped'
23789 ac_cs_version="\\
23790 libX11 config.status 1.8.1
23791 configured by $0, generated by GNU Autoconf 2.71,
23792 with options \\"\$ac_cs_config\\"
23793
23794 Copyright (C) 2021 Free Software Foundation, Inc.
23795 This config.status script is free software; the Free Software Foundation
23796 gives unlimited permission to copy, distribute and modify it."
23797
23798 ac_pwd='$ac_pwd'
23799 srcdir='$srcdir'
23800 INSTALL='$INSTALL'
23801 MKDIR_P='$MKDIR_P'
23802 AWK='$AWK'
23803 test -n "\$AWK" || AWK=awk
23804 _ACEOF
23805
23806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23807 # The default lists apply if the user does not specify any file.
23808 ac_need_defaults=:
23809 while test $# != 0
23810 do
23811 case $1 in
23812 --*=?*)
23813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23815 ac_shift=:
23816 ;;
23817 --*=)
23818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23819 ac_optarg=
23820 ac_shift=:
23821 ;;
23822 *)
23823 ac_option=$1
23824 ac_optarg=$2
23825 ac_shift=shift
23826 ;;
23827 esac
23828
23829 case $ac_option in
23830 # Handling of the options.
23831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23832 ac_cs_recheck=: ;;
23833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23834 printf "%s\n" "$ac_cs_version"; exit ;;
23835 --config | --confi | --conf | --con | --co | --c )
23836 printf "%s\n" "$ac_cs_config"; exit ;;
23837 --debug | --debu | --deb | --de | --d | -d )
23838 debug=: ;;
23839 --file | --fil | --fi | --f )
23840 $ac_shift
23841 case $ac_optarg in
23842 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23843 '') as_fn_error $? "missing file argument" ;;
23844 esac
23845 as_fn_append CONFIG_FILES " '$ac_optarg'"
23846 ac_need_defaults=false;;
23847 --header | --heade | --head | --hea )
23848 $ac_shift
23849 case $ac_optarg in
23850 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23851 esac
23852 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23853 ac_need_defaults=false;;
23854 --he | --h)
23855 # Conflict between --help and --header
23856 as_fn_error $? "ambiguous option: \`$1'
23857 Try \`$0 --help' for more information.";;
23858 --help | --hel | -h )
23859 printf "%s\n" "$ac_cs_usage"; exit ;;
23860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23862 ac_cs_silent=: ;;
23863
23864 # This is an error.
23865 -*) as_fn_error $? "unrecognized option: \`$1'
23866 Try \`$0 --help' for more information." ;;
23867
23868 *) as_fn_append ac_config_targets " $1"
23869 ac_need_defaults=false ;;
23870
23871 esac
23872 shift
23873 done
23874
23875 ac_configure_extra_args=
23876
23877 if $ac_cs_silent; then
23878 exec 6>/dev/null
23879 ac_configure_extra_args="$ac_configure_extra_args --silent"
23880 fi
23881
23882 _ACEOF
23883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23884 if \$ac_cs_recheck; then
23885 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23886 shift
23887 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23888 CONFIG_SHELL='$SHELL'
23889 export CONFIG_SHELL
23890 exec "\$@"
23891 fi
23892
23893 _ACEOF
23894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23895 exec 5>>config.log
23896 {
23897 echo
23898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23899 ## Running $as_me. ##
23900 _ASBOX
23901 printf "%s\n" "$ac_log"
23902 } >&5
23903
23904 _ACEOF
23905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23906 #
23907 # INIT-COMMANDS
23908 #
23909 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23910
23911
23912 # The HP-UX ksh and POSIX shell print the target directory to stdout
23913 # if CDPATH is set.
23914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23915
23916 sed_quote_subst='$sed_quote_subst'
23917 double_quote_subst='$double_quote_subst'
23918 delay_variable_subst='$delay_variable_subst'
23919 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23920 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23921 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23922 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23923 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23924 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23925 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23926 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23927 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23928 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23929 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23930 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23931 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23932 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23933 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23934 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23935 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23936 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23937 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23938 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23939 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23940 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23941 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23942 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23943 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23944 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23945 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23946 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23947 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23948 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23949 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23950 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23951 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23952 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23953 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23954 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23955 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23956 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23957 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23958 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23959 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23960 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23961 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23962 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23963 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23964 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23965 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23966 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23967 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23968 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23969 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23970 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23971 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23972 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23973 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23974 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23975 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23976 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23977 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23978 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23979 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"`'
23980 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23981 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23982 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23983 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23984 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23985 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23986 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23987 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23988 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23989 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23990 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23991 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23992 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23993 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23994 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23995 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23996 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23997 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23998 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23999 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24000 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24001 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24002 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24003 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24004 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24005 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24006 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24007 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24008 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24009 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24010 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24011 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24012 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24013 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24014 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24015 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24016 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24017 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24018 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24019 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24020 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24021 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24022 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24023 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24024 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24025 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24026 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24027 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24028 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24029 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24030 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24031 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24032 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24033 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24034 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24035 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24036 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24037 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24038 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24039 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24040 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24041 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24042 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24043 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24044 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24045 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24046 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24047 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24048 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24049 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24050 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24051 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24052 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24053 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24054 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24055 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24056
24057 LTCC='$LTCC'
24058 LTCFLAGS='$LTCFLAGS'
24059 compiler='$compiler_DEFAULT'
24060
24061 # A function that is used when there is no print builtin or printf.
24062 func_fallback_echo ()
24063 {
24064 eval 'cat <<_LTECHO_EOF
24065 \$1
24066 _LTECHO_EOF'
24067 }
24068
24069 # Quote evaled strings.
24070 for var in SHELL \
24071 ECHO \
24072 PATH_SEPARATOR \
24073 SED \
24074 GREP \
24075 EGREP \
24076 FGREP \
24077 LD \
24078 NM \
24079 LN_S \
24080 lt_SP2NL \
24081 lt_NL2SP \
24082 reload_flag \
24083 FILECMD \
24084 OBJDUMP \
24085 deplibs_check_method \
24086 file_magic_cmd \
24087 file_magic_glob \
24088 want_nocaseglob \
24089 DLLTOOL \
24090 sharedlib_from_linklib_cmd \
24091 AR \
24092 archiver_list_spec \
24093 STRIP \
24094 RANLIB \
24095 CC \
24096 CFLAGS \
24097 compiler \
24098 lt_cv_sys_global_symbol_pipe \
24099 lt_cv_sys_global_symbol_to_cdecl \
24100 lt_cv_sys_global_symbol_to_import \
24101 lt_cv_sys_global_symbol_to_c_name_address \
24102 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24103 lt_cv_nm_interface \
24104 nm_file_list_spec \
24105 lt_cv_truncate_bin \
24106 lt_prog_compiler_no_builtin_flag \
24107 lt_prog_compiler_pic \
24108 lt_prog_compiler_wl \
24109 lt_prog_compiler_static \
24110 lt_cv_prog_compiler_c_o \
24111 need_locks \
24112 MANIFEST_TOOL \
24113 DSYMUTIL \
24114 NMEDIT \
24115 LIPO \
24116 OTOOL \
24117 OTOOL64 \
24118 shrext_cmds \
24119 export_dynamic_flag_spec \
24120 whole_archive_flag_spec \
24121 compiler_needs_object \
24122 with_gnu_ld \
24123 allow_undefined_flag \
24124 no_undefined_flag \
24125 hardcode_libdir_flag_spec \
24126 hardcode_libdir_separator \
24127 exclude_expsyms \
24128 include_expsyms \
24129 file_list_spec \
24130 variables_saved_for_relink \
24131 libname_spec \
24132 library_names_spec \
24133 soname_spec \
24134 install_override_mode \
24135 finish_eval \
24136 old_striplib \
24137 striplib; do
24138 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24139 *[\\\\\\\`\\"\\\$]*)
24140 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24141 ;;
24142 *)
24143 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24144 ;;
24145 esac
24146 done
24147
24148 # Double-quote double-evaled strings.
24149 for var in reload_cmds \
24150 old_postinstall_cmds \
24151 old_postuninstall_cmds \
24152 old_archive_cmds \
24153 extract_expsyms_cmds \
24154 old_archive_from_new_cmds \
24155 old_archive_from_expsyms_cmds \
24156 archive_cmds \
24157 archive_expsym_cmds \
24158 module_cmds \
24159 module_expsym_cmds \
24160 export_symbols_cmds \
24161 prelink_cmds \
24162 postlink_cmds \
24163 postinstall_cmds \
24164 postuninstall_cmds \
24165 finish_cmds \
24166 sys_lib_search_path_spec \
24167 configure_time_dlsearch_path \
24168 configure_time_lt_sys_library_path; do
24169 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24170 *[\\\\\\\`\\"\\\$]*)
24171 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24172 ;;
24173 *)
24174 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24175 ;;
24176 esac
24177 done
24178
24179 ac_aux_dir='$ac_aux_dir'
24180
24181 # See if we are running on zsh, and set the options that allow our
24182 # commands through without removal of \ escapes INIT.
24183 if test -n "\${ZSH_VERSION+set}"; then
24184 setopt NO_GLOB_SUBST
24185 fi
24186
24187
24188 PACKAGE='$PACKAGE'
24189 VERSION='$VERSION'
24190 RM='$RM'
24191 ofile='$ofile'
24192
24193
24194
24195
24196 _ACEOF
24197
24198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24199
24200 # Handling of arguments.
24201 for ac_config_target in $ac_config_targets
24202 do
24203 case $ac_config_target in
24204 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24205 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
24206 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24207 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24209 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24210 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24211 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
24212 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24213 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
24214 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
24215 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
24216 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24217 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
24218 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
24219 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
24220 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
24221 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
24222 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
24223 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
24224 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
24225 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
24226 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
24227 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
24228 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
24229 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
24230 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
24231 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
24232 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
24233 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
24234 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
24235 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
24236 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
24237 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
24238
24239 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24240 esac
24241 done
24242
24243
24244 # If the user did not use the arguments to specify the items to instantiate,
24245 # then the envvar interface is used. Set only those that are not.
24246 # We use the long form for the default assignment because of an extremely
24247 # bizarre bug on SunOS 4.1.3.
24248 if $ac_need_defaults; then
24249 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24250 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24251 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24252 fi
24253
24254 # Have a temporary directory for convenience. Make it in the build tree
24255 # simply because there is no reason against having it here, and in addition,
24256 # creating and moving files from /tmp can sometimes cause problems.
24257 # Hook for its removal unless debugging.
24258 # Note that there is a small window in which the directory will not be cleaned:
24259 # after its creation but before its name has been assigned to `$tmp'.
24260 $debug ||
24261 {
24262 tmp= ac_tmp=
24263 trap 'exit_status=$?
24264 : "${ac_tmp:=$tmp}"
24265 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24266 ' 0
24267 trap 'as_fn_exit 1' 1 2 13 15
24268 }
24269 # Create a (secure) tmp directory for tmp files.
24270
24271 {
24272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24273 test -d "$tmp"
24274 } ||
24275 {
24276 tmp=./conf$$-$RANDOM
24277 (umask 077 && mkdir "$tmp")
24278 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24279 ac_tmp=$tmp
24280
24281 # Set up the scripts for CONFIG_FILES section.
24282 # No need to generate them if there are no CONFIG_FILES.
24283 # This happens for instance with `./config.status config.h'.
24284 if test -n "$CONFIG_FILES"; then
24285
24286
24287 ac_cr=`echo X | tr X '\015'`
24288 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24289 # But we know of no other shell where ac_cr would be empty at this
24290 # point, so we can use a bashism as a fallback.
24291 if test "x$ac_cr" = x; then
24292 eval ac_cr=\$\'\\r\'
24293 fi
24294 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24295 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24296 ac_cs_awk_cr='\\r'
24297 else
24298 ac_cs_awk_cr=$ac_cr
24299 fi
24300
24301 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24302 _ACEOF
24303
24304
24305 {
24306 echo "cat >conf$$subs.awk <<_ACEOF" &&
24307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24308 echo "_ACEOF"
24309 } >conf$$subs.sh ||
24310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24311 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24312 ac_delim='%!_!# '
24313 for ac_last_try in false false false false false :; do
24314 . ./conf$$subs.sh ||
24315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24316
24317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24318 if test $ac_delim_n = $ac_delim_num; then
24319 break
24320 elif $ac_last_try; then
24321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24322 else
24323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24324 fi
24325 done
24326 rm -f conf$$subs.sh
24327
24328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24329 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24330 _ACEOF
24331 sed -n '
24332 h
24333 s/^/S["/; s/!.*/"]=/
24334 p
24335 g
24336 s/^[^!]*!//
24337 :repl
24338 t repl
24339 s/'"$ac_delim"'$//
24340 t delim
24341 :nl
24342 h
24343 s/\(.\{148\}\)..*/\1/
24344 t more1
24345 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24346 p
24347 n
24348 b repl
24349 :more1
24350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24351 p
24352 g
24353 s/.\{148\}//
24354 t nl
24355 :delim
24356 h
24357 s/\(.\{148\}\)..*/\1/
24358 t more2
24359 s/["\\]/\\&/g; s/^/"/; s/$/"/
24360 p
24361 b
24362 :more2
24363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24364 p
24365 g
24366 s/.\{148\}//
24367 t delim
24368 ' <conf$$subs.awk | sed '
24369 /^[^""]/{
24370 N
24371 s/\n//
24372 }
24373 ' >>$CONFIG_STATUS || ac_write_fail=1
24374 rm -f conf$$subs.awk
24375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24376 _ACAWK
24377 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24378 for (key in S) S_is_set[key] = 1
24379 FS = ""
24380
24381 }
24382 {
24383 line = $ 0
24384 nfields = split(line, field, "@")
24385 substed = 0
24386 len = length(field[1])
24387 for (i = 2; i < nfields; i++) {
24388 key = field[i]
24389 keylen = length(key)
24390 if (S_is_set[key]) {
24391 value = S[key]
24392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24393 len += length(value) + length(field[++i])
24394 substed = 1
24395 } else
24396 len += 1 + keylen
24397 }
24398
24399 print line
24400 }
24401
24402 _ACAWK
24403 _ACEOF
24404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24405 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24407 else
24408 cat
24409 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24410 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24411 _ACEOF
24412
24413 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24414 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24415 # trailing colons and then remove the whole line if VPATH becomes empty
24416 # (actually we leave an empty line to preserve line numbers).
24417 if test "x$srcdir" = x.; then
24418 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24419 h
24420 s///
24421 s/^/:/
24422 s/[ ]*$/:/
24423 s/:\$(srcdir):/:/g
24424 s/:\${srcdir}:/:/g
24425 s/:@srcdir@:/:/g
24426 s/^:*//
24427 s/:*$//
24428 x
24429 s/\(=[ ]*\).*/\1/
24430 G
24431 s/\n//
24432 s/^[^=]*=[ ]*$//
24433 }'
24434 fi
24435
24436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24437 fi # test -n "$CONFIG_FILES"
24438
24439 # Set up the scripts for CONFIG_HEADERS section.
24440 # No need to generate them if there are no CONFIG_HEADERS.
24441 # This happens for instance with `./config.status Makefile'.
24442 if test -n "$CONFIG_HEADERS"; then
24443 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24444 BEGIN {
24445 _ACEOF
24446
24447 # Transform confdefs.h into an awk script `defines.awk', embedded as
24448 # here-document in config.status, that substitutes the proper values into
24449 # config.h.in to produce config.h.
24450
24451 # Create a delimiter string that does not exist in confdefs.h, to ease
24452 # handling of long lines.
24453 ac_delim='%!_!# '
24454 for ac_last_try in false false :; do
24455 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24456 if test -z "$ac_tt"; then
24457 break
24458 elif $ac_last_try; then
24459 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24460 else
24461 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24462 fi
24463 done
24464
24465 # For the awk script, D is an array of macro values keyed by name,
24466 # likewise P contains macro parameters if any. Preserve backslash
24467 # newline sequences.
24468
24469 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24470 sed -n '
24471 s/.\{148\}/&'"$ac_delim"'/g
24472 t rset
24473 :rset
24474 s/^[ ]*#[ ]*define[ ][ ]*/ /
24475 t def
24476 d
24477 :def
24478 s/\\$//
24479 t bsnl
24480 s/["\\]/\\&/g
24481 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24482 D["\1"]=" \3"/p
24483 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24484 d
24485 :bsnl
24486 s/["\\]/\\&/g
24487 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24488 D["\1"]=" \3\\\\\\n"\\/p
24489 t cont
24490 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24491 t cont
24492 d
24493 :cont
24494 n
24495 s/.\{148\}/&'"$ac_delim"'/g
24496 t clear
24497 :clear
24498 s/\\$//
24499 t bsnlc
24500 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24501 d
24502 :bsnlc
24503 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24504 b cont
24505 ' <confdefs.h | sed '
24506 s/'"$ac_delim"'/"\\\
24507 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24508
24509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24510 for (key in D) D_is_set[key] = 1
24511 FS = ""
24512 }
24513 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24514 line = \$ 0
24515 split(line, arg, " ")
24516 if (arg[1] == "#") {
24517 defundef = arg[2]
24518 mac1 = arg[3]
24519 } else {
24520 defundef = substr(arg[1], 2)
24521 mac1 = arg[2]
24522 }
24523 split(mac1, mac2, "(") #)
24524 macro = mac2[1]
24525 prefix = substr(line, 1, index(line, defundef) - 1)
24526 if (D_is_set[macro]) {
24527 # Preserve the white space surrounding the "#".
24528 print prefix "define", macro P[macro] D[macro]
24529 next
24530 } else {
24531 # Replace #undef with comments. This is necessary, for example,
24532 # in the case of _POSIX_SOURCE, which is predefined and required
24533 # on some systems where configure will not decide to define it.
24534 if (defundef == "undef") {
24535 print "/*", prefix defundef, macro, "*/"
24536 next
24537 }
24538 }
24539 }
24540 { print }
24541 _ACAWK
24542 _ACEOF
24543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24544 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24545 fi # test -n "$CONFIG_HEADERS"
24546
24547
24548 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24549 shift
24550 for ac_tag
24551 do
24552 case $ac_tag in
24553 :[FHLC]) ac_mode=$ac_tag; continue;;
24554 esac
24555 case $ac_mode$ac_tag in
24556 :[FHL]*:*);;
24557 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24558 :[FH]-) ac_tag=-:-;;
24559 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24560 esac
24561 ac_save_IFS=$IFS
24562 IFS=:
24563 set x $ac_tag
24564 IFS=$ac_save_IFS
24565 shift
24566 ac_file=$1
24567 shift
24568
24569 case $ac_mode in
24570 :L) ac_source=$1;;
24571 :[FH])
24572 ac_file_inputs=
24573 for ac_f
24574 do
24575 case $ac_f in
24576 -) ac_f="$ac_tmp/stdin";;
24577 *) # Look for the file first in the build tree, then in the source tree
24578 # (if the path is not absolute). The absolute path cannot be DOS-style,
24579 # because $ac_f cannot contain `:'.
24580 test -f "$ac_f" ||
24581 case $ac_f in
24582 [\\/$]*) false;;
24583 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24584 esac ||
24585 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24586 esac
24587 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24588 as_fn_append ac_file_inputs " '$ac_f'"
24589 done
24590
24591 # Let's still pretend it is `configure' which instantiates (i.e., don't
24592 # use $as_me), people would be surprised to read:
24593 # /* config.h. Generated by config.status. */
24594 configure_input='Generated from '`
24595 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24596 `' by configure.'
24597 if test x"$ac_file" != x-; then
24598 configure_input="$ac_file. $configure_input"
24599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24600 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24601 fi
24602 # Neutralize special characters interpreted by sed in replacement strings.
24603 case $configure_input in #(
24604 *\&* | *\|* | *\\* )
24605 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24606 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24607 *) ac_sed_conf_input=$configure_input;;
24608 esac
24609
24610 case $ac_tag in
24611 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24613 esac
24614 ;;
24615 esac
24616
24617 ac_dir=`$as_dirname -- "$ac_file" ||
24618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24619 X"$ac_file" : 'X\(//\)[^/]' \| \
24620 X"$ac_file" : 'X\(//\)$' \| \
24621 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24622 printf "%s\n" X"$ac_file" |
24623 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24624 s//\1/
24625 q
24626 }
24627 /^X\(\/\/\)[^/].*/{
24628 s//\1/
24629 q
24630 }
24631 /^X\(\/\/\)$/{
24632 s//\1/
24633 q
24634 }
24635 /^X\(\/\).*/{
24636 s//\1/
24637 q
24638 }
24639 s/.*/./; q'`
24640 as_dir="$ac_dir"; as_fn_mkdir_p
24641 ac_builddir=.
24642
24643 case "$ac_dir" in
24644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24645 *)
24646 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24647 # A ".." for each directory in $ac_dir_suffix.
24648 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24649 case $ac_top_builddir_sub in
24650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24652 esac ;;
24653 esac
24654 ac_abs_top_builddir=$ac_pwd
24655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24656 # for backward compatibility:
24657 ac_top_builddir=$ac_top_build_prefix
24658
24659 case $srcdir in
24660 .) # We are building in place.
24661 ac_srcdir=.
24662 ac_top_srcdir=$ac_top_builddir_sub
24663 ac_abs_top_srcdir=$ac_pwd ;;
24664 [\\/]* | ?:[\\/]* ) # Absolute name.
24665 ac_srcdir=$srcdir$ac_dir_suffix;
24666 ac_top_srcdir=$srcdir
24667 ac_abs_top_srcdir=$srcdir ;;
24668 *) # Relative name.
24669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24670 ac_top_srcdir=$ac_top_build_prefix$srcdir
24671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24672 esac
24673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24674
24675
24676 case $ac_mode in
24677 :F)
24678 #
24679 # CONFIG_FILE
24680 #
24681
24682 case $INSTALL in
24683 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24684 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24685 esac
24686 ac_MKDIR_P=$MKDIR_P
24687 case $MKDIR_P in
24688 [\\/$]* | ?:[\\/]* ) ;;
24689 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24690 esac
24691 _ACEOF
24692
24693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24694 # If the template does not know about datarootdir, expand it.
24695 # FIXME: This hack should be removed a few years after 2.60.
24696 ac_datarootdir_hack=; ac_datarootdir_seen=
24697 ac_sed_dataroot='
24698 /datarootdir/ {
24699 p
24700 q
24701 }
24702 /@datadir@/p
24703 /@docdir@/p
24704 /@infodir@/p
24705 /@localedir@/p
24706 /@mandir@/p'
24707 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24708 *datarootdir*) ac_datarootdir_seen=yes;;
24709 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24711 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24712 _ACEOF
24713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24714 ac_datarootdir_hack='
24715 s&@datadir@&$datadir&g
24716 s&@docdir@&$docdir&g
24717 s&@infodir@&$infodir&g
24718 s&@localedir@&$localedir&g
24719 s&@mandir@&$mandir&g
24720 s&\\\${datarootdir}&$datarootdir&g' ;;
24721 esac
24722 _ACEOF
24723
24724 # Neutralize VPATH when `$srcdir' = `.'.
24725 # Shell code in configure.ac might set extrasub.
24726 # FIXME: do we really want to maintain this feature?
24727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24728 ac_sed_extra="$ac_vpsub
24729 $extrasub
24730 _ACEOF
24731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24732 :t
24733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24734 s|@configure_input@|$ac_sed_conf_input|;t t
24735 s&@top_builddir@&$ac_top_builddir_sub&;t t
24736 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24737 s&@srcdir@&$ac_srcdir&;t t
24738 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24739 s&@top_srcdir@&$ac_top_srcdir&;t t
24740 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24741 s&@builddir@&$ac_builddir&;t t
24742 s&@abs_builddir@&$ac_abs_builddir&;t t
24743 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24744 s&@INSTALL@&$ac_INSTALL&;t t
24745 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24746 $ac_datarootdir_hack
24747 "
24748 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24749 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24750
24751 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24752 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24753 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24754 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24756 which seems to be undefined. Please make sure it is defined" >&5
24757 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24758 which seems to be undefined. Please make sure it is defined" >&2;}
24759
24760 rm -f "$ac_tmp/stdin"
24761 case $ac_file in
24762 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24763 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24764 esac \
24765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24766 ;;
24767 :H)
24768 #
24769 # CONFIG_HEADER
24770 #
24771 if test x"$ac_file" != x-; then
24772 {
24773 printf "%s\n" "/* $configure_input */" >&1 \
24774 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24775 } >"$ac_tmp/config.h" \
24776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24777 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24779 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24780 else
24781 rm -f "$ac_file"
24782 mv "$ac_tmp/config.h" "$ac_file" \
24783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24784 fi
24785 else
24786 printf "%s\n" "/* $configure_input */" >&1 \
24787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24788 || as_fn_error $? "could not create -" "$LINENO" 5
24789 fi
24790 # Compute "$ac_file"'s index in $config_headers.
24791 _am_arg="$ac_file"
24792 _am_stamp_count=1
24793 for _am_header in $config_headers :; do
24794 case $_am_header in
24795 $_am_arg | $_am_arg:* )
24796 break ;;
24797 * )
24798 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24799 esac
24800 done
24801 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24802 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24803 X"$_am_arg" : 'X\(//\)[^/]' \| \
24804 X"$_am_arg" : 'X\(//\)$' \| \
24805 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24806 printf "%s\n" X"$_am_arg" |
24807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24808 s//\1/
24809 q
24810 }
24811 /^X\(\/\/\)[^/].*/{
24812 s//\1/
24813 q
24814 }
24815 /^X\(\/\/\)$/{
24816 s//\1/
24817 q
24818 }
24819 /^X\(\/\).*/{
24820 s//\1/
24821 q
24822 }
24823 s/.*/./; q'`/stamp-h$_am_stamp_count
24824 ;;
24825
24826 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24827 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24828 ;;
24829 esac
24830
24831
24832 case $ac_file$ac_mode in
24833 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24834 # Older Autoconf quotes --file arguments for eval, but not when files
24835 # are listed without --file. Let's play safe and only enable the eval
24836 # if we detect the quoting.
24837 # TODO: see whether this extra hack can be removed once we start
24838 # requiring Autoconf 2.70 or later.
24839 case $CONFIG_FILES in #(
24840 *\'*) :
24841 eval set x "$CONFIG_FILES" ;; #(
24842 *) :
24843 set x $CONFIG_FILES ;; #(
24844 *) :
24845 ;;
24846 esac
24847 shift
24848 # Used to flag and report bootstrapping failures.
24849 am_rc=0
24850 for am_mf
24851 do
24852 # Strip MF so we end up with the name of the file.
24853 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24854 # Check whether this is an Automake generated Makefile which includes
24855 # dependency-tracking related rules and includes.
24856 # Grep'ing the whole file directly is not great: AIX grep has a line
24857 # limit of 2048, but all sed's we know have understand at least 4000.
24858 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24859 || continue
24860 am_dirpart=`$as_dirname -- "$am_mf" ||
24861 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24862 X"$am_mf" : 'X\(//\)[^/]' \| \
24863 X"$am_mf" : 'X\(//\)$' \| \
24864 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24865 printf "%s\n" X"$am_mf" |
24866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24867 s//\1/
24868 q
24869 }
24870 /^X\(\/\/\)[^/].*/{
24871 s//\1/
24872 q
24873 }
24874 /^X\(\/\/\)$/{
24875 s//\1/
24876 q
24877 }
24878 /^X\(\/\).*/{
24879 s//\1/
24880 q
24881 }
24882 s/.*/./; q'`
24883 am_filepart=`$as_basename -- "$am_mf" ||
24884 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24885 X"$am_mf" : 'X\(//\)$' \| \
24886 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24887 printf "%s\n" X/"$am_mf" |
24888 sed '/^.*\/\([^/][^/]*\)\/*$/{
24889 s//\1/
24890 q
24891 }
24892 /^X\/\(\/\/\)$/{
24893 s//\1/
24894 q
24895 }
24896 /^X\/\(\/\).*/{
24897 s//\1/
24898 q
24899 }
24900 s/.*/./; q'`
24901 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24902 && sed -e '/# am--include-marker/d' "$am_filepart" \
24903 | $MAKE -f - am--depfiles" >&5
24904 (cd "$am_dirpart" \
24905 && sed -e '/# am--include-marker/d' "$am_filepart" \
24906 | $MAKE -f - am--depfiles) >&5 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } || am_rc=$?
24910 done
24911 if test $am_rc -ne 0; then
24912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24914 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24915 for automatic dependency tracking. If GNU make was not used, consider
24916 re-running the configure script with MAKE=\"gmake\" (or whatever is
24917 necessary). You can also try re-running configure with the
24918 '--disable-dependency-tracking' option to at least be able to build
24919 the package (albeit without support for automatic dependency tracking).
24920 See \`config.log' for more details" "$LINENO" 5; }
24921 fi
24922 { am_dirpart=; unset am_dirpart;}
24923 { am_filepart=; unset am_filepart;}
24924 { am_mf=; unset am_mf;}
24925 { am_rc=; unset am_rc;}
24926 rm -f conftest-deps.mk
24927 }
24928 ;;
24929 "libtool":C)
24930
24931 # See if we are running on zsh, and set the options that allow our
24932 # commands through without removal of \ escapes.
24933 if test -n "${ZSH_VERSION+set}"; then
24934 setopt NO_GLOB_SUBST
24935 fi
24936
24937 cfgfile=${ofile}T
24938 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24939 $RM "$cfgfile"
24940
24941 cat <<_LT_EOF >> "$cfgfile"
24942 #! $SHELL
24943 # Generated automatically by $as_me ($PACKAGE) $VERSION
24944 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24945 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24946
24947 # Provide generalized library-building support services.
24948 # Written by Gordon Matzigkeit, 1996
24949
24950 # Copyright (C) 2014 Free Software Foundation, Inc.
24951 # This is free software; see the source for copying conditions. There is NO
24952 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24953
24954 # GNU Libtool is free software; you can redistribute it and/or modify
24955 # it under the terms of the GNU General Public License as published by
24956 # the Free Software Foundation; either version 2 of of the License, or
24957 # (at your option) any later version.
24958 #
24959 # As a special exception to the GNU General Public License, if you
24960 # distribute this file as part of a program or library that is built
24961 # using GNU Libtool, you may include this file under the same
24962 # distribution terms that you use for the rest of that program.
24963 #
24964 # GNU Libtool is distributed in the hope that it will be useful, but
24965 # WITHOUT ANY WARRANTY; without even the implied warranty of
24966 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24967 # GNU General Public License for more details.
24968 #
24969 # You should have received a copy of the GNU General Public License
24970 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24971
24972
24973 # The names of the tagged configurations supported by this script.
24974 available_tags=''
24975
24976 # Configured defaults for sys_lib_dlsearch_path munging.
24977 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24978
24979 # ### BEGIN LIBTOOL CONFIG
24980
24981 # Which release of libtool.m4 was used?
24982 macro_version=$macro_version
24983 macro_revision=$macro_revision
24984
24985 # Whether or not to build shared libraries.
24986 build_libtool_libs=$enable_shared
24987
24988 # Whether or not to build static libraries.
24989 build_old_libs=$enable_static
24990
24991 # What type of objects to build.
24992 pic_mode=$pic_mode
24993
24994 # Whether or not to optimize for fast installation.
24995 fast_install=$enable_fast_install
24996
24997 # Shared archive member basename,for filename based shared library versioning on AIX.
24998 shared_archive_member_spec=$shared_archive_member_spec
24999
25000 # Shell to use when invoking shell scripts.
25001 SHELL=$lt_SHELL
25002
25003 # An echo program that protects backslashes.
25004 ECHO=$lt_ECHO
25005
25006 # The PATH separator for the build system.
25007 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25008
25009 # The host system.
25010 host_alias=$host_alias
25011 host=$host
25012 host_os=$host_os
25013
25014 # The build system.
25015 build_alias=$build_alias
25016 build=$build
25017 build_os=$build_os
25018
25019 # A sed program that does not truncate output.
25020 SED=$lt_SED
25021
25022 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25023 Xsed="\$SED -e 1s/^X//"
25024
25025 # A grep program that handles long lines.
25026 GREP=$lt_GREP
25027
25028 # An ERE matcher.
25029 EGREP=$lt_EGREP
25030
25031 # A literal string matcher.
25032 FGREP=$lt_FGREP
25033
25034 # A BSD- or MS-compatible name lister.
25035 NM=$lt_NM
25036
25037 # Whether we need soft or hard links.
25038 LN_S=$lt_LN_S
25039
25040 # What is the maximum length of a command?
25041 max_cmd_len=$max_cmd_len
25042
25043 # Object file suffix (normally "o").
25044 objext=$ac_objext
25045
25046 # Executable file suffix (normally "").
25047 exeext=$exeext
25048
25049 # whether the shell understands "unset".
25050 lt_unset=$lt_unset
25051
25052 # turn spaces into newlines.
25053 SP2NL=$lt_lt_SP2NL
25054
25055 # turn newlines into spaces.
25056 NL2SP=$lt_lt_NL2SP
25057
25058 # convert \$build file names to \$host format.
25059 to_host_file_cmd=$lt_cv_to_host_file_cmd
25060
25061 # convert \$build files to toolchain format.
25062 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25063
25064 # A file(cmd) program that detects file types.
25065 FILECMD=$lt_FILECMD
25066
25067 # An object symbol dumper.
25068 OBJDUMP=$lt_OBJDUMP
25069
25070 # Method to check whether dependent libraries are shared objects.
25071 deplibs_check_method=$lt_deplibs_check_method
25072
25073 # Command to use when deplibs_check_method = "file_magic".
25074 file_magic_cmd=$lt_file_magic_cmd
25075
25076 # How to find potential files when deplibs_check_method = "file_magic".
25077 file_magic_glob=$lt_file_magic_glob
25078
25079 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25080 want_nocaseglob=$lt_want_nocaseglob
25081
25082 # DLL creation program.
25083 DLLTOOL=$lt_DLLTOOL
25084
25085 # Command to associate shared and link libraries.
25086 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25087
25088 # The archiver.
25089 AR=$lt_AR
25090
25091 # Flags to create an archive (by configure).
25092 lt_ar_flags=$lt_ar_flags
25093
25094 # Flags to create an archive.
25095 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25096
25097 # How to feed a file listing to the archiver.
25098 archiver_list_spec=$lt_archiver_list_spec
25099
25100 # A symbol stripping program.
25101 STRIP=$lt_STRIP
25102
25103 # Commands used to install an old-style archive.
25104 RANLIB=$lt_RANLIB
25105 old_postinstall_cmds=$lt_old_postinstall_cmds
25106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25107
25108 # Whether to use a lock for old archive extraction.
25109 lock_old_archive_extraction=$lock_old_archive_extraction
25110
25111 # A C compiler.
25112 LTCC=$lt_CC
25113
25114 # LTCC compiler flags.
25115 LTCFLAGS=$lt_CFLAGS
25116
25117 # Take the output of nm and produce a listing of raw symbols and C names.
25118 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25119
25120 # Transform the output of nm in a proper C declaration.
25121 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25122
25123 # Transform the output of nm into a list of symbols to manually relocate.
25124 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25125
25126 # Transform the output of nm in a C name address pair.
25127 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25128
25129 # Transform the output of nm in a C name address pair when lib prefix is needed.
25130 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25131
25132 # The name lister interface.
25133 nm_interface=$lt_lt_cv_nm_interface
25134
25135 # Specify filename containing input files for \$NM.
25136 nm_file_list_spec=$lt_nm_file_list_spec
25137
25138 # The root where to search for dependent libraries,and where our libraries should be installed.
25139 lt_sysroot=$lt_sysroot
25140
25141 # Command to truncate a binary pipe.
25142 lt_truncate_bin=$lt_lt_cv_truncate_bin
25143
25144 # The name of the directory that contains temporary libtool files.
25145 objdir=$objdir
25146
25147 # Used to examine libraries when file_magic_cmd begins with "file".
25148 MAGIC_CMD=$MAGIC_CMD
25149
25150 # Must we lock files when doing compilation?
25151 need_locks=$lt_need_locks
25152
25153 # Manifest tool.
25154 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25155
25156 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25157 DSYMUTIL=$lt_DSYMUTIL
25158
25159 # Tool to change global to local symbols on Mac OS X.
25160 NMEDIT=$lt_NMEDIT
25161
25162 # Tool to manipulate fat objects and archives on Mac OS X.
25163 LIPO=$lt_LIPO
25164
25165 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25166 OTOOL=$lt_OTOOL
25167
25168 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25169 OTOOL64=$lt_OTOOL64
25170
25171 # Old archive suffix (normally "a").
25172 libext=$libext
25173
25174 # Shared library suffix (normally ".so").
25175 shrext_cmds=$lt_shrext_cmds
25176
25177 # The commands to extract the exported symbol list from a shared archive.
25178 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25179
25180 # Variables whose values should be saved in libtool wrapper scripts and
25181 # restored at link time.
25182 variables_saved_for_relink=$lt_variables_saved_for_relink
25183
25184 # Do we need the "lib" prefix for modules?
25185 need_lib_prefix=$need_lib_prefix
25186
25187 # Do we need a version for libraries?
25188 need_version=$need_version
25189
25190 # Library versioning type.
25191 version_type=$version_type
25192
25193 # Shared library runtime path variable.
25194 runpath_var=$runpath_var
25195
25196 # Shared library path variable.
25197 shlibpath_var=$shlibpath_var
25198
25199 # Is shlibpath searched before the hard-coded library search path?
25200 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25201
25202 # Format of library name prefix.
25203 libname_spec=$lt_libname_spec
25204
25205 # List of archive names. First name is the real one, the rest are links.
25206 # The last name is the one that the linker finds with -lNAME
25207 library_names_spec=$lt_library_names_spec
25208
25209 # The coded name of the library, if different from the real name.
25210 soname_spec=$lt_soname_spec
25211
25212 # Permission mode override for installation of shared libraries.
25213 install_override_mode=$lt_install_override_mode
25214
25215 # Command to use after installation of a shared archive.
25216 postinstall_cmds=$lt_postinstall_cmds
25217
25218 # Command to use after uninstallation of a shared archive.
25219 postuninstall_cmds=$lt_postuninstall_cmds
25220
25221 # Commands used to finish a libtool library installation in a directory.
25222 finish_cmds=$lt_finish_cmds
25223
25224 # As "finish_cmds", except a single script fragment to be evaled but
25225 # not shown.
25226 finish_eval=$lt_finish_eval
25227
25228 # Whether we should hardcode library paths into libraries.
25229 hardcode_into_libs=$hardcode_into_libs
25230
25231 # Compile-time system search path for libraries.
25232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25233
25234 # Detected run-time system search path for libraries.
25235 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25236
25237 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25238 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25239
25240 # Whether dlopen is supported.
25241 dlopen_support=$enable_dlopen
25242
25243 # Whether dlopen of programs is supported.
25244 dlopen_self=$enable_dlopen_self
25245
25246 # Whether dlopen of statically linked programs is supported.
25247 dlopen_self_static=$enable_dlopen_self_static
25248
25249 # Commands to strip libraries.
25250 old_striplib=$lt_old_striplib
25251 striplib=$lt_striplib
25252
25253
25254 # The linker used to build libraries.
25255 LD=$lt_LD
25256
25257 # How to create reloadable object files.
25258 reload_flag=$lt_reload_flag
25259 reload_cmds=$lt_reload_cmds
25260
25261 # Commands used to build an old-style archive.
25262 old_archive_cmds=$lt_old_archive_cmds
25263
25264 # A language specific compiler.
25265 CC=$lt_compiler
25266
25267 # Is the compiler the GNU compiler?
25268 with_gcc=$GCC
25269
25270 # Compiler flag to turn off builtin functions.
25271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25272
25273 # Additional compiler flags for building library objects.
25274 pic_flag=$lt_lt_prog_compiler_pic
25275
25276 # How to pass a linker flag through the compiler.
25277 wl=$lt_lt_prog_compiler_wl
25278
25279 # Compiler flag to prevent dynamic linking.
25280 link_static_flag=$lt_lt_prog_compiler_static
25281
25282 # Does compiler simultaneously support -c and -o options?
25283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25284
25285 # Whether or not to add -lc for building shared libraries.
25286 build_libtool_need_lc=$archive_cmds_need_lc
25287
25288 # Whether or not to disallow shared libs when runtime libs are static.
25289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25290
25291 # Compiler flag to allow reflexive dlopens.
25292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25293
25294 # Compiler flag to generate shared objects directly from archives.
25295 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25296
25297 # Whether the compiler copes with passing no objects directly.
25298 compiler_needs_object=$lt_compiler_needs_object
25299
25300 # Create an old-style archive from a shared archive.
25301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25302
25303 # Create a temporary old-style archive to link instead of a shared archive.
25304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25305
25306 # Commands used to build a shared archive.
25307 archive_cmds=$lt_archive_cmds
25308 archive_expsym_cmds=$lt_archive_expsym_cmds
25309
25310 # Commands used to build a loadable module if different from building
25311 # a shared archive.
25312 module_cmds=$lt_module_cmds
25313 module_expsym_cmds=$lt_module_expsym_cmds
25314
25315 # Whether we are building with GNU ld or not.
25316 with_gnu_ld=$lt_with_gnu_ld
25317
25318 # Flag that allows shared libraries with undefined symbols to be built.
25319 allow_undefined_flag=$lt_allow_undefined_flag
25320
25321 # Flag that enforces no undefined symbols.
25322 no_undefined_flag=$lt_no_undefined_flag
25323
25324 # Flag to hardcode \$libdir into a binary during linking.
25325 # This must work even if \$libdir does not exist
25326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25327
25328 # Whether we need a single "-rpath" flag with a separated argument.
25329 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25330
25331 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25332 # DIR into the resulting binary.
25333 hardcode_direct=$hardcode_direct
25334
25335 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25336 # DIR into the resulting binary and the resulting library dependency is
25337 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25338 # library is relocated.
25339 hardcode_direct_absolute=$hardcode_direct_absolute
25340
25341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25342 # into the resulting binary.
25343 hardcode_minus_L=$hardcode_minus_L
25344
25345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25346 # into the resulting binary.
25347 hardcode_shlibpath_var=$hardcode_shlibpath_var
25348
25349 # Set to "yes" if building a shared library automatically hardcodes DIR
25350 # into the library and all subsequent libraries and executables linked
25351 # against it.
25352 hardcode_automatic=$hardcode_automatic
25353
25354 # Set to yes if linker adds runtime paths of dependent libraries
25355 # to runtime path list.
25356 inherit_rpath=$inherit_rpath
25357
25358 # Whether libtool must link a program against all its dependency libraries.
25359 link_all_deplibs=$link_all_deplibs
25360
25361 # Set to "yes" if exported symbols are required.
25362 always_export_symbols=$always_export_symbols
25363
25364 # The commands to list exported symbols.
25365 export_symbols_cmds=$lt_export_symbols_cmds
25366
25367 # Symbols that should not be listed in the preloaded symbols.
25368 exclude_expsyms=$lt_exclude_expsyms
25369
25370 # Symbols that must always be exported.
25371 include_expsyms=$lt_include_expsyms
25372
25373 # Commands necessary for linking programs (against libraries) with templates.
25374 prelink_cmds=$lt_prelink_cmds
25375
25376 # Commands necessary for finishing linking programs.
25377 postlink_cmds=$lt_postlink_cmds
25378
25379 # Specify filename containing input files.
25380 file_list_spec=$lt_file_list_spec
25381
25382 # How to hardcode a shared library path into an executable.
25383 hardcode_action=$hardcode_action
25384
25385 # ### END LIBTOOL CONFIG
25386
25387 _LT_EOF
25388
25389 cat <<'_LT_EOF' >> "$cfgfile"
25390
25391 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25392
25393 # func_munge_path_list VARIABLE PATH
25394 # -----------------------------------
25395 # VARIABLE is name of variable containing _space_ separated list of
25396 # directories to be munged by the contents of PATH, which is string
25397 # having a format:
25398 # "DIR[:DIR]:"
25399 # string "DIR[ DIR]" will be prepended to VARIABLE
25400 # ":DIR[:DIR]"
25401 # string "DIR[ DIR]" will be appended to VARIABLE
25402 # "DIRP[:DIRP]::[DIRA:]DIRA"
25403 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25404 # "DIRA[ DIRA]" will be appended to VARIABLE
25405 # "DIR[:DIR]"
25406 # VARIABLE will be replaced by "DIR[ DIR]"
25407 func_munge_path_list ()
25408 {
25409 case x$2 in
25410 x)
25411 ;;
25412 *:)
25413 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25414 ;;
25415 x:*)
25416 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25417 ;;
25418 *::*)
25419 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25420 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25421 ;;
25422 *)
25423 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25424 ;;
25425 esac
25426 }
25427
25428
25429 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25430 func_cc_basename ()
25431 {
25432 for cc_temp in $*""; do
25433 case $cc_temp in
25434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25436 \-*) ;;
25437 *) break;;
25438 esac
25439 done
25440 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25441 }
25442
25443
25444 # ### END FUNCTIONS SHARED WITH CONFIGURE
25445
25446 _LT_EOF
25447
25448 case $host_os in
25449 aix3*)
25450 cat <<\_LT_EOF >> "$cfgfile"
25451 # AIX sometimes has problems with the GCC collect2 program. For some
25452 # reason, if we set the COLLECT_NAMES environment variable, the problems
25453 # vanish in a puff of smoke.
25454 if test set != "${COLLECT_NAMES+set}"; then
25455 COLLECT_NAMES=
25456 export COLLECT_NAMES
25457 fi
25458 _LT_EOF
25459 ;;
25460 esac
25461
25462
25463
25464 ltmain=$ac_aux_dir/ltmain.sh
25465
25466
25467 # We use sed instead of cat because bash on DJGPP gets confused if
25468 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25469 # text mode, it properly converts lines to CR/LF. This bash problem
25470 # is reportedly fixed, but why not run on old versions too?
25471 $SED '$q' "$ltmain" >> "$cfgfile" \
25472 || (rm -f "$cfgfile"; exit 1)
25473
25474 mv -f "$cfgfile" "$ofile" ||
25475 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25476 chmod +x "$ofile"
25477
25478 ;;
25479
25480 esac
25481 done # for ac_tag
25482
25483
25484 as_fn_exit 0
25485 _ACEOF
25486 ac_clean_files=$ac_clean_files_save
25487
25488 test $ac_write_fail = 0 ||
25489 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25490
25491
25492 # configure is writing to config.log, and then calls config.status.
25493 # config.status does its own redirection, appending to config.log.
25494 # Unfortunately, on DOS this fails, as config.log is still kept open
25495 # by configure, so config.status won't be able to write to it; its
25496 # output is simply discarded. So we exec the FD to /dev/null,
25497 # effectively closing config.log, so it can be properly (re)opened and
25498 # appended to by config.status. When coming back to configure, we
25499 # need to make the FD available again.
25500 if test "$no_create" != yes; then
25501 ac_cs_success=:
25502 ac_config_status_args=
25503 test "$silent" = yes &&
25504 ac_config_status_args="$ac_config_status_args --quiet"
25505 exec 5>/dev/null
25506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25507 exec 5>>config.log
25508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25509 # would make configure fail if this is the last instruction.
25510 $ac_cs_success || as_fn_exit 1
25511 fi
25512 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25514 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25515 fi
25516
25517
25518 echo ""
25519 echo "X11 will be built with the following settings:"
25520 echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N
25521 echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR
25522 echo " Threading support: "$xthreads
25523 echo " Use Threads safe API: "$mtsafeapi
25524 echo " Threads stubs in libX11: "$thrstubs
25525 echo " XCMS: "$XCMS
25526 echo " Internationalization support: "$XLOCALE
25527 echo " XF86BigFont support: "$XF86BIGFONT
25528 echo " XKB support: "$XKB
25529 echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
25530 echo " Compose table cache enabled: "$COMPOSECACHE
25531 echo " Functional specs building enabled: "$build_specs
25532 echo ""
25533
25534