configure revision 1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libX11 1.8.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libX11'
653 PACKAGE_TARNAME='libX11'
654 PACKAGE_VERSION='1.8.4'
655 PACKAGE_STRING='libX11 1.8.4'
656 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_header_list=
697 ac_subst_vars='am__EXEEXT_FALSE
698 am__EXEEXT_TRUE
699 LTLIBOBJS
700 XTMALLOC_ZERO_CFLAGS
701 XMALLOC_ZERO_CFLAGS
702 MALLOC_ZERO_CFLAGS
703 XERRORDB
704 XKEYSYMDB
705 locales
706 X11_LOCALEDIR
707 XLOCALEDIR
708 X11_LOCALELIBDIR
709 XLOCALELIBDIR
710 X11_LOCALEDATADIR
711 XLOCALEDATADIR
712 X11_LIBS
713 X11_CFLAGS
714 X11_LIBDIR
715 X11_DATADIR
716 MAKE_LINT_LIB_FALSE
717 MAKE_LINT_LIB_TRUE
718 LINTLIB
719 LINT_FALSE
720 LINT_TRUE
721 LINT_FLAGS
722 LINT
723 XKBPROTO_REQUIRES
724 XKB_FALSE
725 XKB_TRUE
726 BIGFONT_LIBS
727 BIGFONT_CFLAGS
728 XLOCALE_FALSE
729 XLOCALE_TRUE
730 XCMS_FALSE
731 XCMS_TRUE
732 KEYSYMDEFS
733 USE_THREAD_LIBS
734 XTHREAD_CFLAGS
735 XTHREADLIB
736 LAUNCHD
737 OS2_FALSE
738 OS2_TRUE
739 WCHAR32
740 LIBOBJS
741 XLIB_LOADABLE_I18N_FALSE
742 XLIB_LOADABLE_I18N_TRUE
743 I18N_MODULE_LIBS
744 X11_EXTRA_DEPS
745 EXEEXT_FOR_BUILD
746 LDFLAGS_FOR_BUILD
747 CFLAGS_FOR_BUILD
748 CPPFLAGS_FOR_BUILD
749 CC_FOR_BUILD
750 HAVE_PERL_FALSE
751 HAVE_PERL_TRUE
752 PERL
753 TRADITIONALCPPFLAGS
754 RAWCPPFLAGS
755 RAWCPP
756 HAVE_STYLESHEETS_FALSE
757 HAVE_STYLESHEETS_TRUE
758 XSL_STYLESHEET
759 STYLESHEET_SRCDIR
760 XORG_SGML_PATH
761 HAVE_XSLTPROC_FALSE
762 HAVE_XSLTPROC_TRUE
763 XSLTPROC
764 HAVE_FOP_FALSE
765 HAVE_FOP_TRUE
766 FOP
767 HAVE_XMLTO_FALSE
768 HAVE_XMLTO_TRUE
769 HAVE_XMLTO_TEXT_FALSE
770 HAVE_XMLTO_TEXT_TRUE
771 XMLTO
772 ENABLE_SPECS_FALSE
773 ENABLE_SPECS_TRUE
774 MAN_SUBSTS
775 XORG_MAN_PAGE
776 ADMIN_MAN_DIR
777 DRIVER_MAN_DIR
778 MISC_MAN_DIR
779 FILE_MAN_DIR
780 LIB_MAN_DIR
781 APP_MAN_DIR
782 ADMIN_MAN_SUFFIX
783 DRIVER_MAN_SUFFIX
784 MISC_MAN_SUFFIX
785 FILE_MAN_SUFFIX
786 LIB_MAN_SUFFIX
787 APP_MAN_SUFFIX
788 INSTALL_CMD
789 PKG_CONFIG_LIBDIR
790 PKG_CONFIG_PATH
791 PKG_CONFIG
792 CHANGELOG_CMD
793 STRICT_CFLAGS
794 CWARNFLAGS
795 BASE_CFLAGS
796 LT_SYS_LIBRARY_PATH
797 OTOOL64
798 OTOOL
799 LIPO
800 NMEDIT
801 DSYMUTIL
802 MANIFEST_TOOL
803 RANLIB
804 ac_ct_AR
805 AR
806 DLLTOOL
807 OBJDUMP
808 LN_S
809 NM
810 ac_ct_DUMPBIN
811 DUMPBIN
812 LD
813 FGREP
814 SED
815 LIBTOOL
816 AM_BACKSLASH
817 AM_DEFAULT_VERBOSITY
818 AM_DEFAULT_V
819 AM_V
820 am__fastdepCC_FALSE
821 am__fastdepCC_TRUE
822 CCDEPMODE
823 am__nodep
824 AMDEPBACKSLASH
825 AMDEP_FALSE
826 AMDEP_TRUE
827 am__quote
828 am__include
829 DEPDIR
830 am__untar
831 am__tar
832 AMTAR
833 am__leading_dot
834 SET_MAKE
835 AWK
836 mkdir_p
837 MKDIR_P
838 INSTALL_STRIP_PROGRAM
839 STRIP
840 install_sh
841 MAKEINFO
842 AUTOHEADER
843 AUTOMAKE
844 AUTOCONF
845 ACLOCAL
846 VERSION
847 PACKAGE
848 CYGPATH_W
849 am__isrc
850 INSTALL_DATA
851 INSTALL_SCRIPT
852 INSTALL_PROGRAM
853 EGREP
854 GREP
855 CPP
856 OBJEXT
857 EXEEXT
858 ac_ct_CC
859 CPPFLAGS
860 LDFLAGS
861 CFLAGS
862 CC
863 host_os
864 host_vendor
865 host_cpu
866 host
867 build_os
868 build_vendor
869 build_cpu
870 build
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 localstatedir
891 sharedstatedir
892 sysconfdir
893 datadir
894 datarootdir
895 libexecdir
896 sbindir
897 bindir
898 program_transform_name
899 prefix
900 exec_prefix
901 PACKAGE_URL
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 enable_dependency_tracking
913 enable_silent_rules
914 enable_shared
915 enable_static
916 with_pic
917 enable_fast_install
918 with_aix_soname
919 with_gnu_ld
920 with_sysroot
921 enable_libtool_lock
922 enable_largefile
923 enable_selective_werror
924 enable_strict_compilation
925 enable_specs
926 with_xmlto
927 with_fop
928 with_xsltproc
929 with_perl
930 enable_unix_transport
931 enable_tcp_transport
932 enable_ipv6
933 enable_local_transport
934 enable_loadable_i18n
935 enable_loadable_xcursor
936 enable_thread_safety_constructor
937 with_launchd
938 enable_xthreads
939 with_keysymdefdir
940 enable_xcms
941 enable_xlocale
942 enable_xlocaledir
943 enable_xf86bigfont
944 enable_xkb
945 enable_composecache
946 with_lint
947 enable_lint_library
948 with_locale_lib_dir
949 enable_malloc0returnsnull
950 '
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
954 CC
955 CFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
959 CPP
960 LT_SYS_LIBRARY_PATH
961 PKG_CONFIG
962 PKG_CONFIG_PATH
963 PKG_CONFIG_LIBDIR
964 XMLTO
965 FOP
966 XSLTPROC
967 PERL
968 BIGFONT_CFLAGS
969 BIGFONT_LIBS
970 LINT
971 LINT_FLAGS
972 X11_CFLAGS
973 X11_LIBS'
974
975
976 # Initialize some variables set by options.
977 ac_init_help=
978 ac_init_version=false
979 ac_unrecognized_opts=
980 ac_unrecognized_sep=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
983 cache_file=/dev/null
984 exec_prefix=NONE
985 no_create=
986 no_recursion=
987 prefix=NONE
988 program_prefix=NONE
989 program_suffix=NONE
990 program_transform_name=s,x,x,
991 silent=
992 site=
993 srcdir=
994 verbose=
995 x_includes=NONE
996 x_libraries=NONE
997
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1023
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1027 do
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1031 ac_prev=
1032 continue
1033 fi
1034
1035 case $ac_option in
1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *=) ac_optarg= ;;
1038 *) ac_optarg=yes ;;
1039 esac
1040
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043 case $ac_dashdash$ac_option in
1044 --)
1045 ac_dashdash=yes ;;
1046
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1051
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1056
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1063
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1066
1067 -datadir | --datadir | --datadi | --datad)
1068 ac_prev=datadir ;;
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1071
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1078
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1087 *"
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=no ;;
1094
1095 -docdir | --docdir | --docdi | --doc | --do)
1096 ac_prev=docdir ;;
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1099
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101 ac_prev=dvidir ;;
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1104
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1120
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1129
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1132 with_gas=yes ;;
1133
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1140
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1145
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 ac_prev=htmldir ;;
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 | --ht=*)
1150 htmldir=$ac_optarg ;;
1151
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1158
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 ac_prev=infodir ;;
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1163
1164 -libdir | --libdir | --libdi | --libd)
1165 ac_prev=libdir ;;
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1168
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1175
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1180
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1187
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 ac_prev=mandir ;;
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1192
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1195 with_fp=no ;;
1196
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1199 no_create=yes ;;
1200
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203 no_recursion=yes ;;
1204
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1213
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 ac_prev=prefix ;;
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1218
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1225
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1232
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1249
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 ac_prev=pdfdir ;;
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1254
1255 -psdir | --psdir | --psdi | --psd | --ps)
1256 ac_prev=psdir ;;
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258 psdir=$ac_optarg ;;
1259
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 silent=yes ;;
1263
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 ac_prev=sbindir ;;
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 | --sbi=* | --sb=*)
1268 sbindir=$ac_optarg ;;
1269
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1273 | --sha | --sh)
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 | --sha=* | --sh=*)
1279 sharedstatedir=$ac_optarg ;;
1280
1281 -site | --site | --sit)
1282 ac_prev=site ;;
1283 -site=* | --site=* | --sit=*)
1284 site=$ac_optarg ;;
1285
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 ac_prev=srcdir ;;
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1290
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1297
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1302
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 verbose=yes ;;
1305
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1308
1309 -with-* | --with-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=\$ac_optarg ;;
1324
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1340
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1344
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1351
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1358
1359 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1361 ;;
1362
1363 *=*)
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369 esac
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1372
1373 *)
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379 ;;
1380
1381 esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error $? "missing argument to $ac_option"
1387 fi
1388
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1391 no) ;;
1392 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 esac
1395 fi
1396
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1402 do
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1405 case $ac_val in
1406 */ )
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1409 esac
1410 # Be sure to have absolute directory names.
1411 case $ac_val in
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414 esac
1415 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 elif test "x$build_alias" != "x$host_alias"; then
1430 cross_compiling=yes
1431 fi
1432 fi
1433
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437 test "$silent" = yes && exec 6>/dev/null
1438
1439
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)[^/].*/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)$/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\).*/{
1471 s//\1/
1472 q
1473 }
1474 s/.*/./; q'`
1475 srcdir=$ac_confdir
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 srcdir=..
1478 fi
1479 else
1480 ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 srcdir=.
1493 fi
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1506
1507 #
1508 # Report the --help message.
1509 #
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1513 cat <<_ACEOF
1514 \`configure' configures libX11 1.8.4 to adapt to many kinds of systems.
1515
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1520
1521 Defaults for the options are specified in brackets.
1522
1523 Configuration:
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 [PREFIX]
1539
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1544
1545 For better control, use the options below.
1546
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1567 _ACEOF
1568
1569 cat <<\_ACEOF
1570
1571 Program names:
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575
1576 System types:
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579 _ACEOF
1580 fi
1581
1582 if test -n "$ac_init_help"; then
1583 case $ac_init_help in
1584 short | recursive ) echo "Configuration of libX11 1.8.4:";;
1585 esac
1586 cat <<\_ACEOF
1587
1588 Optional Features:
1589 --disable-option-checking ignore unrecognized --enable/--with options
1590 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1591 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1592 --enable-dependency-tracking
1593 do not reject slow dependency extractors
1594 --disable-dependency-tracking
1595 speeds up one-time build
1596 --enable-silent-rules less verbose build output (undo: "make V=1")
1597 --disable-silent-rules verbose build output (undo: "make V=0")
1598 --enable-shared[=PKGS] build shared libraries [default=yes]
1599 --enable-static[=PKGS] build static libraries [default=yes]
1600 --enable-fast-install[=PKGS]
1601 optimize for fast installation [default=yes]
1602 --disable-libtool-lock avoid locking (might break parallel builds)
1603 --disable-largefile omit support for large files
1604 --disable-selective-werror
1605 Turn off selective compiler errors. (default:
1606 enabled)
1607 --enable-strict-compilation
1608 Enable all warnings from compiler and make them
1609 errors (default: disabled)
1610 --enable-specs Enable building the specs (default: yes)
1611 --enable-unix-transport Enable UNIX domain socket transport
1612 --enable-tcp-transport Enable TCP socket transport
1613 --enable-ipv6 Enable IPv6 support
1614 --enable-local-transport
1615 Enable os-specific local transport
1616 --enable-loadable-i18n Controls loadable i18n module support
1617 --disable-loadable-xcursor
1618 Controls loadable xcursor library support
1619 --disable-thread-safety-constructor
1620 Controls mandatory thread safety support
1621 --disable-xthreads Disable Xlib support for Multithreading
1622 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL*
1623 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL*
1624 --enable-xlocaledir Enable XLOCALEDIR environment variable support
1625 --disable-xf86bigfont Disable XF86BigFont extension support
1626 --disable-xkb Disable XKB support *EXPERIMENTAL*
1627 --disable-composecache Disable compose table cache support
1628 --enable-lint-library Create lint library (default: disabled)
1629 --enable-malloc0returnsnull
1630 malloc(0) returns NULL (default: auto)
1631
1632 Optional Packages:
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1636 both]
1637 --with-aix-soname=aix|svr4|both
1638 shared library versioning (aka "SONAME") variant to
1639 provide on AIX, [default=aix].
1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1641 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1642 compiler's sysroot if not specified).
1643 --with-xmlto Use xmlto to regenerate documentation (default:
1644 auto)
1645 --with-fop Use fop to regenerate documentation (default: no)
1646 --with-xsltproc Use xsltproc for the transformation of XML documents
1647 (default: auto)
1648 --with-perl Use perl for extracting information from files
1649 (default: auto)
1650 --with-launchd Build with support for Apple's launchd (default:
1651 auto)
1652 --with-keysymdefdir=DIR The location of keysymdef.h (defaults to xproto
1653 include dir)
1654 --with-lint Use a lint-style source code checker (default:
1655 disabled)
1656 --with-locale-lib-dir=DIR
1657 Directory where locale libraries files are installed
1658 (default: $libdir/X11/locale)
1659
1660 Some influential environment variables:
1661 CC C compiler command
1662 CFLAGS C compiler flags
1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1664 nonstandard directory <lib dir>
1665 LIBS libraries to pass to the linker, e.g. -l<library>
1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1667 you have headers in a nonstandard directory <include dir>
1668 CPP C preprocessor
1669 LT_SYS_LIBRARY_PATH
1670 User-defined run-time library search path.
1671 PKG_CONFIG path to pkg-config utility
1672 PKG_CONFIG_PATH
1673 directories to add to pkg-config's search path
1674 PKG_CONFIG_LIBDIR
1675 path overriding pkg-config's built-in search path
1676 XMLTO Path to xmlto command
1677 FOP Path to fop command
1678 XSLTPROC Path to xsltproc command
1679 PERL Path to perl command
1680 BIGFONT_CFLAGS
1681 C compiler flags for BIGFONT, overriding pkg-config
1682 BIGFONT_LIBS
1683 linker flags for BIGFONT, overriding pkg-config
1684 LINT Path to a lint-style command
1685 LINT_FLAGS Flags for the lint-style command
1686 X11_CFLAGS C compiler flags for X11, overriding pkg-config
1687 X11_LIBS linker flags for X11, overriding pkg-config
1688
1689 Use these variables to override the choices made by `configure' or to help
1690 it to find libraries and programs with nonstandard names/locations.
1691
1692 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>.
1693 _ACEOF
1694 ac_status=$?
1695 fi
1696
1697 if test "$ac_init_help" = "recursive"; then
1698 # If there are subdirs, report their specific --help.
1699 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1700 test -d "$ac_dir" ||
1701 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 continue
1703 ac_builddir=.
1704
1705 case "$ac_dir" in
1706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 *)
1708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1709 # A ".." for each directory in $ac_dir_suffix.
1710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1711 case $ac_top_builddir_sub in
1712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1714 esac ;;
1715 esac
1716 ac_abs_top_builddir=$ac_pwd
1717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1718 # for backward compatibility:
1719 ac_top_builddir=$ac_top_build_prefix
1720
1721 case $srcdir in
1722 .) # We are building in place.
1723 ac_srcdir=.
1724 ac_top_srcdir=$ac_top_builddir_sub
1725 ac_abs_top_srcdir=$ac_pwd ;;
1726 [\\/]* | ?:[\\/]* ) # Absolute name.
1727 ac_srcdir=$srcdir$ac_dir_suffix;
1728 ac_top_srcdir=$srcdir
1729 ac_abs_top_srcdir=$srcdir ;;
1730 *) # Relative name.
1731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1732 ac_top_srcdir=$ac_top_build_prefix$srcdir
1733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 esac
1735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736
1737 cd "$ac_dir" || { ac_status=$?; continue; }
1738 # Check for guested configure.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1740 echo &&
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1743 echo &&
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1745 else
1746 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1747 fi || ac_status=$?
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1749 done
1750 fi
1751
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1754 cat <<\_ACEOF
1755 libX11 configure 1.8.4
1756 generated by GNU Autoconf 2.69
1757
1758 Copyright (C) 2012 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1761 _ACEOF
1762 exit
1763 fi
1764
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1768
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext
1776 if { { ac_try="$ac_compile"
1777 case "(($ac_try" in
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1784 ac_status=$?
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1789 fi
1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: failed program was:" >&5
1798 sed 's/^/| /' conftest.$ac_ext >&5
1799
1800 ac_retval=1
1801 fi
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_compile
1806
1807 # ac_fn_c_try_cpp LINENO
1808 # ----------------------
1809 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_cpp ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { { ac_try="$ac_cpp conftest.$ac_ext"
1814 case "(($ac_try" in
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1821 ac_status=$?
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1826 fi
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } > conftest.i && {
1829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 }; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=1
1838 fi
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840 as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_cpp
1843
1844 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1847 # the include files in INCLUDES and setting the cache variable VAR
1848 # accordingly.
1849 ac_fn_c_check_header_mongrel ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if eval \${$3+:} false; then :
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 else
1862 # Is the header compilable?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1864 $as_echo_n "checking $2 usability... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 ac_header_compiler=yes
1872 else
1873 ac_header_compiler=no
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1877 $as_echo "$ac_header_compiler" >&6; }
1878
1879 # Is the header present?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1881 $as_echo_n "checking $2 presence... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 #include <$2>
1885 _ACEOF
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 ac_header_preproc=yes
1888 else
1889 ac_header_preproc=no
1890 fi
1891 rm -f conftest.err conftest.i conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1893 $as_echo "$ac_header_preproc" >&6; }
1894
1895 # So? What about this header?
1896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1897 yes:no: )
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1899 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ;;
1903 no:yes:* )
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1905 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1907 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1909 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1911 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ( $as_echo "## ---------------------------------------------------------------------- ##
1915 ## Report this to https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues ##
1916 ## ---------------------------------------------------------------------- ##"
1917 ) | sed "s/^/$as_me: WARNING: /" >&2
1918 ;;
1919 esac
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 else
1925 eval "$3=\$ac_header_compiler"
1926 fi
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 fi
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_header_mongrel
1934
1935 # ac_fn_c_try_run LINENO
1936 # ----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1938 # that executables *can* be run.
1939 ac_fn_c_try_run ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if { { ac_try="$ac_link"
1943 case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946 esac
1947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>&5
1950 ac_status=$?
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1953 { { case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_try") 2>&5
1960 ac_status=$?
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; }; }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: program exited with status $ac_status" >&5
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=$ac_status
1970 fi
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_c_try_run
1976
1977 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists and can be compiled using the include files in
1980 # INCLUDES, setting the cache variable VAR accordingly.
1981 ac_fn_c_check_header_compile ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 eval "$3=yes"
1996 else
1997 eval "$3=no"
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 fi
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006 } # ac_fn_c_check_header_compile
2007
2008 # ac_fn_c_try_link LINENO
2009 # -----------------------
2010 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 ac_fn_c_try_link ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 rm -f conftest.$ac_objext conftest$ac_exeext
2015 if { { ac_try="$ac_link"
2016 case "(($ac_try" in
2017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2018 *) ac_try_echo=$ac_try;;
2019 esac
2020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2021 $as_echo "$ac_try_echo"; } >&5
2022 (eval "$ac_link") 2>conftest.err
2023 ac_status=$?
2024 if test -s conftest.err; then
2025 grep -v '^ *+' conftest.err >conftest.er1
2026 cat conftest.er1 >&5
2027 mv -f conftest.er1 conftest.err
2028 fi
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && {
2031 test -z "$ac_c_werror_flag" ||
2032 test ! -s conftest.err
2033 } && test -s conftest$ac_exeext && {
2034 test "$cross_compiling" = yes ||
2035 test -x conftest$ac_exeext
2036 }; then :
2037 ac_retval=0
2038 else
2039 $as_echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2041
2042 ac_retval=1
2043 fi
2044 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2045 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2046 # interfere with the next link command; also delete a directory that is
2047 # left behind by Apple's compiler. We do this before executing the actions.
2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 as_fn_set_status $ac_retval
2051
2052 } # ac_fn_c_try_link
2053
2054 # ac_fn_c_check_func LINENO FUNC VAR
2055 # ----------------------------------
2056 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2057 ac_fn_c_check_func ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval \${$3+:} false; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2069 #define $2 innocuous_$2
2070
2071 /* System header to define __stub macros and hopefully few prototypes,
2072 which can conflict with char $2 (); below.
2073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2074 <limits.h> exists even on freestanding compilers. */
2075
2076 #ifdef __STDC__
2077 # include <limits.h>
2078 #else
2079 # include <assert.h>
2080 #endif
2081
2082 #undef $2
2083
2084 /* Override any GCC internal prototype to avoid an error.
2085 Use char because int might match the return type of a GCC
2086 builtin and then its argument prototype would still apply. */
2087 #ifdef __cplusplus
2088 extern "C"
2089 #endif
2090 char $2 ();
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined __stub_$2 || defined __stub___$2
2095 choke me
2096 #endif
2097
2098 int
2099 main ()
2100 {
2101 return $2 ();
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_link "$LINENO"; then :
2107 eval "$3=yes"
2108 else
2109 eval "$3=no"
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext \
2112 conftest$ac_exeext conftest.$ac_ext
2113 fi
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118
2119 } # ac_fn_c_check_func
2120
2121 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122 # ---------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124 # accordingly.
2125 ac_fn_c_check_decl ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 #ifndef $as_decl_name
2142 #ifdef __cplusplus
2143 (void) $as_decl_use;
2144 #else
2145 (void) $as_decl_name;
2146 #endif
2147 #endif
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165 } # ac_fn_c_check_decl
2166
2167 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168 # ----------------------------------------------------
2169 # Tries to find if the field MEMBER exists in type AGGR, after including
2170 # INCLUDES, setting cache variable VAR accordingly.
2171 ac_fn_c_check_member ()
2172 {
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175 $as_echo_n "checking for $2.$3... " >&6; }
2176 if eval \${$4+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $5
2182 int
2183 main ()
2184 {
2185 static $2 ac_aggr;
2186 if (ac_aggr.$3)
2187 return 0;
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 eval "$4=yes"
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $5
2198 int
2199 main ()
2200 {
2201 static $2 ac_aggr;
2202 if (sizeof ac_aggr.$3)
2203 return 0;
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 eval "$4=yes"
2210 else
2211 eval "$4=no"
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 eval ac_res=\$$4
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222 } # ac_fn_c_check_member
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2235 else
2236 eval "$3=no"
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244 return 0;
2245 ;
2246 return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257 return 0;
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265 eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276 } # ac_fn_c_check_type
2277 cat >config.log <<_ACEOF
2278 This file contains any messages produced by compilers while
2279 running configure, to aid debugging if configure makes a mistake.
2280
2281 It was created by libX11 $as_me 1.8.4, which was
2282 generated by GNU Autoconf 2.69. Invocation command line was
2283
2284 $ $0 $@
2285
2286 _ACEOF
2287 exec 5>>config.log
2288 {
2289 cat <<_ASUNAME
2290 ## --------- ##
2291 ## Platform. ##
2292 ## --------- ##
2293
2294 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2295 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2296 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2297 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2298 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2299
2300 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2301 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2302
2303 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2304 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2305 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2306 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2307 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2308 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2309 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2310
2311 _ASUNAME
2312
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 $as_echo "PATH: $as_dir"
2319 done
2320 IFS=$as_save_IFS
2321
2322 } >&5
2323
2324 cat >&5 <<_ACEOF
2325
2326
2327 ## ----------- ##
2328 ## Core tests. ##
2329 ## ----------- ##
2330
2331 _ACEOF
2332
2333
2334 # Keep a trace of the command line.
2335 # Strip out --no-create and --no-recursion so they do not pile up.
2336 # Strip out --silent because we don't want to record it for future runs.
2337 # Also quote any args containing shell meta-characters.
2338 # Make two passes to allow for proper duplicate-argument suppression.
2339 ac_configure_args=
2340 ac_configure_args0=
2341 ac_configure_args1=
2342 ac_must_keep_next=false
2343 for ac_pass in 1 2
2344 do
2345 for ac_arg
2346 do
2347 case $ac_arg in
2348 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2350 | -silent | --silent | --silen | --sile | --sil)
2351 continue ;;
2352 *\'*)
2353 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354 esac
2355 case $ac_pass in
2356 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2357 2)
2358 as_fn_append ac_configure_args1 " '$ac_arg'"
2359 if test $ac_must_keep_next = true; then
2360 ac_must_keep_next=false # Got value, back to normal.
2361 else
2362 case $ac_arg in
2363 *=* | --config-cache | -C | -disable-* | --disable-* \
2364 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2365 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2366 | -with-* | --with-* | -without-* | --without-* | --x)
2367 case "$ac_configure_args0 " in
2368 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2369 esac
2370 ;;
2371 -* ) ac_must_keep_next=true ;;
2372 esac
2373 fi
2374 as_fn_append ac_configure_args " '$ac_arg'"
2375 ;;
2376 esac
2377 done
2378 done
2379 { ac_configure_args0=; unset ac_configure_args0;}
2380 { ac_configure_args1=; unset ac_configure_args1;}
2381
2382 # When interrupted or exit'd, cleanup temporary files, and complete
2383 # config.log. We remove comments because anyway the quotes in there
2384 # would cause problems or look ugly.
2385 # WARNING: Use '\'' to represent an apostrophe within the trap.
2386 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2387 trap 'exit_status=$?
2388 # Save into config.log some information that might help in debugging.
2389 {
2390 echo
2391
2392 $as_echo "## ---------------- ##
2393 ## Cache variables. ##
2394 ## ---------------- ##"
2395 echo
2396 # The following way of writing the cache mishandles newlines in values,
2397 (
2398 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2399 eval ac_val=\$$ac_var
2400 case $ac_val in #(
2401 *${as_nl}*)
2402 case $ac_var in #(
2403 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2404 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2405 esac
2406 case $ac_var in #(
2407 _ | IFS | as_nl) ;; #(
2408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2409 *) { eval $ac_var=; unset $ac_var;} ;;
2410 esac ;;
2411 esac
2412 done
2413 (set) 2>&1 |
2414 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2415 *${as_nl}ac_space=\ *)
2416 sed -n \
2417 "s/'\''/'\''\\\\'\'''\''/g;
2418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2419 ;; #(
2420 *)
2421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2422 ;;
2423 esac |
2424 sort
2425 )
2426 echo
2427
2428 $as_echo "## ----------------- ##
2429 ## Output variables. ##
2430 ## ----------------- ##"
2431 echo
2432 for ac_var in $ac_subst_vars
2433 do
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2441
2442 if test -n "$ac_subst_files"; then
2443 $as_echo "## ------------------- ##
2444 ## File substitutions. ##
2445 ## ------------------- ##"
2446 echo
2447 for ac_var in $ac_subst_files
2448 do
2449 eval ac_val=\$$ac_var
2450 case $ac_val in
2451 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2452 esac
2453 $as_echo "$ac_var='\''$ac_val'\''"
2454 done | sort
2455 echo
2456 fi
2457
2458 if test -s confdefs.h; then
2459 $as_echo "## ----------- ##
2460 ## confdefs.h. ##
2461 ## ----------- ##"
2462 echo
2463 cat confdefs.h
2464 echo
2465 fi
2466 test "$ac_signal" != 0 &&
2467 $as_echo "$as_me: caught signal $ac_signal"
2468 $as_echo "$as_me: exit $exit_status"
2469 } >&5
2470 rm -f core *.core core.conftest.* &&
2471 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2472 exit $exit_status
2473 ' 0
2474 for ac_signal in 1 2 13 15; do
2475 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2476 done
2477 ac_signal=0
2478
2479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2480 rm -f -r conftest* confdefs.h
2481
2482 $as_echo "/* confdefs.h */" > confdefs.h
2483
2484 # Predefined preprocessor variables.
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_NAME "$PACKAGE_NAME"
2488 _ACEOF
2489
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2492 _ACEOF
2493
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2496 _ACEOF
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define PACKAGE_STRING "$PACKAGE_STRING"
2500 _ACEOF
2501
2502 cat >>confdefs.h <<_ACEOF
2503 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2504 _ACEOF
2505
2506 cat >>confdefs.h <<_ACEOF
2507 #define PACKAGE_URL "$PACKAGE_URL"
2508 _ACEOF
2509
2510
2511 # Let the site file select an alternate cache file if it wants to.
2512 # Prefer an explicitly selected file to automatically selected ones.
2513 ac_site_file1=NONE
2514 ac_site_file2=NONE
2515 if test -n "$CONFIG_SITE"; then
2516 # We do not want a PATH search for config.site.
2517 case $CONFIG_SITE in #((
2518 -*) ac_site_file1=./$CONFIG_SITE;;
2519 */*) ac_site_file1=$CONFIG_SITE;;
2520 *) ac_site_file1=./$CONFIG_SITE;;
2521 esac
2522 elif test "x$prefix" != xNONE; then
2523 ac_site_file1=$prefix/share/config.site
2524 ac_site_file2=$prefix/etc/config.site
2525 else
2526 ac_site_file1=$ac_default_prefix/share/config.site
2527 ac_site_file2=$ac_default_prefix/etc/config.site
2528 fi
2529 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2530 do
2531 test "x$ac_site_file" = xNONE && continue
2532 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2534 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2535 sed 's/^/| /' "$ac_site_file" >&5
2536 . "$ac_site_file" \
2537 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 as_fn_error $? "failed to load site script $ac_site_file
2540 See \`config.log' for more details" "$LINENO" 5; }
2541 fi
2542 done
2543
2544 if test -r "$cache_file"; then
2545 # Some versions of bash will fail to source /dev/null (special files
2546 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2547 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2549 $as_echo "$as_me: loading cache $cache_file" >&6;}
2550 case $cache_file in
2551 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2552 *) . "./$cache_file";;
2553 esac
2554 fi
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2557 $as_echo "$as_me: creating cache $cache_file" >&6;}
2558 >$cache_file
2559 fi
2560
2561 as_fn_append ac_header_list " stdlib.h"
2562 as_fn_append ac_header_list " unistd.h"
2563 as_fn_append ac_header_list " sys/param.h"
2564 # Check that the precious variables saved in the cache have kept the same
2565 # value.
2566 ac_cache_corrupted=false
2567 for ac_var in $ac_precious_vars; do
2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569 eval ac_new_set=\$ac_env_${ac_var}_set
2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571 eval ac_new_val=\$ac_env_${ac_var}_value
2572 case $ac_old_set,$ac_new_set in
2573 set,)
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576 ac_cache_corrupted=: ;;
2577 ,set)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580 ac_cache_corrupted=: ;;
2581 ,);;
2582 *)
2583 if test "x$ac_old_val" != "x$ac_new_val"; then
2584 # differences in whitespace do not lead to failure.
2585 ac_old_val_w=`echo x $ac_old_val`
2586 ac_new_val_w=`echo x $ac_new_val`
2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590 ac_cache_corrupted=:
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594 eval $ac_var=\$ac_old_val
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2597 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2599 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2600 fi;;
2601 esac
2602 # Pass precious variables to config.status.
2603 if test "$ac_new_set" = set; then
2604 case $ac_new_val in
2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606 *) ac_arg=$ac_var=$ac_new_val ;;
2607 esac
2608 case " $ac_configure_args " in
2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611 esac
2612 fi
2613 done
2614 if $ac_cache_corrupted; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620 fi
2621 ## -------------------- ##
2622 ## Main body of script. ##
2623 ## -------------------- ##
2624
2625 ac_ext=c
2626 ac_cpp='$CPP $CPPFLAGS'
2627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633 ac_config_headers="$ac_config_headers src/config.h include/X11/XlibConf.h"
2634
2635
2636 ac_aux_dir=
2637 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2638 if test -f "$ac_dir/install-sh"; then
2639 ac_aux_dir=$ac_dir
2640 ac_install_sh="$ac_aux_dir/install-sh -c"
2641 break
2642 elif test -f "$ac_dir/install.sh"; then
2643 ac_aux_dir=$ac_dir
2644 ac_install_sh="$ac_aux_dir/install.sh -c"
2645 break
2646 elif test -f "$ac_dir/shtool"; then
2647 ac_aux_dir=$ac_dir
2648 ac_install_sh="$ac_aux_dir/shtool install -c"
2649 break
2650 fi
2651 done
2652 if test -z "$ac_aux_dir"; then
2653 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2654 fi
2655
2656 # These three variables are undocumented and unsupported,
2657 # and are intended to be withdrawn in a future Autoconf release.
2658 # They can cause serious problems if a builder's source tree is in a directory
2659 # whose full name contains unusual characters.
2660 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2661 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2662 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2663
2664
2665 # Make sure we can run config.sub.
2666 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2667 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if ${ac_cv_build+:} false; then :
2672 $as_echo_n "(cached) " >&6
2673 else
2674 ac_build_alias=$build_alias
2675 test "x$ac_build_alias" = x &&
2676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x &&
2678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2679 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2681
2682 fi
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2684 $as_echo "$ac_cv_build" >&6; }
2685 case $ac_cv_build in
2686 *-*-*) ;;
2687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2688 esac
2689 build=$ac_cv_build
2690 ac_save_IFS=$IFS; IFS='-'
2691 set x $ac_cv_build
2692 shift
2693 build_cpu=$1
2694 build_vendor=$2
2695 shift; shift
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2698 build_os=$*
2699 IFS=$ac_save_IFS
2700 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2701
2702
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2704 $as_echo_n "checking host system type... " >&6; }
2705 if ${ac_cv_host+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test "x$host_alias" = x; then
2709 ac_cv_host=$ac_cv_build
2710 else
2711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2713 fi
2714
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2717 $as_echo "$ac_cv_host" >&6; }
2718 case $ac_cv_host in
2719 *-*-*) ;;
2720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2721 esac
2722 host=$ac_cv_host
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_host
2725 shift
2726 host_cpu=$1
2727 host_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 host_os=$*
2732 IFS=$ac_save_IFS
2733 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734
2735
2736 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2737 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2738 # to avoid autoconf errors.
2739 # Expand $ac_aux_dir to an absolute path.
2740 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2741
2742 ac_ext=c
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_CC+:} false; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 CC=$ac_cv_prog_CC
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2779 else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784
2785 fi
2786 if test -z "$ac_cv_prog_CC"; then
2787 ac_ct_CC=$CC
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_CC="gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824 if test "x$ac_ct_CC" = x; then
2825 CC=""
2826 else
2827 case $cross_compiling:$ac_tool_warned in
2828 yes:)
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2832 esac
2833 CC=$ac_ct_CC
2834 fi
2835 else
2836 CC="$ac_cv_prog_CC"
2837 fi
2838
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}cc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if ${ac_cv_prog_CC+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2858 ac_cv_prog_CC="${ac_tool_prefix}cc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 CC=$ac_cv_prog_CC
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2875 fi
2876
2877
2878 fi
2879 fi
2880 if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882 set dummy cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if ${ac_cv_prog_CC+:} false; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 else
2891 ac_prog_rejected=no
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2901 continue
2902 fi
2903 ac_cv_prog_CC="cc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 break 2
2906 fi
2907 done
2908 done
2909 IFS=$as_save_IFS
2910
2911 if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2914 shift
2915 if test $# != 0; then
2916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2919 shift
2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 fi
2922 fi
2923 fi
2924 fi
2925 CC=$ac_cv_prog_CC
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2932 fi
2933
2934
2935 fi
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl.exe
2939 do
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953 IFS=$as_save_IFS
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 test -n "$CC" && break
2978 done
2979 fi
2980 if test -z "$CC"; then
2981 ac_ct_CC=$CC
2982 for ac_prog in cl.exe
2983 do
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 fi
3019
3020
3021 test -n "$ac_ct_CC" && break
3022 done
3023
3024 if test "x$ac_ct_CC" = x; then
3025 CC=""
3026 else
3027 case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3032 esac
3033 CC=$ac_ct_CC
3034 fi
3035 fi
3036
3037 fi
3038
3039
3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details" "$LINENO" 5; }
3044
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047 set X $ac_compile
3048 ac_compiler=$2
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3058 ac_status=$?
3059 if test -s conftest.err; then
3060 sed '10a\
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3064 fi
3065 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3068 done
3069
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3072
3073 int
3074 main ()
3075 {
3076
3077 ;
3078 return 0;
3079 }
3080 _ACEOF
3081 ac_clean_files_save=$ac_clean_files
3082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3083 # Try to create an executable without -o first, disregard a.out.
3084 # It will help us diagnose broken compilers, and finding out an intuition
3085 # of exeext.
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3087 $as_echo_n "checking whether the C compiler works... " >&6; }
3088 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3089
3090 # The possible output files:
3091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092
3093 ac_rmfiles=
3094 for ac_file in $ac_files
3095 do
3096 case $ac_file in
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099 esac
3100 done
3101 rm -f $ac_rmfiles
3102
3103 if { { ac_try="$ac_link_default"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link_default") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3118 # Autoconf.
3119 for ac_file in $ac_files ''
3120 do
3121 test -f "$ac_file" || continue
3122 case $ac_file in
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3124 ;;
3125 [ab].out )
3126 # We found the default executable, but exeext='' is most
3127 # certainly right.
3128 break;;
3129 *.* )
3130 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131 then :; else
3132 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133 fi
3134 # We set ac_cv_exeext here because the later test for it is not
3135 # safe: cross compilers may not add the suffix if given an `-o'
3136 # argument, so we may need to know it at that point already.
3137 # Even if this section looks crufty: it has the advantage of
3138 # actually working.
3139 break;;
3140 * )
3141 break;;
3142 esac
3143 done
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3145
3146 else
3147 ac_file=''
3148 fi
3149 if test -z "$ac_file"; then :
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 $as_echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error 77 "C compiler cannot create executables
3158 See \`config.log' for more details" "$LINENO" 5; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3162 fi
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3164 $as_echo_n "checking for C compiler default output file name... " >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3166 $as_echo "$ac_file" >&6; }
3167 ac_exeext=$ac_cv_exeext
3168
3169 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172 $as_echo_n "checking for suffix of executables... " >&6; }
3173 if { { ac_try="$ac_link"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179 $as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
3181 ac_status=$?
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
3184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3186 # work properly (i.e., refer to `conftest.exe'), while it won't with
3187 # `rm'.
3188 for ac_file in conftest.exe conftest conftest.*; do
3189 test -f "$ac_file" || continue
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3193 break;;
3194 * ) break;;
3195 esac
3196 done
3197 else
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3201 See \`config.log' for more details" "$LINENO" 5; }
3202 fi
3203 rm -f conftest conftest$ac_cv_exeext
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205 $as_echo "$ac_cv_exeext" >&6; }
3206
3207 rm -f conftest.$ac_ext
3208 EXEEXT=$ac_cv_exeext
3209 ac_exeext=$EXEEXT
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3212 #include <stdio.h>
3213 int
3214 main ()
3215 {
3216 FILE *f = fopen ("conftest.out", "w");
3217 return ferror (f) || fclose (f) != 0;
3218
3219 ;
3220 return 0;
3221 }
3222 _ACEOF
3223 ac_clean_files="$ac_clean_files conftest.out"
3224 # Check that the compiler produces executables we can run. If not, either
3225 # the compiler is broken, or we cross compile.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3227 $as_echo_n "checking whether we are cross compiling... " >&6; }
3228 if test "$cross_compiling" != yes; then
3229 { { ac_try="$ac_link"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3237 ac_status=$?
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }
3240 if { ac_try='./conftest$ac_cv_exeext'
3241 { { case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_try") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }; }; then
3251 cross_compiling=no
3252 else
3253 if test "$cross_compiling" = maybe; then
3254 cross_compiling=yes
3255 else
3256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error $? "cannot run C compiled programs.
3259 If you meant to cross compile, use \`--host'.
3260 See \`config.log' for more details" "$LINENO" 5; }
3261 fi
3262 fi
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3265 $as_echo "$cross_compiling" >&6; }
3266
3267 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3268 ac_clean_files=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3270 $as_echo_n "checking for suffix of object files... " >&6; }
3271 if ${ac_cv_objext+:} false; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3276
3277 int
3278 main ()
3279 {
3280
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.o conftest.obj
3286 if { { ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compile") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302 break;;
3303 esac
3304 done
3305 else
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error $? "cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 fi
3314 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3317 $as_echo "$ac_cv_objext" >&6; }
3318 OBJEXT=$ac_cv_objext
3319 ac_objext=$OBJEXT
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3322 if ${ac_cv_c_compiler_gnu+:} false; then :
3323 $as_echo_n "(cached) " >&6
3324 else
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331 #ifndef __GNUC__
3332 choke me
3333 #endif
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 if ac_fn_c_try_compile "$LINENO"; then :
3340 ac_compiler_gnu=yes
3341 else
3342 ac_compiler_gnu=no
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346
3347 fi
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3350 if test $ac_compiler_gnu = yes; then
3351 GCC=yes
3352 else
3353 GCC=
3354 fi
3355 ac_test_CFLAGS=${CFLAGS+set}
3356 ac_save_CFLAGS=$CFLAGS
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3359 if ${ac_cv_prog_cc_g+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 ac_save_c_werror_flag=$ac_c_werror_flag
3363 ac_c_werror_flag=yes
3364 ac_cv_prog_cc_g=no
3365 CFLAGS="-g"
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368
3369 int
3370 main ()
3371 {
3372
3373 ;
3374 return 0;
3375 }
3376 _ACEOF
3377 if ac_fn_c_try_compile "$LINENO"; then :
3378 ac_cv_prog_cc_g=yes
3379 else
3380 CFLAGS=""
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 if ac_fn_c_try_compile "$LINENO"; then :
3393
3394 else
3395 ac_c_werror_flag=$ac_save_c_werror_flag
3396 CFLAGS="-g"
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399
3400 int
3401 main ()
3402 {
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 if ac_fn_c_try_compile "$LINENO"; then :
3409 ac_cv_prog_cc_g=yes
3410 fi
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 fi
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3417 fi
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3419 $as_echo "$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3424 CFLAGS="-g -O2"
3425 else
3426 CFLAGS="-g"
3427 fi
3428 else
3429 if test "$GCC" = yes; then
3430 CFLAGS="-O2"
3431 else
3432 CFLAGS=
3433 fi
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3437 if ${ac_cv_prog_cc_c89+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 ac_cv_prog_cc_c89=no
3441 ac_save_CC=$CC
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444 #include <stdarg.h>
3445 #include <stdio.h>
3446 struct stat;
3447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3448 struct buf { int x; };
3449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3450 static char *e (p, i)
3451 char **p;
3452 int i;
3453 {
3454 return p[i];
3455 }
3456 static char *f (char * (*g) (char **, int), char **p, ...)
3457 {
3458 char *s;
3459 va_list v;
3460 va_start (v,p);
3461 s = g (p, va_arg (v,int));
3462 va_end (v);
3463 return s;
3464 }
3465
3466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3467 function prototypes and stuff, but not '\xHH' hex character constants.
3468 These don't provoke an error unfortunately, instead are silently treated
3469 as 'x'. The following induces an error, until -std is added to get
3470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3471 array size at least. It's necessary to write '\x00'==0 to get something
3472 that's true only with -std. */
3473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3474
3475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3476 inside strings and character constants. */
3477 #define FOO(x) 'x'
3478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3479
3480 int test (int i, double x);
3481 struct s1 {int (*f) (int a);};
3482 struct s2 {int (*f) (double a);};
3483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3484 int argc;
3485 char **argv;
3486 int
3487 main ()
3488 {
3489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3496 do
3497 CC="$ac_save_CC $ac_arg"
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_c89=$ac_arg
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext
3502 test "x$ac_cv_prog_cc_c89" != "xno" && break
3503 done
3504 rm -f conftest.$ac_ext
3505 CC=$ac_save_CC
3506
3507 fi
3508 # AC_CACHE_VAL
3509 case "x$ac_cv_prog_cc_c89" in
3510 x)
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3512 $as_echo "none needed" >&6; } ;;
3513 xno)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3515 $as_echo "unsupported" >&6; } ;;
3516 *)
3517 CC="$CC $ac_cv_prog_cc_c89"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3520 esac
3521 if test "x$ac_cv_prog_cc_c89" != xno; then :
3522
3523 fi
3524
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3537 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3538 if ${am_cv_prog_cc_c_o+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 # Make sure it works both with $CC and with simple cc.
3553 # Following AC_PROG_CC_C_O, we do the test twice because some
3554 # compilers refuse to overwrite an existing .o file with -o,
3555 # though they will create one.
3556 am_cv_prog_cc_c_o=yes
3557 for am_i in 1 2; do
3558 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3559 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } \
3563 && test -f conftest2.$ac_objext; then
3564 : OK
3565 else
3566 am_cv_prog_cc_c_o=no
3567 break
3568 fi
3569 done
3570 rm -f core conftest*
3571 unset am_i
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3574 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3575 if test "$am_cv_prog_cc_c_o" != yes; then
3576 # Losing compiler, so override with the script.
3577 # FIXME: It is wrong to rewrite CC.
3578 # But if we don't then we get into trouble of one sort or another.
3579 # A longer-term fix would be to have automake use am__CC in this case,
3580 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3581 CC="$am_aux_dir/compile $CC"
3582 fi
3583 ac_ext=c
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
3589
3590
3591 ac_ext=c
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3597 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3598 # On Suns, sometimes $CPP names a directory.
3599 if test -n "$CPP" && test -d "$CPP"; then
3600 CPP=
3601 fi
3602 if test -z "$CPP"; then
3603 if ${ac_cv_prog_CPP+:} false; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 # Double quotes because CPP needs to be expanded
3607 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3608 do
3609 ac_preproc_ok=false
3610 for ac_c_preproc_warn_flag in '' yes
3611 do
3612 # Use a header file that comes with gcc, so configuring glibc
3613 # with a fresh cross-compiler works.
3614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3615 # <limits.h> exists even on freestanding compilers.
3616 # On the NeXT, cc -E runs the code through the compiler's parser,
3617 # not just through cpp. "Syntax error" is here to catch this case.
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #ifdef __STDC__
3621 # include <limits.h>
3622 #else
3623 # include <assert.h>
3624 #endif
3625 Syntax error
3626 _ACEOF
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3628
3629 else
3630 # Broken: fails on valid input.
3631 continue
3632 fi
3633 rm -f conftest.err conftest.i conftest.$ac_ext
3634
3635 # OK, works on sane cases. Now check whether nonexistent headers
3636 # can be detected and how.
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639 #include <ac_nonexistent.h>
3640 _ACEOF
3641 if ac_fn_c_try_cpp "$LINENO"; then :
3642 # Broken: success on invalid input.
3643 continue
3644 else
3645 # Passes both tests.
3646 ac_preproc_ok=:
3647 break
3648 fi
3649 rm -f conftest.err conftest.i conftest.$ac_ext
3650
3651 done
3652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653 rm -f conftest.i conftest.err conftest.$ac_ext
3654 if $ac_preproc_ok; then :
3655 break
3656 fi
3657
3658 done
3659 ac_cv_prog_CPP=$CPP
3660
3661 fi
3662 CPP=$ac_cv_prog_CPP
3663 else
3664 ac_cv_prog_CPP=$CPP
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3667 $as_echo "$CPP" >&6; }
3668 ac_preproc_ok=false
3669 for ac_c_preproc_warn_flag in '' yes
3670 do
3671 # Use a header file that comes with gcc, so configuring glibc
3672 # with a fresh cross-compiler works.
3673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3674 # <limits.h> exists even on freestanding compilers.
3675 # On the NeXT, cc -E runs the code through the compiler's parser,
3676 # not just through cpp. "Syntax error" is here to catch this case.
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3684 Syntax error
3685 _ACEOF
3686 if ac_fn_c_try_cpp "$LINENO"; then :
3687
3688 else
3689 # Broken: fails on valid input.
3690 continue
3691 fi
3692 rm -f conftest.err conftest.i conftest.$ac_ext
3693
3694 # OK, works on sane cases. Now check whether nonexistent headers
3695 # can be detected and how.
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3698 #include <ac_nonexistent.h>
3699 _ACEOF
3700 if ac_fn_c_try_cpp "$LINENO"; then :
3701 # Broken: success on invalid input.
3702 continue
3703 else
3704 # Passes both tests.
3705 ac_preproc_ok=:
3706 break
3707 fi
3708 rm -f conftest.err conftest.i conftest.$ac_ext
3709
3710 done
3711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3712 rm -f conftest.i conftest.err conftest.$ac_ext
3713 if $ac_preproc_ok; then :
3714
3715 else
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 fi
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3730 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3731 if ${ac_cv_path_GREP+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -z "$GREP"; then
3735 ac_path_GREP_found=false
3736 # Loop through the user's path and test for each of PROGNAME-LIST
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3739 do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_prog in grep ggrep; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3745 as_fn_executable_p "$ac_path_GREP" || continue
3746 # Check for GNU ac_path_GREP and select it if it is found.
3747 # Check for GNU $ac_path_GREP
3748 case `"$ac_path_GREP" --version 2>&1` in
3749 *GNU*)
3750 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3751 *)
3752 ac_count=0
3753 $as_echo_n 0123456789 >"conftest.in"
3754 while :
3755 do
3756 cat "conftest.in" "conftest.in" >"conftest.tmp"
3757 mv "conftest.tmp" "conftest.in"
3758 cp "conftest.in" "conftest.nl"
3759 $as_echo 'GREP' >> "conftest.nl"
3760 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3762 as_fn_arith $ac_count + 1 && ac_count=$as_val
3763 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3764 # Best one so far, save it but keep looking for a better one
3765 ac_cv_path_GREP="$ac_path_GREP"
3766 ac_path_GREP_max=$ac_count
3767 fi
3768 # 10*(2^10) chars as input seems more than enough
3769 test $ac_count -gt 10 && break
3770 done
3771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3772 esac
3773
3774 $ac_path_GREP_found && break 3
3775 done
3776 done
3777 done
3778 IFS=$as_save_IFS
3779 if test -z "$ac_cv_path_GREP"; then
3780 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3781 fi
3782 else
3783 ac_cv_path_GREP=$GREP
3784 fi
3785
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3788 $as_echo "$ac_cv_path_GREP" >&6; }
3789 GREP="$ac_cv_path_GREP"
3790
3791
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3793 $as_echo_n "checking for egrep... " >&6; }
3794 if ${ac_cv_path_EGREP+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3798 then ac_cv_path_EGREP="$GREP -E"
3799 else
3800 if test -z "$EGREP"; then
3801 ac_path_EGREP_found=false
3802 # Loop through the user's path and test for each of PROGNAME-LIST
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3805 do
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_prog in egrep; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3811 as_fn_executable_p "$ac_path_EGREP" || continue
3812 # Check for GNU ac_path_EGREP and select it if it is found.
3813 # Check for GNU $ac_path_EGREP
3814 case `"$ac_path_EGREP" --version 2>&1` in
3815 *GNU*)
3816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3817 *)
3818 ac_count=0
3819 $as_echo_n 0123456789 >"conftest.in"
3820 while :
3821 do
3822 cat "conftest.in" "conftest.in" >"conftest.tmp"
3823 mv "conftest.tmp" "conftest.in"
3824 cp "conftest.in" "conftest.nl"
3825 $as_echo 'EGREP' >> "conftest.nl"
3826 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3828 as_fn_arith $ac_count + 1 && ac_count=$as_val
3829 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3830 # Best one so far, save it but keep looking for a better one
3831 ac_cv_path_EGREP="$ac_path_EGREP"
3832 ac_path_EGREP_max=$ac_count
3833 fi
3834 # 10*(2^10) chars as input seems more than enough
3835 test $ac_count -gt 10 && break
3836 done
3837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3838 esac
3839
3840 $ac_path_EGREP_found && break 3
3841 done
3842 done
3843 done
3844 IFS=$as_save_IFS
3845 if test -z "$ac_cv_path_EGREP"; then
3846 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3847 fi
3848 else
3849 ac_cv_path_EGREP=$EGREP
3850 fi
3851
3852 fi
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3855 $as_echo "$ac_cv_path_EGREP" >&6; }
3856 EGREP="$ac_cv_path_EGREP"
3857
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3860 $as_echo_n "checking for ANSI C header files... " >&6; }
3861 if ${ac_cv_header_stdc+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <stdlib.h>
3867 #include <stdarg.h>
3868 #include <string.h>
3869 #include <float.h>
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_header_stdc=yes
3881 else
3882 ac_cv_header_stdc=no
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885
3886 if test $ac_cv_header_stdc = yes; then
3887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890 #include <string.h>
3891
3892 _ACEOF
3893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3894 $EGREP "memchr" >/dev/null 2>&1; then :
3895
3896 else
3897 ac_cv_header_stdc=no
3898 fi
3899 rm -f conftest*
3900
3901 fi
3902
3903 if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <stdlib.h>
3908
3909 _ACEOF
3910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3911 $EGREP "free" >/dev/null 2>&1; then :
3912
3913 else
3914 ac_cv_header_stdc=no
3915 fi
3916 rm -f conftest*
3917
3918 fi
3919
3920 if test $ac_cv_header_stdc = yes; then
3921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3922 if test "$cross_compiling" = yes; then :
3923 :
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <ctype.h>
3928 #include <stdlib.h>
3929 #if ((' ' & 0x0FF) == 0x020)
3930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3932 #else
3933 # define ISLOWER(c) \
3934 (('a' <= (c) && (c) <= 'i') \
3935 || ('j' <= (c) && (c) <= 'r') \
3936 || ('s' <= (c) && (c) <= 'z'))
3937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3938 #endif
3939
3940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3941 int
3942 main ()
3943 {
3944 int i;
3945 for (i = 0; i < 256; i++)
3946 if (XOR (islower (i), ISLOWER (i))
3947 || toupper (i) != TOUPPER (i))
3948 return 2;
3949 return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_run "$LINENO"; then :
3953
3954 else
3955 ac_cv_header_stdc=no
3956 fi
3957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3958 conftest.$ac_objext conftest.beam conftest.$ac_ext
3959 fi
3960
3961 fi
3962 fi
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3964 $as_echo "$ac_cv_header_stdc" >&6; }
3965 if test $ac_cv_header_stdc = yes; then
3966
3967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3968
3969 fi
3970
3971 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3972 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3973 inttypes.h stdint.h unistd.h
3974 do :
3975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3977 "
3978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3979 cat >>confdefs.h <<_ACEOF
3980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3981 _ACEOF
3982
3983 fi
3984
3985 done
3986
3987
3988
3989 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3990 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3991 MINIX=yes
3992 else
3993 MINIX=
3994 fi
3995
3996
3997 if test "$MINIX" = yes; then
3998
3999 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4000
4001
4002 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4003
4004
4005 $as_echo "#define _MINIX 1" >>confdefs.h
4006
4007 fi
4008
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4011 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4012 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017
4018 # define __EXTENSIONS__ 1
4019 $ac_includes_default
4020 int
4021 main ()
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029 ac_cv_safe_to_define___extensions__=yes
4030 else
4031 ac_cv_safe_to_define___extensions__=no
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4036 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4037 test $ac_cv_safe_to_define___extensions__ = yes &&
4038 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4039
4040 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4041
4042 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4043
4044 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4045
4046 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4047
4048
4049
4050 # Initialize Automake
4051 am__api_version='1.15'
4052
4053 # Find a good install program. We prefer a C program (faster),
4054 # so one script is as good as another. But avoid the broken or
4055 # incompatible versions:
4056 # SysV /etc/install, /usr/sbin/install
4057 # SunOS /usr/etc/install
4058 # IRIX /sbin/install
4059 # AIX /bin/install
4060 # AmigaOS /C/install, which installs bootblocks on floppy discs
4061 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4062 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4063 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4064 # OS/2's system install, which has a completely different semantic
4065 # ./install, which can be erroneously created by make from ./install.sh.
4066 # Reject install programs that cannot install multiple files.
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4068 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4069 if test -z "$INSTALL"; then
4070 if ${ac_cv_path_install+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 for as_dir in $PATH
4075 do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 # Account for people who put trailing slashes in PATH elements.
4079 case $as_dir/ in #((
4080 ./ | .// | /[cC]/* | \
4081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4082 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4083 /usr/ucb/* ) ;;
4084 *)
4085 # OSF1 and SCO ODT 3.0 have their own names for install.
4086 # Don't use installbsd from OSF since it installs stuff as root
4087 # by default.
4088 for ac_prog in ginstall scoinst install; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4091 if test $ac_prog = install &&
4092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4093 # AIX install. It has an incompatible calling convention.
4094 :
4095 elif test $ac_prog = install &&
4096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4097 # program-specific install script used by HP pwplus--don't use.
4098 :
4099 else
4100 rm -rf conftest.one conftest.two conftest.dir
4101 echo one > conftest.one
4102 echo two > conftest.two
4103 mkdir conftest.dir
4104 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4105 test -s conftest.one && test -s conftest.two &&
4106 test -s conftest.dir/conftest.one &&
4107 test -s conftest.dir/conftest.two
4108 then
4109 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4110 break 3
4111 fi
4112 fi
4113 fi
4114 done
4115 done
4116 ;;
4117 esac
4118
4119 done
4120 IFS=$as_save_IFS
4121
4122 rm -rf conftest.one conftest.two conftest.dir
4123
4124 fi
4125 if test "${ac_cv_path_install+set}" = set; then
4126 INSTALL=$ac_cv_path_install
4127 else
4128 # As a last resort, use the slow shell script. Don't cache a
4129 # value for INSTALL within a source directory, because that will
4130 # break other packages using the cache if that directory is
4131 # removed, or if the value is a relative name.
4132 INSTALL=$ac_install_sh
4133 fi
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4136 $as_echo "$INSTALL" >&6; }
4137
4138 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4139 # It thinks the first close brace ends the variable substitution.
4140 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4141
4142 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4143
4144 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4147 $as_echo_n "checking whether build environment is sane... " >&6; }
4148 # Reject unsafe characters in $srcdir or the absolute working directory
4149 # name. Accept space and tab only in the latter.
4150 am_lf='
4151 '
4152 case `pwd` in
4153 *[\\\"\#\$\&\'\`$am_lf]*)
4154 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4155 esac
4156 case $srcdir in
4157 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4158 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4159 esac
4160
4161 # Do 'set' in a subshell so we don't clobber the current shell's
4162 # arguments. Must try -L first in case configure is actually a
4163 # symlink; some systems play weird games with the mod time of symlinks
4164 # (eg FreeBSD returns the mod time of the symlink's containing
4165 # directory).
4166 if (
4167 am_has_slept=no
4168 for am_try in 1 2; do
4169 echo "timestamp, slept: $am_has_slept" > conftest.file
4170 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4171 if test "$*" = "X"; then
4172 # -L didn't work.
4173 set X `ls -t "$srcdir/configure" conftest.file`
4174 fi
4175 if test "$*" != "X $srcdir/configure conftest.file" \
4176 && test "$*" != "X conftest.file $srcdir/configure"; then
4177
4178 # If neither matched, then we have a broken ls. This can happen
4179 # if, for instance, CONFIG_SHELL is bash and it inherits a
4180 # broken ls alias from the environment. This has actually
4181 # happened. Such a system could not be considered "sane".
4182 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4183 alias in your environment" "$LINENO" 5
4184 fi
4185 if test "$2" = conftest.file || test $am_try -eq 2; then
4186 break
4187 fi
4188 # Just in case.
4189 sleep 1
4190 am_has_slept=yes
4191 done
4192 test "$2" = conftest.file
4193 )
4194 then
4195 # Ok.
4196 :
4197 else
4198 as_fn_error $? "newly created file is older than distributed files!
4199 Check your system clock" "$LINENO" 5
4200 fi
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4202 $as_echo "yes" >&6; }
4203 # If we didn't sleep, we still need to ensure time stamps of config.status and
4204 # generated files are strictly newer.
4205 am_sleep_pid=
4206 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4207 ( sleep 1 ) &
4208 am_sleep_pid=$!
4209 fi
4210
4211 rm -f conftest.file
4212
4213 test "$program_prefix" != NONE &&
4214 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4215 # Use a double $ so make ignores it.
4216 test "$program_suffix" != NONE &&
4217 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4218 # Double any \ or $.
4219 # By default was `s,x,x', remove it if useless.
4220 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4221 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4222
4223 if test x"${MISSING+set}" != xset; then
4224 case $am_aux_dir in
4225 *\ * | *\ *)
4226 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4227 *)
4228 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4229 esac
4230 fi
4231 # Use eval to expand $SHELL
4232 if eval "$MISSING --is-lightweight"; then
4233 am_missing_run="$MISSING "
4234 else
4235 am_missing_run=
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4237 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4238 fi
4239
4240 if test x"${install_sh+set}" != xset; then
4241 case $am_aux_dir in
4242 *\ * | *\ *)
4243 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4244 *)
4245 install_sh="\${SHELL} $am_aux_dir/install-sh"
4246 esac
4247 fi
4248
4249 # Installed binaries are usually stripped using 'strip' when the user
4250 # run "make install-strip". However 'strip' might not be the right
4251 # tool to use in cross-compilation environments, therefore Automake
4252 # will honor the 'STRIP' environment variable to overrule this program.
4253 if test "$cross_compiling" != no; then
4254 if test -n "$ac_tool_prefix"; then
4255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}strip; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_STRIP+:} false; then :
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$STRIP"; then
4263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 STRIP=$ac_cv_prog_STRIP
4283 if test -n "$STRIP"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4285 $as_echo "$STRIP" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292 fi
4293 if test -z "$ac_cv_prog_STRIP"; then
4294 ac_ct_STRIP=$STRIP
4295 # Extract the first word of "strip", so it can be a program name with args.
4296 set dummy strip; ac_word=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if test -n "$ac_ct_STRIP"; then
4303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_ac_ct_STRIP="strip"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4323 if test -n "$ac_ct_STRIP"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4325 $as_echo "$ac_ct_STRIP" >&6; }
4326 else
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330
4331 if test "x$ac_ct_STRIP" = x; then
4332 STRIP=":"
4333 else
4334 case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340 STRIP=$ac_ct_STRIP
4341 fi
4342 else
4343 STRIP="$ac_cv_prog_STRIP"
4344 fi
4345
4346 fi
4347 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4350 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4351 if test -z "$MKDIR_P"; then
4352 if ${ac_cv_path_mkdir+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_prog in mkdir gmkdir; do
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4363 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4364 'mkdir (GNU coreutils) '* | \
4365 'mkdir (coreutils) '* | \
4366 'mkdir (fileutils) '4.1*)
4367 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4368 break 3;;
4369 esac
4370 done
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi
4376
4377 test -d ./--version && rmdir ./--version
4378 if test "${ac_cv_path_mkdir+set}" = set; then
4379 MKDIR_P="$ac_cv_path_mkdir -p"
4380 else
4381 # As a last resort, use the slow shell script. Don't cache a
4382 # value for MKDIR_P within a source directory, because that will
4383 # break other packages using the cache if that directory is
4384 # removed, or if the value is a relative name.
4385 MKDIR_P="$ac_install_sh -d"
4386 fi
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4389 $as_echo "$MKDIR_P" >&6; }
4390
4391 for ac_prog in gawk mawk nawk awk
4392 do
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_AWK+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$AWK"; then
4401 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_AWK="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 AWK=$ac_cv_prog_AWK
4421 if test -n "$AWK"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4423 $as_echo "$AWK" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 test -n "$AWK" && break
4431 done
4432
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4434 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4435 set x ${MAKE-make}
4436 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4437 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 cat >conftest.make <<\_ACEOF
4441 SHELL = /bin/sh
4442 all:
4443 @echo '@@@%%%=$(MAKE)=@@@%%%'
4444 _ACEOF
4445 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4446 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4447 *@@@%%%=?*=@@@%%%*)
4448 eval ac_cv_prog_make_${ac_make}_set=yes;;
4449 *)
4450 eval ac_cv_prog_make_${ac_make}_set=no;;
4451 esac
4452 rm -f conftest.make
4453 fi
4454 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4456 $as_echo "yes" >&6; }
4457 SET_MAKE=
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 SET_MAKE="MAKE=${MAKE-make}"
4462 fi
4463
4464 rm -rf .tst 2>/dev/null
4465 mkdir .tst 2>/dev/null
4466 if test -d .tst; then
4467 am__leading_dot=.
4468 else
4469 am__leading_dot=_
4470 fi
4471 rmdir .tst 2>/dev/null
4472
4473 DEPDIR="${am__leading_dot}deps"
4474
4475 ac_config_commands="$ac_config_commands depfiles"
4476
4477
4478 am_make=${MAKE-make}
4479 cat > confinc << 'END'
4480 am__doit:
4481 @echo this is the am__doit target
4482 .PHONY: am__doit
4483 END
4484 # If we don't find an include directive, just comment out the code.
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4487 am__include="#"
4488 am__quote=
4489 _am_result=none
4490 # First try GNU make style include.
4491 echo "include confinc" > confmf
4492 # Ignore all kinds of additional output from 'make'.
4493 case `$am_make -s -f confmf 2> /dev/null` in #(
4494 *the\ am__doit\ target*)
4495 am__include=include
4496 am__quote=
4497 _am_result=GNU
4498 ;;
4499 esac
4500 # Now try BSD make style include.
4501 if test "$am__include" = "#"; then
4502 echo '.include "confinc"' > confmf
4503 case `$am_make -s -f confmf 2> /dev/null` in #(
4504 *the\ am__doit\ target*)
4505 am__include=.include
4506 am__quote="\""
4507 _am_result=BSD
4508 ;;
4509 esac
4510 fi
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4514 $as_echo "$_am_result" >&6; }
4515 rm -f confinc confmf
4516
4517 # Check whether --enable-dependency-tracking was given.
4518 if test "${enable_dependency_tracking+set}" = set; then :
4519 enableval=$enable_dependency_tracking;
4520 fi
4521
4522 if test "x$enable_dependency_tracking" != xno; then
4523 am_depcomp="$ac_aux_dir/depcomp"
4524 AMDEPBACKSLASH='\'
4525 am__nodep='_no'
4526 fi
4527 if test "x$enable_dependency_tracking" != xno; then
4528 AMDEP_TRUE=
4529 AMDEP_FALSE='#'
4530 else
4531 AMDEP_TRUE='#'
4532 AMDEP_FALSE=
4533 fi
4534
4535
4536 # Check whether --enable-silent-rules was given.
4537 if test "${enable_silent_rules+set}" = set; then :
4538 enableval=$enable_silent_rules;
4539 fi
4540
4541 case $enable_silent_rules in # (((
4542 yes) AM_DEFAULT_VERBOSITY=0;;
4543 no) AM_DEFAULT_VERBOSITY=1;;
4544 *) AM_DEFAULT_VERBOSITY=1;;
4545 esac
4546 am_make=${MAKE-make}
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4548 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4549 if ${am_cv_make_support_nested_variables+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if $as_echo 'TRUE=$(BAR$(V))
4553 BAR0=false
4554 BAR1=true
4555 V=1
4556 am__doit:
4557 @$(TRUE)
4558 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4559 am_cv_make_support_nested_variables=yes
4560 else
4561 am_cv_make_support_nested_variables=no
4562 fi
4563 fi
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4565 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4566 if test $am_cv_make_support_nested_variables = yes; then
4567 AM_V='$(V)'
4568 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4569 else
4570 AM_V=$AM_DEFAULT_VERBOSITY
4571 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4572 fi
4573 AM_BACKSLASH='\'
4574
4575 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4576 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4577 # is not polluted with repeated "-I."
4578 am__isrc=' -I$(srcdir)'
4579 # test to see if srcdir already configured
4580 if test -f $srcdir/config.status; then
4581 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4582 fi
4583 fi
4584
4585 # test whether we have cygpath
4586 if test -z "$CYGPATH_W"; then
4587 if (cygpath --version) >/dev/null 2>/dev/null; then
4588 CYGPATH_W='cygpath -w'
4589 else
4590 CYGPATH_W=echo
4591 fi
4592 fi
4593
4594
4595 # Define the identity of the package.
4596 PACKAGE='libX11'
4597 VERSION='1.8.4'
4598
4599
4600 cat >>confdefs.h <<_ACEOF
4601 #define PACKAGE "$PACKAGE"
4602 _ACEOF
4603
4604
4605 cat >>confdefs.h <<_ACEOF
4606 #define VERSION "$VERSION"
4607 _ACEOF
4608
4609 # Some tools Automake needs.
4610
4611 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4612
4613
4614 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4615
4616
4617 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4618
4619
4620 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4621
4622
4623 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4624
4625 # For better backward compatibility. To be removed once Automake 1.9.x
4626 # dies out for good. For more background, see:
4627 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4628 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4629 mkdir_p='$(MKDIR_P)'
4630
4631 # We need awk for the "check" target (and possibly the TAP driver). The
4632 # system "awk" is bad on some platforms.
4633 # Always define AMTAR for backward compatibility. Yes, it's still used
4634 # in the wild :-( We should find a proper way to deprecate it ...
4635 AMTAR='$${TAR-tar}'
4636
4637
4638 # We'll loop over all known methods to create a tar archive until one works.
4639 _am_tools='gnutar pax cpio none'
4640
4641 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4642
4643
4644
4645
4646
4647 depcc="$CC" am_compiler_list=
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4650 $as_echo_n "checking dependency style of $depcc... " >&6; }
4651 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4655 # We make a subdir and do the tests there. Otherwise we can end up
4656 # making bogus files that we don't know about and never remove. For
4657 # instance it was reported that on HP-UX the gcc test will end up
4658 # making a dummy file named 'D' -- because '-MD' means "put the output
4659 # in D".
4660 rm -rf conftest.dir
4661 mkdir conftest.dir
4662 # Copy depcomp to subdir because otherwise we won't find it if we're
4663 # using a relative directory.
4664 cp "$am_depcomp" conftest.dir
4665 cd conftest.dir
4666 # We will build objects and dependencies in a subdirectory because
4667 # it helps to detect inapplicable dependency modes. For instance
4668 # both Tru64's cc and ICC support -MD to output dependencies as a
4669 # side effect of compilation, but ICC will put the dependencies in
4670 # the current directory while Tru64 will put them in the object
4671 # directory.
4672 mkdir sub
4673
4674 am_cv_CC_dependencies_compiler_type=none
4675 if test "$am_compiler_list" = ""; then
4676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4677 fi
4678 am__universal=false
4679 case " $depcc " in #(
4680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4681 esac
4682
4683 for depmode in $am_compiler_list; do
4684 # Setup a source with many dependencies, because some compilers
4685 # like to wrap large dependency lists on column 80 (with \), and
4686 # we should not choose a depcomp mode which is confused by this.
4687 #
4688 # We need to recreate these files for each test, as the compiler may
4689 # overwrite some of them when testing with obscure command lines.
4690 # This happens at least with the AIX C compiler.
4691 : > sub/conftest.c
4692 for i in 1 2 3 4 5 6; do
4693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4695 # Solaris 10 /bin/sh.
4696 echo '/* dummy */' > sub/conftst$i.h
4697 done
4698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4699
4700 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4701 # mode. It turns out that the SunPro C++ compiler does not properly
4702 # handle '-M -o', and we need to detect this. Also, some Intel
4703 # versions had trouble with output in subdirs.
4704 am__obj=sub/conftest.${OBJEXT-o}
4705 am__minus_obj="-o $am__obj"
4706 case $depmode in
4707 gcc)
4708 # This depmode causes a compiler race in universal mode.
4709 test "$am__universal" = false || continue
4710 ;;
4711 nosideeffect)
4712 # After this tag, mechanisms are not by side-effect, so they'll
4713 # only be used when explicitly requested.
4714 if test "x$enable_dependency_tracking" = xyes; then
4715 continue
4716 else
4717 break
4718 fi
4719 ;;
4720 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4721 # This compiler won't grok '-c -o', but also, the minuso test has
4722 # not run yet. These depmodes are late enough in the game, and
4723 # so weak that their functioning should not be impacted.
4724 am__obj=conftest.${OBJEXT-o}
4725 am__minus_obj=
4726 ;;
4727 none) break ;;
4728 esac
4729 if depmode=$depmode \
4730 source=sub/conftest.c object=$am__obj \
4731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4733 >/dev/null 2>conftest.err &&
4734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4738 # icc doesn't choke on unknown options, it will just issue warnings
4739 # or remarks (even with -Werror). So we grep stderr for any message
4740 # that says an option was ignored or not supported.
4741 # When given -MP, icc 7.0 and 7.1 complain thusly:
4742 # icc: Command line warning: ignoring option '-M'; no argument required
4743 # The diagnosis changed in icc 8.0:
4744 # icc: Command line remark: option '-MP' not supported
4745 if (grep 'ignoring option' conftest.err ||
4746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4747 am_cv_CC_dependencies_compiler_type=$depmode
4748 break
4749 fi
4750 fi
4751 done
4752
4753 cd ..
4754 rm -rf conftest.dir
4755 else
4756 am_cv_CC_dependencies_compiler_type=none
4757 fi
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4761 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4762 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4763
4764 if
4765 test "x$enable_dependency_tracking" != xno \
4766 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4767 am__fastdepCC_TRUE=
4768 am__fastdepCC_FALSE='#'
4769 else
4770 am__fastdepCC_TRUE='#'
4771 am__fastdepCC_FALSE=
4772 fi
4773
4774
4775
4776 # POSIX will say in a future version that running "rm -f" with no argument
4777 # is OK; and we want to be able to make that assumption in our Makefile
4778 # recipes. So use an aggressive probe to check that the usage we want is
4779 # actually supported "in the wild" to an acceptable degree.
4780 # See automake bug#10828.
4781 # To make any issue more visible, cause the running configure to be aborted
4782 # by default if the 'rm' program in use doesn't match our expectations; the
4783 # user can still override this though.
4784 if rm -f && rm -fr && rm -rf; then : OK; else
4785 cat >&2 <<'END'
4786 Oops!
4787
4788 Your 'rm' program seems unable to run without file operands specified
4789 on the command line, even when the '-f' option is present. This is contrary
4790 to the behaviour of most rm programs out there, and not conforming with
4791 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4792
4793 Please tell bug-automake@gnu.org about your system, including the value
4794 of your $PATH and any error possibly output before this message. This
4795 can help us improve future automake versions.
4796
4797 END
4798 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4799 echo 'Configuration will proceed anyway, since you have set the' >&2
4800 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4801 echo >&2
4802 else
4803 cat >&2 <<'END'
4804 Aborting the configuration process, to ensure you take notice of the issue.
4805
4806 You can download and install GNU coreutils to get an 'rm' implementation
4807 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4808
4809 If you want to complete the configuration process using your problematic
4810 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4811 to "yes", and re-run configure.
4812
4813 END
4814 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4815 fi
4816 fi
4817
4818
4819 # Initialize libtool
4820 case `pwd` in
4821 *\ * | *\ *)
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4823 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4824 esac
4825
4826
4827
4828 macro_version='2.4.6'
4829 macro_revision='2.4.6'
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 ltmain=$ac_aux_dir/ltmain.sh
4844
4845 # Backslashify metacharacters that are still active within
4846 # double-quoted strings.
4847 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4848
4849 # Same as above, but do not quote variable references.
4850 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4851
4852 # Sed substitution to delay expansion of an escaped shell variable in a
4853 # double_quote_subst'ed string.
4854 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4855
4856 # Sed substitution to delay expansion of an escaped single quote.
4857 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4858
4859 # Sed substitution to avoid accidental globbing in evaled expressions
4860 no_glob_subst='s/\*/\\\*/g'
4861
4862 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4864 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4865
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4867 $as_echo_n "checking how to print strings... " >&6; }
4868 # Test print first, because it will be a builtin if present.
4869 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4870 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4871 ECHO='print -r --'
4872 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4873 ECHO='printf %s\n'
4874 else
4875 # Use this function as a fallback that always works.
4876 func_fallback_echo ()
4877 {
4878 eval 'cat <<_LTECHO_EOF
4879 $1
4880 _LTECHO_EOF'
4881 }
4882 ECHO='func_fallback_echo'
4883 fi
4884
4885 # func_echo_all arg...
4886 # Invoke $ECHO with all args, space-separated.
4887 func_echo_all ()
4888 {
4889 $ECHO ""
4890 }
4891
4892 case $ECHO in
4893 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4894 $as_echo "printf" >&6; } ;;
4895 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4896 $as_echo "print -r" >&6; } ;;
4897 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4898 $as_echo "cat" >&6; } ;;
4899 esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4916 if ${ac_cv_path_SED+:} false; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4920 for ac_i in 1 2 3 4 5 6 7; do
4921 ac_script="$ac_script$as_nl$ac_script"
4922 done
4923 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4924 { ac_script=; unset ac_script;}
4925 if test -z "$SED"; then
4926 ac_path_SED_found=false
4927 # Loop through the user's path and test for each of PROGNAME-LIST
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_prog in sed gsed; do
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4936 as_fn_executable_p "$ac_path_SED" || continue
4937 # Check for GNU ac_path_SED and select it if it is found.
4938 # Check for GNU $ac_path_SED
4939 case `"$ac_path_SED" --version 2>&1` in
4940 *GNU*)
4941 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4942 *)
4943 ac_count=0
4944 $as_echo_n 0123456789 >"conftest.in"
4945 while :
4946 do
4947 cat "conftest.in" "conftest.in" >"conftest.tmp"
4948 mv "conftest.tmp" "conftest.in"
4949 cp "conftest.in" "conftest.nl"
4950 $as_echo '' >> "conftest.nl"
4951 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953 as_fn_arith $ac_count + 1 && ac_count=$as_val
4954 if test $ac_count -gt ${ac_path_SED_max-0}; then
4955 # Best one so far, save it but keep looking for a better one
4956 ac_cv_path_SED="$ac_path_SED"
4957 ac_path_SED_max=$ac_count
4958 fi
4959 # 10*(2^10) chars as input seems more than enough
4960 test $ac_count -gt 10 && break
4961 done
4962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963 esac
4964
4965 $ac_path_SED_found && break 3
4966 done
4967 done
4968 done
4969 IFS=$as_save_IFS
4970 if test -z "$ac_cv_path_SED"; then
4971 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4972 fi
4973 else
4974 ac_cv_path_SED=$SED
4975 fi
4976
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4979 $as_echo "$ac_cv_path_SED" >&6; }
4980 SED="$ac_cv_path_SED"
4981 rm -f conftest.sed
4982
4983 test -z "$SED" && SED=sed
4984 Xsed="$SED -e 1s/^X//"
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4997 $as_echo_n "checking for fgrep... " >&6; }
4998 if ${ac_cv_path_FGREP+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5002 then ac_cv_path_FGREP="$GREP -F"
5003 else
5004 if test -z "$FGREP"; then
5005 ac_path_FGREP_found=false
5006 # Loop through the user's path and test for each of PROGNAME-LIST
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5009 do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_prog in fgrep; do
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5015 as_fn_executable_p "$ac_path_FGREP" || continue
5016 # Check for GNU ac_path_FGREP and select it if it is found.
5017 # Check for GNU $ac_path_FGREP
5018 case `"$ac_path_FGREP" --version 2>&1` in
5019 *GNU*)
5020 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5021 *)
5022 ac_count=0
5023 $as_echo_n 0123456789 >"conftest.in"
5024 while :
5025 do
5026 cat "conftest.in" "conftest.in" >"conftest.tmp"
5027 mv "conftest.tmp" "conftest.in"
5028 cp "conftest.in" "conftest.nl"
5029 $as_echo 'FGREP' >> "conftest.nl"
5030 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5032 as_fn_arith $ac_count + 1 && ac_count=$as_val
5033 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5034 # Best one so far, save it but keep looking for a better one
5035 ac_cv_path_FGREP="$ac_path_FGREP"
5036 ac_path_FGREP_max=$ac_count
5037 fi
5038 # 10*(2^10) chars as input seems more than enough
5039 test $ac_count -gt 10 && break
5040 done
5041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042 esac
5043
5044 $ac_path_FGREP_found && break 3
5045 done
5046 done
5047 done
5048 IFS=$as_save_IFS
5049 if test -z "$ac_cv_path_FGREP"; then
5050 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5051 fi
5052 else
5053 ac_cv_path_FGREP=$FGREP
5054 fi
5055
5056 fi
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5059 $as_echo "$ac_cv_path_FGREP" >&6; }
5060 FGREP="$ac_cv_path_FGREP"
5061
5062
5063 test -z "$GREP" && GREP=grep
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 # Check whether --with-gnu-ld was given.
5084 if test "${with_gnu_ld+set}" = set; then :
5085 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5086 else
5087 with_gnu_ld=no
5088 fi
5089
5090 ac_prog=ld
5091 if test yes = "$GCC"; then
5092 # Check if gcc -print-prog-name=ld gives a path.
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5094 $as_echo_n "checking for ld used by $CC... " >&6; }
5095 case $host in
5096 *-*-mingw*)
5097 # gcc leaves a trailing carriage return, which upsets mingw
5098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5099 *)
5100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5101 esac
5102 case $ac_prog in
5103 # Accept absolute paths.
5104 [\\/]* | ?:[\\/]*)
5105 re_direlt='/[^/][^/]*/\.\./'
5106 # Canonicalize the pathname of ld
5107 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5108 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5109 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5110 done
5111 test -z "$LD" && LD=$ac_prog
5112 ;;
5113 "")
5114 # If it fails, then pretend we aren't using GCC.
5115 ac_prog=ld
5116 ;;
5117 *)
5118 # If it is relative, then search for the first ld in PATH.
5119 with_gnu_ld=unknown
5120 ;;
5121 esac
5122 elif test yes = "$with_gnu_ld"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5124 $as_echo_n "checking for GNU ld... " >&6; }
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5127 $as_echo_n "checking for non-GNU ld... " >&6; }
5128 fi
5129 if ${lt_cv_path_LD+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -z "$LD"; then
5133 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5134 for ac_dir in $PATH; do
5135 IFS=$lt_save_ifs
5136 test -z "$ac_dir" && ac_dir=.
5137 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5138 lt_cv_path_LD=$ac_dir/$ac_prog
5139 # Check to see if the program is GNU ld. I'd rather use --version,
5140 # but apparently some variants of GNU ld only accept -v.
5141 # Break only if it was the GNU/non-GNU ld that we prefer.
5142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5143 *GNU* | *'with BFD'*)
5144 test no != "$with_gnu_ld" && break
5145 ;;
5146 *)
5147 test yes != "$with_gnu_ld" && break
5148 ;;
5149 esac
5150 fi
5151 done
5152 IFS=$lt_save_ifs
5153 else
5154 lt_cv_path_LD=$LD # Let the user override the test with a path.
5155 fi
5156 fi
5157
5158 LD=$lt_cv_path_LD
5159 if test -n "$LD"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5161 $as_echo "$LD" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5165 fi
5166 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5169 if ${lt_cv_prog_gnu_ld+:} false; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5173 case `$LD -v 2>&1 </dev/null` in
5174 *GNU* | *'with BFD'*)
5175 lt_cv_prog_gnu_ld=yes
5176 ;;
5177 *)
5178 lt_cv_prog_gnu_ld=no
5179 ;;
5180 esac
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5183 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5184 with_gnu_ld=$lt_cv_prog_gnu_ld
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5195 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5196 if ${lt_cv_path_NM+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if test -n "$NM"; then
5200 # Let the user override the test.
5201 lt_cv_path_NM=$NM
5202 else
5203 lt_nm_to_check=${ac_tool_prefix}nm
5204 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5205 lt_nm_to_check="$lt_nm_to_check nm"
5206 fi
5207 for lt_tmp_nm in $lt_nm_to_check; do
5208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5209 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5210 IFS=$lt_save_ifs
5211 test -z "$ac_dir" && ac_dir=.
5212 tmp_nm=$ac_dir/$lt_tmp_nm
5213 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5214 # Check to see if the nm accepts a BSD-compat flag.
5215 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5216 # nm: unknown option "B" ignored
5217 # Tru64's nm complains that /dev/null is an invalid object file
5218 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5219 case $build_os in
5220 mingw*) lt_bad_file=conftest.nm/nofile ;;
5221 *) lt_bad_file=/dev/null ;;
5222 esac
5223 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5224 *$lt_bad_file* | *'Invalid file or object type'*)
5225 lt_cv_path_NM="$tmp_nm -B"
5226 break 2
5227 ;;
5228 *)
5229 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5230 */dev/null*)
5231 lt_cv_path_NM="$tmp_nm -p"
5232 break 2
5233 ;;
5234 *)
5235 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5236 continue # so that we can try to find one that supports BSD flags
5237 ;;
5238 esac
5239 ;;
5240 esac
5241 fi
5242 done
5243 IFS=$lt_save_ifs
5244 done
5245 : ${lt_cv_path_NM=no}
5246 fi
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5249 $as_echo "$lt_cv_path_NM" >&6; }
5250 if test no != "$lt_cv_path_NM"; then
5251 NM=$lt_cv_path_NM
5252 else
5253 # Didn't find any BSD compatible name lister, look for dumpbin.
5254 if test -n "$DUMPBIN"; then :
5255 # Let the user override the test.
5256 else
5257 if test -n "$ac_tool_prefix"; then
5258 for ac_prog in dumpbin "link -dump"
5259 do
5260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_prog_DUMPBIN+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$DUMPBIN"; then
5268 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 DUMPBIN=$ac_cv_prog_DUMPBIN
5288 if test -n "$DUMPBIN"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5290 $as_echo "$DUMPBIN" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297 test -n "$DUMPBIN" && break
5298 done
5299 fi
5300 if test -z "$DUMPBIN"; then
5301 ac_ct_DUMPBIN=$DUMPBIN
5302 for ac_prog in dumpbin "link -dump"
5303 do
5304 # Extract the first word of "$ac_prog", so it can be a program name with args.
5305 set dummy $ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 if test -n "$ac_ct_DUMPBIN"; then
5312 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325 done
5326 done
5327 IFS=$as_save_IFS
5328
5329 fi
5330 fi
5331 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5332 if test -n "$ac_ct_DUMPBIN"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5334 $as_echo "$ac_ct_DUMPBIN" >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340
5341 test -n "$ac_ct_DUMPBIN" && break
5342 done
5343
5344 if test "x$ac_ct_DUMPBIN" = x; then
5345 DUMPBIN=":"
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 DUMPBIN=$ac_ct_DUMPBIN
5354 fi
5355 fi
5356
5357 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5358 *COFF*)
5359 DUMPBIN="$DUMPBIN -symbols -headers"
5360 ;;
5361 *)
5362 DUMPBIN=:
5363 ;;
5364 esac
5365 fi
5366
5367 if test : != "$DUMPBIN"; then
5368 NM=$DUMPBIN
5369 fi
5370 fi
5371 test -z "$NM" && NM=nm
5372
5373
5374
5375
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5379 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5380 if ${lt_cv_nm_interface+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 lt_cv_nm_interface="BSD nm"
5384 echo "int some_variable = 0;" > conftest.$ac_ext
5385 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5386 (eval "$ac_compile" 2>conftest.err)
5387 cat conftest.err >&5
5388 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5389 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5390 cat conftest.err >&5
5391 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5392 cat conftest.out >&5
5393 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5394 lt_cv_nm_interface="MS dumpbin"
5395 fi
5396 rm -f conftest*
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5399 $as_echo "$lt_cv_nm_interface" >&6; }
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5402 $as_echo_n "checking whether ln -s works... " >&6; }
5403 LN_S=$as_ln_s
5404 if test "$LN_S" = "ln -s"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5406 $as_echo "yes" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5409 $as_echo "no, using $LN_S" >&6; }
5410 fi
5411
5412 # find the maximum length of command line arguments
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5414 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5415 if ${lt_cv_sys_max_cmd_len+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 i=0
5419 teststring=ABCD
5420
5421 case $build_os in
5422 msdosdjgpp*)
5423 # On DJGPP, this test can blow up pretty badly due to problems in libc
5424 # (any single argument exceeding 2000 bytes causes a buffer overrun
5425 # during glob expansion). Even if it were fixed, the result of this
5426 # check would be larger than it should be.
5427 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5428 ;;
5429
5430 gnu*)
5431 # Under GNU Hurd, this test is not required because there is
5432 # no limit to the length of command line arguments.
5433 # Libtool will interpret -1 as no limit whatsoever
5434 lt_cv_sys_max_cmd_len=-1;
5435 ;;
5436
5437 cygwin* | mingw* | cegcc*)
5438 # On Win9x/ME, this test blows up -- it succeeds, but takes
5439 # about 5 minutes as the teststring grows exponentially.
5440 # Worse, since 9x/ME are not pre-emptively multitasking,
5441 # you end up with a "frozen" computer, even though with patience
5442 # the test eventually succeeds (with a max line length of 256k).
5443 # Instead, let's just punt: use the minimum linelength reported by
5444 # all of the supported platforms: 8192 (on NT/2K/XP).
5445 lt_cv_sys_max_cmd_len=8192;
5446 ;;
5447
5448 mint*)
5449 # On MiNT this can take a long time and run out of memory.
5450 lt_cv_sys_max_cmd_len=8192;
5451 ;;
5452
5453 amigaos*)
5454 # On AmigaOS with pdksh, this test takes hours, literally.
5455 # So we just punt and use a minimum line length of 8192.
5456 lt_cv_sys_max_cmd_len=8192;
5457 ;;
5458
5459 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5460 # This has been around since 386BSD, at least. Likely further.
5461 if test -x /sbin/sysctl; then
5462 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5463 elif test -x /usr/sbin/sysctl; then
5464 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5465 else
5466 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5467 fi
5468 # And add a safety zone
5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5471 ;;
5472
5473 interix*)
5474 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5475 lt_cv_sys_max_cmd_len=196608
5476 ;;
5477
5478 os2*)
5479 # The test takes a long time on OS/2.
5480 lt_cv_sys_max_cmd_len=8192
5481 ;;
5482
5483 osf*)
5484 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5485 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5486 # nice to cause kernel panics so lets avoid the loop below.
5487 # First set a reasonable default.
5488 lt_cv_sys_max_cmd_len=16384
5489 #
5490 if test -x /sbin/sysconfig; then
5491 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5492 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5493 esac
5494 fi
5495 ;;
5496 sco3.2v5*)
5497 lt_cv_sys_max_cmd_len=102400
5498 ;;
5499 sysv5* | sco5v6* | sysv4.2uw2*)
5500 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5501 if test -n "$kargmax"; then
5502 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5503 else
5504 lt_cv_sys_max_cmd_len=32768
5505 fi
5506 ;;
5507 *)
5508 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5509 if test -n "$lt_cv_sys_max_cmd_len" && \
5510 test undefined != "$lt_cv_sys_max_cmd_len"; then
5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5513 else
5514 # Make teststring a little bigger before we do anything with it.
5515 # a 1K string should be a reasonable start.
5516 for i in 1 2 3 4 5 6 7 8; do
5517 teststring=$teststring$teststring
5518 done
5519 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5520 # If test is not a shell built-in, we'll probably end up computing a
5521 # maximum length that is only half of the actual maximum length, but
5522 # we can't tell.
5523 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5524 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5525 test 17 != "$i" # 1/2 MB should be enough
5526 do
5527 i=`expr $i + 1`
5528 teststring=$teststring$teststring
5529 done
5530 # Only check the string length outside the loop.
5531 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5532 teststring=
5533 # Add a significant safety factor because C++ compilers can tack on
5534 # massive amounts of additional arguments before passing them to the
5535 # linker. It appears as though 1/2 is a usable value.
5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5537 fi
5538 ;;
5539 esac
5540
5541 fi
5542
5543 if test -n "$lt_cv_sys_max_cmd_len"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5545 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5548 $as_echo "none" >&6; }
5549 fi
5550 max_cmd_len=$lt_cv_sys_max_cmd_len
5551
5552
5553
5554
5555
5556
5557 : ${CP="cp -f"}
5558 : ${MV="mv -f"}
5559 : ${RM="rm -f"}
5560
5561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5562 lt_unset=unset
5563 else
5564 lt_unset=false
5565 fi
5566
5567
5568
5569
5570
5571 # test EBCDIC or ASCII
5572 case `echo X|tr X '\101'` in
5573 A) # ASCII based system
5574 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5575 lt_SP2NL='tr \040 \012'
5576 lt_NL2SP='tr \015\012 \040\040'
5577 ;;
5578 *) # EBCDIC based system
5579 lt_SP2NL='tr \100 \n'
5580 lt_NL2SP='tr \r\n \100\100'
5581 ;;
5582 esac
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5593 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5594 if ${lt_cv_to_host_file_cmd+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 case $host in
5598 *-*-mingw* )
5599 case $build in
5600 *-*-mingw* ) # actually msys
5601 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5602 ;;
5603 *-*-cygwin* )
5604 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5605 ;;
5606 * ) # otherwise, assume *nix
5607 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5608 ;;
5609 esac
5610 ;;
5611 *-*-cygwin* )
5612 case $build in
5613 *-*-mingw* ) # actually msys
5614 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5615 ;;
5616 *-*-cygwin* )
5617 lt_cv_to_host_file_cmd=func_convert_file_noop
5618 ;;
5619 * ) # otherwise, assume *nix
5620 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5621 ;;
5622 esac
5623 ;;
5624 * ) # unhandled hosts (and "normal" native builds)
5625 lt_cv_to_host_file_cmd=func_convert_file_noop
5626 ;;
5627 esac
5628
5629 fi
5630
5631 to_host_file_cmd=$lt_cv_to_host_file_cmd
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5633 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5634
5635
5636
5637
5638
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5640 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5641 if ${lt_cv_to_tool_file_cmd+:} false; then :
5642 $as_echo_n "(cached) " >&6
5643 else
5644 #assume ordinary cross tools, or native build.
5645 lt_cv_to_tool_file_cmd=func_convert_file_noop
5646 case $host in
5647 *-*-mingw* )
5648 case $build in
5649 *-*-mingw* ) # actually msys
5650 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5651 ;;
5652 esac
5653 ;;
5654 esac
5655
5656 fi
5657
5658 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5660 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5661
5662
5663
5664
5665
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5667 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5668 if ${lt_cv_ld_reload_flag+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 lt_cv_ld_reload_flag='-r'
5672 fi
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5674 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5675 reload_flag=$lt_cv_ld_reload_flag
5676 case $reload_flag in
5677 "" | " "*) ;;
5678 *) reload_flag=" $reload_flag" ;;
5679 esac
5680 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5681 case $host_os in
5682 cygwin* | mingw* | pw32* | cegcc*)
5683 if test yes != "$GCC"; then
5684 reload_cmds=false
5685 fi
5686 ;;
5687 darwin*)
5688 if test yes = "$GCC"; then
5689 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5690 else
5691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5692 fi
5693 ;;
5694 esac
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if ${ac_cv_prog_OBJDUMP+:} false; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$OBJDUMP"; then
5713 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5717 do
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5722 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5725 fi
5726 done
5727 done
5728 IFS=$as_save_IFS
5729
5730 fi
5731 fi
5732 OBJDUMP=$ac_cv_prog_OBJDUMP
5733 if test -n "$OBJDUMP"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5735 $as_echo "$OBJDUMP" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740
5741
5742 fi
5743 if test -z "$ac_cv_prog_OBJDUMP"; then
5744 ac_ct_OBJDUMP=$OBJDUMP
5745 # Extract the first word of "objdump", so it can be a program name with args.
5746 set dummy objdump; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$ac_ct_OBJDUMP"; then
5753 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5757 do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766 done
5767 done
5768 IFS=$as_save_IFS
5769
5770 fi
5771 fi
5772 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5773 if test -n "$ac_ct_OBJDUMP"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5775 $as_echo "$ac_ct_OBJDUMP" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5779 fi
5780
5781 if test "x$ac_ct_OBJDUMP" = x; then
5782 OBJDUMP="false"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790 OBJDUMP=$ac_ct_OBJDUMP
5791 fi
5792 else
5793 OBJDUMP="$ac_cv_prog_OBJDUMP"
5794 fi
5795
5796 test -z "$OBJDUMP" && OBJDUMP=objdump
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5807 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5808 if ${lt_cv_deplibs_check_method+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 lt_cv_file_magic_cmd='$MAGIC_CMD'
5812 lt_cv_file_magic_test_file=
5813 lt_cv_deplibs_check_method='unknown'
5814 # Need to set the preceding variable on all platforms that support
5815 # interlibrary dependencies.
5816 # 'none' -- dependencies not supported.
5817 # 'unknown' -- same as none, but documents that we really don't know.
5818 # 'pass_all' -- all dependencies passed with no checks.
5819 # 'test_compile' -- check by making test program.
5820 # 'file_magic [[regex]]' -- check by looking for files in library path
5821 # that responds to the $file_magic_cmd with a given extended regex.
5822 # If you have 'file' or equivalent on your system and you're not sure
5823 # whether 'pass_all' will *always* work, you probably want this one.
5824
5825 case $host_os in
5826 aix[4-9]*)
5827 lt_cv_deplibs_check_method=pass_all
5828 ;;
5829
5830 beos*)
5831 lt_cv_deplibs_check_method=pass_all
5832 ;;
5833
5834 bsdi[45]*)
5835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5836 lt_cv_file_magic_cmd='/usr/bin/file -L'
5837 lt_cv_file_magic_test_file=/shlib/libc.so
5838 ;;
5839
5840 cygwin*)
5841 # func_win32_libid is a shell function defined in ltmain.sh
5842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5843 lt_cv_file_magic_cmd='func_win32_libid'
5844 ;;
5845
5846 mingw* | pw32*)
5847 # Base MSYS/MinGW do not provide the 'file' command needed by
5848 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5849 # unless we find 'file', for example because we are cross-compiling.
5850 if ( file / ) >/dev/null 2>&1; then
5851 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5852 lt_cv_file_magic_cmd='func_win32_libid'
5853 else
5854 # Keep this pattern in sync with the one in func_win32_libid.
5855 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5856 lt_cv_file_magic_cmd='$OBJDUMP -f'
5857 fi
5858 ;;
5859
5860 cegcc*)
5861 # use the weaker test based on 'objdump'. See mingw*.
5862 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5863 lt_cv_file_magic_cmd='$OBJDUMP -f'
5864 ;;
5865
5866 darwin* | rhapsody*)
5867 lt_cv_deplibs_check_method=pass_all
5868 ;;
5869
5870 freebsd* | dragonfly*)
5871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5872 case $host_cpu in
5873 i*86 )
5874 # Not sure whether the presence of OpenBSD here was a mistake.
5875 # Let's accept both of them until this is cleared up.
5876 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5877 lt_cv_file_magic_cmd=/usr/bin/file
5878 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5879 ;;
5880 esac
5881 else
5882 lt_cv_deplibs_check_method=pass_all
5883 fi
5884 ;;
5885
5886 haiku*)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889
5890 hpux10.20* | hpux11*)
5891 lt_cv_file_magic_cmd=/usr/bin/file
5892 case $host_cpu in
5893 ia64*)
5894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5895 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5896 ;;
5897 hppa*64*)
5898 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]'
5899 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5900 ;;
5901 *)
5902 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5904 ;;
5905 esac
5906 ;;
5907
5908 interix[3-9]*)
5909 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5911 ;;
5912
5913 irix5* | irix6* | nonstopux*)
5914 case $LD in
5915 *-32|*"-32 ") libmagic=32-bit;;
5916 *-n32|*"-n32 ") libmagic=N32;;
5917 *-64|*"-64 ") libmagic=64-bit;;
5918 *) libmagic=never-match;;
5919 esac
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922
5923 # This must be glibc/ELF.
5924 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928 netbsd*)
5929 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5931 else
5932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5933 fi
5934 ;;
5935
5936 newos6*)
5937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5938 lt_cv_file_magic_cmd=/usr/bin/file
5939 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5940 ;;
5941
5942 *nto* | *qnx*)
5943 lt_cv_deplibs_check_method=pass_all
5944 ;;
5945
5946 openbsd* | bitrig*)
5947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5949 else
5950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5951 fi
5952 ;;
5953
5954 osf3* | osf4* | osf5*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 rdos*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 solaris*)
5963 lt_cv_deplibs_check_method=pass_all
5964 ;;
5965
5966 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5967 lt_cv_deplibs_check_method=pass_all
5968 ;;
5969
5970 sysv4 | sysv4.3*)
5971 case $host_vendor in
5972 motorola)
5973 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]'
5974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5975 ;;
5976 ncr)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
5979 sequent)
5980 lt_cv_file_magic_cmd='/bin/file'
5981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5982 ;;
5983 sni)
5984 lt_cv_file_magic_cmd='/bin/file'
5985 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5986 lt_cv_file_magic_test_file=/lib/libc.so
5987 ;;
5988 siemens)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991 pc)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994 esac
5995 ;;
5996
5997 tpf*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000 os2*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003 esac
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6007 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6008
6009 file_magic_glob=
6010 want_nocaseglob=no
6011 if test "$build" = "$host"; then
6012 case $host_os in
6013 mingw* | pw32*)
6014 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6015 want_nocaseglob=yes
6016 else
6017 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6018 fi
6019 ;;
6020 esac
6021 fi
6022
6023 file_magic_cmd=$lt_cv_file_magic_cmd
6024 deplibs_check_method=$lt_cv_deplibs_check_method
6025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_DLLTOOL+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$DLLTOOL"; then
6057 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 DLLTOOL=$ac_cv_prog_DLLTOOL
6077 if test -n "$DLLTOOL"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6079 $as_echo "$DLLTOOL" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 fi
6087 if test -z "$ac_cv_prog_DLLTOOL"; then
6088 ac_ct_DLLTOOL=$DLLTOOL
6089 # Extract the first word of "dlltool", so it can be a program name with args.
6090 set dummy dlltool; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096 if test -n "$ac_ct_DLLTOOL"; then
6097 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6117 if test -n "$ac_ct_DLLTOOL"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6119 $as_echo "$ac_ct_DLLTOOL" >&6; }
6120 else
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125 if test "x$ac_ct_DLLTOOL" = x; then
6126 DLLTOOL="false"
6127 else
6128 case $cross_compiling:$ac_tool_warned in
6129 yes:)
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6133 esac
6134 DLLTOOL=$ac_ct_DLLTOOL
6135 fi
6136 else
6137 DLLTOOL="$ac_cv_prog_DLLTOOL"
6138 fi
6139
6140 test -z "$DLLTOOL" && DLLTOOL=dlltool
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6152 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6153 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 lt_cv_sharedlib_from_linklib_cmd='unknown'
6157
6158 case $host_os in
6159 cygwin* | mingw* | pw32* | cegcc*)
6160 # two different shell functions defined in ltmain.sh;
6161 # decide which one to use based on capabilities of $DLLTOOL
6162 case `$DLLTOOL --help 2>&1` in
6163 *--identify-strict*)
6164 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6165 ;;
6166 *)
6167 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6168 ;;
6169 esac
6170 ;;
6171 *)
6172 # fallback: assume linklib IS sharedlib
6173 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6174 ;;
6175 esac
6176
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6179 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6180 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6181 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6182
6183
6184
6185
6186
6187
6188
6189 if test -n "$ac_tool_prefix"; then
6190 for ac_prog in ar
6191 do
6192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_AR+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$AR"; then
6200 ac_cv_prog_AR="$AR" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 AR=$ac_cv_prog_AR
6220 if test -n "$AR"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6222 $as_echo "$AR" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229 test -n "$AR" && break
6230 done
6231 fi
6232 if test -z "$AR"; then
6233 ac_ct_AR=$AR
6234 for ac_prog in ar
6235 do
6236 # Extract the first word of "$ac_prog", so it can be a program name with args.
6237 set dummy $ac_prog; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 if test -n "$ac_ct_AR"; then
6244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253 ac_cv_prog_ac_ct_AR="$ac_prog"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6264 if test -n "$ac_ct_AR"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6266 $as_echo "$ac_ct_AR" >&6; }
6267 else
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272
6273 test -n "$ac_ct_AR" && break
6274 done
6275
6276 if test "x$ac_ct_AR" = x; then
6277 AR="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285 AR=$ac_ct_AR
6286 fi
6287 fi
6288
6289 : ${AR=ar}
6290 : ${AR_FLAGS=cru}
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6303 $as_echo_n "checking for archiver @FILE support... " >&6; }
6304 if ${lt_cv_ar_at_file+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 lt_cv_ar_at_file=no
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310
6311 int
6312 main ()
6313 {
6314
6315 ;
6316 return 0;
6317 }
6318 _ACEOF
6319 if ac_fn_c_try_compile "$LINENO"; then :
6320 echo conftest.$ac_objext > conftest.lst
6321 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6323 (eval $lt_ar_try) 2>&5
6324 ac_status=$?
6325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326 test $ac_status = 0; }
6327 if test 0 -eq "$ac_status"; then
6328 # Ensure the archiver fails upon bogus file names.
6329 rm -f conftest.$ac_objext libconftest.a
6330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6331 (eval $lt_ar_try) 2>&5
6332 ac_status=$?
6333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6334 test $ac_status = 0; }
6335 if test 0 -ne "$ac_status"; then
6336 lt_cv_ar_at_file=@
6337 fi
6338 fi
6339 rm -f conftest.* libconftest.a
6340
6341 fi
6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6346 $as_echo "$lt_cv_ar_at_file" >&6; }
6347
6348 if test no = "$lt_cv_ar_at_file"; then
6349 archiver_list_spec=
6350 else
6351 archiver_list_spec=$lt_cv_ar_at_file
6352 fi
6353
6354
6355
6356
6357
6358
6359
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}strip; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_STRIP+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$STRIP"; then
6369 ac_cv_prog_STRIP="$STRIP" # 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 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 STRIP=$ac_cv_prog_STRIP
6389 if test -n "$STRIP"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6391 $as_echo "$STRIP" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397
6398 fi
6399 if test -z "$ac_cv_prog_STRIP"; then
6400 ac_ct_STRIP=$STRIP
6401 # Extract the first word of "strip", so it can be a program name with args.
6402 set dummy strip; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 if test -n "$ac_ct_STRIP"; then
6409 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_ac_ct_STRIP="strip"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6421 fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426 fi
6427 fi
6428 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6429 if test -n "$ac_ct_STRIP"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6431 $as_echo "$ac_ct_STRIP" >&6; }
6432 else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 fi
6436
6437 if test "x$ac_ct_STRIP" = x; then
6438 STRIP=":"
6439 else
6440 case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446 STRIP=$ac_ct_STRIP
6447 fi
6448 else
6449 STRIP="$ac_cv_prog_STRIP"
6450 fi
6451
6452 test -z "$STRIP" && STRIP=:
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_RANLIB+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$RANLIB"; then
6468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 RANLIB=$ac_cv_prog_RANLIB
6488 if test -n "$RANLIB"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6490 $as_echo "$RANLIB" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_RANLIB"; then
6499 ac_ct_RANLIB=$RANLIB
6500 # Extract the first word of "ranlib", so it can be a program name with args.
6501 set dummy ranlib; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_RANLIB"; then
6508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_RANLIB="ranlib"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6528 if test -n "$ac_ct_RANLIB"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6530 $as_echo "$ac_ct_RANLIB" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536 if test "x$ac_ct_RANLIB" = x; then
6537 RANLIB=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545 RANLIB=$ac_ct_RANLIB
6546 fi
6547 else
6548 RANLIB="$ac_cv_prog_RANLIB"
6549 fi
6550
6551 test -z "$RANLIB" && RANLIB=:
6552
6553
6554
6555
6556
6557
6558 # Determine commands to create old-style static archives.
6559 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6560 old_postinstall_cmds='chmod 644 $oldlib'
6561 old_postuninstall_cmds=
6562
6563 if test -n "$RANLIB"; then
6564 case $host_os in
6565 bitrig* | openbsd*)
6566 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6567 ;;
6568 *)
6569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6570 ;;
6571 esac
6572 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6573 fi
6574
6575 case $host_os in
6576 darwin*)
6577 lock_old_archive_extraction=yes ;;
6578 *)
6579 lock_old_archive_extraction=no ;;
6580 esac
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620 # If no C compiler was specified, use CC.
6621 LTCC=${LTCC-"$CC"}
6622
6623 # If no C compiler flags were specified, use CFLAGS.
6624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6625
6626 # Allow CC to be a program name with arguments.
6627 compiler=$CC
6628
6629
6630 # Check for command to grab the raw symbol name followed by C symbol from nm.
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6632 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6633 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636
6637 # These are sane defaults that work on at least a few old systems.
6638 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6639
6640 # Character class describing NM global symbol codes.
6641 symcode='[BCDEGRST]'
6642
6643 # Regexp to match symbols that can be accessed directly from C.
6644 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6645
6646 # Define system-specific variables.
6647 case $host_os in
6648 aix*)
6649 symcode='[BCDT]'
6650 ;;
6651 cygwin* | mingw* | pw32* | cegcc*)
6652 symcode='[ABCDGISTW]'
6653 ;;
6654 hpux*)
6655 if test ia64 = "$host_cpu"; then
6656 symcode='[ABCDEGRST]'
6657 fi
6658 ;;
6659 irix* | nonstopux*)
6660 symcode='[BCDEGRST]'
6661 ;;
6662 osf*)
6663 symcode='[BCDEGQRST]'
6664 ;;
6665 solaris*)
6666 symcode='[BDRT]'
6667 ;;
6668 sco3.2v5*)
6669 symcode='[DT]'
6670 ;;
6671 sysv4.2uw2*)
6672 symcode='[DT]'
6673 ;;
6674 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6675 symcode='[ABDT]'
6676 ;;
6677 sysv4)
6678 symcode='[DFNSTU]'
6679 ;;
6680 esac
6681
6682 # If we're using GNU nm, then use its standard symbol codes.
6683 case `$NM -V 2>&1` in
6684 *GNU* | *'with BFD'*)
6685 symcode='[ABCDGIRSTW]' ;;
6686 esac
6687
6688 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6689 # Gets list of data symbols to import.
6690 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6691 # Adjust the below global symbol transforms to fixup imported variables.
6692 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6693 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6694 lt_c_name_lib_hook="\
6695 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6696 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6697 else
6698 # Disable hooks by default.
6699 lt_cv_sys_global_symbol_to_import=
6700 lt_cdecl_hook=
6701 lt_c_name_hook=
6702 lt_c_name_lib_hook=
6703 fi
6704
6705 # Transform an extracted symbol line into a proper C declaration.
6706 # Some systems (esp. on ia64) link data and code symbols differently,
6707 # so use this general approach.
6708 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6709 $lt_cdecl_hook\
6710 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6711 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6712
6713 # Transform an extracted symbol line into symbol name and symbol address
6714 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6715 $lt_c_name_hook\
6716 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6717 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6718
6719 # Transform an extracted symbol line into symbol name with lib prefix and
6720 # symbol address.
6721 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6722 $lt_c_name_lib_hook\
6723 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6724 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6725 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6726
6727 # Handle CRLF in mingw tool chain
6728 opt_cr=
6729 case $build_os in
6730 mingw*)
6731 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6732 ;;
6733 esac
6734
6735 # Try without a prefix underscore, then with it.
6736 for ac_symprfx in "" "_"; do
6737
6738 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6739 symxfrm="\\1 $ac_symprfx\\2 \\2"
6740
6741 # Write the raw and C identifiers.
6742 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6743 # Fake it for dumpbin and say T for any non-static function,
6744 # D for any global variable and I for any imported variable.
6745 # Also find C++ and __fastcall symbols from MSVC++,
6746 # which start with @ or ?.
6747 lt_cv_sys_global_symbol_pipe="$AWK '"\
6748 " {last_section=section; section=\$ 3};"\
6749 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6750 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6751 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6752 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6753 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6754 " \$ 0!~/External *\|/{next};"\
6755 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6756 " {if(hide[section]) next};"\
6757 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6758 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6759 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6760 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6761 " ' prfx=^$ac_symprfx"
6762 else
6763 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6764 fi
6765 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6766
6767 # Check to see that the pipe works correctly.
6768 pipe_works=no
6769
6770 rm -f conftest*
6771 cat > conftest.$ac_ext <<_LT_EOF
6772 #ifdef __cplusplus
6773 extern "C" {
6774 #endif
6775 char nm_test_var;
6776 void nm_test_func(void);
6777 void nm_test_func(void){}
6778 #ifdef __cplusplus
6779 }
6780 #endif
6781 int main(){nm_test_var='a';nm_test_func();return(0);}
6782 _LT_EOF
6783
6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6785 (eval $ac_compile) 2>&5
6786 ac_status=$?
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; }; then
6789 # Now try to grab the symbols.
6790 nlist=conftest.nm
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6792 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; } && test -s "$nlist"; then
6796 # Try sorting and uniquifying the output.
6797 if sort "$nlist" | uniq > "$nlist"T; then
6798 mv -f "$nlist"T "$nlist"
6799 else
6800 rm -f "$nlist"T
6801 fi
6802
6803 # Make sure that we snagged all the symbols we need.
6804 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6805 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6806 cat <<_LT_EOF > conftest.$ac_ext
6807 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6808 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6809 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6810 relocations are performed -- see ld's documentation on pseudo-relocs. */
6811 # define LT_DLSYM_CONST
6812 #elif defined __osf__
6813 /* This system does not cope well with relocations in const data. */
6814 # define LT_DLSYM_CONST
6815 #else
6816 # define LT_DLSYM_CONST const
6817 #endif
6818
6819 #ifdef __cplusplus
6820 extern "C" {
6821 #endif
6822
6823 _LT_EOF
6824 # Now generate the symbol file.
6825 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6826
6827 cat <<_LT_EOF >> conftest.$ac_ext
6828
6829 /* The mapping between symbol names and symbols. */
6830 LT_DLSYM_CONST struct {
6831 const char *name;
6832 void *address;
6833 }
6834 lt__PROGRAM__LTX_preloaded_symbols[] =
6835 {
6836 { "@PROGRAM@", (void *) 0 },
6837 _LT_EOF
6838 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6839 cat <<\_LT_EOF >> conftest.$ac_ext
6840 {0, (void *) 0}
6841 };
6842
6843 /* This works around a problem in FreeBSD linker */
6844 #ifdef FREEBSD_WORKAROUND
6845 static const void *lt_preloaded_setup() {
6846 return lt__PROGRAM__LTX_preloaded_symbols;
6847 }
6848 #endif
6849
6850 #ifdef __cplusplus
6851 }
6852 #endif
6853 _LT_EOF
6854 # Now try linking the two files.
6855 mv conftest.$ac_objext conftstm.$ac_objext
6856 lt_globsym_save_LIBS=$LIBS
6857 lt_globsym_save_CFLAGS=$CFLAGS
6858 LIBS=conftstm.$ac_objext
6859 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6861 (eval $ac_link) 2>&5
6862 ac_status=$?
6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6865 pipe_works=yes
6866 fi
6867 LIBS=$lt_globsym_save_LIBS
6868 CFLAGS=$lt_globsym_save_CFLAGS
6869 else
6870 echo "cannot find nm_test_func in $nlist" >&5
6871 fi
6872 else
6873 echo "cannot find nm_test_var in $nlist" >&5
6874 fi
6875 else
6876 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6877 fi
6878 else
6879 echo "$progname: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6881 fi
6882 rm -rf conftest* conftst*
6883
6884 # Do not use the global_symbol_pipe unless it works.
6885 if test yes = "$pipe_works"; then
6886 break
6887 else
6888 lt_cv_sys_global_symbol_pipe=
6889 fi
6890 done
6891
6892 fi
6893
6894 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6895 lt_cv_sys_global_symbol_to_cdecl=
6896 fi
6897 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6899 $as_echo "failed" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6902 $as_echo "ok" >&6; }
6903 fi
6904
6905 # Response file support.
6906 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6907 nm_file_list_spec='@'
6908 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6909 nm_file_list_spec='@'
6910 fi
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6949 $as_echo_n "checking for sysroot... " >&6; }
6950
6951 # Check whether --with-sysroot was given.
6952 if test "${with_sysroot+set}" = set; then :
6953 withval=$with_sysroot;
6954 else
6955 with_sysroot=no
6956 fi
6957
6958
6959 lt_sysroot=
6960 case $with_sysroot in #(
6961 yes)
6962 if test yes = "$GCC"; then
6963 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6964 fi
6965 ;; #(
6966 /*)
6967 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6968 ;; #(
6969 no|'')
6970 ;; #(
6971 *)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6973 $as_echo "$with_sysroot" >&6; }
6974 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6975 ;;
6976 esac
6977
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6979 $as_echo "${lt_sysroot:-no}" >&6; }
6980
6981
6982
6983
6984
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6986 $as_echo_n "checking for a working dd... " >&6; }
6987 if ${ac_cv_path_lt_DD+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 printf 0123456789abcdef0123456789abcdef >conftest.i
6991 cat conftest.i conftest.i >conftest2.i
6992 : ${lt_DD:=$DD}
6993 if test -z "$lt_DD"; then
6994 ac_path_lt_DD_found=false
6995 # Loop through the user's path and test for each of PROGNAME-LIST
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_prog in dd; do
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7004 as_fn_executable_p "$ac_path_lt_DD" || continue
7005 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7006 cmp -s conftest.i conftest.out \
7007 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7008 fi
7009 $ac_path_lt_DD_found && break 3
7010 done
7011 done
7012 done
7013 IFS=$as_save_IFS
7014 if test -z "$ac_cv_path_lt_DD"; then
7015 :
7016 fi
7017 else
7018 ac_cv_path_lt_DD=$lt_DD
7019 fi
7020
7021 rm -f conftest.i conftest2.i conftest.out
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7024 $as_echo "$ac_cv_path_lt_DD" >&6; }
7025
7026
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7028 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7029 if ${lt_cv_truncate_bin+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 printf 0123456789abcdef0123456789abcdef >conftest.i
7033 cat conftest.i conftest.i >conftest2.i
7034 lt_cv_truncate_bin=
7035 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7036 cmp -s conftest.i conftest.out \
7037 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7038 fi
7039 rm -f conftest.i conftest2.i conftest.out
7040 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7043 $as_echo "$lt_cv_truncate_bin" >&6; }
7044
7045
7046
7047
7048
7049
7050
7051 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7052 func_cc_basename ()
7053 {
7054 for cc_temp in $*""; do
7055 case $cc_temp in
7056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7058 \-*) ;;
7059 *) break;;
7060 esac
7061 done
7062 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7063 }
7064
7065 # Check whether --enable-libtool-lock was given.
7066 if test "${enable_libtool_lock+set}" = set; then :
7067 enableval=$enable_libtool_lock;
7068 fi
7069
7070 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7071
7072 # Some flags need to be propagated to the compiler or linker for good
7073 # libtool support.
7074 case $host in
7075 ia64-*-hpux*)
7076 # Find out what ABI is being produced by ac_compile, and set mode
7077 # options accordingly.
7078 echo 'int i;' > conftest.$ac_ext
7079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7080 (eval $ac_compile) 2>&5
7081 ac_status=$?
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }; then
7084 case `/usr/bin/file conftest.$ac_objext` in
7085 *ELF-32*)
7086 HPUX_IA64_MODE=32
7087 ;;
7088 *ELF-64*)
7089 HPUX_IA64_MODE=64
7090 ;;
7091 esac
7092 fi
7093 rm -rf conftest*
7094 ;;
7095 *-*-irix6*)
7096 # Find out what ABI is being produced by ac_compile, and set linker
7097 # options accordingly.
7098 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7100 (eval $ac_compile) 2>&5
7101 ac_status=$?
7102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7103 test $ac_status = 0; }; then
7104 if test yes = "$lt_cv_prog_gnu_ld"; then
7105 case `/usr/bin/file conftest.$ac_objext` in
7106 *32-bit*)
7107 LD="${LD-ld} -melf32bsmip"
7108 ;;
7109 *N32*)
7110 LD="${LD-ld} -melf32bmipn32"
7111 ;;
7112 *64-bit*)
7113 LD="${LD-ld} -melf64bmip"
7114 ;;
7115 esac
7116 else
7117 case `/usr/bin/file conftest.$ac_objext` in
7118 *32-bit*)
7119 LD="${LD-ld} -32"
7120 ;;
7121 *N32*)
7122 LD="${LD-ld} -n32"
7123 ;;
7124 *64-bit*)
7125 LD="${LD-ld} -64"
7126 ;;
7127 esac
7128 fi
7129 fi
7130 rm -rf conftest*
7131 ;;
7132
7133 mips64*-*linux*)
7134 # Find out what ABI is being produced by ac_compile, and set linker
7135 # options accordingly.
7136 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7138 (eval $ac_compile) 2>&5
7139 ac_status=$?
7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7141 test $ac_status = 0; }; then
7142 emul=elf
7143 case `/usr/bin/file conftest.$ac_objext` in
7144 *32-bit*)
7145 emul="${emul}32"
7146 ;;
7147 *64-bit*)
7148 emul="${emul}64"
7149 ;;
7150 esac
7151 case `/usr/bin/file conftest.$ac_objext` in
7152 *MSB*)
7153 emul="${emul}btsmip"
7154 ;;
7155 *LSB*)
7156 emul="${emul}ltsmip"
7157 ;;
7158 esac
7159 case `/usr/bin/file conftest.$ac_objext` in
7160 *N32*)
7161 emul="${emul}n32"
7162 ;;
7163 esac
7164 LD="${LD-ld} -m $emul"
7165 fi
7166 rm -rf conftest*
7167 ;;
7168
7169 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7170 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7171 # Find out what ABI is being produced by ac_compile, and set linker
7172 # options accordingly. Note that the listed cases only cover the
7173 # situations where additional linker options are needed (such as when
7174 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7175 # vice versa); the common cases where no linker options are needed do
7176 # not appear in the list.
7177 echo 'int i;' > conftest.$ac_ext
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7179 (eval $ac_compile) 2>&5
7180 ac_status=$?
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; }; then
7183 case `/usr/bin/file conftest.o` in
7184 *32-bit*)
7185 case $host in
7186 x86_64-*kfreebsd*-gnu)
7187 LD="${LD-ld} -m elf_i386_fbsd"
7188 ;;
7189 x86_64-*linux*)
7190 case `/usr/bin/file conftest.o` in
7191 *x86-64*)
7192 LD="${LD-ld} -m elf32_x86_64"
7193 ;;
7194 *)
7195 LD="${LD-ld} -m elf_i386"
7196 ;;
7197 esac
7198 ;;
7199 powerpc64le-*linux*)
7200 LD="${LD-ld} -m elf32lppclinux"
7201 ;;
7202 powerpc64-*linux*)
7203 LD="${LD-ld} -m elf32ppclinux"
7204 ;;
7205 s390x-*linux*)
7206 LD="${LD-ld} -m elf_s390"
7207 ;;
7208 sparc64-*linux*)
7209 LD="${LD-ld} -m elf32_sparc"
7210 ;;
7211 esac
7212 ;;
7213 *64-bit*)
7214 case $host in
7215 x86_64-*kfreebsd*-gnu)
7216 LD="${LD-ld} -m elf_x86_64_fbsd"
7217 ;;
7218 x86_64-*linux*)
7219 LD="${LD-ld} -m elf_x86_64"
7220 ;;
7221 powerpcle-*linux*)
7222 LD="${LD-ld} -m elf64lppc"
7223 ;;
7224 powerpc-*linux*)
7225 LD="${LD-ld} -m elf64ppc"
7226 ;;
7227 s390*-*linux*|s390*-*tpf*)
7228 LD="${LD-ld} -m elf64_s390"
7229 ;;
7230 sparc*-*linux*)
7231 LD="${LD-ld} -m elf64_sparc"
7232 ;;
7233 esac
7234 ;;
7235 esac
7236 fi
7237 rm -rf conftest*
7238 ;;
7239
7240 *-*-sco3.2v5*)
7241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7242 SAVE_CFLAGS=$CFLAGS
7243 CFLAGS="$CFLAGS -belf"
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7245 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7246 if ${lt_cv_cc_needs_belf+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 ac_ext=c
7250 ac_cpp='$CPP $CPPFLAGS'
7251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7254
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257
7258 int
7259 main ()
7260 {
7261
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 if ac_fn_c_try_link "$LINENO"; then :
7267 lt_cv_cc_needs_belf=yes
7268 else
7269 lt_cv_cc_needs_belf=no
7270 fi
7271 rm -f core conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 ac_ext=c
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7281 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7282 if test yes != "$lt_cv_cc_needs_belf"; then
7283 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7284 CFLAGS=$SAVE_CFLAGS
7285 fi
7286 ;;
7287 *-*solaris*)
7288 # Find out what ABI is being produced by ac_compile, and set linker
7289 # options accordingly.
7290 echo 'int i;' > conftest.$ac_ext
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292 (eval $ac_compile) 2>&5
7293 ac_status=$?
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }; then
7296 case `/usr/bin/file conftest.o` in
7297 *64-bit*)
7298 case $lt_cv_prog_gnu_ld in
7299 yes*)
7300 case $host in
7301 i?86-*-solaris*|x86_64-*-solaris*)
7302 LD="${LD-ld} -m elf_x86_64"
7303 ;;
7304 sparc*-*-solaris*)
7305 LD="${LD-ld} -m elf64_sparc"
7306 ;;
7307 esac
7308 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7309 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7310 LD=${LD-ld}_sol2
7311 fi
7312 ;;
7313 *)
7314 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7315 LD="${LD-ld} -64"
7316 fi
7317 ;;
7318 esac
7319 ;;
7320 esac
7321 fi
7322 rm -rf conftest*
7323 ;;
7324 esac
7325
7326 need_locks=$enable_libtool_lock
7327
7328 if test -n "$ac_tool_prefix"; then
7329 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7330 set dummy ${ac_tool_prefix}mt; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 if test -n "$MANIFEST_TOOL"; then
7337 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354 fi
7355 fi
7356 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7357 if test -n "$MANIFEST_TOOL"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7359 $as_echo "$MANIFEST_TOOL" >&6; }
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365
7366 fi
7367 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7368 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7369 # Extract the first word of "mt", so it can be a program name with args.
7370 set dummy mt; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$ac_ct_MANIFEST_TOOL"; then
7377 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7397 if test -n "$ac_ct_MANIFEST_TOOL"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7399 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7406 MANIFEST_TOOL=":"
7407 else
7408 case $cross_compiling:$ac_tool_warned in
7409 yes:)
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7412 ac_tool_warned=yes ;;
7413 esac
7414 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7415 fi
7416 else
7417 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7418 fi
7419
7420 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7422 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7423 if ${lt_cv_path_mainfest_tool+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 lt_cv_path_mainfest_tool=no
7427 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7428 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7429 cat conftest.err >&5
7430 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7431 lt_cv_path_mainfest_tool=yes
7432 fi
7433 rm -f conftest*
7434 fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7436 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7437 if test yes != "$lt_cv_path_mainfest_tool"; then
7438 MANIFEST_TOOL=:
7439 fi
7440
7441
7442
7443
7444
7445
7446 case $host_os in
7447 rhapsody* | darwin*)
7448 if test -n "$ac_tool_prefix"; then
7449 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7450 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 if test -n "$DSYMUTIL"; then
7457 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7477 if test -n "$DSYMUTIL"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7479 $as_echo "$DSYMUTIL" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485
7486 fi
7487 if test -z "$ac_cv_prog_DSYMUTIL"; then
7488 ac_ct_DSYMUTIL=$DSYMUTIL
7489 # Extract the first word of "dsymutil", so it can be a program name with args.
7490 set dummy dsymutil; ac_word=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7494 $as_echo_n "(cached) " >&6
7495 else
7496 if test -n "$ac_ct_DSYMUTIL"; then
7497 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7498 else
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 for as_dir in $PATH
7501 do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510 done
7511 done
7512 IFS=$as_save_IFS
7513
7514 fi
7515 fi
7516 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7517 if test -n "$ac_ct_DSYMUTIL"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7519 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7520 else
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 fi
7524
7525 if test "x$ac_ct_DSYMUTIL" = x; then
7526 DSYMUTIL=":"
7527 else
7528 case $cross_compiling:$ac_tool_warned in
7529 yes:)
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532 ac_tool_warned=yes ;;
7533 esac
7534 DSYMUTIL=$ac_ct_DSYMUTIL
7535 fi
7536 else
7537 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7538 fi
7539
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_NMEDIT+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 if test -n "$NMEDIT"; then
7549 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 NMEDIT=$ac_cv_prog_NMEDIT
7569 if test -n "$NMEDIT"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7571 $as_echo "$NMEDIT" >&6; }
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578 fi
7579 if test -z "$ac_cv_prog_NMEDIT"; then
7580 ac_ct_NMEDIT=$NMEDIT
7581 # Extract the first word of "nmedit", so it can be a program name with args.
7582 set dummy nmedit; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 if test -n "$ac_ct_NMEDIT"; then
7589 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602 done
7603 done
7604 IFS=$as_save_IFS
7605
7606 fi
7607 fi
7608 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7609 if test -n "$ac_ct_NMEDIT"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7611 $as_echo "$ac_ct_NMEDIT" >&6; }
7612 else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617 if test "x$ac_ct_NMEDIT" = x; then
7618 NMEDIT=":"
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621 yes:)
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624 ac_tool_warned=yes ;;
7625 esac
7626 NMEDIT=$ac_ct_NMEDIT
7627 fi
7628 else
7629 NMEDIT="$ac_cv_prog_NMEDIT"
7630 fi
7631
7632 if test -n "$ac_tool_prefix"; then
7633 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7634 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_LIPO+:} false; then :
7638 $as_echo_n "(cached) " >&6
7639 else
7640 if test -n "$LIPO"; then
7641 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 LIPO=$ac_cv_prog_LIPO
7661 if test -n "$LIPO"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7663 $as_echo "$LIPO" >&6; }
7664 else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_LIPO"; then
7672 ac_ct_LIPO=$LIPO
7673 # Extract the first word of "lipo", so it can be a program name with args.
7674 set dummy lipo; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 if test -n "$ac_ct_LIPO"; then
7681 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7682 else
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684 for as_dir in $PATH
7685 do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_ac_ct_LIPO="lipo"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694 done
7695 done
7696 IFS=$as_save_IFS
7697
7698 fi
7699 fi
7700 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7701 if test -n "$ac_ct_LIPO"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7703 $as_echo "$ac_ct_LIPO" >&6; }
7704 else
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7707 fi
7708
7709 if test "x$ac_ct_LIPO" = x; then
7710 LIPO=":"
7711 else
7712 case $cross_compiling:$ac_tool_warned in
7713 yes:)
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716 ac_tool_warned=yes ;;
7717 esac
7718 LIPO=$ac_ct_LIPO
7719 fi
7720 else
7721 LIPO="$ac_cv_prog_LIPO"
7722 fi
7723
7724 if test -n "$ac_tool_prefix"; then
7725 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7726 set dummy ${ac_tool_prefix}otool; ac_word=$2
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 $as_echo_n "checking for $ac_word... " >&6; }
7729 if ${ac_cv_prog_OTOOL+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 if test -n "$OTOOL"; then
7733 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7734 else
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 for as_dir in $PATH
7737 do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746 done
7747 done
7748 IFS=$as_save_IFS
7749
7750 fi
7751 fi
7752 OTOOL=$ac_cv_prog_OTOOL
7753 if test -n "$OTOOL"; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7755 $as_echo "$OTOOL" >&6; }
7756 else
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758 $as_echo "no" >&6; }
7759 fi
7760
7761
7762 fi
7763 if test -z "$ac_cv_prog_OTOOL"; then
7764 ac_ct_OTOOL=$OTOOL
7765 # Extract the first word of "otool", so it can be a program name with args.
7766 set dummy otool; ac_word=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7772 if test -n "$ac_ct_OTOOL"; then
7773 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778 IFS=$as_save_IFS
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_ac_ct_OTOOL="otool"
7783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 break 2
7785 fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7793 if test -n "$ac_ct_OTOOL"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7795 $as_echo "$ac_ct_OTOOL" >&6; }
7796 else
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801 if test "x$ac_ct_OTOOL" = x; then
7802 OTOOL=":"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 OTOOL=$ac_ct_OTOOL
7811 fi
7812 else
7813 OTOOL="$ac_cv_prog_OTOOL"
7814 fi
7815
7816 if test -n "$ac_tool_prefix"; then
7817 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7818 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 $as_echo_n "checking for $ac_word... " >&6; }
7821 if ${ac_cv_prog_OTOOL64+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 if test -n "$OTOOL64"; then
7825 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7826 else
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 for as_dir in $PATH
7829 do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838 done
7839 done
7840 IFS=$as_save_IFS
7841
7842 fi
7843 fi
7844 OTOOL64=$ac_cv_prog_OTOOL64
7845 if test -n "$OTOOL64"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7847 $as_echo "$OTOOL64" >&6; }
7848 else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7851 fi
7852
7853
7854 fi
7855 if test -z "$ac_cv_prog_OTOOL64"; then
7856 ac_ct_OTOOL64=$OTOOL64
7857 # Extract the first word of "otool64", so it can be a program name with args.
7858 set dummy otool64; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test -n "$ac_ct_OTOOL64"; then
7865 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_ac_ct_OTOOL64="otool64"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7885 if test -n "$ac_ct_OTOOL64"; then
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7887 $as_echo "$ac_ct_OTOOL64" >&6; }
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893 if test "x$ac_ct_OTOOL64" = x; then
7894 OTOOL64=":"
7895 else
7896 case $cross_compiling:$ac_tool_warned in
7897 yes:)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900 ac_tool_warned=yes ;;
7901 esac
7902 OTOOL64=$ac_ct_OTOOL64
7903 fi
7904 else
7905 OTOOL64="$ac_cv_prog_OTOOL64"
7906 fi
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7935 $as_echo_n "checking for -single_module linker flag... " >&6; }
7936 if ${lt_cv_apple_cc_single_mod+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 lt_cv_apple_cc_single_mod=no
7940 if test -z "$LT_MULTI_MODULE"; then
7941 # By default we will add the -single_module flag. You can override
7942 # by either setting the environment variable LT_MULTI_MODULE
7943 # non-empty at configure time, or by adding -multi_module to the
7944 # link flags.
7945 rm -rf libconftest.dylib*
7946 echo "int foo(void){return 1;}" > conftest.c
7947 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7948 -dynamiclib -Wl,-single_module conftest.c" >&5
7949 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7950 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7951 _lt_result=$?
7952 # If there is a non-empty error log, and "single_module"
7953 # appears in it, assume the flag caused a linker warning
7954 if test -s conftest.err && $GREP single_module conftest.err; then
7955 cat conftest.err >&5
7956 # Otherwise, if the output was created with a 0 exit code from
7957 # the compiler, it worked.
7958 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7959 lt_cv_apple_cc_single_mod=yes
7960 else
7961 cat conftest.err >&5
7962 fi
7963 rm -rf libconftest.dylib*
7964 rm -f conftest.*
7965 fi
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7968 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7969
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7971 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7972 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7973 $as_echo_n "(cached) " >&6
7974 else
7975 lt_cv_ld_exported_symbols_list=no
7976 save_LDFLAGS=$LDFLAGS
7977 echo "_main" > conftest.sym
7978 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981
7982 int
7983 main ()
7984 {
7985
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 if ac_fn_c_try_link "$LINENO"; then :
7991 lt_cv_ld_exported_symbols_list=yes
7992 else
7993 lt_cv_ld_exported_symbols_list=no
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext \
7996 conftest$ac_exeext conftest.$ac_ext
7997 LDFLAGS=$save_LDFLAGS
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8001 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8002
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8004 $as_echo_n "checking for -force_load linker flag... " >&6; }
8005 if ${lt_cv_ld_force_load+:} false; then :
8006 $as_echo_n "(cached) " >&6
8007 else
8008 lt_cv_ld_force_load=no
8009 cat > conftest.c << _LT_EOF
8010 int forced_loaded() { return 2;}
8011 _LT_EOF
8012 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8013 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8014 echo "$AR cru libconftest.a conftest.o" >&5
8015 $AR cru libconftest.a conftest.o 2>&5
8016 echo "$RANLIB libconftest.a" >&5
8017 $RANLIB libconftest.a 2>&5
8018 cat > conftest.c << _LT_EOF
8019 int main() { return 0;}
8020 _LT_EOF
8021 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8022 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8023 _lt_result=$?
8024 if test -s conftest.err && $GREP force_load conftest.err; then
8025 cat conftest.err >&5
8026 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8027 lt_cv_ld_force_load=yes
8028 else
8029 cat conftest.err >&5
8030 fi
8031 rm -f conftest.err libconftest.a conftest conftest.c
8032 rm -rf conftest.dSYM
8033
8034 fi
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8036 $as_echo "$lt_cv_ld_force_load" >&6; }
8037 case $host_os in
8038 rhapsody* | darwin1.[012])
8039 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8040 darwin1.*)
8041 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8042 darwin*) # darwin 5.x on
8043 # if running on 10.5 or later, the deployment target defaults
8044 # to the OS version, if on x86, and 10.4, the deployment
8045 # target defaults to 10.4. Don't you love it?
8046 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8047 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8048 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8049 10.[012][,.]*)
8050 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8051 10.*)
8052 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8053 esac
8054 ;;
8055 esac
8056 if test yes = "$lt_cv_apple_cc_single_mod"; then
8057 _lt_dar_single_mod='$single_module'
8058 fi
8059 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8060 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8061 else
8062 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8063 fi
8064 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8065 _lt_dsymutil='~$DSYMUTIL $lib || :'
8066 else
8067 _lt_dsymutil=
8068 fi
8069 ;;
8070 esac
8071
8072 # func_munge_path_list VARIABLE PATH
8073 # -----------------------------------
8074 # VARIABLE is name of variable containing _space_ separated list of
8075 # directories to be munged by the contents of PATH, which is string
8076 # having a format:
8077 # "DIR[:DIR]:"
8078 # string "DIR[ DIR]" will be prepended to VARIABLE
8079 # ":DIR[:DIR]"
8080 # string "DIR[ DIR]" will be appended to VARIABLE
8081 # "DIRP[:DIRP]::[DIRA:]DIRA"
8082 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8083 # "DIRA[ DIRA]" will be appended to VARIABLE
8084 # "DIR[:DIR]"
8085 # VARIABLE will be replaced by "DIR[ DIR]"
8086 func_munge_path_list ()
8087 {
8088 case x$2 in
8089 x)
8090 ;;
8091 *:)
8092 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8093 ;;
8094 x:*)
8095 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8096 ;;
8097 *::*)
8098 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8099 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8100 ;;
8101 *)
8102 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8103 ;;
8104 esac
8105 }
8106
8107 for ac_header in dlfcn.h
8108 do :
8109 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8110 "
8111 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8112 cat >>confdefs.h <<_ACEOF
8113 #define HAVE_DLFCN_H 1
8114 _ACEOF
8115
8116 fi
8117
8118 done
8119
8120
8121
8122
8123
8124 # Set options
8125
8126
8127
8128 enable_dlopen=no
8129
8130
8131 enable_win32_dll=no
8132
8133
8134 # Check whether --enable-shared was given.
8135 if test "${enable_shared+set}" = set; then :
8136 enableval=$enable_shared; p=${PACKAGE-default}
8137 case $enableval in
8138 yes) enable_shared=yes ;;
8139 no) enable_shared=no ;;
8140 *)
8141 enable_shared=no
8142 # Look at the argument we got. We use all the common list separators.
8143 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8144 for pkg in $enableval; do
8145 IFS=$lt_save_ifs
8146 if test "X$pkg" = "X$p"; then
8147 enable_shared=yes
8148 fi
8149 done
8150 IFS=$lt_save_ifs
8151 ;;
8152 esac
8153 else
8154 enable_shared=yes
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 # Check whether --enable-static was given.
8166 if test "${enable_static+set}" = set; then :
8167 enableval=$enable_static; p=${PACKAGE-default}
8168 case $enableval in
8169 yes) enable_static=yes ;;
8170 no) enable_static=no ;;
8171 *)
8172 enable_static=no
8173 # Look at the argument we got. We use all the common list separators.
8174 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8175 for pkg in $enableval; do
8176 IFS=$lt_save_ifs
8177 if test "X$pkg" = "X$p"; then
8178 enable_static=yes
8179 fi
8180 done
8181 IFS=$lt_save_ifs
8182 ;;
8183 esac
8184 else
8185 enable_static=yes
8186 fi
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197 # Check whether --with-pic was given.
8198 if test "${with_pic+set}" = set; then :
8199 withval=$with_pic; lt_p=${PACKAGE-default}
8200 case $withval in
8201 yes|no) pic_mode=$withval ;;
8202 *)
8203 pic_mode=default
8204 # Look at the argument we got. We use all the common list separators.
8205 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8206 for lt_pkg in $withval; do
8207 IFS=$lt_save_ifs
8208 if test "X$lt_pkg" = "X$lt_p"; then
8209 pic_mode=yes
8210 fi
8211 done
8212 IFS=$lt_save_ifs
8213 ;;
8214 esac
8215 else
8216 pic_mode=default
8217 fi
8218
8219
8220
8221
8222
8223
8224
8225
8226 # Check whether --enable-fast-install was given.
8227 if test "${enable_fast_install+set}" = set; then :
8228 enableval=$enable_fast_install; p=${PACKAGE-default}
8229 case $enableval in
8230 yes) enable_fast_install=yes ;;
8231 no) enable_fast_install=no ;;
8232 *)
8233 enable_fast_install=no
8234 # Look at the argument we got. We use all the common list separators.
8235 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8236 for pkg in $enableval; do
8237 IFS=$lt_save_ifs
8238 if test "X$pkg" = "X$p"; then
8239 enable_fast_install=yes
8240 fi
8241 done
8242 IFS=$lt_save_ifs
8243 ;;
8244 esac
8245 else
8246 enable_fast_install=yes
8247 fi
8248
8249
8250
8251
8252
8253
8254
8255
8256 shared_archive_member_spec=
8257 case $host,$enable_shared in
8258 power*-*-aix[5-9]*,yes)
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8260 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8261
8262 # Check whether --with-aix-soname was given.
8263 if test "${with_aix_soname+set}" = set; then :
8264 withval=$with_aix_soname; case $withval in
8265 aix|svr4|both)
8266 ;;
8267 *)
8268 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8269 ;;
8270 esac
8271 lt_cv_with_aix_soname=$with_aix_soname
8272 else
8273 if ${lt_cv_with_aix_soname+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 lt_cv_with_aix_soname=aix
8277 fi
8278
8279 with_aix_soname=$lt_cv_with_aix_soname
8280 fi
8281
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8283 $as_echo "$with_aix_soname" >&6; }
8284 if test aix != "$with_aix_soname"; then
8285 # For the AIX way of multilib, we name the shared archive member
8286 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8287 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8288 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8289 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8290 if test 64 = "${OBJECT_MODE-32}"; then
8291 shared_archive_member_spec=shr_64
8292 else
8293 shared_archive_member_spec=shr
8294 fi
8295 fi
8296 ;;
8297 *)
8298 with_aix_soname=aix
8299 ;;
8300 esac
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311 # This can be used to rebuild libtool when needed
8312 LIBTOOL_DEPS=$ltmain
8313
8314 # Always use our own libtool.
8315 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346 test -z "$LN_S" && LN_S="ln -s"
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361 if test -n "${ZSH_VERSION+set}"; then
8362 setopt NO_GLOB_SUBST
8363 fi
8364
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8366 $as_echo_n "checking for objdir... " >&6; }
8367 if ${lt_cv_objdir+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 rm -f .libs 2>/dev/null
8371 mkdir .libs 2>/dev/null
8372 if test -d .libs; then
8373 lt_cv_objdir=.libs
8374 else
8375 # MS-DOS does not allow filenames that begin with a dot.
8376 lt_cv_objdir=_libs
8377 fi
8378 rmdir .libs 2>/dev/null
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8381 $as_echo "$lt_cv_objdir" >&6; }
8382 objdir=$lt_cv_objdir
8383
8384
8385
8386
8387
8388 cat >>confdefs.h <<_ACEOF
8389 #define LT_OBJDIR "$lt_cv_objdir/"
8390 _ACEOF
8391
8392
8393
8394
8395 case $host_os in
8396 aix3*)
8397 # AIX sometimes has problems with the GCC collect2 program. For some
8398 # reason, if we set the COLLECT_NAMES environment variable, the problems
8399 # vanish in a puff of smoke.
8400 if test set != "${COLLECT_NAMES+set}"; then
8401 COLLECT_NAMES=
8402 export COLLECT_NAMES
8403 fi
8404 ;;
8405 esac
8406
8407 # Global variables:
8408 ofile=libtool
8409 can_build_shared=yes
8410
8411 # All known linkers require a '.a' archive for static linking (except MSVC,
8412 # which needs '.lib').
8413 libext=a
8414
8415 with_gnu_ld=$lt_cv_prog_gnu_ld
8416
8417 old_CC=$CC
8418 old_CFLAGS=$CFLAGS
8419
8420 # Set sane defaults for various variables
8421 test -z "$CC" && CC=cc
8422 test -z "$LTCC" && LTCC=$CC
8423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8424 test -z "$LD" && LD=ld
8425 test -z "$ac_objext" && ac_objext=o
8426
8427 func_cc_basename $compiler
8428 cc_basename=$func_cc_basename_result
8429
8430
8431 # Only perform the check for file, if the check method requires it
8432 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8433 case $deplibs_check_method in
8434 file_magic*)
8435 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8437 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8438 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 case $MAGIC_CMD in
8442 [\\/*] | ?:[\\/]*)
8443 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8444 ;;
8445 *)
8446 lt_save_MAGIC_CMD=$MAGIC_CMD
8447 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8449 for ac_dir in $ac_dummy; do
8450 IFS=$lt_save_ifs
8451 test -z "$ac_dir" && ac_dir=.
8452 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8453 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8454 if test -n "$file_magic_test_file"; then
8455 case $deplibs_check_method in
8456 "file_magic "*)
8457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8460 $EGREP "$file_magic_regex" > /dev/null; then
8461 :
8462 else
8463 cat <<_LT_EOF 1>&2
8464
8465 *** Warning: the command libtool uses to detect shared libraries,
8466 *** $file_magic_cmd, produces output that libtool cannot recognize.
8467 *** The result is that libtool may fail to recognize shared libraries
8468 *** as such. This will affect the creation of libtool libraries that
8469 *** depend on shared libraries, but programs linked with such libtool
8470 *** libraries will work regardless of this problem. Nevertheless, you
8471 *** may want to report the problem to your system manager and/or to
8472 *** bug-libtool (at] gnu.org
8473
8474 _LT_EOF
8475 fi ;;
8476 esac
8477 fi
8478 break
8479 fi
8480 done
8481 IFS=$lt_save_ifs
8482 MAGIC_CMD=$lt_save_MAGIC_CMD
8483 ;;
8484 esac
8485 fi
8486
8487 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8488 if test -n "$MAGIC_CMD"; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8490 $as_echo "$MAGIC_CMD" >&6; }
8491 else
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496
8497
8498
8499
8500 if test -z "$lt_cv_path_MAGIC_CMD"; then
8501 if test -n "$ac_tool_prefix"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8503 $as_echo_n "checking for file... " >&6; }
8504 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 case $MAGIC_CMD in
8508 [\\/*] | ?:[\\/]*)
8509 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8510 ;;
8511 *)
8512 lt_save_MAGIC_CMD=$MAGIC_CMD
8513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515 for ac_dir in $ac_dummy; do
8516 IFS=$lt_save_ifs
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f "$ac_dir/file"; then
8519 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8520 if test -n "$file_magic_test_file"; then
8521 case $deplibs_check_method in
8522 "file_magic "*)
8523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526 $EGREP "$file_magic_regex" > /dev/null; then
8527 :
8528 else
8529 cat <<_LT_EOF 1>&2
8530
8531 *** Warning: the command libtool uses to detect shared libraries,
8532 *** $file_magic_cmd, produces output that libtool cannot recognize.
8533 *** The result is that libtool may fail to recognize shared libraries
8534 *** as such. This will affect the creation of libtool libraries that
8535 *** depend on shared libraries, but programs linked with such libtool
8536 *** libraries will work regardless of this problem. Nevertheless, you
8537 *** may want to report the problem to your system manager and/or to
8538 *** bug-libtool (at] gnu.org
8539
8540 _LT_EOF
8541 fi ;;
8542 esac
8543 fi
8544 break
8545 fi
8546 done
8547 IFS=$lt_save_ifs
8548 MAGIC_CMD=$lt_save_MAGIC_CMD
8549 ;;
8550 esac
8551 fi
8552
8553 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8554 if test -n "$MAGIC_CMD"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556 $as_echo "$MAGIC_CMD" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8560 fi
8561
8562
8563 else
8564 MAGIC_CMD=:
8565 fi
8566 fi
8567
8568 fi
8569 ;;
8570 esac
8571
8572 # Use C for the default configuration in the libtool script
8573
8574 lt_save_CC=$CC
8575 ac_ext=c
8576 ac_cpp='$CPP $CPPFLAGS'
8577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8580
8581
8582 # Source file extension for C test sources.
8583 ac_ext=c
8584
8585 # Object file extension for compiled C test sources.
8586 objext=o
8587 objext=$objext
8588
8589 # Code to be used in simple compile tests
8590 lt_simple_compile_test_code="int some_variable = 0;"
8591
8592 # Code to be used in simple link tests
8593 lt_simple_link_test_code='int main(){return(0);}'
8594
8595
8596
8597
8598
8599
8600
8601 # If no C compiler was specified, use CC.
8602 LTCC=${LTCC-"$CC"}
8603
8604 # If no C compiler flags were specified, use CFLAGS.
8605 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8606
8607 # Allow CC to be a program name with arguments.
8608 compiler=$CC
8609
8610 # Save the default compiler, since it gets overwritten when the other
8611 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8612 compiler_DEFAULT=$CC
8613
8614 # save warnings/boilerplate of simple test code
8615 ac_outfile=conftest.$ac_objext
8616 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8618 _lt_compiler_boilerplate=`cat conftest.err`
8619 $RM conftest*
8620
8621 ac_outfile=conftest.$ac_objext
8622 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8624 _lt_linker_boilerplate=`cat conftest.err`
8625 $RM -r conftest*
8626
8627
8628 ## CAVEAT EMPTOR:
8629 ## There is no encapsulation within the following macros, do not change
8630 ## the running order or otherwise move them around unless you know exactly
8631 ## what you are doing...
8632 if test -n "$compiler"; then
8633
8634 lt_prog_compiler_no_builtin_flag=
8635
8636 if test yes = "$GCC"; then
8637 case $cc_basename in
8638 nvcc*)
8639 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8640 *)
8641 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8642 esac
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8645 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8646 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 lt_cv_prog_compiler_rtti_exceptions=no
8650 ac_outfile=conftest.$ac_objext
8651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8652 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8653 # Insert the option either (1) after the last *FLAGS variable, or
8654 # (2) before a word containing "conftest.", or (3) at the end.
8655 # Note that $ac_compile itself does not contain backslashes and begins
8656 # with a dollar sign (not a hyphen), so the echo should work correctly.
8657 # The option is referenced via a variable to avoid confusing sed.
8658 lt_compile=`echo "$ac_compile" | $SED \
8659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8661 -e 's:$: $lt_compiler_flag:'`
8662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663 (eval "$lt_compile" 2>conftest.err)
8664 ac_status=$?
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 if (exit $ac_status) && test -s "$ac_outfile"; then
8668 # The compiler can only warn and ignore the option if not recognized
8669 # So say no if there are warnings other than the usual output.
8670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8673 lt_cv_prog_compiler_rtti_exceptions=yes
8674 fi
8675 fi
8676 $RM conftest*
8677
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8680 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8681
8682 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8683 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8684 else
8685 :
8686 fi
8687
8688 fi
8689
8690
8691
8692
8693
8694
8695 lt_prog_compiler_wl=
8696 lt_prog_compiler_pic=
8697 lt_prog_compiler_static=
8698
8699
8700 if test yes = "$GCC"; then
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_static='-static'
8703
8704 case $host_os in
8705 aix*)
8706 # All AIX code is PIC.
8707 if test ia64 = "$host_cpu"; then
8708 # AIX 5 now supports IA64 processor
8709 lt_prog_compiler_static='-Bstatic'
8710 fi
8711 lt_prog_compiler_pic='-fPIC'
8712 ;;
8713
8714 amigaos*)
8715 case $host_cpu in
8716 powerpc)
8717 # see comment about AmigaOS4 .so support
8718 lt_prog_compiler_pic='-fPIC'
8719 ;;
8720 m68k)
8721 # FIXME: we need at least 68020 code to build shared libraries, but
8722 # adding the '-m68020' flag to GCC prevents building anything better,
8723 # like '-m68040'.
8724 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8725 ;;
8726 esac
8727 ;;
8728
8729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8730 # PIC is the default for these OSes.
8731 ;;
8732
8733 mingw* | cygwin* | pw32* | os2* | cegcc*)
8734 # This hack is so that the source file can tell whether it is being
8735 # built for inclusion in a dll (and should export symbols for example).
8736 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8737 # (--disable-auto-import) libraries
8738 lt_prog_compiler_pic='-DDLL_EXPORT'
8739 case $host_os in
8740 os2*)
8741 lt_prog_compiler_static='$wl-static'
8742 ;;
8743 esac
8744 ;;
8745
8746 darwin* | rhapsody*)
8747 # PIC is the default on this platform
8748 # Common symbols not allowed in MH_DYLIB files
8749 lt_prog_compiler_pic='-fno-common'
8750 ;;
8751
8752 haiku*)
8753 # PIC is the default for Haiku.
8754 # The "-static" flag exists, but is broken.
8755 lt_prog_compiler_static=
8756 ;;
8757
8758 hpux*)
8759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8761 # sets the default TLS model and affects inlining.
8762 case $host_cpu in
8763 hppa*64*)
8764 # +Z the default
8765 ;;
8766 *)
8767 lt_prog_compiler_pic='-fPIC'
8768 ;;
8769 esac
8770 ;;
8771
8772 interix[3-9]*)
8773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8774 # Instead, we relocate shared libraries at runtime.
8775 ;;
8776
8777 msdosdjgpp*)
8778 # Just because we use GCC doesn't mean we suddenly get shared libraries
8779 # on systems that don't support them.
8780 lt_prog_compiler_can_build_shared=no
8781 enable_shared=no
8782 ;;
8783
8784 *nto* | *qnx*)
8785 # QNX uses GNU C++, but need to define -shared option too, otherwise
8786 # it will coredump.
8787 lt_prog_compiler_pic='-fPIC -shared'
8788 ;;
8789
8790 sysv4*MP*)
8791 if test -d /usr/nec; then
8792 lt_prog_compiler_pic=-Kconform_pic
8793 fi
8794 ;;
8795
8796 *)
8797 lt_prog_compiler_pic='-fPIC'
8798 ;;
8799 esac
8800
8801 case $cc_basename in
8802 nvcc*) # Cuda Compiler Driver 2.2
8803 lt_prog_compiler_wl='-Xlinker '
8804 if test -n "$lt_prog_compiler_pic"; then
8805 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8806 fi
8807 ;;
8808 esac
8809 else
8810 # PORTME Check for flag to pass linker flags through the system compiler.
8811 case $host_os in
8812 aix*)
8813 lt_prog_compiler_wl='-Wl,'
8814 if test ia64 = "$host_cpu"; then
8815 # AIX 5 now supports IA64 processor
8816 lt_prog_compiler_static='-Bstatic'
8817 else
8818 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8819 fi
8820 ;;
8821
8822 darwin* | rhapsody*)
8823 # PIC is the default on this platform
8824 # Common symbols not allowed in MH_DYLIB files
8825 lt_prog_compiler_pic='-fno-common'
8826 case $cc_basename in
8827 nagfor*)
8828 # NAG Fortran compiler
8829 lt_prog_compiler_wl='-Wl,-Wl,,'
8830 lt_prog_compiler_pic='-PIC'
8831 lt_prog_compiler_static='-Bstatic'
8832 ;;
8833 esac
8834 ;;
8835
8836 mingw* | cygwin* | pw32* | os2* | cegcc*)
8837 # This hack is so that the source file can tell whether it is being
8838 # built for inclusion in a dll (and should export symbols for example).
8839 lt_prog_compiler_pic='-DDLL_EXPORT'
8840 case $host_os in
8841 os2*)
8842 lt_prog_compiler_static='$wl-static'
8843 ;;
8844 esac
8845 ;;
8846
8847 hpux9* | hpux10* | hpux11*)
8848 lt_prog_compiler_wl='-Wl,'
8849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8850 # not for PA HP-UX.
8851 case $host_cpu in
8852 hppa*64*|ia64*)
8853 # +Z the default
8854 ;;
8855 *)
8856 lt_prog_compiler_pic='+Z'
8857 ;;
8858 esac
8859 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8860 lt_prog_compiler_static='$wl-a ${wl}archive'
8861 ;;
8862
8863 irix5* | irix6* | nonstopux*)
8864 lt_prog_compiler_wl='-Wl,'
8865 # PIC (with -KPIC) is the default.
8866 lt_prog_compiler_static='-non_shared'
8867 ;;
8868
8869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8870 case $cc_basename in
8871 # old Intel for x86_64, which still supported -KPIC.
8872 ecc*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-static'
8876 ;;
8877 # icc used to be incompatible with GCC.
8878 # ICC 10 doesn't accept -KPIC any more.
8879 icc* | ifort*)
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='-fPIC'
8882 lt_prog_compiler_static='-static'
8883 ;;
8884 # Lahey Fortran 8.1.
8885 lf95*)
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='--shared'
8888 lt_prog_compiler_static='--static'
8889 ;;
8890 nagfor*)
8891 # NAG Fortran compiler
8892 lt_prog_compiler_wl='-Wl,-Wl,,'
8893 lt_prog_compiler_pic='-PIC'
8894 lt_prog_compiler_static='-Bstatic'
8895 ;;
8896 tcc*)
8897 # Fabrice Bellard et al's Tiny C Compiler
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-fPIC'
8900 lt_prog_compiler_static='-static'
8901 ;;
8902 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8903 # Portland Group compilers (*not* the Pentium gcc compiler,
8904 # which looks to be a dead project)
8905 lt_prog_compiler_wl='-Wl,'
8906 lt_prog_compiler_pic='-fpic'
8907 lt_prog_compiler_static='-Bstatic'
8908 ;;
8909 ccc*)
8910 lt_prog_compiler_wl='-Wl,'
8911 # All Alpha code is PIC.
8912 lt_prog_compiler_static='-non_shared'
8913 ;;
8914 xl* | bgxl* | bgf* | mpixl*)
8915 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-qpic'
8918 lt_prog_compiler_static='-qstaticlink'
8919 ;;
8920 *)
8921 case `$CC -V 2>&1 | sed 5q` in
8922 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8923 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8924 lt_prog_compiler_pic='-KPIC'
8925 lt_prog_compiler_static='-Bstatic'
8926 lt_prog_compiler_wl=''
8927 ;;
8928 *Sun\ F* | *Sun*Fortran*)
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 lt_prog_compiler_wl='-Qoption ld '
8932 ;;
8933 *Sun\ C*)
8934 # Sun C 5.9
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_wl='-Wl,'
8938 ;;
8939 *Intel*\ [CF]*Compiler*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-fPIC'
8942 lt_prog_compiler_static='-static'
8943 ;;
8944 *Portland\ Group*)
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_pic='-fpic'
8947 lt_prog_compiler_static='-Bstatic'
8948 ;;
8949 esac
8950 ;;
8951 esac
8952 ;;
8953
8954 newsos6)
8955 lt_prog_compiler_pic='-KPIC'
8956 lt_prog_compiler_static='-Bstatic'
8957 ;;
8958
8959 *nto* | *qnx*)
8960 # QNX uses GNU C++, but need to define -shared option too, otherwise
8961 # it will coredump.
8962 lt_prog_compiler_pic='-fPIC -shared'
8963 ;;
8964
8965 osf3* | osf4* | osf5*)
8966 lt_prog_compiler_wl='-Wl,'
8967 # All OSF/1 code is PIC.
8968 lt_prog_compiler_static='-non_shared'
8969 ;;
8970
8971 rdos*)
8972 lt_prog_compiler_static='-non_shared'
8973 ;;
8974
8975 solaris*)
8976 lt_prog_compiler_pic='-KPIC'
8977 lt_prog_compiler_static='-Bstatic'
8978 case $cc_basename in
8979 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8980 lt_prog_compiler_wl='-Qoption ld ';;
8981 *)
8982 lt_prog_compiler_wl='-Wl,';;
8983 esac
8984 ;;
8985
8986 sunos4*)
8987 lt_prog_compiler_wl='-Qoption ld '
8988 lt_prog_compiler_pic='-PIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 ;;
8991
8992 sysv4 | sysv4.2uw2* | sysv4.3*)
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_pic='-KPIC'
8995 lt_prog_compiler_static='-Bstatic'
8996 ;;
8997
8998 sysv4*MP*)
8999 if test -d /usr/nec; then
9000 lt_prog_compiler_pic='-Kconform_pic'
9001 lt_prog_compiler_static='-Bstatic'
9002 fi
9003 ;;
9004
9005 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_pic='-KPIC'
9008 lt_prog_compiler_static='-Bstatic'
9009 ;;
9010
9011 unicos*)
9012 lt_prog_compiler_wl='-Wl,'
9013 lt_prog_compiler_can_build_shared=no
9014 ;;
9015
9016 uts4*)
9017 lt_prog_compiler_pic='-pic'
9018 lt_prog_compiler_static='-Bstatic'
9019 ;;
9020
9021 *)
9022 lt_prog_compiler_can_build_shared=no
9023 ;;
9024 esac
9025 fi
9026
9027 case $host_os in
9028 # For platforms that do not support PIC, -DPIC is meaningless:
9029 *djgpp*)
9030 lt_prog_compiler_pic=
9031 ;;
9032 *)
9033 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9034 ;;
9035 esac
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9039 if ${lt_cv_prog_compiler_pic+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9043 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9045 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9046 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9047
9048 #
9049 # Check to make sure the PIC flag actually works.
9050 #
9051 if test -n "$lt_prog_compiler_pic"; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9054 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 lt_cv_prog_compiler_pic_works=no
9058 ac_outfile=conftest.$ac_objext
9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9061 # Insert the option either (1) after the last *FLAGS variable, or
9062 # (2) before a word containing "conftest.", or (3) at the end.
9063 # Note that $ac_compile itself does not contain backslashes and begins
9064 # with a dollar sign (not a hyphen), so the echo should work correctly.
9065 # The option is referenced via a variable to avoid confusing sed.
9066 lt_compile=`echo "$ac_compile" | $SED \
9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069 -e 's:$: $lt_compiler_flag:'`
9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071 (eval "$lt_compile" 2>conftest.err)
9072 ac_status=$?
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 if (exit $ac_status) && test -s "$ac_outfile"; then
9076 # The compiler can only warn and ignore the option if not recognized
9077 # So say no if there are warnings other than the usual output.
9078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9081 lt_cv_prog_compiler_pic_works=yes
9082 fi
9083 fi
9084 $RM conftest*
9085
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9089
9090 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9091 case $lt_prog_compiler_pic in
9092 "" | " "*) ;;
9093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9094 esac
9095 else
9096 lt_prog_compiler_pic=
9097 lt_prog_compiler_can_build_shared=no
9098 fi
9099
9100 fi
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112 #
9113 # Check to make sure the static flag actually works.
9114 #
9115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9117 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9118 if ${lt_cv_prog_compiler_static_works+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler_static_works=no
9122 save_LDFLAGS=$LDFLAGS
9123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9126 # The linker can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 if test -s conftest.err; then
9129 # Append any errors to the config.log.
9130 cat conftest.err 1>&5
9131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133 if diff conftest.exp conftest.er2 >/dev/null; then
9134 lt_cv_prog_compiler_static_works=yes
9135 fi
9136 else
9137 lt_cv_prog_compiler_static_works=yes
9138 fi
9139 fi
9140 $RM -r conftest*
9141 LDFLAGS=$save_LDFLAGS
9142
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9145 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9146
9147 if test yes = "$lt_cv_prog_compiler_static_works"; then
9148 :
9149 else
9150 lt_prog_compiler_static=
9151 fi
9152
9153
9154
9155
9156
9157
9158
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161 if ${lt_cv_prog_compiler_c_o+:} false; then :
9162 $as_echo_n "(cached) " >&6
9163 else
9164 lt_cv_prog_compiler_c_o=no
9165 $RM -r conftest 2>/dev/null
9166 mkdir conftest
9167 cd conftest
9168 mkdir out
9169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9170
9171 lt_compiler_flag="-o out/conftest2.$ac_objext"
9172 # Insert the option either (1) after the last *FLAGS variable, or
9173 # (2) before a word containing "conftest.", or (3) at the end.
9174 # Note that $ac_compile itself does not contain backslashes and begins
9175 # with a dollar sign (not a hyphen), so the echo should work correctly.
9176 lt_compile=`echo "$ac_compile" | $SED \
9177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179 -e 's:$: $lt_compiler_flag:'`
9180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9181 (eval "$lt_compile" 2>out/conftest.err)
9182 ac_status=$?
9183 cat out/conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 then
9187 # The compiler can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
9189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192 lt_cv_prog_compiler_c_o=yes
9193 fi
9194 fi
9195 chmod u+w . 2>&5
9196 $RM conftest*
9197 # SGI C++ compiler will create directory out/ii_files/ for
9198 # template instantiation
9199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200 $RM out/* && rmdir out
9201 cd ..
9202 $RM -r conftest
9203 $RM conftest*
9204
9205 fi
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9208
9209
9210
9211
9212
9213
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9216 if ${lt_cv_prog_compiler_c_o+:} false; then :
9217 $as_echo_n "(cached) " >&6
9218 else
9219 lt_cv_prog_compiler_c_o=no
9220 $RM -r conftest 2>/dev/null
9221 mkdir conftest
9222 cd conftest
9223 mkdir out
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225
9226 lt_compiler_flag="-o out/conftest2.$ac_objext"
9227 # Insert the option either (1) after the last *FLAGS variable, or
9228 # (2) before a word containing "conftest.", or (3) at the end.
9229 # Note that $ac_compile itself does not contain backslashes and begins
9230 # with a dollar sign (not a hyphen), so the echo should work correctly.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9236 (eval "$lt_compile" 2>out/conftest.err)
9237 ac_status=$?
9238 cat out/conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9241 then
9242 # The compiler can only warn and ignore the option if not recognized
9243 # So say no if there are warnings
9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler_c_o=yes
9248 fi
9249 fi
9250 chmod u+w . 2>&5
9251 $RM conftest*
9252 # SGI C++ compiler will create directory out/ii_files/ for
9253 # template instantiation
9254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9255 $RM out/* && rmdir out
9256 cd ..
9257 $RM -r conftest
9258 $RM conftest*
9259
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9263
9264
9265
9266
9267 hard_links=nottested
9268 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9269 # do not overwrite the value of need_locks provided by the user
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9271 $as_echo_n "checking if we can lock with hard links... " >&6; }
9272 hard_links=yes
9273 $RM conftest*
9274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9275 touch conftest.a
9276 ln conftest.a conftest.b 2>&5 || hard_links=no
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9279 $as_echo "$hard_links" >&6; }
9280 if test no = "$hard_links"; then
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9282 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9283 need_locks=warn
9284 fi
9285 else
9286 need_locks=no
9287 fi
9288
9289
9290
9291
9292
9293
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9296
9297 runpath_var=
9298 allow_undefined_flag=
9299 always_export_symbols=no
9300 archive_cmds=
9301 archive_expsym_cmds=
9302 compiler_needs_object=no
9303 enable_shared_with_static_runtimes=no
9304 export_dynamic_flag_spec=
9305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9306 hardcode_automatic=no
9307 hardcode_direct=no
9308 hardcode_direct_absolute=no
9309 hardcode_libdir_flag_spec=
9310 hardcode_libdir_separator=
9311 hardcode_minus_L=no
9312 hardcode_shlibpath_var=unsupported
9313 inherit_rpath=no
9314 link_all_deplibs=unknown
9315 module_cmds=
9316 module_expsym_cmds=
9317 old_archive_from_new_cmds=
9318 old_archive_from_expsyms_cmds=
9319 thread_safe_flag_spec=
9320 whole_archive_flag_spec=
9321 # include_expsyms should be a list of space-separated symbols to be *always*
9322 # included in the symbol list
9323 include_expsyms=
9324 # exclude_expsyms can be an extended regexp of symbols to exclude
9325 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9326 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9327 # as well as any symbol that contains 'd'.
9328 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9329 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9330 # platforms (ab)use it in PIC code, but their linkers get confused if
9331 # the symbol is explicitly referenced. Since portable code cannot
9332 # rely on this symbol name, it's probably fine to never include it in
9333 # preloaded symbol tables.
9334 # Exclude shared library initialization/finalization symbols.
9335 extract_expsyms_cmds=
9336
9337 case $host_os in
9338 cygwin* | mingw* | pw32* | cegcc*)
9339 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9340 # When not using gcc, we currently assume that we are using
9341 # Microsoft Visual C++.
9342 if test yes != "$GCC"; then
9343 with_gnu_ld=no
9344 fi
9345 ;;
9346 interix*)
9347 # we just hope/assume this is gcc and not c89 (= MSVC++)
9348 with_gnu_ld=yes
9349 ;;
9350 openbsd* | bitrig*)
9351 with_gnu_ld=no
9352 ;;
9353 esac
9354
9355 ld_shlibs=yes
9356
9357 # On some targets, GNU ld is compatible enough with the native linker
9358 # that we're better off using the native interface for both.
9359 lt_use_gnu_ld_interface=no
9360 if test yes = "$with_gnu_ld"; then
9361 case $host_os in
9362 aix*)
9363 # The AIX port of GNU ld has always aspired to compatibility
9364 # with the native linker. However, as the warning in the GNU ld
9365 # block says, versions before 2.19.5* couldn't really create working
9366 # shared libraries, regardless of the interface used.
9367 case `$LD -v 2>&1` in
9368 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9369 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9370 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9371 *)
9372 lt_use_gnu_ld_interface=yes
9373 ;;
9374 esac
9375 ;;
9376 *)
9377 lt_use_gnu_ld_interface=yes
9378 ;;
9379 esac
9380 fi
9381
9382 if test yes = "$lt_use_gnu_ld_interface"; then
9383 # If archive_cmds runs LD, not CC, wlarc should be empty
9384 wlarc='$wl'
9385
9386 # Set some defaults for GNU ld with shared library support. These
9387 # are reset later if shared libraries are not supported. Putting them
9388 # here allows them to be overridden if necessary.
9389 runpath_var=LD_RUN_PATH
9390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9391 export_dynamic_flag_spec='$wl--export-dynamic'
9392 # ancient GNU ld didn't support --whole-archive et. al.
9393 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9394 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9395 else
9396 whole_archive_flag_spec=
9397 fi
9398 supports_anon_versioning=no
9399 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9400 *GNU\ gold*) supports_anon_versioning=yes ;;
9401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9404 *\ 2.11.*) ;; # other 2.11 versions
9405 *) supports_anon_versioning=yes ;;
9406 esac
9407
9408 # See if GNU ld supports shared libraries.
9409 case $host_os in
9410 aix[3-9]*)
9411 # On AIX/PPC, the GNU linker is very broken
9412 if test ia64 != "$host_cpu"; then
9413 ld_shlibs=no
9414 cat <<_LT_EOF 1>&2
9415
9416 *** Warning: the GNU linker, at least up to release 2.19, is reported
9417 *** to be unable to reliably create shared libraries on AIX.
9418 *** Therefore, libtool is disabling shared libraries support. If you
9419 *** really care for shared libraries, you may want to install binutils
9420 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9421 *** You will then need to restart the configuration process.
9422
9423 _LT_EOF
9424 fi
9425 ;;
9426
9427 amigaos*)
9428 case $host_cpu in
9429 powerpc)
9430 # see comment about AmigaOS4 .so support
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9432 archive_expsym_cmds=''
9433 ;;
9434 m68k)
9435 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)'
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_minus_L=yes
9438 ;;
9439 esac
9440 ;;
9441
9442 beos*)
9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9444 allow_undefined_flag=unsupported
9445 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9446 # support --undefined. This deserves some investigation. FIXME
9447 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9448 else
9449 ld_shlibs=no
9450 fi
9451 ;;
9452
9453 cygwin* | mingw* | pw32* | cegcc*)
9454 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9455 # as there is no search path for DLLs.
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 export_dynamic_flag_spec='$wl--export-all-symbols'
9458 allow_undefined_flag=unsupported
9459 always_export_symbols=no
9460 enable_shared_with_static_runtimes=yes
9461 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'
9462 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9463
9464 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9466 # If the export-symbols file already is a .def file, use it as
9467 # is; otherwise, prepend EXPORTS...
9468 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9469 cp $export_symbols $output_objdir/$soname.def;
9470 else
9471 echo EXPORTS > $output_objdir/$soname.def;
9472 cat $export_symbols >> $output_objdir/$soname.def;
9473 fi~
9474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9475 else
9476 ld_shlibs=no
9477 fi
9478 ;;
9479
9480 haiku*)
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9482 link_all_deplibs=yes
9483 ;;
9484
9485 os2*)
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_minus_L=yes
9488 allow_undefined_flag=unsupported
9489 shrext_cmds=.dll
9490 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9491 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9492 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9493 $ECHO EXPORTS >> $output_objdir/$libname.def~
9494 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9495 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9496 emximp -o $lib $output_objdir/$libname.def'
9497 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9498 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9499 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9500 $ECHO EXPORTS >> $output_objdir/$libname.def~
9501 prefix_cmds="$SED"~
9502 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9503 prefix_cmds="$prefix_cmds -e 1d";
9504 fi~
9505 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9506 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9507 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9508 emximp -o $lib $output_objdir/$libname.def'
9509 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9510 enable_shared_with_static_runtimes=yes
9511 ;;
9512
9513 interix[3-9]*)
9514 hardcode_direct=no
9515 hardcode_shlibpath_var=no
9516 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9517 export_dynamic_flag_spec='$wl-E'
9518 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9519 # Instead, shared libraries are loaded at an image base (0x10000000 by
9520 # default) and relocated if they conflict, which is a slow very memory
9521 # consuming and fragmenting process. To avoid this, we pick a random,
9522 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9523 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9524 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9525 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'
9526 ;;
9527
9528 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9529 tmp_diet=no
9530 if test linux-dietlibc = "$host_os"; then
9531 case $cc_basename in
9532 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9533 esac
9534 fi
9535 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9536 && test no = "$tmp_diet"
9537 then
9538 tmp_addflag=' $pic_flag'
9539 tmp_sharedflag='-shared'
9540 case $cc_basename,$host_cpu in
9541 pgcc*) # Portland Group C compiler
9542 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'
9543 tmp_addflag=' $pic_flag'
9544 ;;
9545 pgf77* | pgf90* | pgf95* | pgfortran*)
9546 # Portland Group f77 and f90 compilers
9547 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'
9548 tmp_addflag=' $pic_flag -Mnomain' ;;
9549 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9550 tmp_addflag=' -i_dynamic' ;;
9551 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9552 tmp_addflag=' -i_dynamic -nofor_main' ;;
9553 ifc* | ifort*) # Intel Fortran compiler
9554 tmp_addflag=' -nofor_main' ;;
9555 lf95*) # Lahey Fortran 8.1
9556 whole_archive_flag_spec=
9557 tmp_sharedflag='--shared' ;;
9558 nagfor*) # NAGFOR 5.3
9559 tmp_sharedflag='-Wl,-shared' ;;
9560 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9561 tmp_sharedflag='-qmkshrobj'
9562 tmp_addflag= ;;
9563 nvcc*) # Cuda Compiler Driver 2.2
9564 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'
9565 compiler_needs_object=yes
9566 ;;
9567 esac
9568 case `$CC -V 2>&1 | sed 5q` in
9569 *Sun\ C*) # Sun C 5.9
9570 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'
9571 compiler_needs_object=yes
9572 tmp_sharedflag='-G' ;;
9573 *Sun\ F*) # Sun Fortran 8.3
9574 tmp_sharedflag='-G' ;;
9575 esac
9576 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9577
9578 if test yes = "$supports_anon_versioning"; then
9579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9581 echo "local: *; };" >> $output_objdir/$libname.ver~
9582 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9583 fi
9584
9585 case $cc_basename in
9586 tcc*)
9587 export_dynamic_flag_spec='-rdynamic'
9588 ;;
9589 xlf* | bgf* | bgxlf* | mpixlf*)
9590 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9591 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9593 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9594 if test yes = "$supports_anon_versioning"; then
9595 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9597 echo "local: *; };" >> $output_objdir/$libname.ver~
9598 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9599 fi
9600 ;;
9601 esac
9602 else
9603 ld_shlibs=no
9604 fi
9605 ;;
9606
9607 netbsd*)
9608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9609 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9610 wlarc=
9611 else
9612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9614 fi
9615 ;;
9616
9617 solaris*)
9618 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9619 ld_shlibs=no
9620 cat <<_LT_EOF 1>&2
9621
9622 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9623 *** create shared libraries on Solaris systems. Therefore, libtool
9624 *** is disabling shared libraries support. We urge you to upgrade GNU
9625 *** binutils to release 2.9.1 or newer. Another option is to modify
9626 *** your PATH or compiler configuration so that the native linker is
9627 *** used, and then restart.
9628
9629 _LT_EOF
9630 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9632 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9633 else
9634 ld_shlibs=no
9635 fi
9636 ;;
9637
9638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9639 case `$LD -v 2>&1` in
9640 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9641 ld_shlibs=no
9642 cat <<_LT_EOF 1>&2
9643
9644 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9645 *** reliably create shared libraries on SCO systems. Therefore, libtool
9646 *** is disabling shared libraries support. We urge you to upgrade GNU
9647 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9648 *** your PATH or compiler configuration so that the native linker is
9649 *** used, and then restart.
9650
9651 _LT_EOF
9652 ;;
9653 *)
9654 # For security reasons, it is highly recommended that you always
9655 # use absolute paths for naming shared libraries, and exclude the
9656 # DT_RUNPATH tag from executables and libraries. But doing so
9657 # requires that you compile everything twice, which is a pain.
9658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9662 else
9663 ld_shlibs=no
9664 fi
9665 ;;
9666 esac
9667 ;;
9668
9669 sunos4*)
9670 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9671 wlarc=
9672 hardcode_direct=yes
9673 hardcode_shlibpath_var=no
9674 ;;
9675
9676 *)
9677 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9679 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9680 else
9681 ld_shlibs=no
9682 fi
9683 ;;
9684 esac
9685
9686 if test no = "$ld_shlibs"; then
9687 runpath_var=
9688 hardcode_libdir_flag_spec=
9689 export_dynamic_flag_spec=
9690 whole_archive_flag_spec=
9691 fi
9692 else
9693 # PORTME fill in a description of your system's linker (not GNU ld)
9694 case $host_os in
9695 aix3*)
9696 allow_undefined_flag=unsupported
9697 always_export_symbols=yes
9698 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'
9699 # Note: this linker hardcodes the directories in LIBPATH if there
9700 # are no directories specified by -L.
9701 hardcode_minus_L=yes
9702 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9703 # Neither direct hardcoding nor static linking is supported with a
9704 # broken collect2.
9705 hardcode_direct=unsupported
9706 fi
9707 ;;
9708
9709 aix[4-9]*)
9710 if test ia64 = "$host_cpu"; then
9711 # On IA64, the linker does run time linking by default, so we don't
9712 # have to do anything special.
9713 aix_use_runtimelinking=no
9714 exp_sym_flag='-Bexport'
9715 no_entry_flag=
9716 else
9717 # If we're using GNU nm, then we don't want the "-C" option.
9718 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9719 # Without the "-l" option, or with the "-B" option, AIX nm treats
9720 # weak defined symbols like other global defined symbols, whereas
9721 # GNU nm marks them as "W".
9722 # While the 'weak' keyword is ignored in the Export File, we need
9723 # it in the Import File for the 'aix-soname' feature, so we have
9724 # to replace the "-B" option with "-P" for AIX nm.
9725 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9726 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'
9727 else
9728 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 == "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'
9729 fi
9730 aix_use_runtimelinking=no
9731
9732 # Test if we are trying to use run time linking or normal
9733 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9734 # have runtime linking enabled, and use it for executables.
9735 # For shared libraries, we enable/disable runtime linking
9736 # depending on the kind of the shared library created -
9737 # when "with_aix_soname,aix_use_runtimelinking" is:
9738 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9739 # "aix,yes" lib.so shared, rtl:yes, for executables
9740 # lib.a static archive
9741 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9742 # lib.a(lib.so.V) shared, rtl:no, for executables
9743 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9744 # lib.a(lib.so.V) shared, rtl:no
9745 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9746 # lib.a static archive
9747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9748 for ld_flag in $LDFLAGS; do
9749 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9750 aix_use_runtimelinking=yes
9751 break
9752 fi
9753 done
9754 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9755 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9756 # so we don't have lib.a shared libs to link our executables.
9757 # We have to force runtime linking in this case.
9758 aix_use_runtimelinking=yes
9759 LDFLAGS="$LDFLAGS -Wl,-brtl"
9760 fi
9761 ;;
9762 esac
9763
9764 exp_sym_flag='-bexport'
9765 no_entry_flag='-bnoentry'
9766 fi
9767
9768 # When large executables or shared objects are built, AIX ld can
9769 # have problems creating the table of contents. If linking a library
9770 # or program results in "error TOC overflow" add -mminimal-toc to
9771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9773
9774 archive_cmds=''
9775 hardcode_direct=yes
9776 hardcode_direct_absolute=yes
9777 hardcode_libdir_separator=':'
9778 link_all_deplibs=yes
9779 file_list_spec='$wl-f,'
9780 case $with_aix_soname,$aix_use_runtimelinking in
9781 aix,*) ;; # traditional, no import file
9782 svr4,* | *,yes) # use import file
9783 # The Import File defines what to hardcode.
9784 hardcode_direct=no
9785 hardcode_direct_absolute=no
9786 ;;
9787 esac
9788
9789 if test yes = "$GCC"; then
9790 case $host_os in aix4.[012]|aix4.[012].*)
9791 # We only want to do this on AIX 4.2 and lower, the check
9792 # below for broken collect2 doesn't work under 4.3+
9793 collect2name=`$CC -print-prog-name=collect2`
9794 if test -f "$collect2name" &&
9795 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9796 then
9797 # We have reworked collect2
9798 :
9799 else
9800 # We have old collect2
9801 hardcode_direct=unsupported
9802 # It fails to find uninstalled libraries when the uninstalled
9803 # path is not listed in the libpath. Setting hardcode_minus_L
9804 # to unsupported forces relinking
9805 hardcode_minus_L=yes
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_libdir_separator=
9808 fi
9809 ;;
9810 esac
9811 shared_flag='-shared'
9812 if test yes = "$aix_use_runtimelinking"; then
9813 shared_flag="$shared_flag "'$wl-G'
9814 fi
9815 # Need to ensure runtime linking is disabled for the traditional
9816 # shared library, or the linker may eventually find shared libraries
9817 # /with/ Import File - we do not want to mix them.
9818 shared_flag_aix='-shared'
9819 shared_flag_svr4='-shared $wl-G'
9820 else
9821 # not using gcc
9822 if test ia64 = "$host_cpu"; then
9823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9824 # chokes on -Wl,-G. The following line is correct:
9825 shared_flag='-G'
9826 else
9827 if test yes = "$aix_use_runtimelinking"; then
9828 shared_flag='$wl-G'
9829 else
9830 shared_flag='$wl-bM:SRE'
9831 fi
9832 shared_flag_aix='$wl-bM:SRE'
9833 shared_flag_svr4='$wl-G'
9834 fi
9835 fi
9836
9837 export_dynamic_flag_spec='$wl-bexpall'
9838 # It seems that -bexpall does not export symbols beginning with
9839 # underscore (_), so it is better to generate a list of symbols to export.
9840 always_export_symbols=yes
9841 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9842 # Warning - without using the other runtime loading flags (-brtl),
9843 # -berok will link without error, but may produce a broken library.
9844 allow_undefined_flag='-berok'
9845 # Determine the default libpath from the value encoded in an
9846 # empty executable.
9847 if test set = "${lt_cv_aix_libpath+set}"; then
9848 aix_libpath=$lt_cv_aix_libpath
9849 else
9850 if ${lt_cv_aix_libpath_+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855
9856 int
9857 main ()
9858 {
9859
9860 ;
9861 return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_link "$LINENO"; then :
9865
9866 lt_aix_libpath_sed='
9867 /Import File Strings/,/^$/ {
9868 /^0/ {
9869 s/^0 *\([^ ]*\) *$/\1/
9870 p
9871 }
9872 }'
9873 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9874 # Check for a 64-bit object if we didn't find anything.
9875 if test -z "$lt_cv_aix_libpath_"; then
9876 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 fi
9878 fi
9879 rm -f core conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9881 if test -z "$lt_cv_aix_libpath_"; then
9882 lt_cv_aix_libpath_=/usr/lib:/lib
9883 fi
9884
9885 fi
9886
9887 aix_libpath=$lt_cv_aix_libpath_
9888 fi
9889
9890 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9891 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
9892 else
9893 if test ia64 = "$host_cpu"; then
9894 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9895 allow_undefined_flag="-z nodefs"
9896 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"
9897 else
9898 # Determine the default libpath from the value encoded in an
9899 # empty executable.
9900 if test set = "${lt_cv_aix_libpath+set}"; then
9901 aix_libpath=$lt_cv_aix_libpath
9902 else
9903 if ${lt_cv_aix_libpath_+:} false; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908
9909 int
9910 main ()
9911 {
9912
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"; then :
9918
9919 lt_aix_libpath_sed='
9920 /Import File Strings/,/^$/ {
9921 /^0/ {
9922 s/^0 *\([^ ]*\) *$/\1/
9923 p
9924 }
9925 }'
9926 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9927 # Check for a 64-bit object if we didn't find anything.
9928 if test -z "$lt_cv_aix_libpath_"; then
9929 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9930 fi
9931 fi
9932 rm -f core conftest.err conftest.$ac_objext \
9933 conftest$ac_exeext conftest.$ac_ext
9934 if test -z "$lt_cv_aix_libpath_"; then
9935 lt_cv_aix_libpath_=/usr/lib:/lib
9936 fi
9937
9938 fi
9939
9940 aix_libpath=$lt_cv_aix_libpath_
9941 fi
9942
9943 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9944 # Warning - without using the other run time loading flags,
9945 # -berok will link without error, but may produce a broken library.
9946 no_undefined_flag=' $wl-bernotok'
9947 allow_undefined_flag=' $wl-berok'
9948 if test yes = "$with_gnu_ld"; then
9949 # We only use this code for GNU lds that support --whole-archive.
9950 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9951 else
9952 # Exported symbols can be pulled into shared objects from archives
9953 whole_archive_flag_spec='$convenience'
9954 fi
9955 archive_cmds_need_lc=yes
9956 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9957 # -brtl affects multiple linker settings, -berok does not and is overridden later
9958 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9959 if test svr4 != "$with_aix_soname"; then
9960 # This is similar to how AIX traditionally builds its shared libraries.
9961 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'
9962 fi
9963 if test aix != "$with_aix_soname"; then
9964 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'
9965 else
9966 # used by -dlpreopen to get the symbols
9967 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9968 fi
9969 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9970 fi
9971 fi
9972 ;;
9973
9974 amigaos*)
9975 case $host_cpu in
9976 powerpc)
9977 # see comment about AmigaOS4 .so support
9978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9979 archive_expsym_cmds=''
9980 ;;
9981 m68k)
9982 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)'
9983 hardcode_libdir_flag_spec='-L$libdir'
9984 hardcode_minus_L=yes
9985 ;;
9986 esac
9987 ;;
9988
9989 bsdi[45]*)
9990 export_dynamic_flag_spec=-rdynamic
9991 ;;
9992
9993 cygwin* | mingw* | pw32* | cegcc*)
9994 # When not using gcc, we currently assume that we are using
9995 # Microsoft Visual C++.
9996 # hardcode_libdir_flag_spec is actually meaningless, as there is
9997 # no search path for DLLs.
9998 case $cc_basename in
9999 cl*)
10000 # Native MSVC
10001 hardcode_libdir_flag_spec=' '
10002 allow_undefined_flag=unsupported
10003 always_export_symbols=yes
10004 file_list_spec='@'
10005 # Tell ltmain to make .lib files, not .a files.
10006 libext=lib
10007 # Tell ltmain to make .dll files, not .so files.
10008 shrext_cmds=.dll
10009 # FIXME: Setting linknames here is a bad hack.
10010 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10011 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10012 cp "$export_symbols" "$output_objdir/$soname.def";
10013 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10014 else
10015 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10016 fi~
10017 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10018 linknames='
10019 # The linker will not automatically build a static lib if we build a DLL.
10020 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10021 enable_shared_with_static_runtimes=yes
10022 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10024 # Don't use ranlib
10025 old_postinstall_cmds='chmod 644 $oldlib'
10026 postlink_cmds='lt_outputfile="@OUTPUT@"~
10027 lt_tool_outputfile="@TOOL_OUTPUT@"~
10028 case $lt_outputfile in
10029 *.exe|*.EXE) ;;
10030 *)
10031 lt_outputfile=$lt_outputfile.exe
10032 lt_tool_outputfile=$lt_tool_outputfile.exe
10033 ;;
10034 esac~
10035 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10036 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10037 $RM "$lt_outputfile.manifest";
10038 fi'
10039 ;;
10040 *)
10041 # Assume MSVC wrapper
10042 hardcode_libdir_flag_spec=' '
10043 allow_undefined_flag=unsupported
10044 # Tell ltmain to make .lib files, not .a files.
10045 libext=lib
10046 # Tell ltmain to make .dll files, not .so files.
10047 shrext_cmds=.dll
10048 # FIXME: Setting linknames here is a bad hack.
10049 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10050 # The linker will automatically build a .lib file if we build a DLL.
10051 old_archive_from_new_cmds='true'
10052 # FIXME: Should let the user specify the lib program.
10053 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10054 enable_shared_with_static_runtimes=yes
10055 ;;
10056 esac
10057 ;;
10058
10059 darwin* | rhapsody*)
10060
10061
10062 archive_cmds_need_lc=no
10063 hardcode_direct=no
10064 hardcode_automatic=yes
10065 hardcode_shlibpath_var=unsupported
10066 if test yes = "$lt_cv_ld_force_load"; then
10067 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\"`'
10068
10069 else
10070 whole_archive_flag_spec=''
10071 fi
10072 link_all_deplibs=yes
10073 allow_undefined_flag=$_lt_dar_allow_undefined
10074 case $cc_basename in
10075 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10076 *) _lt_dar_can_shared=$GCC ;;
10077 esac
10078 if test yes = "$_lt_dar_can_shared"; then
10079 output_verbose_link_cmd=func_echo_all
10080 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10081 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10082 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"
10083 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"
10084
10085 else
10086 ld_shlibs=no
10087 fi
10088
10089 ;;
10090
10091 dgux*)
10092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093 hardcode_libdir_flag_spec='-L$libdir'
10094 hardcode_shlibpath_var=no
10095 ;;
10096
10097 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10098 # support. Future versions do this automatically, but an explicit c++rt0.o
10099 # does not break anything, and helps significantly (at the cost of a little
10100 # extra space).
10101 freebsd2.2*)
10102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10103 hardcode_libdir_flag_spec='-R$libdir'
10104 hardcode_direct=yes
10105 hardcode_shlibpath_var=no
10106 ;;
10107
10108 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10109 freebsd2.*)
10110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes
10112 hardcode_minus_L=yes
10113 hardcode_shlibpath_var=no
10114 ;;
10115
10116 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10117 freebsd* | dragonfly*)
10118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119 hardcode_libdir_flag_spec='-R$libdir'
10120 hardcode_direct=yes
10121 hardcode_shlibpath_var=no
10122 ;;
10123
10124 hpux9*)
10125 if test yes = "$GCC"; then
10126 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'
10127 else
10128 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'
10129 fi
10130 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10131 hardcode_libdir_separator=:
10132 hardcode_direct=yes
10133
10134 # hardcode_minus_L: Not really in the search PATH,
10135 # but as the default location of the library.
10136 hardcode_minus_L=yes
10137 export_dynamic_flag_spec='$wl-E'
10138 ;;
10139
10140 hpux10*)
10141 if test yes,no = "$GCC,$with_gnu_ld"; then
10142 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10143 else
10144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10145 fi
10146 if test no = "$with_gnu_ld"; then
10147 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10148 hardcode_libdir_separator=:
10149 hardcode_direct=yes
10150 hardcode_direct_absolute=yes
10151 export_dynamic_flag_spec='$wl-E'
10152 # hardcode_minus_L: Not really in the search PATH,
10153 # but as the default location of the library.
10154 hardcode_minus_L=yes
10155 fi
10156 ;;
10157
10158 hpux11*)
10159 if test yes,no = "$GCC,$with_gnu_ld"; then
10160 case $host_cpu in
10161 hppa*64*)
10162 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 ;;
10164 ia64*)
10165 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10166 ;;
10167 *)
10168 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10169 ;;
10170 esac
10171 else
10172 case $host_cpu in
10173 hppa*64*)
10174 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 ;;
10176 ia64*)
10177 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10178 ;;
10179 *)
10180
10181 # Older versions of the 11.00 compiler do not understand -b yet
10182 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10184 $as_echo_n "checking if $CC understands -b... " >&6; }
10185 if ${lt_cv_prog_compiler__b+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 lt_cv_prog_compiler__b=no
10189 save_LDFLAGS=$LDFLAGS
10190 LDFLAGS="$LDFLAGS -b"
10191 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10192 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10193 # The linker can only warn and ignore the option if not recognized
10194 # So say no if there are warnings
10195 if test -s conftest.err; then
10196 # Append any errors to the config.log.
10197 cat conftest.err 1>&5
10198 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10200 if diff conftest.exp conftest.er2 >/dev/null; then
10201 lt_cv_prog_compiler__b=yes
10202 fi
10203 else
10204 lt_cv_prog_compiler__b=yes
10205 fi
10206 fi
10207 $RM -r conftest*
10208 LDFLAGS=$save_LDFLAGS
10209
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10212 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10213
10214 if test yes = "$lt_cv_prog_compiler__b"; then
10215 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10216 else
10217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10218 fi
10219
10220 ;;
10221 esac
10222 fi
10223 if test no = "$with_gnu_ld"; then
10224 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10225 hardcode_libdir_separator=:
10226
10227 case $host_cpu in
10228 hppa*64*|ia64*)
10229 hardcode_direct=no
10230 hardcode_shlibpath_var=no
10231 ;;
10232 *)
10233 hardcode_direct=yes
10234 hardcode_direct_absolute=yes
10235 export_dynamic_flag_spec='$wl-E'
10236
10237 # hardcode_minus_L: Not really in the search PATH,
10238 # but as the default location of the library.
10239 hardcode_minus_L=yes
10240 ;;
10241 esac
10242 fi
10243 ;;
10244
10245 irix5* | irix6* | nonstopux*)
10246 if test yes = "$GCC"; then
10247 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'
10248 # Try to use the -exported_symbol ld option, if it does not
10249 # work, assume that -exports_file does not work either and
10250 # implicitly export all symbols.
10251 # This should be the same for all languages, so no per-tag cache variable.
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10253 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10254 if ${lt_cv_irix_exported_symbol+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256 else
10257 save_LDFLAGS=$LDFLAGS
10258 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10261 int foo (void) { return 0; }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 lt_cv_irix_exported_symbol=yes
10265 else
10266 lt_cv_irix_exported_symbol=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LDFLAGS=$save_LDFLAGS
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10273 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10274 if test yes = "$lt_cv_irix_exported_symbol"; then
10275 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'
10276 fi
10277 else
10278 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'
10279 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'
10280 fi
10281 archive_cmds_need_lc='no'
10282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10283 hardcode_libdir_separator=:
10284 inherit_rpath=yes
10285 link_all_deplibs=yes
10286 ;;
10287
10288 linux*)
10289 case $cc_basename in
10290 tcc*)
10291 # Fabrice Bellard et al's Tiny C Compiler
10292 ld_shlibs=yes
10293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10294 ;;
10295 esac
10296 ;;
10297
10298 netbsd*)
10299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10301 else
10302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10303 fi
10304 hardcode_libdir_flag_spec='-R$libdir'
10305 hardcode_direct=yes
10306 hardcode_shlibpath_var=no
10307 ;;
10308
10309 newsos6)
10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311 hardcode_direct=yes
10312 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10313 hardcode_libdir_separator=:
10314 hardcode_shlibpath_var=no
10315 ;;
10316
10317 *nto* | *qnx*)
10318 ;;
10319
10320 openbsd* | bitrig*)
10321 if test -f /usr/libexec/ld.so; then
10322 hardcode_direct=yes
10323 hardcode_shlibpath_var=no
10324 hardcode_direct_absolute=yes
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10328 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10329 export_dynamic_flag_spec='$wl-E'
10330 else
10331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10332 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10333 fi
10334 else
10335 ld_shlibs=no
10336 fi
10337 ;;
10338
10339 os2*)
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_minus_L=yes
10342 allow_undefined_flag=unsupported
10343 shrext_cmds=.dll
10344 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10345 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10346 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10347 $ECHO EXPORTS >> $output_objdir/$libname.def~
10348 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10349 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10350 emximp -o $lib $output_objdir/$libname.def'
10351 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10352 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10353 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10354 $ECHO EXPORTS >> $output_objdir/$libname.def~
10355 prefix_cmds="$SED"~
10356 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10357 prefix_cmds="$prefix_cmds -e 1d";
10358 fi~
10359 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10360 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10361 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10362 emximp -o $lib $output_objdir/$libname.def'
10363 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10364 enable_shared_with_static_runtimes=yes
10365 ;;
10366
10367 osf3*)
10368 if test yes = "$GCC"; then
10369 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10370 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'
10371 else
10372 allow_undefined_flag=' -expect_unresolved \*'
10373 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'
10374 fi
10375 archive_cmds_need_lc='no'
10376 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10377 hardcode_libdir_separator=:
10378 ;;
10379
10380 osf4* | osf5*) # as osf3* with the addition of -msym flag
10381 if test yes = "$GCC"; then
10382 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10383 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'
10384 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10385 else
10386 allow_undefined_flag=' -expect_unresolved \*'
10387 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'
10388 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~
10389 $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'
10390
10391 # Both c and cxx compiler support -rpath directly
10392 hardcode_libdir_flag_spec='-rpath $libdir'
10393 fi
10394 archive_cmds_need_lc='no'
10395 hardcode_libdir_separator=:
10396 ;;
10397
10398 solaris*)
10399 no_undefined_flag=' -z defs'
10400 if test yes = "$GCC"; then
10401 wlarc='$wl'
10402 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10404 $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'
10405 else
10406 case `$CC -V 2>&1` in
10407 *"Compilers 5.0"*)
10408 wlarc=''
10409 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10411 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10412 ;;
10413 *)
10414 wlarc='$wl'
10415 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10417 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10418 ;;
10419 esac
10420 fi
10421 hardcode_libdir_flag_spec='-R$libdir'
10422 hardcode_shlibpath_var=no
10423 case $host_os in
10424 solaris2.[0-5] | solaris2.[0-5].*) ;;
10425 *)
10426 # The compiler driver will combine and reorder linker options,
10427 # but understands '-z linker_flag'. GCC discards it without '$wl',
10428 # but is careful enough not to reorder.
10429 # Supported since Solaris 2.6 (maybe 2.5.1?)
10430 if test yes = "$GCC"; then
10431 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10432 else
10433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10434 fi
10435 ;;
10436 esac
10437 link_all_deplibs=yes
10438 ;;
10439
10440 sunos4*)
10441 if test sequent = "$host_vendor"; then
10442 # Use $CC to link under sequent, because it throws in some extra .o
10443 # files that make .init and .fini sections work.
10444 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10445 else
10446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10447 fi
10448 hardcode_libdir_flag_spec='-L$libdir'
10449 hardcode_direct=yes
10450 hardcode_minus_L=yes
10451 hardcode_shlibpath_var=no
10452 ;;
10453
10454 sysv4)
10455 case $host_vendor in
10456 sni)
10457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_direct=yes # is this really true???
10459 ;;
10460 siemens)
10461 ## LD is ld it makes a PLAMLIB
10462 ## CC just makes a GrossModule.
10463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10464 reload_cmds='$CC -r -o $output$reload_objs'
10465 hardcode_direct=no
10466 ;;
10467 motorola)
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10470 ;;
10471 esac
10472 runpath_var='LD_RUN_PATH'
10473 hardcode_shlibpath_var=no
10474 ;;
10475
10476 sysv4.3*)
10477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478 hardcode_shlibpath_var=no
10479 export_dynamic_flag_spec='-Bexport'
10480 ;;
10481
10482 sysv4*MP*)
10483 if test -d /usr/nec; then
10484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485 hardcode_shlibpath_var=no
10486 runpath_var=LD_RUN_PATH
10487 hardcode_runpath_var=yes
10488 ld_shlibs=yes
10489 fi
10490 ;;
10491
10492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10493 no_undefined_flag='$wl-z,text'
10494 archive_cmds_need_lc=no
10495 hardcode_shlibpath_var=no
10496 runpath_var='LD_RUN_PATH'
10497
10498 if test yes = "$GCC"; then
10499 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10501 else
10502 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10504 fi
10505 ;;
10506
10507 sysv5* | sco3.2v5* | sco5v6*)
10508 # Note: We CANNOT use -z defs as we might desire, because we do not
10509 # link with -lc, and that would cause any symbols used from libc to
10510 # always be unresolved, which means just about no library would
10511 # ever link correctly. If we're not using GNU ld we use -z text
10512 # though, which does catch some bad symbols but isn't as heavy-handed
10513 # as -z defs.
10514 no_undefined_flag='$wl-z,text'
10515 allow_undefined_flag='$wl-z,nodefs'
10516 archive_cmds_need_lc=no
10517 hardcode_shlibpath_var=no
10518 hardcode_libdir_flag_spec='$wl-R,$libdir'
10519 hardcode_libdir_separator=':'
10520 link_all_deplibs=yes
10521 export_dynamic_flag_spec='$wl-Bexport'
10522 runpath_var='LD_RUN_PATH'
10523
10524 if test yes = "$GCC"; then
10525 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10527 else
10528 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 fi
10531 ;;
10532
10533 uts4*)
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_shlibpath_var=no
10537 ;;
10538
10539 *)
10540 ld_shlibs=no
10541 ;;
10542 esac
10543
10544 if test sni = "$host_vendor"; then
10545 case $host in
10546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10547 export_dynamic_flag_spec='$wl-Blargedynsym'
10548 ;;
10549 esac
10550 fi
10551 fi
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10554 $as_echo "$ld_shlibs" >&6; }
10555 test no = "$ld_shlibs" && can_build_shared=no
10556
10557 with_gnu_ld=$with_gnu_ld
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 #
10574 # Do we need to explicitly link libc?
10575 #
10576 case "x$archive_cmds_need_lc" in
10577 x|xyes)
10578 # Assume -lc should be added
10579 archive_cmds_need_lc=yes
10580
10581 if test yes,yes = "$GCC,$enable_shared"; then
10582 case $archive_cmds in
10583 *'~'*)
10584 # FIXME: we may have to deal with multi-command sequences.
10585 ;;
10586 '$CC '*)
10587 # Test whether the compiler implicitly links with -lc since on some
10588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10589 # to ld, don't add -lc before -lgcc.
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10592 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 $RM conftest*
10596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10597
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10599 (eval $ac_compile) 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; } 2>conftest.err; then
10603 soname=conftest
10604 lib=conftest
10605 libobjs=conftest.$ac_objext
10606 deplibs=
10607 wl=$lt_prog_compiler_wl
10608 pic_flag=$lt_prog_compiler_pic
10609 compiler_flags=-v
10610 linker_flags=-v
10611 verstring=
10612 output_objdir=.
10613 libname=conftest
10614 lt_save_allow_undefined_flag=$allow_undefined_flag
10615 allow_undefined_flag=
10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10618 ac_status=$?
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; }
10621 then
10622 lt_cv_archive_cmds_need_lc=no
10623 else
10624 lt_cv_archive_cmds_need_lc=yes
10625 fi
10626 allow_undefined_flag=$lt_save_allow_undefined_flag
10627 else
10628 cat conftest.err 1>&5
10629 fi
10630 $RM conftest*
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10634 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10636 ;;
10637 esac
10638 fi
10639 ;;
10640 esac
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10795
10796 if test yes = "$GCC"; then
10797 case $host_os in
10798 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10799 *) lt_awk_arg='/^libraries:/' ;;
10800 esac
10801 case $host_os in
10802 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10803 *) lt_sed_strip_eq='s|=/|/|g' ;;
10804 esac
10805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10806 case $lt_search_path_spec in
10807 *\;*)
10808 # if the path contains ";" then we assume it to be the separator
10809 # otherwise default to the standard path separator (i.e. ":") - it is
10810 # assumed that no part of a normal pathname contains ";" but that should
10811 # okay in the real world where ";" in dirpaths is itself problematic.
10812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10813 ;;
10814 *)
10815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10816 ;;
10817 esac
10818 # Ok, now we have the path, separated by spaces, we can step through it
10819 # and add multilib dir if necessary...
10820 lt_tmp_lt_search_path_spec=
10821 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10822 # ...but if some path component already ends with the multilib dir we assume
10823 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10824 case "$lt_multi_os_dir; $lt_search_path_spec " in
10825 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10826 lt_multi_os_dir=
10827 ;;
10828 esac
10829 for lt_sys_path in $lt_search_path_spec; do
10830 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10831 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10832 elif test -n "$lt_multi_os_dir"; then
10833 test -d "$lt_sys_path" && \
10834 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10835 fi
10836 done
10837 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10838 BEGIN {RS = " "; FS = "/|\n";} {
10839 lt_foo = "";
10840 lt_count = 0;
10841 for (lt_i = NF; lt_i > 0; lt_i--) {
10842 if ($lt_i != "" && $lt_i != ".") {
10843 if ($lt_i == "..") {
10844 lt_count++;
10845 } else {
10846 if (lt_count == 0) {
10847 lt_foo = "/" $lt_i lt_foo;
10848 } else {
10849 lt_count--;
10850 }
10851 }
10852 }
10853 }
10854 if (lt_foo != "") { lt_freq[lt_foo]++; }
10855 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10856 }'`
10857 # AWK program above erroneously prepends '/' to C:/dos/paths
10858 # for these hosts.
10859 case $host_os in
10860 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10861 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10862 esac
10863 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10864 else
10865 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10866 fi
10867 library_names_spec=
10868 libname_spec='lib$name'
10869 soname_spec=
10870 shrext_cmds=.so
10871 postinstall_cmds=
10872 postuninstall_cmds=
10873 finish_cmds=
10874 finish_eval=
10875 shlibpath_var=
10876 shlibpath_overrides_runpath=unknown
10877 version_type=none
10878 dynamic_linker="$host_os ld.so"
10879 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10880 need_lib_prefix=unknown
10881 hardcode_into_libs=no
10882
10883 # when you set need_version to no, make sure it does not cause -set_version
10884 # flags to be left without arguments
10885 need_version=unknown
10886
10887
10888
10889 case $host_os in
10890 aix3*)
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10893 shlibpath_var=LIBPATH
10894
10895 # AIX 3 has no versioning support, so we append a major version to the name.
10896 soname_spec='$libname$release$shared_ext$major'
10897 ;;
10898
10899 aix[4-9]*)
10900 version_type=linux # correct to gnu/linux during the next big refactor
10901 need_lib_prefix=no
10902 need_version=no
10903 hardcode_into_libs=yes
10904 if test ia64 = "$host_cpu"; then
10905 # AIX 5 supports IA64
10906 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 else
10909 # With GCC up to 2.95.x, collect2 would create an import file
10910 # for dependence libraries. The import file would start with
10911 # the line '#! .'. This would cause the generated library to
10912 # depend on '.', always an invalid library. This was fixed in
10913 # development snapshots of GCC prior to 3.0.
10914 case $host_os in
10915 aix4 | aix4.[01] | aix4.[01].*)
10916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10917 echo ' yes '
10918 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10919 :
10920 else
10921 can_build_shared=no
10922 fi
10923 ;;
10924 esac
10925 # Using Import Files as archive members, it is possible to support
10926 # filename-based versioning of shared library archives on AIX. While
10927 # this would work for both with and without runtime linking, it will
10928 # prevent static linking of such archives. So we do filename-based
10929 # shared library versioning with .so extension only, which is used
10930 # when both runtime linking and shared linking is enabled.
10931 # Unfortunately, runtime linking may impact performance, so we do
10932 # not want this to be the default eventually. Also, we use the
10933 # versioned .so libs for executables only if there is the -brtl
10934 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10935 # To allow for filename-based versioning support, we need to create
10936 # libNAME.so.V as an archive file, containing:
10937 # *) an Import File, referring to the versioned filename of the
10938 # archive as well as the shared archive member, telling the
10939 # bitwidth (32 or 64) of that shared object, and providing the
10940 # list of exported symbols of that shared object, eventually
10941 # decorated with the 'weak' keyword
10942 # *) the shared object with the F_LOADONLY flag set, to really avoid
10943 # it being seen by the linker.
10944 # At run time we better use the real file rather than another symlink,
10945 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10946
10947 case $with_aix_soname,$aix_use_runtimelinking in
10948 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10949 # soname into executable. Probably we can add versioning support to
10950 # collect2, so additional links can be useful in future.
10951 aix,yes) # traditional libtool
10952 dynamic_linker='AIX unversionable lib.so'
10953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10954 # instead of lib<name>.a to let people know that these are not
10955 # typical AIX shared libraries.
10956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10957 ;;
10958 aix,no) # traditional AIX only
10959 dynamic_linker='AIX lib.a(lib.so.V)'
10960 # We preserve .a as extension for shared libraries through AIX4.2
10961 # and later when we are not doing run time linking.
10962 library_names_spec='$libname$release.a $libname.a'
10963 soname_spec='$libname$release$shared_ext$major'
10964 ;;
10965 svr4,*) # full svr4 only
10966 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10967 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10968 # We do not specify a path in Import Files, so LIBPATH fires.
10969 shlibpath_overrides_runpath=yes
10970 ;;
10971 *,yes) # both, prefer svr4
10972 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10973 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10974 # unpreferred sharedlib libNAME.a needs extra handling
10975 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"'
10976 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"'
10977 # We do not specify a path in Import Files, so LIBPATH fires.
10978 shlibpath_overrides_runpath=yes
10979 ;;
10980 *,no) # both, prefer aix
10981 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10982 library_names_spec='$libname$release.a $libname.a'
10983 soname_spec='$libname$release$shared_ext$major'
10984 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10985 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)'
10986 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"'
10987 ;;
10988 esac
10989 shlibpath_var=LIBPATH
10990 fi
10991 ;;
10992
10993 amigaos*)
10994 case $host_cpu in
10995 powerpc)
10996 # Since July 2007 AmigaOS4 officially supports .so libraries.
10997 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999 ;;
11000 m68k)
11001 library_names_spec='$libname.ixlibrary $libname.a'
11002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11003 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'
11004 ;;
11005 esac
11006 ;;
11007
11008 beos*)
11009 library_names_spec='$libname$shared_ext'
11010 dynamic_linker="$host_os ld.so"
11011 shlibpath_var=LIBRARY_PATH
11012 ;;
11013
11014 bsdi[45]*)
11015 version_type=linux # correct to gnu/linux during the next big refactor
11016 need_version=no
11017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11018 soname_spec='$libname$release$shared_ext$major'
11019 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11020 shlibpath_var=LD_LIBRARY_PATH
11021 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11022 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11023 # the default ld.so.conf also contains /usr/contrib/lib and
11024 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11025 # libtool to hard-code these into programs
11026 ;;
11027
11028 cygwin* | mingw* | pw32* | cegcc*)
11029 version_type=windows
11030 shrext_cmds=.dll
11031 need_version=no
11032 need_lib_prefix=no
11033
11034 case $GCC,$cc_basename in
11035 yes,*)
11036 # gcc
11037 library_names_spec='$libname.dll.a'
11038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11039 postinstall_cmds='base_file=`basename \$file`~
11040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11041 dldir=$destdir/`dirname \$dlpath`~
11042 test -d \$dldir || mkdir -p \$dldir~
11043 $install_prog $dir/$dlname \$dldir/$dlname~
11044 chmod a+x \$dldir/$dlname~
11045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11047 fi'
11048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11049 dlpath=$dir/\$dldll~
11050 $RM \$dlpath'
11051 shlibpath_overrides_runpath=yes
11052
11053 case $host_os in
11054 cygwin*)
11055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11056 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11057
11058 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11059 ;;
11060 mingw* | cegcc*)
11061 # MinGW DLLs use traditional 'lib' prefix
11062 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11063 ;;
11064 pw32*)
11065 # pw32 DLLs use 'pw' prefix rather than 'lib'
11066 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11067 ;;
11068 esac
11069 dynamic_linker='Win32 ld.exe'
11070 ;;
11071
11072 *,cl*)
11073 # Native MSVC
11074 libname_spec='$name'
11075 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11076 library_names_spec='$libname.dll.lib'
11077
11078 case $build_os in
11079 mingw*)
11080 sys_lib_search_path_spec=
11081 lt_save_ifs=$IFS
11082 IFS=';'
11083 for lt_path in $LIB
11084 do
11085 IFS=$lt_save_ifs
11086 # Let DOS variable expansion print the short 8.3 style file name.
11087 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11088 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11089 done
11090 IFS=$lt_save_ifs
11091 # Convert to MSYS style.
11092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11093 ;;
11094 cygwin*)
11095 # Convert to unix form, then to dos form, then back to unix form
11096 # but this time dos style (no spaces!) so that the unix form looks
11097 # like /cygdrive/c/PROGRA~1:/cygdr...
11098 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11099 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11100 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11101 ;;
11102 *)
11103 sys_lib_search_path_spec=$LIB
11104 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11105 # It is most probably a Windows format PATH.
11106 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11107 else
11108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11109 fi
11110 # FIXME: find the short name or the path components, as spaces are
11111 # common. (e.g. "Program Files" -> "PROGRA~1")
11112 ;;
11113 esac
11114
11115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11116 postinstall_cmds='base_file=`basename \$file`~
11117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11118 dldir=$destdir/`dirname \$dlpath`~
11119 test -d \$dldir || mkdir -p \$dldir~
11120 $install_prog $dir/$dlname \$dldir/$dlname'
11121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11122 dlpath=$dir/\$dldll~
11123 $RM \$dlpath'
11124 shlibpath_overrides_runpath=yes
11125 dynamic_linker='Win32 link.exe'
11126 ;;
11127
11128 *)
11129 # Assume MSVC wrapper
11130 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11131 dynamic_linker='Win32 ld.exe'
11132 ;;
11133 esac
11134 # FIXME: first we should search . and the directory the executable is in
11135 shlibpath_var=PATH
11136 ;;
11137
11138 darwin* | rhapsody*)
11139 dynamic_linker="$host_os dyld"
11140 version_type=darwin
11141 need_lib_prefix=no
11142 need_version=no
11143 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11144 soname_spec='$libname$release$major$shared_ext'
11145 shlibpath_overrides_runpath=yes
11146 shlibpath_var=DYLD_LIBRARY_PATH
11147 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11148
11149 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11151 ;;
11152
11153 dgux*)
11154 version_type=linux # correct to gnu/linux during the next big refactor
11155 need_lib_prefix=no
11156 need_version=no
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec='$libname$release$shared_ext$major'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 ;;
11161
11162 freebsd* | dragonfly*)
11163 # DragonFly does not have aout. When/if they implement a new
11164 # versioning mechanism, adjust this.
11165 if test -x /usr/bin/objformat; then
11166 objformat=`/usr/bin/objformat`
11167 else
11168 case $host_os in
11169 freebsd[23].*) objformat=aout ;;
11170 *) objformat=elf ;;
11171 esac
11172 fi
11173 version_type=freebsd-$objformat
11174 case $version_type in
11175 freebsd-elf*)
11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11177 soname_spec='$libname$release$shared_ext$major'
11178 need_version=no
11179 need_lib_prefix=no
11180 ;;
11181 freebsd-*)
11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11183 need_version=yes
11184 ;;
11185 esac
11186 shlibpath_var=LD_LIBRARY_PATH
11187 case $host_os in
11188 freebsd2.*)
11189 shlibpath_overrides_runpath=yes
11190 ;;
11191 freebsd3.[01]* | freebsdelf3.[01]*)
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11194 ;;
11195 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11196 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11197 shlibpath_overrides_runpath=no
11198 hardcode_into_libs=yes
11199 ;;
11200 *) # from 4.6 on, and DragonFly
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 ;;
11204 esac
11205 ;;
11206
11207 haiku*)
11208 version_type=linux # correct to gnu/linux during the next big refactor
11209 need_lib_prefix=no
11210 need_version=no
11211 dynamic_linker="$host_os runtime_loader"
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213 soname_spec='$libname$release$shared_ext$major'
11214 shlibpath_var=LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11217 hardcode_into_libs=yes
11218 ;;
11219
11220 hpux9* | hpux10* | hpux11*)
11221 # Give a soname corresponding to the major version so that dld.sl refuses to
11222 # link against other versions.
11223 version_type=sunos
11224 need_lib_prefix=no
11225 need_version=no
11226 case $host_cpu in
11227 ia64*)
11228 shrext_cmds='.so'
11229 hardcode_into_libs=yes
11230 dynamic_linker="$host_os dld.so"
11231 shlibpath_var=LD_LIBRARY_PATH
11232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11234 soname_spec='$libname$release$shared_ext$major'
11235 if test 32 = "$HPUX_IA64_MODE"; then
11236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11237 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11238 else
11239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11240 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11241 fi
11242 ;;
11243 hppa*64*)
11244 shrext_cmds='.sl'
11245 hardcode_into_libs=yes
11246 dynamic_linker="$host_os dld.sl"
11247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11250 soname_spec='$libname$release$shared_ext$major'
11251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11253 ;;
11254 *)
11255 shrext_cmds='.sl'
11256 dynamic_linker="$host_os dld.sl"
11257 shlibpath_var=SHLIB_PATH
11258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11260 soname_spec='$libname$release$shared_ext$major'
11261 ;;
11262 esac
11263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11264 postinstall_cmds='chmod 555 $lib'
11265 # or fails outright, so override atomically:
11266 install_override_mode=555
11267 ;;
11268
11269 interix[3-9]*)
11270 version_type=linux # correct to gnu/linux during the next big refactor
11271 need_lib_prefix=no
11272 need_version=no
11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11274 soname_spec='$libname$release$shared_ext$major'
11275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=no
11278 hardcode_into_libs=yes
11279 ;;
11280
11281 irix5* | irix6* | nonstopux*)
11282 case $host_os in
11283 nonstopux*) version_type=nonstopux ;;
11284 *)
11285 if test yes = "$lt_cv_prog_gnu_ld"; then
11286 version_type=linux # correct to gnu/linux during the next big refactor
11287 else
11288 version_type=irix
11289 fi ;;
11290 esac
11291 need_lib_prefix=no
11292 need_version=no
11293 soname_spec='$libname$release$shared_ext$major'
11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11295 case $host_os in
11296 irix5* | nonstopux*)
11297 libsuff= shlibsuff=
11298 ;;
11299 *)
11300 case $LD in # libtool.m4 will add one of these switches to LD
11301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11302 libsuff= shlibsuff= libmagic=32-bit;;
11303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11304 libsuff=32 shlibsuff=N32 libmagic=N32;;
11305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11307 *) libsuff= shlibsuff= libmagic=never-match;;
11308 esac
11309 ;;
11310 esac
11311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11312 shlibpath_overrides_runpath=no
11313 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11314 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11315 hardcode_into_libs=yes
11316 ;;
11317
11318 # No shared lib support for Linux oldld, aout, or coff.
11319 linux*oldld* | linux*aout* | linux*coff*)
11320 dynamic_linker=no
11321 ;;
11322
11323 linux*android*)
11324 version_type=none # Android doesn't support versioned libraries.
11325 need_lib_prefix=no
11326 need_version=no
11327 library_names_spec='$libname$release$shared_ext'
11328 soname_spec='$libname$release$shared_ext'
11329 finish_cmds=
11330 shlibpath_var=LD_LIBRARY_PATH
11331 shlibpath_overrides_runpath=yes
11332
11333 # This implies no fast_install, which is unacceptable.
11334 # Some rework will be needed to allow for fast_install
11335 # before this can be enabled.
11336 hardcode_into_libs=yes
11337
11338 dynamic_linker='Android linker'
11339 # Don't embed -rpath directories since the linker doesn't support them.
11340 hardcode_libdir_flag_spec='-L$libdir'
11341 ;;
11342
11343 # This must be glibc/ELF.
11344 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11345 version_type=linux # correct to gnu/linux during the next big refactor
11346 need_lib_prefix=no
11347 need_version=no
11348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11349 soname_spec='$libname$release$shared_ext$major'
11350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11351 shlibpath_var=LD_LIBRARY_PATH
11352 shlibpath_overrides_runpath=no
11353
11354 # Some binutils ld are patched to set DT_RUNPATH
11355 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 lt_cv_shlibpath_overrides_runpath=no
11359 save_LDFLAGS=$LDFLAGS
11360 save_libdir=$libdir
11361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365
11366 int
11367 main ()
11368 {
11369
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11376 lt_cv_shlibpath_overrides_runpath=yes
11377 fi
11378 fi
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 LDFLAGS=$save_LDFLAGS
11382 libdir=$save_libdir
11383
11384 fi
11385
11386 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11387
11388 # This implies no fast_install, which is unacceptable.
11389 # Some rework will be needed to allow for fast_install
11390 # before this can be enabled.
11391 hardcode_into_libs=yes
11392
11393 # Ideally, we could use ldconfig to report *all* directores which are
11394 # searched for libraries, however this is still not possible. Aside from not
11395 # being certain /sbin/ldconfig is available, command
11396 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11397 # even though it is searched at run-time. Try to do the best guess by
11398 # appending ld.so.conf contents (and includes) to the search path.
11399 if test -f /etc/ld.so.conf; then
11400 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' ' '`
11401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11402 fi
11403
11404 # We used to test for /lib/ld.so.1 and disable shared libraries on
11405 # powerpc, because MkLinux only supported shared libraries with the
11406 # GNU dynamic linker. Since this was broken with cross compilers,
11407 # most powerpc-linux boxes support dynamic linking these days and
11408 # people can always --disable-shared, the test was removed, and we
11409 # assume the GNU/Linux dynamic linker is in use.
11410 dynamic_linker='GNU/Linux ld.so'
11411 ;;
11412
11413 netbsd*)
11414 version_type=sunos
11415 need_lib_prefix=no
11416 need_version=no
11417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11418 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11420 dynamic_linker='NetBSD (a.out) ld.so'
11421 else
11422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11423 soname_spec='$libname$release$shared_ext$major'
11424 dynamic_linker='NetBSD ld.elf_so'
11425 fi
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=yes
11428 hardcode_into_libs=yes
11429 ;;
11430
11431 newsos6)
11432 version_type=linux # correct to gnu/linux during the next big refactor
11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 shlibpath_overrides_runpath=yes
11436 ;;
11437
11438 *nto* | *qnx*)
11439 version_type=qnx
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11443 soname_spec='$libname$release$shared_ext$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 shlibpath_overrides_runpath=no
11446 hardcode_into_libs=yes
11447 dynamic_linker='ldqnx.so'
11448 ;;
11449
11450 openbsd* | bitrig*)
11451 version_type=sunos
11452 sys_lib_dlsearch_path_spec=/usr/lib
11453 need_lib_prefix=no
11454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11455 need_version=no
11456 else
11457 need_version=yes
11458 fi
11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 shlibpath_overrides_runpath=yes
11463 ;;
11464
11465 os2*)
11466 libname_spec='$name'
11467 version_type=windows
11468 shrext_cmds=.dll
11469 need_version=no
11470 need_lib_prefix=no
11471 # OS/2 can only load a DLL with a base name of 8 characters or less.
11472 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11473 v=$($ECHO $release$versuffix | tr -d .-);
11474 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11475 $ECHO $n$v`$shared_ext'
11476 library_names_spec='${libname}_dll.$libext'
11477 dynamic_linker='OS/2 ld.exe'
11478 shlibpath_var=BEGINLIBPATH
11479 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11481 postinstall_cmds='base_file=`basename \$file`~
11482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11483 dldir=$destdir/`dirname \$dlpath`~
11484 test -d \$dldir || mkdir -p \$dldir~
11485 $install_prog $dir/$dlname \$dldir/$dlname~
11486 chmod a+x \$dldir/$dlname~
11487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11489 fi'
11490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11491 dlpath=$dir/\$dldll~
11492 $RM \$dlpath'
11493 ;;
11494
11495 osf3* | osf4* | osf5*)
11496 version_type=osf
11497 need_lib_prefix=no
11498 need_version=no
11499 soname_spec='$libname$release$shared_ext$major'
11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11503 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11504 ;;
11505
11506 rdos*)
11507 dynamic_linker=no
11508 ;;
11509
11510 solaris*)
11511 version_type=linux # correct to gnu/linux during the next big refactor
11512 need_lib_prefix=no
11513 need_version=no
11514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515 soname_spec='$libname$release$shared_ext$major'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11518 hardcode_into_libs=yes
11519 # ldd complains unless libraries are executable
11520 postinstall_cmds='chmod +x $lib'
11521 ;;
11522
11523 sunos4*)
11524 version_type=sunos
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 if test yes = "$with_gnu_ld"; then
11530 need_lib_prefix=no
11531 fi
11532 need_version=yes
11533 ;;
11534
11535 sysv4 | sysv4.3*)
11536 version_type=linux # correct to gnu/linux during the next big refactor
11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11538 soname_spec='$libname$release$shared_ext$major'
11539 shlibpath_var=LD_LIBRARY_PATH
11540 case $host_vendor in
11541 sni)
11542 shlibpath_overrides_runpath=no
11543 need_lib_prefix=no
11544 runpath_var=LD_RUN_PATH
11545 ;;
11546 siemens)
11547 need_lib_prefix=no
11548 ;;
11549 motorola)
11550 need_lib_prefix=no
11551 need_version=no
11552 shlibpath_overrides_runpath=no
11553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11554 ;;
11555 esac
11556 ;;
11557
11558 sysv4*MP*)
11559 if test -d /usr/nec; then
11560 version_type=linux # correct to gnu/linux during the next big refactor
11561 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11562 soname_spec='$libname$shared_ext.$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 fi
11565 ;;
11566
11567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11568 version_type=sco
11569 need_lib_prefix=no
11570 need_version=no
11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11572 soname_spec='$libname$release$shared_ext$major'
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11575 hardcode_into_libs=yes
11576 if test yes = "$with_gnu_ld"; then
11577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11578 else
11579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11580 case $host_os in
11581 sco3.2v5*)
11582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11583 ;;
11584 esac
11585 fi
11586 sys_lib_dlsearch_path_spec='/usr/lib'
11587 ;;
11588
11589 tpf*)
11590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11591 version_type=linux # correct to gnu/linux during the next big refactor
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597 hardcode_into_libs=yes
11598 ;;
11599
11600 uts4*)
11601 version_type=linux # correct to gnu/linux during the next big refactor
11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 soname_spec='$libname$release$shared_ext$major'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 ;;
11606
11607 *)
11608 dynamic_linker=no
11609 ;;
11610 esac
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11612 $as_echo "$dynamic_linker" >&6; }
11613 test no = "$dynamic_linker" && can_build_shared=no
11614
11615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11616 if test yes = "$GCC"; then
11617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11618 fi
11619
11620 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11621 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11622 fi
11623
11624 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11625 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11626 fi
11627
11628 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11629 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11630
11631 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11632 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11633
11634 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11635 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11734 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11735 hardcode_action=
11736 if test -n "$hardcode_libdir_flag_spec" ||
11737 test -n "$runpath_var" ||
11738 test yes = "$hardcode_automatic"; then
11739
11740 # We can hardcode non-existent directories.
11741 if test no != "$hardcode_direct" &&
11742 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11743 # have to relink, otherwise we might link with an installed library
11744 # when we should be linking with a yet-to-be-installed one
11745 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11746 test no != "$hardcode_minus_L"; then
11747 # Linking always hardcodes the temporary library directory.
11748 hardcode_action=relink
11749 else
11750 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11751 hardcode_action=immediate
11752 fi
11753 else
11754 # We cannot hardcode anything, or else we can only hardcode existing
11755 # directories.
11756 hardcode_action=unsupported
11757 fi
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11759 $as_echo "$hardcode_action" >&6; }
11760
11761 if test relink = "$hardcode_action" ||
11762 test yes = "$inherit_rpath"; then
11763 # Fast installation is not supported
11764 enable_fast_install=no
11765 elif test yes = "$shlibpath_overrides_runpath" ||
11766 test no = "$enable_shared"; then
11767 # Fast installation is not necessary
11768 enable_fast_install=needless
11769 fi
11770
11771
11772
11773
11774
11775
11776 if test yes != "$enable_dlopen"; then
11777 enable_dlopen=unknown
11778 enable_dlopen_self=unknown
11779 enable_dlopen_self_static=unknown
11780 else
11781 lt_cv_dlopen=no
11782 lt_cv_dlopen_libs=
11783
11784 case $host_os in
11785 beos*)
11786 lt_cv_dlopen=load_add_on
11787 lt_cv_dlopen_libs=
11788 lt_cv_dlopen_self=yes
11789 ;;
11790
11791 mingw* | pw32* | cegcc*)
11792 lt_cv_dlopen=LoadLibrary
11793 lt_cv_dlopen_libs=
11794 ;;
11795
11796 cygwin*)
11797 lt_cv_dlopen=dlopen
11798 lt_cv_dlopen_libs=
11799 ;;
11800
11801 darwin*)
11802 # if libdl is installed we need to link against it
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11804 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11805 if ${ac_cv_lib_dl_dlopen+:} false; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 ac_check_lib_save_LIBS=$LIBS
11809 LIBS="-ldl $LIBS"
11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 /* end confdefs.h. */
11812
11813 /* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11816 #ifdef __cplusplus
11817 extern "C"
11818 #endif
11819 char dlopen ();
11820 int
11821 main ()
11822 {
11823 return dlopen ();
11824 ;
11825 return 0;
11826 }
11827 _ACEOF
11828 if ac_fn_c_try_link "$LINENO"; then :
11829 ac_cv_lib_dl_dlopen=yes
11830 else
11831 ac_cv_lib_dl_dlopen=no
11832 fi
11833 rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 LIBS=$ac_check_lib_save_LIBS
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11838 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11839 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11840 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11841 else
11842
11843 lt_cv_dlopen=dyld
11844 lt_cv_dlopen_libs=
11845 lt_cv_dlopen_self=yes
11846
11847 fi
11848
11849 ;;
11850
11851 tpf*)
11852 # Don't try to run any link tests for TPF. We know it's impossible
11853 # because TPF is a cross-compiler, and we know how we open DSOs.
11854 lt_cv_dlopen=dlopen
11855 lt_cv_dlopen_libs=
11856 lt_cv_dlopen_self=no
11857 ;;
11858
11859 *)
11860 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11861 if test "x$ac_cv_func_shl_load" = xyes; then :
11862 lt_cv_dlopen=shl_load
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11865 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11866 if ${ac_cv_lib_dld_shl_load+:} false; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 ac_check_lib_save_LIBS=$LIBS
11870 LIBS="-ldld $LIBS"
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11873
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11877 #ifdef __cplusplus
11878 extern "C"
11879 #endif
11880 char shl_load ();
11881 int
11882 main ()
11883 {
11884 return shl_load ();
11885 ;
11886 return 0;
11887 }
11888 _ACEOF
11889 if ac_fn_c_try_link "$LINENO"; then :
11890 ac_cv_lib_dld_shl_load=yes
11891 else
11892 ac_cv_lib_dld_shl_load=no
11893 fi
11894 rm -f core conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LIBS=$ac_check_lib_save_LIBS
11897 fi
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11899 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11900 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11901 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11902 else
11903 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11904 if test "x$ac_cv_func_dlopen" = xyes; then :
11905 lt_cv_dlopen=dlopen
11906 else
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11909 if ${ac_cv_lib_dl_dlopen+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-ldl $LIBS"
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916
11917 /* Override any GCC internal prototype to avoid an error.
11918 Use char because int might match the return type of a GCC
11919 builtin and then its argument prototype would still apply. */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 char dlopen ();
11924 int
11925 main ()
11926 {
11927 return dlopen ();
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_link "$LINENO"; then :
11933 ac_cv_lib_dl_dlopen=yes
11934 else
11935 ac_cv_lib_dl_dlopen=no
11936 fi
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11942 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11943 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11944 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11947 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11948 if ${ac_cv_lib_svld_dlopen+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-lsvld $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char dlopen ();
11963 int
11964 main ()
11965 {
11966 return dlopen ();
11967 ;
11968 return 0;
11969 }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_svld_dlopen=yes
11973 else
11974 ac_cv_lib_svld_dlopen=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11981 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11982 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11983 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11986 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11987 if ${ac_cv_lib_dld_dld_link+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-ldld $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11994
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char dld_link ();
12002 int
12003 main ()
12004 {
12005 return dld_link ();
12006 ;
12007 return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dld_dld_link=yes
12012 else
12013 ac_cv_lib_dld_dld_link=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12020 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12021 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12022 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12023 fi
12024
12025
12026 fi
12027
12028
12029 fi
12030
12031
12032 fi
12033
12034
12035 fi
12036
12037
12038 fi
12039
12040 ;;
12041 esac
12042
12043 if test no = "$lt_cv_dlopen"; then
12044 enable_dlopen=no
12045 else
12046 enable_dlopen=yes
12047 fi
12048
12049 case $lt_cv_dlopen in
12050 dlopen)
12051 save_CPPFLAGS=$CPPFLAGS
12052 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12053
12054 save_LDFLAGS=$LDFLAGS
12055 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12056
12057 save_LIBS=$LIBS
12058 LIBS="$lt_cv_dlopen_libs $LIBS"
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12061 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12062 if ${lt_cv_dlopen_self+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 if test yes = "$cross_compiling"; then :
12066 lt_cv_dlopen_self=cross
12067 else
12068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12069 lt_status=$lt_dlunknown
12070 cat > conftest.$ac_ext <<_LT_EOF
12071 #line $LINENO "configure"
12072 #include "confdefs.h"
12073
12074 #if HAVE_DLFCN_H
12075 #include <dlfcn.h>
12076 #endif
12077
12078 #include <stdio.h>
12079
12080 #ifdef RTLD_GLOBAL
12081 # define LT_DLGLOBAL RTLD_GLOBAL
12082 #else
12083 # ifdef DL_GLOBAL
12084 # define LT_DLGLOBAL DL_GLOBAL
12085 # else
12086 # define LT_DLGLOBAL 0
12087 # endif
12088 #endif
12089
12090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12091 find out it does not work in some platform. */
12092 #ifndef LT_DLLAZY_OR_NOW
12093 # ifdef RTLD_LAZY
12094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12095 # else
12096 # ifdef DL_LAZY
12097 # define LT_DLLAZY_OR_NOW DL_LAZY
12098 # else
12099 # ifdef RTLD_NOW
12100 # define LT_DLLAZY_OR_NOW RTLD_NOW
12101 # else
12102 # ifdef DL_NOW
12103 # define LT_DLLAZY_OR_NOW DL_NOW
12104 # else
12105 # define LT_DLLAZY_OR_NOW 0
12106 # endif
12107 # endif
12108 # endif
12109 # endif
12110 #endif
12111
12112 /* When -fvisibility=hidden is used, assume the code has been annotated
12113 correspondingly for the symbols needed. */
12114 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12115 int fnord () __attribute__((visibility("default")));
12116 #endif
12117
12118 int fnord () { return 42; }
12119 int main ()
12120 {
12121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12122 int status = $lt_dlunknown;
12123
12124 if (self)
12125 {
12126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12127 else
12128 {
12129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12130 else puts (dlerror ());
12131 }
12132 /* dlclose (self); */
12133 }
12134 else
12135 puts (dlerror ());
12136
12137 return status;
12138 }
12139 _LT_EOF
12140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12141 (eval $ac_link) 2>&5
12142 ac_status=$?
12143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12144 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12145 (./conftest; exit; ) >&5 2>/dev/null
12146 lt_status=$?
12147 case x$lt_status in
12148 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12149 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12150 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12151 esac
12152 else :
12153 # compilation failed
12154 lt_cv_dlopen_self=no
12155 fi
12156 fi
12157 rm -fr conftest*
12158
12159
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12162 $as_echo "$lt_cv_dlopen_self" >&6; }
12163
12164 if test yes = "$lt_cv_dlopen_self"; then
12165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12167 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12168 if ${lt_cv_dlopen_self_static+:} false; then :
12169 $as_echo_n "(cached) " >&6
12170 else
12171 if test yes = "$cross_compiling"; then :
12172 lt_cv_dlopen_self_static=cross
12173 else
12174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12175 lt_status=$lt_dlunknown
12176 cat > conftest.$ac_ext <<_LT_EOF
12177 #line $LINENO "configure"
12178 #include "confdefs.h"
12179
12180 #if HAVE_DLFCN_H
12181 #include <dlfcn.h>
12182 #endif
12183
12184 #include <stdio.h>
12185
12186 #ifdef RTLD_GLOBAL
12187 # define LT_DLGLOBAL RTLD_GLOBAL
12188 #else
12189 # ifdef DL_GLOBAL
12190 # define LT_DLGLOBAL DL_GLOBAL
12191 # else
12192 # define LT_DLGLOBAL 0
12193 # endif
12194 #endif
12195
12196 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12197 find out it does not work in some platform. */
12198 #ifndef LT_DLLAZY_OR_NOW
12199 # ifdef RTLD_LAZY
12200 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12201 # else
12202 # ifdef DL_LAZY
12203 # define LT_DLLAZY_OR_NOW DL_LAZY
12204 # else
12205 # ifdef RTLD_NOW
12206 # define LT_DLLAZY_OR_NOW RTLD_NOW
12207 # else
12208 # ifdef DL_NOW
12209 # define LT_DLLAZY_OR_NOW DL_NOW
12210 # else
12211 # define LT_DLLAZY_OR_NOW 0
12212 # endif
12213 # endif
12214 # endif
12215 # endif
12216 #endif
12217
12218 /* When -fvisibility=hidden is used, assume the code has been annotated
12219 correspondingly for the symbols needed. */
12220 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12221 int fnord () __attribute__((visibility("default")));
12222 #endif
12223
12224 int fnord () { return 42; }
12225 int main ()
12226 {
12227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12228 int status = $lt_dlunknown;
12229
12230 if (self)
12231 {
12232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12233 else
12234 {
12235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12236 else puts (dlerror ());
12237 }
12238 /* dlclose (self); */
12239 }
12240 else
12241 puts (dlerror ());
12242
12243 return status;
12244 }
12245 _LT_EOF
12246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12247 (eval $ac_link) 2>&5
12248 ac_status=$?
12249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12250 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12251 (./conftest; exit; ) >&5 2>/dev/null
12252 lt_status=$?
12253 case x$lt_status in
12254 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12255 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12256 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12257 esac
12258 else :
12259 # compilation failed
12260 lt_cv_dlopen_self_static=no
12261 fi
12262 fi
12263 rm -fr conftest*
12264
12265
12266 fi
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12268 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12269 fi
12270
12271 CPPFLAGS=$save_CPPFLAGS
12272 LDFLAGS=$save_LDFLAGS
12273 LIBS=$save_LIBS
12274 ;;
12275 esac
12276
12277 case $lt_cv_dlopen_self in
12278 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12279 *) enable_dlopen_self=unknown ;;
12280 esac
12281
12282 case $lt_cv_dlopen_self_static in
12283 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12284 *) enable_dlopen_self_static=unknown ;;
12285 esac
12286 fi
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304 striplib=
12305 old_striplib=
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12307 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12308 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12309 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12310 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12312 $as_echo "yes" >&6; }
12313 else
12314 # FIXME - insert some real tests, host_os isn't really good enough
12315 case $host_os in
12316 darwin*)
12317 if test -n "$STRIP"; then
12318 striplib="$STRIP -x"
12319 old_striplib="$STRIP -S"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12321 $as_echo "yes" >&6; }
12322 else
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326 ;;
12327 *)
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12329 $as_echo "no" >&6; }
12330 ;;
12331 esac
12332 fi
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345 # Report what library types will actually be built
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12347 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12349 $as_echo "$can_build_shared" >&6; }
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12352 $as_echo_n "checking whether to build shared libraries... " >&6; }
12353 test no = "$can_build_shared" && enable_shared=no
12354
12355 # On AIX, shared libraries and static libraries use the same namespace, and
12356 # are all built from PIC.
12357 case $host_os in
12358 aix3*)
12359 test yes = "$enable_shared" && enable_static=no
12360 if test -n "$RANLIB"; then
12361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12362 postinstall_cmds='$RANLIB $lib'
12363 fi
12364 ;;
12365
12366 aix[4-9]*)
12367 if test ia64 != "$host_cpu"; then
12368 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12369 yes,aix,yes) ;; # shared object as lib.so file only
12370 yes,svr4,*) ;; # shared object as lib.so archive member only
12371 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12372 esac
12373 fi
12374 ;;
12375 esac
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12377 $as_echo "$enable_shared" >&6; }
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12380 $as_echo_n "checking whether to build static libraries... " >&6; }
12381 # Make sure either enable_shared or enable_static is yes.
12382 test yes = "$enable_shared" || enable_static=yes
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12384 $as_echo "$enable_static" >&6; }
12385
12386
12387
12388
12389 fi
12390 ac_ext=c
12391 ac_cpp='$CPP $CPPFLAGS'
12392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395
12396 CC=$lt_save_CC
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412 ac_config_commands="$ac_config_commands libtool"
12413
12414
12415
12416
12417 # Only expand once:
12418
12419
12420
12421 # Check whether --enable-largefile was given.
12422 if test "${enable_largefile+set}" = set; then :
12423 enableval=$enable_largefile;
12424 fi
12425
12426 if test "$enable_largefile" != no; then
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12429 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12430 if ${ac_cv_sys_largefile_CC+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_cv_sys_largefile_CC=no
12434 if test "$GCC" != yes; then
12435 ac_save_CC=$CC
12436 while :; do
12437 # IRIX 6.2 and later do not support large files by default,
12438 # so use the C compiler's -n32 option if that helps.
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 #include <sys/types.h>
12442 /* Check that off_t can represent 2**63 - 1 correctly.
12443 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12444 since some C++ compilers masquerading as C compilers
12445 incorrectly reject 9223372036854775807. */
12446 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12447 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12448 && LARGE_OFF_T % 2147483647 == 1)
12449 ? 1 : -1];
12450 int
12451 main ()
12452 {
12453
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459 break
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext
12462 CC="$CC -n32"
12463 if ac_fn_c_try_compile "$LINENO"; then :
12464 ac_cv_sys_largefile_CC=' -n32'; break
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext
12467 break
12468 done
12469 CC=$ac_save_CC
12470 rm -f conftest.$ac_ext
12471 fi
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12474 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12475 if test "$ac_cv_sys_largefile_CC" != no; then
12476 CC=$CC$ac_cv_sys_largefile_CC
12477 fi
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12480 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12481 if ${ac_cv_sys_file_offset_bits+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 while :; do
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <sys/types.h>
12488 /* Check that off_t can represent 2**63 - 1 correctly.
12489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12490 since some C++ compilers masquerading as C compilers
12491 incorrectly reject 9223372036854775807. */
12492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12494 && LARGE_OFF_T % 2147483647 == 1)
12495 ? 1 : -1];
12496 int
12497 main ()
12498 {
12499
12500 ;
12501 return 0;
12502 }
12503 _ACEOF
12504 if ac_fn_c_try_compile "$LINENO"; then :
12505 ac_cv_sys_file_offset_bits=no; break
12506 fi
12507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #define _FILE_OFFSET_BITS 64
12511 #include <sys/types.h>
12512 /* Check that off_t can represent 2**63 - 1 correctly.
12513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12514 since some C++ compilers masquerading as C compilers
12515 incorrectly reject 9223372036854775807. */
12516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12518 && LARGE_OFF_T % 2147483647 == 1)
12519 ? 1 : -1];
12520 int
12521 main ()
12522 {
12523
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_compile "$LINENO"; then :
12529 ac_cv_sys_file_offset_bits=64; break
12530 fi
12531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532 ac_cv_sys_file_offset_bits=unknown
12533 break
12534 done
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12537 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12538 case $ac_cv_sys_file_offset_bits in #(
12539 no | unknown) ;;
12540 *)
12541 cat >>confdefs.h <<_ACEOF
12542 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12543 _ACEOF
12544 ;;
12545 esac
12546 rm -rf conftest*
12547 if test $ac_cv_sys_file_offset_bits = unknown; then
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12549 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12550 if ${ac_cv_sys_large_files+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 while :; do
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12556 #include <sys/types.h>
12557 /* Check that off_t can represent 2**63 - 1 correctly.
12558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12559 since some C++ compilers masquerading as C compilers
12560 incorrectly reject 9223372036854775807. */
12561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12563 && LARGE_OFF_T % 2147483647 == 1)
12564 ? 1 : -1];
12565 int
12566 main ()
12567 {
12568
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_compile "$LINENO"; then :
12574 ac_cv_sys_large_files=no; break
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #define _LARGE_FILES 1
12580 #include <sys/types.h>
12581 /* Check that off_t can represent 2**63 - 1 correctly.
12582 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12583 since some C++ compilers masquerading as C compilers
12584 incorrectly reject 9223372036854775807. */
12585 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12587 && LARGE_OFF_T % 2147483647 == 1)
12588 ? 1 : -1];
12589 int
12590 main ()
12591 {
12592
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_compile "$LINENO"; then :
12598 ac_cv_sys_large_files=1; break
12599 fi
12600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601 ac_cv_sys_large_files=unknown
12602 break
12603 done
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12606 $as_echo "$ac_cv_sys_large_files" >&6; }
12607 case $ac_cv_sys_large_files in #(
12608 no | unknown) ;;
12609 *)
12610 cat >>confdefs.h <<_ACEOF
12611 #define _LARGE_FILES $ac_cv_sys_large_files
12612 _ACEOF
12613 ;;
12614 esac
12615 rm -rf conftest*
12616 fi
12617
12618
12619 fi
12620
12621
12622 # Require xorg-macros minimum of 1.15 for fop minimum version
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12635 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12636 if ${ac_cv_prog_cc_c99+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 ac_cv_prog_cc_c99=no
12640 ac_save_CC=$CC
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <stdarg.h>
12644 #include <stdbool.h>
12645 #include <stdlib.h>
12646 #include <wchar.h>
12647 #include <stdio.h>
12648
12649 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12650 #define debug(...) fprintf (stderr, __VA_ARGS__)
12651 #define showlist(...) puts (#__VA_ARGS__)
12652 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12653 static void
12654 test_varargs_macros (void)
12655 {
12656 int x = 1234;
12657 int y = 5678;
12658 debug ("Flag");
12659 debug ("X = %d\n", x);
12660 showlist (The first, second, and third items.);
12661 report (x>y, "x is %d but y is %d", x, y);
12662 }
12663
12664 // Check long long types.
12665 #define BIG64 18446744073709551615ull
12666 #define BIG32 4294967295ul
12667 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12668 #if !BIG_OK
12669 your preprocessor is broken;
12670 #endif
12671 #if BIG_OK
12672 #else
12673 your preprocessor is broken;
12674 #endif
12675 static long long int bignum = -9223372036854775807LL;
12676 static unsigned long long int ubignum = BIG64;
12677
12678 struct incomplete_array
12679 {
12680 int datasize;
12681 double data[];
12682 };
12683
12684 struct named_init {
12685 int number;
12686 const wchar_t *name;
12687 double average;
12688 };
12689
12690 typedef const char *ccp;
12691
12692 static inline int
12693 test_restrict (ccp restrict text)
12694 {
12695 // See if C++-style comments work.
12696 // Iterate through items via the restricted pointer.
12697 // Also check for declarations in for loops.
12698 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12699 continue;
12700 return 0;
12701 }
12702
12703 // Check varargs and va_copy.
12704 static void
12705 test_varargs (const char *format, ...)
12706 {
12707 va_list args;
12708 va_start (args, format);
12709 va_list args_copy;
12710 va_copy (args_copy, args);
12711
12712 const char *str;
12713 int number;
12714 float fnumber;
12715
12716 while (*format)
12717 {
12718 switch (*format++)
12719 {
12720 case 's': // string
12721 str = va_arg (args_copy, const char *);
12722 break;
12723 case 'd': // int
12724 number = va_arg (args_copy, int);
12725 break;
12726 case 'f': // float
12727 fnumber = va_arg (args_copy, double);
12728 break;
12729 default:
12730 break;
12731 }
12732 }
12733 va_end (args_copy);
12734 va_end (args);
12735 }
12736
12737 int
12738 main ()
12739 {
12740
12741 // Check bool.
12742 _Bool success = false;
12743
12744 // Check restrict.
12745 if (test_restrict ("String literal") == 0)
12746 success = true;
12747 char *restrict newvar = "Another string";
12748
12749 // Check varargs.
12750 test_varargs ("s, d' f .", "string", 65, 34.234);
12751 test_varargs_macros ();
12752
12753 // Check flexible array members.
12754 struct incomplete_array *ia =
12755 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12756 ia->datasize = 10;
12757 for (int i = 0; i < ia->datasize; ++i)
12758 ia->data[i] = i * 1.234;
12759
12760 // Check named initializers.
12761 struct named_init ni = {
12762 .number = 34,
12763 .name = L"Test wide string",
12764 .average = 543.34343,
12765 };
12766
12767 ni.number = 58;
12768
12769 int dynamic_array[ni.number];
12770 dynamic_array[ni.number - 1] = 543;
12771
12772 // work around unused variable warnings
12773 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12774 || dynamic_array[ni.number - 1] != 543);
12775
12776 ;
12777 return 0;
12778 }
12779 _ACEOF
12780 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12781 do
12782 CC="$ac_save_CC $ac_arg"
12783 if ac_fn_c_try_compile "$LINENO"; then :
12784 ac_cv_prog_cc_c99=$ac_arg
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext
12787 test "x$ac_cv_prog_cc_c99" != "xno" && break
12788 done
12789 rm -f conftest.$ac_ext
12790 CC=$ac_save_CC
12791
12792 fi
12793 # AC_CACHE_VAL
12794 case "x$ac_cv_prog_cc_c99" in
12795 x)
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12797 $as_echo "none needed" >&6; } ;;
12798 xno)
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12800 $as_echo "unsupported" >&6; } ;;
12801 *)
12802 CC="$CC $ac_cv_prog_cc_c99"
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12804 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12805 esac
12806 if test "x$ac_cv_prog_cc_c99" != xno; then :
12807
12808 fi
12809
12810
12811
12812
12813
12814
12815 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12816 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12817 CLANGCC="yes"
12818 else
12819 CLANGCC="no"
12820 fi
12821
12822 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12823 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12824 INTELCC="yes"
12825 else
12826 INTELCC="no"
12827 fi
12828
12829 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12830 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12831 SUNCC="yes"
12832 else
12833 SUNCC="no"
12834 fi
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12845 if test -n "$ac_tool_prefix"; then
12846 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12847 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12849 $as_echo_n "checking for $ac_word... " >&6; }
12850 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 case $PKG_CONFIG in
12854 [\\/]* | ?:[\\/]*)
12855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12856 ;;
12857 *)
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12860 do
12861 IFS=$as_save_IFS
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12867 break 2
12868 fi
12869 done
12870 done
12871 IFS=$as_save_IFS
12872
12873 ;;
12874 esac
12875 fi
12876 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12877 if test -n "$PKG_CONFIG"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12879 $as_echo "$PKG_CONFIG" >&6; }
12880 else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12883 fi
12884
12885
12886 fi
12887 if test -z "$ac_cv_path_PKG_CONFIG"; then
12888 ac_pt_PKG_CONFIG=$PKG_CONFIG
12889 # Extract the first word of "pkg-config", so it can be a program name with args.
12890 set dummy pkg-config; ac_word=$2
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892 $as_echo_n "checking for $ac_word... " >&6; }
12893 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 case $ac_pt_PKG_CONFIG in
12897 [\\/]* | ?:[\\/]*)
12898 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12899 ;;
12900 *)
12901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902 for as_dir in $PATH
12903 do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12908 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912 done
12913 done
12914 IFS=$as_save_IFS
12915
12916 ;;
12917 esac
12918 fi
12919 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12920 if test -n "$ac_pt_PKG_CONFIG"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12922 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12923 else
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12926 fi
12927
12928 if test "x$ac_pt_PKG_CONFIG" = x; then
12929 PKG_CONFIG=""
12930 else
12931 case $cross_compiling:$ac_tool_warned in
12932 yes:)
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12935 ac_tool_warned=yes ;;
12936 esac
12937 PKG_CONFIG=$ac_pt_PKG_CONFIG
12938 fi
12939 else
12940 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12941 fi
12942
12943 fi
12944 if test -n "$PKG_CONFIG"; then
12945 _pkg_min_version=0.9.0
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12947 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12948 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950 $as_echo "yes" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12954 PKG_CONFIG=""
12955 fi
12956 fi
12957
12958
12959
12960
12961
12962 # Check whether --enable-selective-werror was given.
12963 if test "${enable_selective_werror+set}" = set; then :
12964 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12965 else
12966 SELECTIVE_WERROR=yes
12967 fi
12968
12969
12970
12971
12972
12973 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12974 if test "x$SUNCC" = "xyes"; then
12975 BASE_CFLAGS="-v"
12976 else
12977 BASE_CFLAGS=""
12978 fi
12979
12980 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994 xorg_testset_save_CFLAGS="$CFLAGS"
12995
12996 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12999 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13000 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13001 $as_echo_n "(cached) " >&6
13002 else
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005 int i;
13006 _ACEOF
13007 if ac_fn_c_try_compile "$LINENO"; then :
13008 xorg_cv_cc_flag_unknown_warning_option=yes
13009 else
13010 xorg_cv_cc_flag_unknown_warning_option=no
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13015 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13017 CFLAGS="$xorg_testset_save_CFLAGS"
13018 fi
13019
13020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13023 fi
13024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13026 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13027 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032 int i;
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 xorg_cv_cc_flag_unused_command_line_argument=yes
13036 else
13037 xorg_cv_cc_flag_unused_command_line_argument=no
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 fi
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13042 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13044 CFLAGS="$xorg_testset_save_CFLAGS"
13045 fi
13046
13047 found="no"
13048
13049 if test $found = "no" ; then
13050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13052 fi
13053
13054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13056 fi
13057
13058 CFLAGS="$CFLAGS -Wall"
13059
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13061 $as_echo_n "checking if $CC supports -Wall... " >&6; }
13062 cacheid=xorg_cv_cc_flag__Wall
13063 if eval \${$cacheid+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 int i;
13069 int
13070 main ()
13071 {
13072
13073 ;
13074 return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_link "$LINENO"; then :
13078 eval $cacheid=yes
13079 else
13080 eval $cacheid=no
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13084 fi
13085
13086
13087 CFLAGS="$xorg_testset_save_CFLAGS"
13088
13089 eval supported=\$$cacheid
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13091 $as_echo "$supported" >&6; }
13092 if test "$supported" = "yes" ; then
13093 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13094 found="yes"
13095 fi
13096 fi
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112 xorg_testset_save_CFLAGS="$CFLAGS"
13113
13114 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13117 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13118 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13119 $as_echo_n "(cached) " >&6
13120 else
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13123 int i;
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126 xorg_cv_cc_flag_unknown_warning_option=yes
13127 else
13128 xorg_cv_cc_flag_unknown_warning_option=no
13129 fi
13130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13133 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13135 CFLAGS="$xorg_testset_save_CFLAGS"
13136 fi
13137
13138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13141 fi
13142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13144 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13145 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 int i;
13151 _ACEOF
13152 if ac_fn_c_try_compile "$LINENO"; then :
13153 xorg_cv_cc_flag_unused_command_line_argument=yes
13154 else
13155 xorg_cv_cc_flag_unused_command_line_argument=no
13156 fi
13157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13160 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13162 CFLAGS="$xorg_testset_save_CFLAGS"
13163 fi
13164
13165 found="no"
13166
13167 if test $found = "no" ; then
13168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13170 fi
13171
13172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13174 fi
13175
13176 CFLAGS="$CFLAGS -Wpointer-arith"
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13179 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
13180 cacheid=xorg_cv_cc_flag__Wpointer_arith
13181 if eval \${$cacheid+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 int i;
13187 int
13188 main ()
13189 {
13190
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196 eval $cacheid=yes
13197 else
13198 eval $cacheid=no
13199 fi
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 fi
13203
13204
13205 CFLAGS="$xorg_testset_save_CFLAGS"
13206
13207 eval supported=\$$cacheid
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13209 $as_echo "$supported" >&6; }
13210 if test "$supported" = "yes" ; then
13211 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13212 found="yes"
13213 fi
13214 fi
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230 xorg_testset_save_CFLAGS="$CFLAGS"
13231
13232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13235 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13236 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13237 $as_echo_n "(cached) " >&6
13238 else
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 int i;
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244 xorg_cv_cc_flag_unknown_warning_option=yes
13245 else
13246 xorg_cv_cc_flag_unknown_warning_option=no
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 fi
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13251 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13253 CFLAGS="$xorg_testset_save_CFLAGS"
13254 fi
13255
13256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13259 fi
13260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13262 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13263 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 int i;
13269 _ACEOF
13270 if ac_fn_c_try_compile "$LINENO"; then :
13271 xorg_cv_cc_flag_unused_command_line_argument=yes
13272 else
13273 xorg_cv_cc_flag_unused_command_line_argument=no
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13278 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13280 CFLAGS="$xorg_testset_save_CFLAGS"
13281 fi
13282
13283 found="no"
13284
13285 if test $found = "no" ; then
13286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13288 fi
13289
13290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13292 fi
13293
13294 CFLAGS="$CFLAGS -Wmissing-declarations"
13295
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13297 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13298 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13299 if eval \${$cacheid+:} false; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 int i;
13305 int
13306 main ()
13307 {
13308
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_link "$LINENO"; then :
13314 eval $cacheid=yes
13315 else
13316 eval $cacheid=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319 conftest$ac_exeext conftest.$ac_ext
13320 fi
13321
13322
13323 CFLAGS="$xorg_testset_save_CFLAGS"
13324
13325 eval supported=\$$cacheid
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13327 $as_echo "$supported" >&6; }
13328 if test "$supported" = "yes" ; then
13329 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13330 found="yes"
13331 fi
13332 fi
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 xorg_testset_save_CFLAGS="$CFLAGS"
13349
13350 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13353 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13354 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359 int i;
13360 _ACEOF
13361 if ac_fn_c_try_compile "$LINENO"; then :
13362 xorg_cv_cc_flag_unknown_warning_option=yes
13363 else
13364 xorg_cv_cc_flag_unknown_warning_option=no
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 fi
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13369 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13371 CFLAGS="$xorg_testset_save_CFLAGS"
13372 fi
13373
13374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13377 fi
13378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13380 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13381 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13386 int i;
13387 _ACEOF
13388 if ac_fn_c_try_compile "$LINENO"; then :
13389 xorg_cv_cc_flag_unused_command_line_argument=yes
13390 else
13391 xorg_cv_cc_flag_unused_command_line_argument=no
13392 fi
13393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394 fi
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13396 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13398 CFLAGS="$xorg_testset_save_CFLAGS"
13399 fi
13400
13401 found="no"
13402
13403 if test $found = "no" ; then
13404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13406 fi
13407
13408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13410 fi
13411
13412 CFLAGS="$CFLAGS -Wformat=2"
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13415 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13416 cacheid=xorg_cv_cc_flag__Wformat_2
13417 if eval \${$cacheid+:} false; then :
13418 $as_echo_n "(cached) " >&6
13419 else
13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13421 /* end confdefs.h. */
13422 int i;
13423 int
13424 main ()
13425 {
13426
13427 ;
13428 return 0;
13429 }
13430 _ACEOF
13431 if ac_fn_c_try_link "$LINENO"; then :
13432 eval $cacheid=yes
13433 else
13434 eval $cacheid=no
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
13438 fi
13439
13440
13441 CFLAGS="$xorg_testset_save_CFLAGS"
13442
13443 eval supported=\$$cacheid
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13445 $as_echo "$supported" >&6; }
13446 if test "$supported" = "yes" ; then
13447 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13448 found="yes"
13449 fi
13450 fi
13451
13452 if test $found = "no" ; then
13453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13455 fi
13456
13457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13459 fi
13460
13461 CFLAGS="$CFLAGS -Wformat"
13462
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13464 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13465 cacheid=xorg_cv_cc_flag__Wformat
13466 if eval \${$cacheid+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 int i;
13472 int
13473 main ()
13474 {
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 eval $cacheid=yes
13482 else
13483 eval $cacheid=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 fi
13488
13489
13490 CFLAGS="$xorg_testset_save_CFLAGS"
13491
13492 eval supported=\$$cacheid
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13494 $as_echo "$supported" >&6; }
13495 if test "$supported" = "yes" ; then
13496 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13497 found="yes"
13498 fi
13499 fi
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517 xorg_testset_save_CFLAGS="$CFLAGS"
13518
13519 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13522 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13523 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 int i;
13529 _ACEOF
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 xorg_cv_cc_flag_unknown_warning_option=yes
13532 else
13533 xorg_cv_cc_flag_unknown_warning_option=no
13534 fi
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13538 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13540 CFLAGS="$xorg_testset_save_CFLAGS"
13541 fi
13542
13543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13546 fi
13547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13549 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13550 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 int i;
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"; then :
13558 xorg_cv_cc_flag_unused_command_line_argument=yes
13559 else
13560 xorg_cv_cc_flag_unused_command_line_argument=no
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 fi
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13565 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13567 CFLAGS="$xorg_testset_save_CFLAGS"
13568 fi
13569
13570 found="no"
13571
13572 if test $found = "no" ; then
13573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575 fi
13576
13577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13579 fi
13580
13581 CFLAGS="$CFLAGS -Wstrict-prototypes"
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13584 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13585 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13586 if eval \${$cacheid+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 int i;
13592 int
13593 main ()
13594 {
13595
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 eval $cacheid=yes
13602 else
13603 eval $cacheid=no
13604 fi
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 fi
13608
13609
13610 CFLAGS="$xorg_testset_save_CFLAGS"
13611
13612 eval supported=\$$cacheid
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13614 $as_echo "$supported" >&6; }
13615 if test "$supported" = "yes" ; then
13616 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13617 found="yes"
13618 fi
13619 fi
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635 xorg_testset_save_CFLAGS="$CFLAGS"
13636
13637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13640 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13641 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13646 int i;
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 xorg_cv_cc_flag_unknown_warning_option=yes
13650 else
13651 xorg_cv_cc_flag_unknown_warning_option=no
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13656 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13658 CFLAGS="$xorg_testset_save_CFLAGS"
13659 fi
13660
13661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13664 fi
13665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13667 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13668 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 int i;
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 xorg_cv_cc_flag_unused_command_line_argument=yes
13677 else
13678 xorg_cv_cc_flag_unused_command_line_argument=no
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 fi
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13683 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13685 CFLAGS="$xorg_testset_save_CFLAGS"
13686 fi
13687
13688 found="no"
13689
13690 if test $found = "no" ; then
13691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693 fi
13694
13695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13697 fi
13698
13699 CFLAGS="$CFLAGS -Wmissing-prototypes"
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13702 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13703 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13704 if eval \${$cacheid+:} false; then :
13705 $as_echo_n "(cached) " >&6
13706 else
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 int i;
13710 int
13711 main ()
13712 {
13713
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_c_try_link "$LINENO"; then :
13719 eval $cacheid=yes
13720 else
13721 eval $cacheid=no
13722 fi
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 fi
13726
13727
13728 CFLAGS="$xorg_testset_save_CFLAGS"
13729
13730 eval supported=\$$cacheid
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13732 $as_echo "$supported" >&6; }
13733 if test "$supported" = "yes" ; then
13734 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13735 found="yes"
13736 fi
13737 fi
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753 xorg_testset_save_CFLAGS="$CFLAGS"
13754
13755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13758 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13759 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 int i;
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 xorg_cv_cc_flag_unknown_warning_option=yes
13768 else
13769 xorg_cv_cc_flag_unknown_warning_option=no
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13774 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13776 CFLAGS="$xorg_testset_save_CFLAGS"
13777 fi
13778
13779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13782 fi
13783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13785 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13786 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13791 int i;
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794 xorg_cv_cc_flag_unused_command_line_argument=yes
13795 else
13796 xorg_cv_cc_flag_unused_command_line_argument=no
13797 fi
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13801 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13803 CFLAGS="$xorg_testset_save_CFLAGS"
13804 fi
13805
13806 found="no"
13807
13808 if test $found = "no" ; then
13809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811 fi
13812
13813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13815 fi
13816
13817 CFLAGS="$CFLAGS -Wnested-externs"
13818
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13820 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13821 cacheid=xorg_cv_cc_flag__Wnested_externs
13822 if eval \${$cacheid+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 int i;
13828 int
13829 main ()
13830 {
13831
13832 ;
13833 return 0;
13834 }
13835 _ACEOF
13836 if ac_fn_c_try_link "$LINENO"; then :
13837 eval $cacheid=yes
13838 else
13839 eval $cacheid=no
13840 fi
13841 rm -f core conftest.err conftest.$ac_objext \
13842 conftest$ac_exeext conftest.$ac_ext
13843 fi
13844
13845
13846 CFLAGS="$xorg_testset_save_CFLAGS"
13847
13848 eval supported=\$$cacheid
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13850 $as_echo "$supported" >&6; }
13851 if test "$supported" = "yes" ; then
13852 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13853 found="yes"
13854 fi
13855 fi
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871 xorg_testset_save_CFLAGS="$CFLAGS"
13872
13873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13876 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13877 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 int i;
13883 _ACEOF
13884 if ac_fn_c_try_compile "$LINENO"; then :
13885 xorg_cv_cc_flag_unknown_warning_option=yes
13886 else
13887 xorg_cv_cc_flag_unknown_warning_option=no
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 fi
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13892 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13894 CFLAGS="$xorg_testset_save_CFLAGS"
13895 fi
13896
13897 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13900 fi
13901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13903 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13904 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 int i;
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912 xorg_cv_cc_flag_unused_command_line_argument=yes
13913 else
13914 xorg_cv_cc_flag_unused_command_line_argument=no
13915 fi
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13919 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13921 CFLAGS="$xorg_testset_save_CFLAGS"
13922 fi
13923
13924 found="no"
13925
13926 if test $found = "no" ; then
13927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929 fi
13930
13931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13933 fi
13934
13935 CFLAGS="$CFLAGS -Wbad-function-cast"
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13938 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13939 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13940 if eval \${$cacheid+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13945 int i;
13946 int
13947 main ()
13948 {
13949
13950 ;
13951 return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_link "$LINENO"; then :
13955 eval $cacheid=yes
13956 else
13957 eval $cacheid=no
13958 fi
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 fi
13962
13963
13964 CFLAGS="$xorg_testset_save_CFLAGS"
13965
13966 eval supported=\$$cacheid
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13968 $as_echo "$supported" >&6; }
13969 if test "$supported" = "yes" ; then
13970 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13971 found="yes"
13972 fi
13973 fi
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989 xorg_testset_save_CFLAGS="$CFLAGS"
13990
13991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13994 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13995 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 int i;
14001 _ACEOF
14002 if ac_fn_c_try_compile "$LINENO"; then :
14003 xorg_cv_cc_flag_unknown_warning_option=yes
14004 else
14005 xorg_cv_cc_flag_unknown_warning_option=no
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 fi
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14010 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14012 CFLAGS="$xorg_testset_save_CFLAGS"
14013 fi
14014
14015 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14018 fi
14019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14021 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14022 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 int i;
14028 _ACEOF
14029 if ac_fn_c_try_compile "$LINENO"; then :
14030 xorg_cv_cc_flag_unused_command_line_argument=yes
14031 else
14032 xorg_cv_cc_flag_unused_command_line_argument=no
14033 fi
14034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14037 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14039 CFLAGS="$xorg_testset_save_CFLAGS"
14040 fi
14041
14042 found="no"
14043
14044 if test $found = "no" ; then
14045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14047 fi
14048
14049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14051 fi
14052
14053 CFLAGS="$CFLAGS -Wold-style-definition"
14054
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14056 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
14057 cacheid=xorg_cv_cc_flag__Wold_style_definition
14058 if eval \${$cacheid+:} false; then :
14059 $as_echo_n "(cached) " >&6
14060 else
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 int i;
14064 int
14065 main ()
14066 {
14067
14068 ;
14069 return 0;
14070 }
14071 _ACEOF
14072 if ac_fn_c_try_link "$LINENO"; then :
14073 eval $cacheid=yes
14074 else
14075 eval $cacheid=no
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext \
14078 conftest$ac_exeext conftest.$ac_ext
14079 fi
14080
14081
14082 CFLAGS="$xorg_testset_save_CFLAGS"
14083
14084 eval supported=\$$cacheid
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14086 $as_echo "$supported" >&6; }
14087 if test "$supported" = "yes" ; then
14088 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14089 found="yes"
14090 fi
14091 fi
14092
14093 if test $found = "no" ; then
14094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14096 fi
14097
14098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14100 fi
14101
14102 CFLAGS="$CFLAGS -fd"
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14105 $as_echo_n "checking if $CC supports -fd... " >&6; }
14106 cacheid=xorg_cv_cc_flag__fd
14107 if eval \${$cacheid+:} false; then :
14108 $as_echo_n "(cached) " >&6
14109 else
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14112 int i;
14113 int
14114 main ()
14115 {
14116
14117 ;
14118 return 0;
14119 }
14120 _ACEOF
14121 if ac_fn_c_try_link "$LINENO"; then :
14122 eval $cacheid=yes
14123 else
14124 eval $cacheid=no
14125 fi
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 fi
14129
14130
14131 CFLAGS="$xorg_testset_save_CFLAGS"
14132
14133 eval supported=\$$cacheid
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14135 $as_echo "$supported" >&6; }
14136 if test "$supported" = "yes" ; then
14137 BASE_CFLAGS="$BASE_CFLAGS -fd"
14138 found="yes"
14139 fi
14140 fi
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156 xorg_testset_save_CFLAGS="$CFLAGS"
14157
14158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14161 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14162 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14163 $as_echo_n "(cached) " >&6
14164 else
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 int i;
14168 _ACEOF
14169 if ac_fn_c_try_compile "$LINENO"; then :
14170 xorg_cv_cc_flag_unknown_warning_option=yes
14171 else
14172 xorg_cv_cc_flag_unknown_warning_option=no
14173 fi
14174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14177 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14179 CFLAGS="$xorg_testset_save_CFLAGS"
14180 fi
14181
14182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14185 fi
14186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14188 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14189 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194 int i;
14195 _ACEOF
14196 if ac_fn_c_try_compile "$LINENO"; then :
14197 xorg_cv_cc_flag_unused_command_line_argument=yes
14198 else
14199 xorg_cv_cc_flag_unused_command_line_argument=no
14200 fi
14201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202 fi
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14204 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14206 CFLAGS="$xorg_testset_save_CFLAGS"
14207 fi
14208
14209 found="no"
14210
14211 if test $found = "no" ; then
14212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14214 fi
14215
14216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14218 fi
14219
14220 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14221
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14223 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14224 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14225 if eval \${$cacheid+:} false; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 int i;
14231 int
14232 main ()
14233 {
14234
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 eval $cacheid=yes
14241 else
14242 eval $cacheid=no
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14246 fi
14247
14248
14249 CFLAGS="$xorg_testset_save_CFLAGS"
14250
14251 eval supported=\$$cacheid
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14253 $as_echo "$supported" >&6; }
14254 if test "$supported" = "yes" ; then
14255 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14256 found="yes"
14257 fi
14258 fi
14259
14260
14261
14262
14263
14264 # This chunk adds additional warnings that could catch undesired effects.
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278 xorg_testset_save_CFLAGS="$CFLAGS"
14279
14280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14283 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14284 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 int i;
14290 _ACEOF
14291 if ac_fn_c_try_compile "$LINENO"; then :
14292 xorg_cv_cc_flag_unknown_warning_option=yes
14293 else
14294 xorg_cv_cc_flag_unknown_warning_option=no
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14297 fi
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14299 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14301 CFLAGS="$xorg_testset_save_CFLAGS"
14302 fi
14303
14304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307 fi
14308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14310 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14311 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14312 $as_echo_n "(cached) " >&6
14313 else
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 int i;
14317 _ACEOF
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319 xorg_cv_cc_flag_unused_command_line_argument=yes
14320 else
14321 xorg_cv_cc_flag_unused_command_line_argument=no
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14326 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14328 CFLAGS="$xorg_testset_save_CFLAGS"
14329 fi
14330
14331 found="no"
14332
14333 if test $found = "no" ; then
14334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336 fi
14337
14338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14340 fi
14341
14342 CFLAGS="$CFLAGS -Wunused"
14343
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14345 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
14346 cacheid=xorg_cv_cc_flag__Wunused
14347 if eval \${$cacheid+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 int i;
14353 int
14354 main ()
14355 {
14356
14357 ;
14358 return 0;
14359 }
14360 _ACEOF
14361 if ac_fn_c_try_link "$LINENO"; then :
14362 eval $cacheid=yes
14363 else
14364 eval $cacheid=no
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext \
14367 conftest$ac_exeext conftest.$ac_ext
14368 fi
14369
14370
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14372
14373 eval supported=\$$cacheid
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14375 $as_echo "$supported" >&6; }
14376 if test "$supported" = "yes" ; then
14377 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14378 found="yes"
14379 fi
14380 fi
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396 xorg_testset_save_CFLAGS="$CFLAGS"
14397
14398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14401 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14402 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14403 $as_echo_n "(cached) " >&6
14404 else
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 int i;
14408 _ACEOF
14409 if ac_fn_c_try_compile "$LINENO"; then :
14410 xorg_cv_cc_flag_unknown_warning_option=yes
14411 else
14412 xorg_cv_cc_flag_unknown_warning_option=no
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 fi
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14417 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14419 CFLAGS="$xorg_testset_save_CFLAGS"
14420 fi
14421
14422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425 fi
14426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14428 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14429 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431 else
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434 int i;
14435 _ACEOF
14436 if ac_fn_c_try_compile "$LINENO"; then :
14437 xorg_cv_cc_flag_unused_command_line_argument=yes
14438 else
14439 xorg_cv_cc_flag_unused_command_line_argument=no
14440 fi
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14444 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14446 CFLAGS="$xorg_testset_save_CFLAGS"
14447 fi
14448
14449 found="no"
14450
14451 if test $found = "no" ; then
14452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454 fi
14455
14456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14458 fi
14459
14460 CFLAGS="$CFLAGS -Wuninitialized"
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14463 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14464 cacheid=xorg_cv_cc_flag__Wuninitialized
14465 if eval \${$cacheid+:} false; then :
14466 $as_echo_n "(cached) " >&6
14467 else
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 int i;
14471 int
14472 main ()
14473 {
14474
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 if ac_fn_c_try_link "$LINENO"; then :
14480 eval $cacheid=yes
14481 else
14482 eval $cacheid=no
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486 fi
14487
14488
14489 CFLAGS="$xorg_testset_save_CFLAGS"
14490
14491 eval supported=\$$cacheid
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14493 $as_echo "$supported" >&6; }
14494 if test "$supported" = "yes" ; then
14495 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14496 found="yes"
14497 fi
14498 fi
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514 xorg_testset_save_CFLAGS="$CFLAGS"
14515
14516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14519 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14520 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14525 int i;
14526 _ACEOF
14527 if ac_fn_c_try_compile "$LINENO"; then :
14528 xorg_cv_cc_flag_unknown_warning_option=yes
14529 else
14530 xorg_cv_cc_flag_unknown_warning_option=no
14531 fi
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 fi
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14535 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14537 CFLAGS="$xorg_testset_save_CFLAGS"
14538 fi
14539
14540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543 fi
14544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14546 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14547 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552 int i;
14553 _ACEOF
14554 if ac_fn_c_try_compile "$LINENO"; then :
14555 xorg_cv_cc_flag_unused_command_line_argument=yes
14556 else
14557 xorg_cv_cc_flag_unused_command_line_argument=no
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 fi
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14562 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14564 CFLAGS="$xorg_testset_save_CFLAGS"
14565 fi
14566
14567 found="no"
14568
14569 if test $found = "no" ; then
14570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14572 fi
14573
14574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14576 fi
14577
14578 CFLAGS="$CFLAGS -Wshadow"
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14581 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14582 cacheid=xorg_cv_cc_flag__Wshadow
14583 if eval \${$cacheid+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 int i;
14589 int
14590 main ()
14591 {
14592
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_link "$LINENO"; then :
14598 eval $cacheid=yes
14599 else
14600 eval $cacheid=no
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14604 fi
14605
14606
14607 CFLAGS="$xorg_testset_save_CFLAGS"
14608
14609 eval supported=\$$cacheid
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14611 $as_echo "$supported" >&6; }
14612 if test "$supported" = "yes" ; then
14613 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14614 found="yes"
14615 fi
14616 fi
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632 xorg_testset_save_CFLAGS="$CFLAGS"
14633
14634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14637 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14638 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14639 $as_echo_n "(cached) " >&6
14640 else
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 int i;
14644 _ACEOF
14645 if ac_fn_c_try_compile "$LINENO"; then :
14646 xorg_cv_cc_flag_unknown_warning_option=yes
14647 else
14648 xorg_cv_cc_flag_unknown_warning_option=no
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 fi
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14653 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14655 CFLAGS="$xorg_testset_save_CFLAGS"
14656 fi
14657
14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661 fi
14662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14664 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14665 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14666 $as_echo_n "(cached) " >&6
14667 else
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670 int i;
14671 _ACEOF
14672 if ac_fn_c_try_compile "$LINENO"; then :
14673 xorg_cv_cc_flag_unused_command_line_argument=yes
14674 else
14675 xorg_cv_cc_flag_unused_command_line_argument=no
14676 fi
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14678 fi
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14680 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14682 CFLAGS="$xorg_testset_save_CFLAGS"
14683 fi
14684
14685 found="no"
14686
14687 if test $found = "no" ; then
14688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14690 fi
14691
14692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14694 fi
14695
14696 CFLAGS="$CFLAGS -Wmissing-noreturn"
14697
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14699 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14700 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14701 if eval \${$cacheid+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 int i;
14707 int
14708 main ()
14709 {
14710
14711 ;
14712 return 0;
14713 }
14714 _ACEOF
14715 if ac_fn_c_try_link "$LINENO"; then :
14716 eval $cacheid=yes
14717 else
14718 eval $cacheid=no
14719 fi
14720 rm -f core conftest.err conftest.$ac_objext \
14721 conftest$ac_exeext conftest.$ac_ext
14722 fi
14723
14724
14725 CFLAGS="$xorg_testset_save_CFLAGS"
14726
14727 eval supported=\$$cacheid
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14729 $as_echo "$supported" >&6; }
14730 if test "$supported" = "yes" ; then
14731 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14732 found="yes"
14733 fi
14734 fi
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750 xorg_testset_save_CFLAGS="$CFLAGS"
14751
14752 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14755 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14756 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14757 $as_echo_n "(cached) " >&6
14758 else
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14761 int i;
14762 _ACEOF
14763 if ac_fn_c_try_compile "$LINENO"; then :
14764 xorg_cv_cc_flag_unknown_warning_option=yes
14765 else
14766 xorg_cv_cc_flag_unknown_warning_option=no
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769 fi
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14771 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14773 CFLAGS="$xorg_testset_save_CFLAGS"
14774 fi
14775
14776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779 fi
14780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14782 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14783 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 int i;
14789 _ACEOF
14790 if ac_fn_c_try_compile "$LINENO"; then :
14791 xorg_cv_cc_flag_unused_command_line_argument=yes
14792 else
14793 xorg_cv_cc_flag_unused_command_line_argument=no
14794 fi
14795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796 fi
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14798 $as_echo "$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 -Wmissing-format-attribute"
14815
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14817 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14818 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14819 if eval \${$cacheid+:} false; then :
14820 $as_echo_n "(cached) " >&6
14821 else
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14824 int i;
14825 int
14826 main ()
14827 {
14828
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 if ac_fn_c_try_link "$LINENO"; then :
14834 eval $cacheid=yes
14835 else
14836 eval $cacheid=no
14837 fi
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14840 fi
14841
14842
14843 CFLAGS="$xorg_testset_save_CFLAGS"
14844
14845 eval supported=\$$cacheid
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14847 $as_echo "$supported" >&6; }
14848 if test "$supported" = "yes" ; then
14849 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14850 found="yes"
14851 fi
14852 fi
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868 xorg_testset_save_CFLAGS="$CFLAGS"
14869
14870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14873 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14874 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 int i;
14880 _ACEOF
14881 if ac_fn_c_try_compile "$LINENO"; then :
14882 xorg_cv_cc_flag_unknown_warning_option=yes
14883 else
14884 xorg_cv_cc_flag_unknown_warning_option=no
14885 fi
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14889 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14891 CFLAGS="$xorg_testset_save_CFLAGS"
14892 fi
14893
14894 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897 fi
14898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14900 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14901 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14902 $as_echo_n "(cached) " >&6
14903 else
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 int i;
14907 _ACEOF
14908 if ac_fn_c_try_compile "$LINENO"; then :
14909 xorg_cv_cc_flag_unused_command_line_argument=yes
14910 else
14911 xorg_cv_cc_flag_unused_command_line_argument=no
14912 fi
14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14916 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14918 CFLAGS="$xorg_testset_save_CFLAGS"
14919 fi
14920
14921 found="no"
14922
14923 if test $found = "no" ; then
14924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14926 fi
14927
14928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14930 fi
14931
14932 CFLAGS="$CFLAGS -Wredundant-decls"
14933
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14935 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14936 cacheid=xorg_cv_cc_flag__Wredundant_decls
14937 if eval \${$cacheid+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939 else
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 int i;
14943 int
14944 main ()
14945 {
14946
14947 ;
14948 return 0;
14949 }
14950 _ACEOF
14951 if ac_fn_c_try_link "$LINENO"; then :
14952 eval $cacheid=yes
14953 else
14954 eval $cacheid=no
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 fi
14959
14960
14961 CFLAGS="$xorg_testset_save_CFLAGS"
14962
14963 eval supported=\$$cacheid
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14965 $as_echo "$supported" >&6; }
14966 if test "$supported" = "yes" ; then
14967 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14968 found="yes"
14969 fi
14970 fi
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986 xorg_testset_save_CFLAGS="$CFLAGS"
14987
14988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14991 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14992 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997 int i;
14998 _ACEOF
14999 if ac_fn_c_try_compile "$LINENO"; then :
15000 xorg_cv_cc_flag_unknown_warning_option=yes
15001 else
15002 xorg_cv_cc_flag_unknown_warning_option=no
15003 fi
15004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15005 fi
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15007 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15009 CFLAGS="$xorg_testset_save_CFLAGS"
15010 fi
15011
15012 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15015 fi
15016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15018 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15019 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 int i;
15025 _ACEOF
15026 if ac_fn_c_try_compile "$LINENO"; then :
15027 xorg_cv_cc_flag_unused_command_line_argument=yes
15028 else
15029 xorg_cv_cc_flag_unused_command_line_argument=no
15030 fi
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 fi
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15034 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15036 CFLAGS="$xorg_testset_save_CFLAGS"
15037 fi
15038
15039 found="no"
15040
15041 if test $found = "no" ; then
15042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15044 fi
15045
15046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15048 fi
15049
15050 CFLAGS="$CFLAGS -Wlogical-op"
15051
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15053 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
15054 cacheid=xorg_cv_cc_flag__Wlogical_op
15055 if eval \${$cacheid+:} false; then :
15056 $as_echo_n "(cached) " >&6
15057 else
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060 int i;
15061 int
15062 main ()
15063 {
15064
15065 ;
15066 return 0;
15067 }
15068 _ACEOF
15069 if ac_fn_c_try_link "$LINENO"; then :
15070 eval $cacheid=yes
15071 else
15072 eval $cacheid=no
15073 fi
15074 rm -f core conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
15076 fi
15077
15078
15079 CFLAGS="$xorg_testset_save_CFLAGS"
15080
15081 eval supported=\$$cacheid
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15083 $as_echo "$supported" >&6; }
15084 if test "$supported" = "yes" ; then
15085 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15086 found="yes"
15087 fi
15088 fi
15089
15090
15091
15092 # These are currently disabled because they are noisy. They will be enabled
15093 # in the future once the codebase is sufficiently modernized to silence
15094 # them. For now, I don't want them to drown out the other warnings.
15095 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15096 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15097 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15098
15099 # Turn some warnings into errors, so we don't accidently get successful builds
15100 # when there are problems that should be fixed.
15101
15102 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116 xorg_testset_save_CFLAGS="$CFLAGS"
15117
15118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15121 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15122 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127 int i;
15128 _ACEOF
15129 if ac_fn_c_try_compile "$LINENO"; then :
15130 xorg_cv_cc_flag_unknown_warning_option=yes
15131 else
15132 xorg_cv_cc_flag_unknown_warning_option=no
15133 fi
15134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15135 fi
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15137 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15139 CFLAGS="$xorg_testset_save_CFLAGS"
15140 fi
15141
15142 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15145 fi
15146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15148 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15149 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15150 $as_echo_n "(cached) " >&6
15151 else
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 int i;
15155 _ACEOF
15156 if ac_fn_c_try_compile "$LINENO"; then :
15157 xorg_cv_cc_flag_unused_command_line_argument=yes
15158 else
15159 xorg_cv_cc_flag_unused_command_line_argument=no
15160 fi
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15164 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15166 CFLAGS="$xorg_testset_save_CFLAGS"
15167 fi
15168
15169 found="no"
15170
15171 if test $found = "no" ; then
15172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15174 fi
15175
15176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15178 fi
15179
15180 CFLAGS="$CFLAGS -Werror=implicit"
15181
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15183 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
15184 cacheid=xorg_cv_cc_flag__Werror_implicit
15185 if eval \${$cacheid+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 int i;
15191 int
15192 main ()
15193 {
15194
15195 ;
15196 return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_c_try_link "$LINENO"; then :
15200 eval $cacheid=yes
15201 else
15202 eval $cacheid=no
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
15206 fi
15207
15208
15209 CFLAGS="$xorg_testset_save_CFLAGS"
15210
15211 eval supported=\$$cacheid
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15213 $as_echo "$supported" >&6; }
15214 if test "$supported" = "yes" ; then
15215 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15216 found="yes"
15217 fi
15218 fi
15219
15220 if test $found = "no" ; then
15221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15223 fi
15224
15225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15227 fi
15228
15229 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15230
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15232 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15233 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15234 if eval \${$cacheid+:} false; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 int i;
15240 int
15241 main ()
15242 {
15243
15244 ;
15245 return 0;
15246 }
15247 _ACEOF
15248 if ac_fn_c_try_link "$LINENO"; then :
15249 eval $cacheid=yes
15250 else
15251 eval $cacheid=no
15252 fi
15253 rm -f core conftest.err conftest.$ac_objext \
15254 conftest$ac_exeext conftest.$ac_ext
15255 fi
15256
15257
15258 CFLAGS="$xorg_testset_save_CFLAGS"
15259
15260 eval supported=\$$cacheid
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15262 $as_echo "$supported" >&6; }
15263 if test "$supported" = "yes" ; then
15264 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15265 found="yes"
15266 fi
15267 fi
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283 xorg_testset_save_CFLAGS="$CFLAGS"
15284
15285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15288 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15289 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15294 int i;
15295 _ACEOF
15296 if ac_fn_c_try_compile "$LINENO"; then :
15297 xorg_cv_cc_flag_unknown_warning_option=yes
15298 else
15299 xorg_cv_cc_flag_unknown_warning_option=no
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 fi
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15304 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15305 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15306 CFLAGS="$xorg_testset_save_CFLAGS"
15307 fi
15308
15309 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15312 fi
15313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15315 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15316 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 int i;
15322 _ACEOF
15323 if ac_fn_c_try_compile "$LINENO"; then :
15324 xorg_cv_cc_flag_unused_command_line_argument=yes
15325 else
15326 xorg_cv_cc_flag_unused_command_line_argument=no
15327 fi
15328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15331 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15333 CFLAGS="$xorg_testset_save_CFLAGS"
15334 fi
15335
15336 found="no"
15337
15338 if test $found = "no" ; then
15339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341 fi
15342
15343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15345 fi
15346
15347 CFLAGS="$CFLAGS -Werror=nonnull"
15348
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15350 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15351 cacheid=xorg_cv_cc_flag__Werror_nonnull
15352 if eval \${$cacheid+:} false; then :
15353 $as_echo_n "(cached) " >&6
15354 else
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 int i;
15358 int
15359 main ()
15360 {
15361
15362 ;
15363 return 0;
15364 }
15365 _ACEOF
15366 if ac_fn_c_try_link "$LINENO"; then :
15367 eval $cacheid=yes
15368 else
15369 eval $cacheid=no
15370 fi
15371 rm -f core conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15373 fi
15374
15375
15376 CFLAGS="$xorg_testset_save_CFLAGS"
15377
15378 eval supported=\$$cacheid
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15380 $as_echo "$supported" >&6; }
15381 if test "$supported" = "yes" ; then
15382 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15383 found="yes"
15384 fi
15385 fi
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401 xorg_testset_save_CFLAGS="$CFLAGS"
15402
15403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15406 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15407 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 int i;
15413 _ACEOF
15414 if ac_fn_c_try_compile "$LINENO"; then :
15415 xorg_cv_cc_flag_unknown_warning_option=yes
15416 else
15417 xorg_cv_cc_flag_unknown_warning_option=no
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15420 fi
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15422 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15424 CFLAGS="$xorg_testset_save_CFLAGS"
15425 fi
15426
15427 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15430 fi
15431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15433 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15434 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439 int i;
15440 _ACEOF
15441 if ac_fn_c_try_compile "$LINENO"; then :
15442 xorg_cv_cc_flag_unused_command_line_argument=yes
15443 else
15444 xorg_cv_cc_flag_unused_command_line_argument=no
15445 fi
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 fi
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15449 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15451 CFLAGS="$xorg_testset_save_CFLAGS"
15452 fi
15453
15454 found="no"
15455
15456 if test $found = "no" ; then
15457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459 fi
15460
15461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15463 fi
15464
15465 CFLAGS="$CFLAGS -Werror=init-self"
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15468 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15469 cacheid=xorg_cv_cc_flag__Werror_init_self
15470 if eval \${$cacheid+:} false; then :
15471 $as_echo_n "(cached) " >&6
15472 else
15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h. */
15475 int i;
15476 int
15477 main ()
15478 {
15479
15480 ;
15481 return 0;
15482 }
15483 _ACEOF
15484 if ac_fn_c_try_link "$LINENO"; then :
15485 eval $cacheid=yes
15486 else
15487 eval $cacheid=no
15488 fi
15489 rm -f core conftest.err conftest.$ac_objext \
15490 conftest$ac_exeext conftest.$ac_ext
15491 fi
15492
15493
15494 CFLAGS="$xorg_testset_save_CFLAGS"
15495
15496 eval supported=\$$cacheid
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15498 $as_echo "$supported" >&6; }
15499 if test "$supported" = "yes" ; then
15500 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15501 found="yes"
15502 fi
15503 fi
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519 xorg_testset_save_CFLAGS="$CFLAGS"
15520
15521 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15524 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15525 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15526 $as_echo_n "(cached) " >&6
15527 else
15528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15530 int i;
15531 _ACEOF
15532 if ac_fn_c_try_compile "$LINENO"; then :
15533 xorg_cv_cc_flag_unknown_warning_option=yes
15534 else
15535 xorg_cv_cc_flag_unknown_warning_option=no
15536 fi
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 fi
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15540 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15542 CFLAGS="$xorg_testset_save_CFLAGS"
15543 fi
15544
15545 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15548 fi
15549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15551 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15552 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15553 $as_echo_n "(cached) " >&6
15554 else
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"; then :
15560 xorg_cv_cc_flag_unused_command_line_argument=yes
15561 else
15562 xorg_cv_cc_flag_unused_command_line_argument=no
15563 fi
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15567 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15569 CFLAGS="$xorg_testset_save_CFLAGS"
15570 fi
15571
15572 found="no"
15573
15574 if test $found = "no" ; then
15575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15576 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15577 fi
15578
15579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15581 fi
15582
15583 CFLAGS="$CFLAGS -Werror=main"
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15586 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15587 cacheid=xorg_cv_cc_flag__Werror_main
15588 if eval \${$cacheid+:} false; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 int i;
15594 int
15595 main ()
15596 {
15597
15598 ;
15599 return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_c_try_link "$LINENO"; then :
15603 eval $cacheid=yes
15604 else
15605 eval $cacheid=no
15606 fi
15607 rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 fi
15610
15611
15612 CFLAGS="$xorg_testset_save_CFLAGS"
15613
15614 eval supported=\$$cacheid
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15616 $as_echo "$supported" >&6; }
15617 if test "$supported" = "yes" ; then
15618 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15619 found="yes"
15620 fi
15621 fi
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637 xorg_testset_save_CFLAGS="$CFLAGS"
15638
15639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15644 $as_echo_n "(cached) " >&6
15645 else
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648 int i;
15649 _ACEOF
15650 if ac_fn_c_try_compile "$LINENO"; then :
15651 xorg_cv_cc_flag_unknown_warning_option=yes
15652 else
15653 xorg_cv_cc_flag_unknown_warning_option=no
15654 fi
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 fi
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15660 CFLAGS="$xorg_testset_save_CFLAGS"
15661 fi
15662
15663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15666 fi
15667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15671 $as_echo_n "(cached) " >&6
15672 else
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 int i;
15676 _ACEOF
15677 if ac_fn_c_try_compile "$LINENO"; then :
15678 xorg_cv_cc_flag_unused_command_line_argument=yes
15679 else
15680 xorg_cv_cc_flag_unused_command_line_argument=no
15681 fi
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 fi
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15687 CFLAGS="$xorg_testset_save_CFLAGS"
15688 fi
15689
15690 found="no"
15691
15692 if test $found = "no" ; then
15693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695 fi
15696
15697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15699 fi
15700
15701 CFLAGS="$CFLAGS -Werror=missing-braces"
15702
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15704 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15705 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15706 if eval \${$cacheid+:} false; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15711 int i;
15712 int
15713 main ()
15714 {
15715
15716 ;
15717 return 0;
15718 }
15719 _ACEOF
15720 if ac_fn_c_try_link "$LINENO"; then :
15721 eval $cacheid=yes
15722 else
15723 eval $cacheid=no
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext \
15726 conftest$ac_exeext conftest.$ac_ext
15727 fi
15728
15729
15730 CFLAGS="$xorg_testset_save_CFLAGS"
15731
15732 eval supported=\$$cacheid
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15734 $as_echo "$supported" >&6; }
15735 if test "$supported" = "yes" ; then
15736 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15737 found="yes"
15738 fi
15739 fi
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755 xorg_testset_save_CFLAGS="$CFLAGS"
15756
15757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15760 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15761 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15762 $as_echo_n "(cached) " >&6
15763 else
15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765 /* end confdefs.h. */
15766 int i;
15767 _ACEOF
15768 if ac_fn_c_try_compile "$LINENO"; then :
15769 xorg_cv_cc_flag_unknown_warning_option=yes
15770 else
15771 xorg_cv_cc_flag_unknown_warning_option=no
15772 fi
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 fi
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15776 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15778 CFLAGS="$xorg_testset_save_CFLAGS"
15779 fi
15780
15781 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15784 fi
15785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15787 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15788 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 int i;
15794 _ACEOF
15795 if ac_fn_c_try_compile "$LINENO"; then :
15796 xorg_cv_cc_flag_unused_command_line_argument=yes
15797 else
15798 xorg_cv_cc_flag_unused_command_line_argument=no
15799 fi
15800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15801 fi
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15803 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15805 CFLAGS="$xorg_testset_save_CFLAGS"
15806 fi
15807
15808 found="no"
15809
15810 if test $found = "no" ; then
15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813 fi
15814
15815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15817 fi
15818
15819 CFLAGS="$CFLAGS -Werror=sequence-point"
15820
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15822 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15823 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15824 if eval \${$cacheid+:} false; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 int i;
15830 int
15831 main ()
15832 {
15833
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 if ac_fn_c_try_link "$LINENO"; then :
15839 eval $cacheid=yes
15840 else
15841 eval $cacheid=no
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext \
15844 conftest$ac_exeext conftest.$ac_ext
15845 fi
15846
15847
15848 CFLAGS="$xorg_testset_save_CFLAGS"
15849
15850 eval supported=\$$cacheid
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15852 $as_echo "$supported" >&6; }
15853 if test "$supported" = "yes" ; then
15854 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15855 found="yes"
15856 fi
15857 fi
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873 xorg_testset_save_CFLAGS="$CFLAGS"
15874
15875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15878 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15879 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15880 $as_echo_n "(cached) " >&6
15881 else
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884 int i;
15885 _ACEOF
15886 if ac_fn_c_try_compile "$LINENO"; then :
15887 xorg_cv_cc_flag_unknown_warning_option=yes
15888 else
15889 xorg_cv_cc_flag_unknown_warning_option=no
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 fi
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15894 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15896 CFLAGS="$xorg_testset_save_CFLAGS"
15897 fi
15898
15899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15902 fi
15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15905 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15906 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15911 int i;
15912 _ACEOF
15913 if ac_fn_c_try_compile "$LINENO"; then :
15914 xorg_cv_cc_flag_unused_command_line_argument=yes
15915 else
15916 xorg_cv_cc_flag_unused_command_line_argument=no
15917 fi
15918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919 fi
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15921 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15923 CFLAGS="$xorg_testset_save_CFLAGS"
15924 fi
15925
15926 found="no"
15927
15928 if test $found = "no" ; then
15929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931 fi
15932
15933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15935 fi
15936
15937 CFLAGS="$CFLAGS -Werror=return-type"
15938
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15940 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15941 cacheid=xorg_cv_cc_flag__Werror_return_type
15942 if eval \${$cacheid+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944 else
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15947 int i;
15948 int
15949 main ()
15950 {
15951
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_link "$LINENO"; then :
15957 eval $cacheid=yes
15958 else
15959 eval $cacheid=no
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 fi
15964
15965
15966 CFLAGS="$xorg_testset_save_CFLAGS"
15967
15968 eval supported=\$$cacheid
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15970 $as_echo "$supported" >&6; }
15971 if test "$supported" = "yes" ; then
15972 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15973 found="yes"
15974 fi
15975 fi
15976
15977 if test $found = "no" ; then
15978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15980 fi
15981
15982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15984 fi
15985
15986 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15987
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15989 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15990 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15991 if eval \${$cacheid+:} false; then :
15992 $as_echo_n "(cached) " >&6
15993 else
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 int i;
15997 int
15998 main ()
15999 {
16000
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"; then :
16006 eval $cacheid=yes
16007 else
16008 eval $cacheid=no
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
16012 fi
16013
16014
16015 CFLAGS="$xorg_testset_save_CFLAGS"
16016
16017 eval supported=\$$cacheid
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16019 $as_echo "$supported" >&6; }
16020 if test "$supported" = "yes" ; then
16021 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16022 found="yes"
16023 fi
16024 fi
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040 xorg_testset_save_CFLAGS="$CFLAGS"
16041
16042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 int i;
16052 _ACEOF
16053 if ac_fn_c_try_compile "$LINENO"; then :
16054 xorg_cv_cc_flag_unknown_warning_option=yes
16055 else
16056 xorg_cv_cc_flag_unknown_warning_option=no
16057 fi
16058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059 fi
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16063 CFLAGS="$xorg_testset_save_CFLAGS"
16064 fi
16065
16066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16069 fi
16070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16074 $as_echo_n "(cached) " >&6
16075 else
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 int i;
16079 _ACEOF
16080 if ac_fn_c_try_compile "$LINENO"; then :
16081 xorg_cv_cc_flag_unused_command_line_argument=yes
16082 else
16083 xorg_cv_cc_flag_unused_command_line_argument=no
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16086 fi
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16090 CFLAGS="$xorg_testset_save_CFLAGS"
16091 fi
16092
16093 found="no"
16094
16095 if test $found = "no" ; then
16096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16098 fi
16099
16100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16102 fi
16103
16104 CFLAGS="$CFLAGS -Werror=trigraphs"
16105
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16107 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
16108 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16109 if eval \${$cacheid+:} false; then :
16110 $as_echo_n "(cached) " >&6
16111 else
16112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h. */
16114 int i;
16115 int
16116 main ()
16117 {
16118
16119 ;
16120 return 0;
16121 }
16122 _ACEOF
16123 if ac_fn_c_try_link "$LINENO"; then :
16124 eval $cacheid=yes
16125 else
16126 eval $cacheid=no
16127 fi
16128 rm -f core conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16130 fi
16131
16132
16133 CFLAGS="$xorg_testset_save_CFLAGS"
16134
16135 eval supported=\$$cacheid
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16137 $as_echo "$supported" >&6; }
16138 if test "$supported" = "yes" ; then
16139 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16140 found="yes"
16141 fi
16142 fi
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158 xorg_testset_save_CFLAGS="$CFLAGS"
16159
16160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16165 $as_echo_n "(cached) " >&6
16166 else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 int i;
16170 _ACEOF
16171 if ac_fn_c_try_compile "$LINENO"; then :
16172 xorg_cv_cc_flag_unknown_warning_option=yes
16173 else
16174 xorg_cv_cc_flag_unknown_warning_option=no
16175 fi
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 fi
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16181 CFLAGS="$xorg_testset_save_CFLAGS"
16182 fi
16183
16184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16187 fi
16188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195 /* end confdefs.h. */
16196 int i;
16197 _ACEOF
16198 if ac_fn_c_try_compile "$LINENO"; then :
16199 xorg_cv_cc_flag_unused_command_line_argument=yes
16200 else
16201 xorg_cv_cc_flag_unused_command_line_argument=no
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 fi
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16208 CFLAGS="$xorg_testset_save_CFLAGS"
16209 fi
16210
16211 found="no"
16212
16213 if test $found = "no" ; then
16214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16216 fi
16217
16218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16220 fi
16221
16222 CFLAGS="$CFLAGS -Werror=array-bounds"
16223
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16225 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16226 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16227 if eval \${$cacheid+:} false; then :
16228 $as_echo_n "(cached) " >&6
16229 else
16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16232 int i;
16233 int
16234 main ()
16235 {
16236
16237 ;
16238 return 0;
16239 }
16240 _ACEOF
16241 if ac_fn_c_try_link "$LINENO"; then :
16242 eval $cacheid=yes
16243 else
16244 eval $cacheid=no
16245 fi
16246 rm -f core conftest.err conftest.$ac_objext \
16247 conftest$ac_exeext conftest.$ac_ext
16248 fi
16249
16250
16251 CFLAGS="$xorg_testset_save_CFLAGS"
16252
16253 eval supported=\$$cacheid
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16255 $as_echo "$supported" >&6; }
16256 if test "$supported" = "yes" ; then
16257 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16258 found="yes"
16259 fi
16260 fi
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276 xorg_testset_save_CFLAGS="$CFLAGS"
16277
16278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16287 int i;
16288 _ACEOF
16289 if ac_fn_c_try_compile "$LINENO"; then :
16290 xorg_cv_cc_flag_unknown_warning_option=yes
16291 else
16292 xorg_cv_cc_flag_unknown_warning_option=no
16293 fi
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 fi
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16299 CFLAGS="$xorg_testset_save_CFLAGS"
16300 fi
16301
16302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16305 fi
16306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16314 int i;
16315 _ACEOF
16316 if ac_fn_c_try_compile "$LINENO"; then :
16317 xorg_cv_cc_flag_unused_command_line_argument=yes
16318 else
16319 xorg_cv_cc_flag_unused_command_line_argument=no
16320 fi
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 fi
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16326 CFLAGS="$xorg_testset_save_CFLAGS"
16327 fi
16328
16329 found="no"
16330
16331 if test $found = "no" ; then
16332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16334 fi
16335
16336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16338 fi
16339
16340 CFLAGS="$CFLAGS -Werror=write-strings"
16341
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16343 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16344 cacheid=xorg_cv_cc_flag__Werror_write_strings
16345 if eval \${$cacheid+:} false; then :
16346 $as_echo_n "(cached) " >&6
16347 else
16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16349 /* end confdefs.h. */
16350 int i;
16351 int
16352 main ()
16353 {
16354
16355 ;
16356 return 0;
16357 }
16358 _ACEOF
16359 if ac_fn_c_try_link "$LINENO"; then :
16360 eval $cacheid=yes
16361 else
16362 eval $cacheid=no
16363 fi
16364 rm -f core conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
16366 fi
16367
16368
16369 CFLAGS="$xorg_testset_save_CFLAGS"
16370
16371 eval supported=\$$cacheid
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16373 $as_echo "$supported" >&6; }
16374 if test "$supported" = "yes" ; then
16375 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16376 found="yes"
16377 fi
16378 fi
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394 xorg_testset_save_CFLAGS="$CFLAGS"
16395
16396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16401 $as_echo_n "(cached) " >&6
16402 else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 int i;
16406 _ACEOF
16407 if ac_fn_c_try_compile "$LINENO"; then :
16408 xorg_cv_cc_flag_unknown_warning_option=yes
16409 else
16410 xorg_cv_cc_flag_unknown_warning_option=no
16411 fi
16412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16413 fi
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16417 CFLAGS="$xorg_testset_save_CFLAGS"
16418 fi
16419
16420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16423 fi
16424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16428 $as_echo_n "(cached) " >&6
16429 else
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16432 int i;
16433 _ACEOF
16434 if ac_fn_c_try_compile "$LINENO"; then :
16435 xorg_cv_cc_flag_unused_command_line_argument=yes
16436 else
16437 xorg_cv_cc_flag_unused_command_line_argument=no
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16440 fi
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16444 CFLAGS="$xorg_testset_save_CFLAGS"
16445 fi
16446
16447 found="no"
16448
16449 if test $found = "no" ; then
16450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16452 fi
16453
16454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16456 fi
16457
16458 CFLAGS="$CFLAGS -Werror=address"
16459
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16461 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16462 cacheid=xorg_cv_cc_flag__Werror_address
16463 if eval \${$cacheid+:} false; then :
16464 $as_echo_n "(cached) " >&6
16465 else
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 int i;
16469 int
16470 main ()
16471 {
16472
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"; then :
16478 eval $cacheid=yes
16479 else
16480 eval $cacheid=no
16481 fi
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16484 fi
16485
16486
16487 CFLAGS="$xorg_testset_save_CFLAGS"
16488
16489 eval supported=\$$cacheid
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16491 $as_echo "$supported" >&6; }
16492 if test "$supported" = "yes" ; then
16493 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16494 found="yes"
16495 fi
16496 fi
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512 xorg_testset_save_CFLAGS="$CFLAGS"
16513
16514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16519 $as_echo_n "(cached) " >&6
16520 else
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 int i;
16524 _ACEOF
16525 if ac_fn_c_try_compile "$LINENO"; then :
16526 xorg_cv_cc_flag_unknown_warning_option=yes
16527 else
16528 xorg_cv_cc_flag_unknown_warning_option=no
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16531 fi
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16535 CFLAGS="$xorg_testset_save_CFLAGS"
16536 fi
16537
16538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541 fi
16542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547 else
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549 /* end confdefs.h. */
16550 int i;
16551 _ACEOF
16552 if ac_fn_c_try_compile "$LINENO"; then :
16553 xorg_cv_cc_flag_unused_command_line_argument=yes
16554 else
16555 xorg_cv_cc_flag_unused_command_line_argument=no
16556 fi
16557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 fi
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16562 CFLAGS="$xorg_testset_save_CFLAGS"
16563 fi
16564
16565 found="no"
16566
16567 if test $found = "no" ; then
16568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16570 fi
16571
16572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16574 fi
16575
16576 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16577
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16579 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16580 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16581 if eval \${$cacheid+:} false; then :
16582 $as_echo_n "(cached) " >&6
16583 else
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16586 int i;
16587 int
16588 main ()
16589 {
16590
16591 ;
16592 return 0;
16593 }
16594 _ACEOF
16595 if ac_fn_c_try_link "$LINENO"; then :
16596 eval $cacheid=yes
16597 else
16598 eval $cacheid=no
16599 fi
16600 rm -f core conftest.err conftest.$ac_objext \
16601 conftest$ac_exeext conftest.$ac_ext
16602 fi
16603
16604
16605 CFLAGS="$xorg_testset_save_CFLAGS"
16606
16607 eval supported=\$$cacheid
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16609 $as_echo "$supported" >&6; }
16610 if test "$supported" = "yes" ; then
16611 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16612 found="yes"
16613 fi
16614 fi
16615
16616 if test $found = "no" ; then
16617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16619 fi
16620
16621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16623 fi
16624
16625 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16626
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16628 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16629 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16630 if eval \${$cacheid+:} false; then :
16631 $as_echo_n "(cached) " >&6
16632 else
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16635 int i;
16636 int
16637 main ()
16638 {
16639
16640 ;
16641 return 0;
16642 }
16643 _ACEOF
16644 if ac_fn_c_try_link "$LINENO"; then :
16645 eval $cacheid=yes
16646 else
16647 eval $cacheid=no
16648 fi
16649 rm -f core conftest.err conftest.$ac_objext \
16650 conftest$ac_exeext conftest.$ac_ext
16651 fi
16652
16653
16654 CFLAGS="$xorg_testset_save_CFLAGS"
16655
16656 eval supported=\$$cacheid
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16658 $as_echo "$supported" >&6; }
16659 if test "$supported" = "yes" ; then
16660 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16661 found="yes"
16662 fi
16663 fi
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679 xorg_testset_save_CFLAGS="$CFLAGS"
16680
16681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16686 $as_echo_n "(cached) " >&6
16687 else
16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16689 /* end confdefs.h. */
16690 int i;
16691 _ACEOF
16692 if ac_fn_c_try_compile "$LINENO"; then :
16693 xorg_cv_cc_flag_unknown_warning_option=yes
16694 else
16695 xorg_cv_cc_flag_unknown_warning_option=no
16696 fi
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 fi
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16702 CFLAGS="$xorg_testset_save_CFLAGS"
16703 fi
16704
16705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16708 fi
16709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16713 $as_echo_n "(cached) " >&6
16714 else
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16717 int i;
16718 _ACEOF
16719 if ac_fn_c_try_compile "$LINENO"; then :
16720 xorg_cv_cc_flag_unused_command_line_argument=yes
16721 else
16722 xorg_cv_cc_flag_unused_command_line_argument=no
16723 fi
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16729 CFLAGS="$xorg_testset_save_CFLAGS"
16730 fi
16731
16732 found="no"
16733
16734 if test $found = "no" ; then
16735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16737 fi
16738
16739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741 fi
16742
16743 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16746 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16747 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16748 if eval \${$cacheid+:} false; then :
16749 $as_echo_n "(cached) " >&6
16750 else
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 int i;
16754 int
16755 main ()
16756 {
16757
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 if ac_fn_c_try_link "$LINENO"; then :
16763 eval $cacheid=yes
16764 else
16765 eval $cacheid=no
16766 fi
16767 rm -f core conftest.err conftest.$ac_objext \
16768 conftest$ac_exeext conftest.$ac_ext
16769 fi
16770
16771
16772 CFLAGS="$xorg_testset_save_CFLAGS"
16773
16774 eval supported=\$$cacheid
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16776 $as_echo "$supported" >&6; }
16777 if test "$supported" = "yes" ; then
16778 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16779 found="yes"
16780 fi
16781 fi
16782
16783 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16784 else
16785 { $as_echo "$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
16786 $as_echo "$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;}
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800 xorg_testset_save_CFLAGS="$CFLAGS"
16801
16802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16807 $as_echo_n "(cached) " >&6
16808 else
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h. */
16811 int i;
16812 _ACEOF
16813 if ac_fn_c_try_compile "$LINENO"; then :
16814 xorg_cv_cc_flag_unknown_warning_option=yes
16815 else
16816 xorg_cv_cc_flag_unknown_warning_option=no
16817 fi
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16823 CFLAGS="$xorg_testset_save_CFLAGS"
16824 fi
16825
16826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16829 fi
16830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16834 $as_echo_n "(cached) " >&6
16835 else
16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838 int i;
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841 xorg_cv_cc_flag_unused_command_line_argument=yes
16842 else
16843 xorg_cv_cc_flag_unused_command_line_argument=no
16844 fi
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16850 CFLAGS="$xorg_testset_save_CFLAGS"
16851 fi
16852
16853 found="no"
16854
16855 if test $found = "no" ; then
16856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858 fi
16859
16860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16862 fi
16863
16864 CFLAGS="$CFLAGS -Wimplicit"
16865
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16867 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16868 cacheid=xorg_cv_cc_flag__Wimplicit
16869 if eval \${$cacheid+:} false; then :
16870 $as_echo_n "(cached) " >&6
16871 else
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874 int i;
16875 int
16876 main ()
16877 {
16878
16879 ;
16880 return 0;
16881 }
16882 _ACEOF
16883 if ac_fn_c_try_link "$LINENO"; then :
16884 eval $cacheid=yes
16885 else
16886 eval $cacheid=no
16887 fi
16888 rm -f core conftest.err conftest.$ac_objext \
16889 conftest$ac_exeext conftest.$ac_ext
16890 fi
16891
16892
16893 CFLAGS="$xorg_testset_save_CFLAGS"
16894
16895 eval supported=\$$cacheid
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16897 $as_echo "$supported" >&6; }
16898 if test "$supported" = "yes" ; then
16899 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16900 found="yes"
16901 fi
16902 fi
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918 xorg_testset_save_CFLAGS="$CFLAGS"
16919
16920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 int i;
16930 _ACEOF
16931 if ac_fn_c_try_compile "$LINENO"; then :
16932 xorg_cv_cc_flag_unknown_warning_option=yes
16933 else
16934 xorg_cv_cc_flag_unknown_warning_option=no
16935 fi
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937 fi
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16941 CFLAGS="$xorg_testset_save_CFLAGS"
16942 fi
16943
16944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16947 fi
16948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16952 $as_echo_n "(cached) " >&6
16953 else
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 int i;
16957 _ACEOF
16958 if ac_fn_c_try_compile "$LINENO"; then :
16959 xorg_cv_cc_flag_unused_command_line_argument=yes
16960 else
16961 xorg_cv_cc_flag_unused_command_line_argument=no
16962 fi
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 fi
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16968 CFLAGS="$xorg_testset_save_CFLAGS"
16969 fi
16970
16971 found="no"
16972
16973 if test $found = "no" ; then
16974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976 fi
16977
16978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16980 fi
16981
16982 CFLAGS="$CFLAGS -Wnonnull"
16983
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16985 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16986 cacheid=xorg_cv_cc_flag__Wnonnull
16987 if eval \${$cacheid+:} false; then :
16988 $as_echo_n "(cached) " >&6
16989 else
16990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16991 /* end confdefs.h. */
16992 int i;
16993 int
16994 main ()
16995 {
16996
16997 ;
16998 return 0;
16999 }
17000 _ACEOF
17001 if ac_fn_c_try_link "$LINENO"; then :
17002 eval $cacheid=yes
17003 else
17004 eval $cacheid=no
17005 fi
17006 rm -f core conftest.err conftest.$ac_objext \
17007 conftest$ac_exeext conftest.$ac_ext
17008 fi
17009
17010
17011 CFLAGS="$xorg_testset_save_CFLAGS"
17012
17013 eval supported=\$$cacheid
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17015 $as_echo "$supported" >&6; }
17016 if test "$supported" = "yes" ; then
17017 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17018 found="yes"
17019 fi
17020 fi
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036 xorg_testset_save_CFLAGS="$CFLAGS"
17037
17038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 int i;
17048 _ACEOF
17049 if ac_fn_c_try_compile "$LINENO"; then :
17050 xorg_cv_cc_flag_unknown_warning_option=yes
17051 else
17052 xorg_cv_cc_flag_unknown_warning_option=no
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 fi
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17059 CFLAGS="$xorg_testset_save_CFLAGS"
17060 fi
17061
17062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17065 fi
17066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 int i;
17075 _ACEOF
17076 if ac_fn_c_try_compile "$LINENO"; then :
17077 xorg_cv_cc_flag_unused_command_line_argument=yes
17078 else
17079 xorg_cv_cc_flag_unused_command_line_argument=no
17080 fi
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 fi
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17086 CFLAGS="$xorg_testset_save_CFLAGS"
17087 fi
17088
17089 found="no"
17090
17091 if test $found = "no" ; then
17092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094 fi
17095
17096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17098 fi
17099
17100 CFLAGS="$CFLAGS -Winit-self"
17101
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17103 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
17104 cacheid=xorg_cv_cc_flag__Winit_self
17105 if eval \${$cacheid+:} false; then :
17106 $as_echo_n "(cached) " >&6
17107 else
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17110 int i;
17111 int
17112 main ()
17113 {
17114
17115 ;
17116 return 0;
17117 }
17118 _ACEOF
17119 if ac_fn_c_try_link "$LINENO"; then :
17120 eval $cacheid=yes
17121 else
17122 eval $cacheid=no
17123 fi
17124 rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17126 fi
17127
17128
17129 CFLAGS="$xorg_testset_save_CFLAGS"
17130
17131 eval supported=\$$cacheid
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17133 $as_echo "$supported" >&6; }
17134 if test "$supported" = "yes" ; then
17135 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17136 found="yes"
17137 fi
17138 fi
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154 xorg_testset_save_CFLAGS="$CFLAGS"
17155
17156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17161 $as_echo_n "(cached) " >&6
17162 else
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17165 int i;
17166 _ACEOF
17167 if ac_fn_c_try_compile "$LINENO"; then :
17168 xorg_cv_cc_flag_unknown_warning_option=yes
17169 else
17170 xorg_cv_cc_flag_unknown_warning_option=no
17171 fi
17172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17173 fi
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17177 CFLAGS="$xorg_testset_save_CFLAGS"
17178 fi
17179
17180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17183 fi
17184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17188 $as_echo_n "(cached) " >&6
17189 else
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192 int i;
17193 _ACEOF
17194 if ac_fn_c_try_compile "$LINENO"; then :
17195 xorg_cv_cc_flag_unused_command_line_argument=yes
17196 else
17197 xorg_cv_cc_flag_unused_command_line_argument=no
17198 fi
17199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 fi
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17204 CFLAGS="$xorg_testset_save_CFLAGS"
17205 fi
17206
17207 found="no"
17208
17209 if test $found = "no" ; then
17210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212 fi
17213
17214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17216 fi
17217
17218 CFLAGS="$CFLAGS -Wmain"
17219
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17221 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
17222 cacheid=xorg_cv_cc_flag__Wmain
17223 if eval \${$cacheid+:} false; then :
17224 $as_echo_n "(cached) " >&6
17225 else
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17228 int i;
17229 int
17230 main ()
17231 {
17232
17233 ;
17234 return 0;
17235 }
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238 eval $cacheid=yes
17239 else
17240 eval $cacheid=no
17241 fi
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17244 fi
17245
17246
17247 CFLAGS="$xorg_testset_save_CFLAGS"
17248
17249 eval supported=\$$cacheid
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17251 $as_echo "$supported" >&6; }
17252 if test "$supported" = "yes" ; then
17253 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17254 found="yes"
17255 fi
17256 fi
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272 xorg_testset_save_CFLAGS="$CFLAGS"
17273
17274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17279 $as_echo_n "(cached) " >&6
17280 else
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"; then :
17286 xorg_cv_cc_flag_unknown_warning_option=yes
17287 else
17288 xorg_cv_cc_flag_unknown_warning_option=no
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 fi
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17295 CFLAGS="$xorg_testset_save_CFLAGS"
17296 fi
17297
17298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17301 fi
17302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17306 $as_echo_n "(cached) " >&6
17307 else
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 int i;
17311 _ACEOF
17312 if ac_fn_c_try_compile "$LINENO"; then :
17313 xorg_cv_cc_flag_unused_command_line_argument=yes
17314 else
17315 xorg_cv_cc_flag_unused_command_line_argument=no
17316 fi
17317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 fi
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17322 CFLAGS="$xorg_testset_save_CFLAGS"
17323 fi
17324
17325 found="no"
17326
17327 if test $found = "no" ; then
17328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330 fi
17331
17332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17334 fi
17335
17336 CFLAGS="$CFLAGS -Wmissing-braces"
17337
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17339 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17340 cacheid=xorg_cv_cc_flag__Wmissing_braces
17341 if eval \${$cacheid+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343 else
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17346 int i;
17347 int
17348 main ()
17349 {
17350
17351 ;
17352 return 0;
17353 }
17354 _ACEOF
17355 if ac_fn_c_try_link "$LINENO"; then :
17356 eval $cacheid=yes
17357 else
17358 eval $cacheid=no
17359 fi
17360 rm -f core conftest.err conftest.$ac_objext \
17361 conftest$ac_exeext conftest.$ac_ext
17362 fi
17363
17364
17365 CFLAGS="$xorg_testset_save_CFLAGS"
17366
17367 eval supported=\$$cacheid
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17369 $as_echo "$supported" >&6; }
17370 if test "$supported" = "yes" ; then
17371 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17372 found="yes"
17373 fi
17374 fi
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390 xorg_testset_save_CFLAGS="$CFLAGS"
17391
17392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17395 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17396 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17397 $as_echo_n "(cached) " >&6
17398 else
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401 int i;
17402 _ACEOF
17403 if ac_fn_c_try_compile "$LINENO"; then :
17404 xorg_cv_cc_flag_unknown_warning_option=yes
17405 else
17406 xorg_cv_cc_flag_unknown_warning_option=no
17407 fi
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409 fi
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17411 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17413 CFLAGS="$xorg_testset_save_CFLAGS"
17414 fi
17415
17416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17419 fi
17420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17422 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17423 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17427 /* end confdefs.h. */
17428 int i;
17429 _ACEOF
17430 if ac_fn_c_try_compile "$LINENO"; then :
17431 xorg_cv_cc_flag_unused_command_line_argument=yes
17432 else
17433 xorg_cv_cc_flag_unused_command_line_argument=no
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17438 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17440 CFLAGS="$xorg_testset_save_CFLAGS"
17441 fi
17442
17443 found="no"
17444
17445 if test $found = "no" ; then
17446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448 fi
17449
17450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17452 fi
17453
17454 CFLAGS="$CFLAGS -Wsequence-point"
17455
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17457 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17458 cacheid=xorg_cv_cc_flag__Wsequence_point
17459 if eval \${$cacheid+:} false; then :
17460 $as_echo_n "(cached) " >&6
17461 else
17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17463 /* end confdefs.h. */
17464 int i;
17465 int
17466 main ()
17467 {
17468
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 if ac_fn_c_try_link "$LINENO"; then :
17474 eval $cacheid=yes
17475 else
17476 eval $cacheid=no
17477 fi
17478 rm -f core conftest.err conftest.$ac_objext \
17479 conftest$ac_exeext conftest.$ac_ext
17480 fi
17481
17482
17483 CFLAGS="$xorg_testset_save_CFLAGS"
17484
17485 eval supported=\$$cacheid
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17487 $as_echo "$supported" >&6; }
17488 if test "$supported" = "yes" ; then
17489 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17490 found="yes"
17491 fi
17492 fi
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508 xorg_testset_save_CFLAGS="$CFLAGS"
17509
17510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17513 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17514 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17518 /* end confdefs.h. */
17519 int i;
17520 _ACEOF
17521 if ac_fn_c_try_compile "$LINENO"; then :
17522 xorg_cv_cc_flag_unknown_warning_option=yes
17523 else
17524 xorg_cv_cc_flag_unknown_warning_option=no
17525 fi
17526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17527 fi
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17529 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17531 CFLAGS="$xorg_testset_save_CFLAGS"
17532 fi
17533
17534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17537 fi
17538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17540 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17541 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17542 $as_echo_n "(cached) " >&6
17543 else
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 int i;
17547 _ACEOF
17548 if ac_fn_c_try_compile "$LINENO"; then :
17549 xorg_cv_cc_flag_unused_command_line_argument=yes
17550 else
17551 xorg_cv_cc_flag_unused_command_line_argument=no
17552 fi
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17556 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17557 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17558 CFLAGS="$xorg_testset_save_CFLAGS"
17559 fi
17560
17561 found="no"
17562
17563 if test $found = "no" ; then
17564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17566 fi
17567
17568 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17570 fi
17571
17572 CFLAGS="$CFLAGS -Wreturn-type"
17573
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17575 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17576 cacheid=xorg_cv_cc_flag__Wreturn_type
17577 if eval \${$cacheid+:} false; then :
17578 $as_echo_n "(cached) " >&6
17579 else
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582 int i;
17583 int
17584 main ()
17585 {
17586
17587 ;
17588 return 0;
17589 }
17590 _ACEOF
17591 if ac_fn_c_try_link "$LINENO"; then :
17592 eval $cacheid=yes
17593 else
17594 eval $cacheid=no
17595 fi
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17598 fi
17599
17600
17601 CFLAGS="$xorg_testset_save_CFLAGS"
17602
17603 eval supported=\$$cacheid
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17605 $as_echo "$supported" >&6; }
17606 if test "$supported" = "yes" ; then
17607 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17608 found="yes"
17609 fi
17610 fi
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626 xorg_testset_save_CFLAGS="$CFLAGS"
17627
17628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17631 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17636 /* end confdefs.h. */
17637 int i;
17638 _ACEOF
17639 if ac_fn_c_try_compile "$LINENO"; then :
17640 xorg_cv_cc_flag_unknown_warning_option=yes
17641 else
17642 xorg_cv_cc_flag_unknown_warning_option=no
17643 fi
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 fi
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17647 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17649 CFLAGS="$xorg_testset_save_CFLAGS"
17650 fi
17651
17652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17655 fi
17656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17658 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17660 $as_echo_n "(cached) " >&6
17661 else
17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17664 int i;
17665 _ACEOF
17666 if ac_fn_c_try_compile "$LINENO"; then :
17667 xorg_cv_cc_flag_unused_command_line_argument=yes
17668 else
17669 xorg_cv_cc_flag_unused_command_line_argument=no
17670 fi
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 fi
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17674 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17676 CFLAGS="$xorg_testset_save_CFLAGS"
17677 fi
17678
17679 found="no"
17680
17681 if test $found = "no" ; then
17682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684 fi
17685
17686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17688 fi
17689
17690 CFLAGS="$CFLAGS -Wtrigraphs"
17691
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17693 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17694 cacheid=xorg_cv_cc_flag__Wtrigraphs
17695 if eval \${$cacheid+:} false; then :
17696 $as_echo_n "(cached) " >&6
17697 else
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 int i;
17701 int
17702 main ()
17703 {
17704
17705 ;
17706 return 0;
17707 }
17708 _ACEOF
17709 if ac_fn_c_try_link "$LINENO"; then :
17710 eval $cacheid=yes
17711 else
17712 eval $cacheid=no
17713 fi
17714 rm -f core conftest.err conftest.$ac_objext \
17715 conftest$ac_exeext conftest.$ac_ext
17716 fi
17717
17718
17719 CFLAGS="$xorg_testset_save_CFLAGS"
17720
17721 eval supported=\$$cacheid
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17723 $as_echo "$supported" >&6; }
17724 if test "$supported" = "yes" ; then
17725 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17726 found="yes"
17727 fi
17728 fi
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744 xorg_testset_save_CFLAGS="$CFLAGS"
17745
17746 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17749 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17751 $as_echo_n "(cached) " >&6
17752 else
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 int i;
17756 _ACEOF
17757 if ac_fn_c_try_compile "$LINENO"; then :
17758 xorg_cv_cc_flag_unknown_warning_option=yes
17759 else
17760 xorg_cv_cc_flag_unknown_warning_option=no
17761 fi
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763 fi
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17765 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17767 CFLAGS="$xorg_testset_save_CFLAGS"
17768 fi
17769
17770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17773 fi
17774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17776 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17778 $as_echo_n "(cached) " >&6
17779 else
17780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781 /* end confdefs.h. */
17782 int i;
17783 _ACEOF
17784 if ac_fn_c_try_compile "$LINENO"; then :
17785 xorg_cv_cc_flag_unused_command_line_argument=yes
17786 else
17787 xorg_cv_cc_flag_unused_command_line_argument=no
17788 fi
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17790 fi
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17792 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17794 CFLAGS="$xorg_testset_save_CFLAGS"
17795 fi
17796
17797 found="no"
17798
17799 if test $found = "no" ; then
17800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802 fi
17803
17804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17806 fi
17807
17808 CFLAGS="$CFLAGS -Warray-bounds"
17809
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17811 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17812 cacheid=xorg_cv_cc_flag__Warray_bounds
17813 if eval \${$cacheid+:} false; then :
17814 $as_echo_n "(cached) " >&6
17815 else
17816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17818 int i;
17819 int
17820 main ()
17821 {
17822
17823 ;
17824 return 0;
17825 }
17826 _ACEOF
17827 if ac_fn_c_try_link "$LINENO"; then :
17828 eval $cacheid=yes
17829 else
17830 eval $cacheid=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 fi
17835
17836
17837 CFLAGS="$xorg_testset_save_CFLAGS"
17838
17839 eval supported=\$$cacheid
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17841 $as_echo "$supported" >&6; }
17842 if test "$supported" = "yes" ; then
17843 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17844 found="yes"
17845 fi
17846 fi
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862 xorg_testset_save_CFLAGS="$CFLAGS"
17863
17864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17867 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17868 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17869 $as_echo_n "(cached) " >&6
17870 else
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 int i;
17874 _ACEOF
17875 if ac_fn_c_try_compile "$LINENO"; then :
17876 xorg_cv_cc_flag_unknown_warning_option=yes
17877 else
17878 xorg_cv_cc_flag_unknown_warning_option=no
17879 fi
17880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 fi
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17883 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17885 CFLAGS="$xorg_testset_save_CFLAGS"
17886 fi
17887
17888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17891 fi
17892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17894 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17895 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17896 $as_echo_n "(cached) " >&6
17897 else
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17900 int i;
17901 _ACEOF
17902 if ac_fn_c_try_compile "$LINENO"; then :
17903 xorg_cv_cc_flag_unused_command_line_argument=yes
17904 else
17905 xorg_cv_cc_flag_unused_command_line_argument=no
17906 fi
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17908 fi
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17910 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17912 CFLAGS="$xorg_testset_save_CFLAGS"
17913 fi
17914
17915 found="no"
17916
17917 if test $found = "no" ; then
17918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17920 fi
17921
17922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17924 fi
17925
17926 CFLAGS="$CFLAGS -Wwrite-strings"
17927
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17929 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17930 cacheid=xorg_cv_cc_flag__Wwrite_strings
17931 if eval \${$cacheid+:} false; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936 int i;
17937 int
17938 main ()
17939 {
17940
17941 ;
17942 return 0;
17943 }
17944 _ACEOF
17945 if ac_fn_c_try_link "$LINENO"; then :
17946 eval $cacheid=yes
17947 else
17948 eval $cacheid=no
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
17952 fi
17953
17954
17955 CFLAGS="$xorg_testset_save_CFLAGS"
17956
17957 eval supported=\$$cacheid
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17959 $as_echo "$supported" >&6; }
17960 if test "$supported" = "yes" ; then
17961 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17962 found="yes"
17963 fi
17964 fi
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980 xorg_testset_save_CFLAGS="$CFLAGS"
17981
17982 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17985 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17987 $as_echo_n "(cached) " >&6
17988 else
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 int i;
17992 _ACEOF
17993 if ac_fn_c_try_compile "$LINENO"; then :
17994 xorg_cv_cc_flag_unknown_warning_option=yes
17995 else
17996 xorg_cv_cc_flag_unknown_warning_option=no
17997 fi
17998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17999 fi
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18001 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18003 CFLAGS="$xorg_testset_save_CFLAGS"
18004 fi
18005
18006 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18009 fi
18010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18012 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 int i;
18019 _ACEOF
18020 if ac_fn_c_try_compile "$LINENO"; then :
18021 xorg_cv_cc_flag_unused_command_line_argument=yes
18022 else
18023 xorg_cv_cc_flag_unused_command_line_argument=no
18024 fi
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 fi
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18028 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18030 CFLAGS="$xorg_testset_save_CFLAGS"
18031 fi
18032
18033 found="no"
18034
18035 if test $found = "no" ; then
18036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18038 fi
18039
18040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18042 fi
18043
18044 CFLAGS="$CFLAGS -Waddress"
18045
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18047 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
18048 cacheid=xorg_cv_cc_flag__Waddress
18049 if eval \${$cacheid+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18053 /* end confdefs.h. */
18054 int i;
18055 int
18056 main ()
18057 {
18058
18059 ;
18060 return 0;
18061 }
18062 _ACEOF
18063 if ac_fn_c_try_link "$LINENO"; then :
18064 eval $cacheid=yes
18065 else
18066 eval $cacheid=no
18067 fi
18068 rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18070 fi
18071
18072
18073 CFLAGS="$xorg_testset_save_CFLAGS"
18074
18075 eval supported=\$$cacheid
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18077 $as_echo "$supported" >&6; }
18078 if test "$supported" = "yes" ; then
18079 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18080 found="yes"
18081 fi
18082 fi
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098 xorg_testset_save_CFLAGS="$CFLAGS"
18099
18100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18103 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18105 $as_echo_n "(cached) " >&6
18106 else
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109 int i;
18110 _ACEOF
18111 if ac_fn_c_try_compile "$LINENO"; then :
18112 xorg_cv_cc_flag_unknown_warning_option=yes
18113 else
18114 xorg_cv_cc_flag_unknown_warning_option=no
18115 fi
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 fi
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18119 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18121 CFLAGS="$xorg_testset_save_CFLAGS"
18122 fi
18123
18124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18127 fi
18128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18130 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18132 $as_echo_n "(cached) " >&6
18133 else
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 int i;
18137 _ACEOF
18138 if ac_fn_c_try_compile "$LINENO"; then :
18139 xorg_cv_cc_flag_unused_command_line_argument=yes
18140 else
18141 xorg_cv_cc_flag_unused_command_line_argument=no
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 fi
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18146 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18148 CFLAGS="$xorg_testset_save_CFLAGS"
18149 fi
18150
18151 found="no"
18152
18153 if test $found = "no" ; then
18154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18156 fi
18157
18158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18160 fi
18161
18162 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18163
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18165 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18166 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18167 if eval \${$cacheid+:} false; then :
18168 $as_echo_n "(cached) " >&6
18169 else
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18172 int i;
18173 int
18174 main ()
18175 {
18176
18177 ;
18178 return 0;
18179 }
18180 _ACEOF
18181 if ac_fn_c_try_link "$LINENO"; then :
18182 eval $cacheid=yes
18183 else
18184 eval $cacheid=no
18185 fi
18186 rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 fi
18189
18190
18191 CFLAGS="$xorg_testset_save_CFLAGS"
18192
18193 eval supported=\$$cacheid
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18195 $as_echo "$supported" >&6; }
18196 if test "$supported" = "yes" ; then
18197 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18198 found="yes"
18199 fi
18200 fi
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216 xorg_testset_save_CFLAGS="$CFLAGS"
18217
18218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18221 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18223 $as_echo_n "(cached) " >&6
18224 else
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18227 int i;
18228 _ACEOF
18229 if ac_fn_c_try_compile "$LINENO"; then :
18230 xorg_cv_cc_flag_unknown_warning_option=yes
18231 else
18232 xorg_cv_cc_flag_unknown_warning_option=no
18233 fi
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18235 fi
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18237 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18239 CFLAGS="$xorg_testset_save_CFLAGS"
18240 fi
18241
18242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18245 fi
18246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18248 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 int i;
18255 _ACEOF
18256 if ac_fn_c_try_compile "$LINENO"; then :
18257 xorg_cv_cc_flag_unused_command_line_argument=yes
18258 else
18259 xorg_cv_cc_flag_unused_command_line_argument=no
18260 fi
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18262 fi
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18264 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18266 CFLAGS="$xorg_testset_save_CFLAGS"
18267 fi
18268
18269 found="no"
18270
18271 if test $found = "no" ; then
18272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274 fi
18275
18276 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18278 fi
18279
18280 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18283 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18284 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18285 if eval \${$cacheid+:} false; then :
18286 $as_echo_n "(cached) " >&6
18287 else
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18290 int i;
18291 int
18292 main ()
18293 {
18294
18295 ;
18296 return 0;
18297 }
18298 _ACEOF
18299 if ac_fn_c_try_link "$LINENO"; then :
18300 eval $cacheid=yes
18301 else
18302 eval $cacheid=no
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext \
18305 conftest$ac_exeext conftest.$ac_ext
18306 fi
18307
18308
18309 CFLAGS="$xorg_testset_save_CFLAGS"
18310
18311 eval supported=\$$cacheid
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18313 $as_echo "$supported" >&6; }
18314 if test "$supported" = "yes" ; then
18315 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18316 found="yes"
18317 fi
18318 fi
18319
18320
18321 fi
18322
18323
18324
18325
18326
18327
18328
18329 CWARNFLAGS="$BASE_CFLAGS"
18330 if test "x$GCC" = xyes ; then
18331 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18332 fi
18333
18334
18335
18336
18337
18338
18339
18340
18341 # Check whether --enable-strict-compilation was given.
18342 if test "${enable_strict_compilation+set}" = set; then :
18343 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18344 else
18345 STRICT_COMPILE=no
18346 fi
18347
18348
18349
18350
18351
18352
18353 STRICT_CFLAGS=""
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367 xorg_testset_save_CFLAGS="$CFLAGS"
18368
18369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18372 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18373 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18374 $as_echo_n "(cached) " >&6
18375 else
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18378 int i;
18379 _ACEOF
18380 if ac_fn_c_try_compile "$LINENO"; then :
18381 xorg_cv_cc_flag_unknown_warning_option=yes
18382 else
18383 xorg_cv_cc_flag_unknown_warning_option=no
18384 fi
18385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18388 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18390 CFLAGS="$xorg_testset_save_CFLAGS"
18391 fi
18392
18393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18396 fi
18397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18399 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18400 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404 /* end confdefs.h. */
18405 int i;
18406 _ACEOF
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408 xorg_cv_cc_flag_unused_command_line_argument=yes
18409 else
18410 xorg_cv_cc_flag_unused_command_line_argument=no
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 fi
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18415 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18417 CFLAGS="$xorg_testset_save_CFLAGS"
18418 fi
18419
18420 found="no"
18421
18422 if test $found = "no" ; then
18423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18425 fi
18426
18427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18429 fi
18430
18431 CFLAGS="$CFLAGS -pedantic"
18432
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18434 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18435 cacheid=xorg_cv_cc_flag__pedantic
18436 if eval \${$cacheid+:} false; then :
18437 $as_echo_n "(cached) " >&6
18438 else
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18441 int i;
18442 int
18443 main ()
18444 {
18445
18446 ;
18447 return 0;
18448 }
18449 _ACEOF
18450 if ac_fn_c_try_link "$LINENO"; then :
18451 eval $cacheid=yes
18452 else
18453 eval $cacheid=no
18454 fi
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 fi
18458
18459
18460 CFLAGS="$xorg_testset_save_CFLAGS"
18461
18462 eval supported=\$$cacheid
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18464 $as_echo "$supported" >&6; }
18465 if test "$supported" = "yes" ; then
18466 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18467 found="yes"
18468 fi
18469 fi
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485 xorg_testset_save_CFLAGS="$CFLAGS"
18486
18487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18492 $as_echo_n "(cached) " >&6
18493 else
18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18496 int i;
18497 _ACEOF
18498 if ac_fn_c_try_compile "$LINENO"; then :
18499 xorg_cv_cc_flag_unknown_warning_option=yes
18500 else
18501 xorg_cv_cc_flag_unknown_warning_option=no
18502 fi
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 fi
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18508 CFLAGS="$xorg_testset_save_CFLAGS"
18509 fi
18510
18511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18514 fi
18515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18519 $as_echo_n "(cached) " >&6
18520 else
18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522 /* end confdefs.h. */
18523 int i;
18524 _ACEOF
18525 if ac_fn_c_try_compile "$LINENO"; then :
18526 xorg_cv_cc_flag_unused_command_line_argument=yes
18527 else
18528 xorg_cv_cc_flag_unused_command_line_argument=no
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 fi
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18535 CFLAGS="$xorg_testset_save_CFLAGS"
18536 fi
18537
18538 found="no"
18539
18540 if test $found = "no" ; then
18541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18543 fi
18544
18545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18547 fi
18548
18549 CFLAGS="$CFLAGS -Werror"
18550
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18552 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18553 cacheid=xorg_cv_cc_flag__Werror
18554 if eval \${$cacheid+:} false; then :
18555 $as_echo_n "(cached) " >&6
18556 else
18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18559 int i;
18560 int
18561 main ()
18562 {
18563
18564 ;
18565 return 0;
18566 }
18567 _ACEOF
18568 if ac_fn_c_try_link "$LINENO"; then :
18569 eval $cacheid=yes
18570 else
18571 eval $cacheid=no
18572 fi
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 fi
18576
18577
18578 CFLAGS="$xorg_testset_save_CFLAGS"
18579
18580 eval supported=\$$cacheid
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18582 $as_echo "$supported" >&6; }
18583 if test "$supported" = "yes" ; then
18584 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18585 found="yes"
18586 fi
18587 fi
18588
18589 if test $found = "no" ; then
18590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18592 fi
18593
18594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18596 fi
18597
18598 CFLAGS="$CFLAGS -errwarn"
18599
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18601 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18602 cacheid=xorg_cv_cc_flag__errwarn
18603 if eval \${$cacheid+:} false; then :
18604 $as_echo_n "(cached) " >&6
18605 else
18606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18607 /* end confdefs.h. */
18608 int i;
18609 int
18610 main ()
18611 {
18612
18613 ;
18614 return 0;
18615 }
18616 _ACEOF
18617 if ac_fn_c_try_link "$LINENO"; then :
18618 eval $cacheid=yes
18619 else
18620 eval $cacheid=no
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext \
18623 conftest$ac_exeext conftest.$ac_ext
18624 fi
18625
18626
18627 CFLAGS="$xorg_testset_save_CFLAGS"
18628
18629 eval supported=\$$cacheid
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18631 $as_echo "$supported" >&6; }
18632 if test "$supported" = "yes" ; then
18633 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18634 found="yes"
18635 fi
18636 fi
18637
18638
18639
18640 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18641 # activate it with -Werror, so we add it here explicitly.
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655 xorg_testset_save_CFLAGS="$CFLAGS"
18656
18657 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18660 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18661 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18662 $as_echo_n "(cached) " >&6
18663 else
18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666 int i;
18667 _ACEOF
18668 if ac_fn_c_try_compile "$LINENO"; then :
18669 xorg_cv_cc_flag_unknown_warning_option=yes
18670 else
18671 xorg_cv_cc_flag_unknown_warning_option=no
18672 fi
18673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18674 fi
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18676 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18678 CFLAGS="$xorg_testset_save_CFLAGS"
18679 fi
18680
18681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18684 fi
18685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18687 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18688 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18689 $as_echo_n "(cached) " >&6
18690 else
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693 int i;
18694 _ACEOF
18695 if ac_fn_c_try_compile "$LINENO"; then :
18696 xorg_cv_cc_flag_unused_command_line_argument=yes
18697 else
18698 xorg_cv_cc_flag_unused_command_line_argument=no
18699 fi
18700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701 fi
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18703 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18705 CFLAGS="$xorg_testset_save_CFLAGS"
18706 fi
18707
18708 found="no"
18709
18710 if test $found = "no" ; then
18711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18713 fi
18714
18715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18717 fi
18718
18719 CFLAGS="$CFLAGS -Werror=attributes"
18720
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18722 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18723 cacheid=xorg_cv_cc_flag__Werror_attributes
18724 if eval \${$cacheid+:} false; then :
18725 $as_echo_n "(cached) " >&6
18726 else
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18729 int i;
18730 int
18731 main ()
18732 {
18733
18734 ;
18735 return 0;
18736 }
18737 _ACEOF
18738 if ac_fn_c_try_link "$LINENO"; then :
18739 eval $cacheid=yes
18740 else
18741 eval $cacheid=no
18742 fi
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745 fi
18746
18747
18748 CFLAGS="$xorg_testset_save_CFLAGS"
18749
18750 eval supported=\$$cacheid
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18752 $as_echo "$supported" >&6; }
18753 if test "$supported" = "yes" ; then
18754 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18755 found="yes"
18756 fi
18757 fi
18758
18759
18760
18761 if test "x$STRICT_COMPILE" = "xyes"; then
18762 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18763 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18764 fi
18765
18766
18767
18768
18769
18770
18771 cat >>confdefs.h <<_ACEOF
18772 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18773 _ACEOF
18774
18775 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18776 if test "x$PVM" = "x"; then
18777 PVM="0"
18778 fi
18779
18780 cat >>confdefs.h <<_ACEOF
18781 #define PACKAGE_VERSION_MINOR $PVM
18782 _ACEOF
18783
18784 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18785 if test "x$PVP" = "x"; then
18786 PVP="0"
18787 fi
18788
18789 cat >>confdefs.h <<_ACEOF
18790 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18791 _ACEOF
18792
18793
18794
18795 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18796 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18797 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18798 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18799
18800
18801
18802
18803 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18804 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18805 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18806 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18807 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18808
18809
18810
18811
18812
18813
18814 if test x$APP_MAN_SUFFIX = x ; then
18815 APP_MAN_SUFFIX=1
18816 fi
18817 if test x$APP_MAN_DIR = x ; then
18818 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18819 fi
18820
18821 if test x$LIB_MAN_SUFFIX = x ; then
18822 LIB_MAN_SUFFIX=3
18823 fi
18824 if test x$LIB_MAN_DIR = x ; then
18825 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18826 fi
18827
18828 if test x$FILE_MAN_SUFFIX = x ; then
18829 case $host_os in
18830 # Solaris 2.0 - 11 use SysV man page sections
18831 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
18832 *) FILE_MAN_SUFFIX=5 ;;
18833 esac
18834 fi
18835 if test x$FILE_MAN_DIR = x ; then
18836 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18837 fi
18838
18839 if test x$MISC_MAN_SUFFIX = x ; then
18840 case $host_os in
18841 # Solaris 2.0 - 11 use SysV man page sections
18842 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
18843 *) MISC_MAN_SUFFIX=7 ;;
18844 esac
18845 fi
18846 if test x$MISC_MAN_DIR = x ; then
18847 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18848 fi
18849
18850 if test x$DRIVER_MAN_SUFFIX = x ; then
18851 case $host_os in
18852 # Solaris 2.0 - 11 use SysV man page sections
18853 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
18854 *) DRIVER_MAN_SUFFIX=4 ;;
18855 esac
18856 fi
18857 if test x$DRIVER_MAN_DIR = x ; then
18858 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18859 fi
18860
18861 if test x$ADMIN_MAN_SUFFIX = x ; then
18862 case $host_os in
18863 # Solaris 2.0 - 11 use SysV man page sections
18864 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
18865 *) ADMIN_MAN_SUFFIX=8 ;;
18866 esac
18867 fi
18868 if test x$ADMIN_MAN_DIR = x ; then
18869 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18870 fi
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886 XORG_MAN_PAGE="X Version 11"
18887
18888 MAN_SUBSTS="\
18889 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18890 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18891 -e 's|__xservername__|Xorg|g' \
18892 -e 's|__xconfigfile__|xorg.conf|g' \
18893 -e 's|__projectroot__|\$(prefix)|g' \
18894 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18895 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18896 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18897 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18898 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18899 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18900 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18901
18902
18903
18904 # Check whether --enable-silent-rules was given.
18905 if test "${enable_silent_rules+set}" = set; then :
18906 enableval=$enable_silent_rules;
18907 fi
18908
18909 case $enable_silent_rules in # (((
18910 yes) AM_DEFAULT_VERBOSITY=0;;
18911 no) AM_DEFAULT_VERBOSITY=1;;
18912 *) AM_DEFAULT_VERBOSITY=0;;
18913 esac
18914 am_make=${MAKE-make}
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18916 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18917 if ${am_cv_make_support_nested_variables+:} false; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18920 if $as_echo 'TRUE=$(BAR$(V))
18921 BAR0=false
18922 BAR1=true
18923 V=1
18924 am__doit:
18925 @$(TRUE)
18926 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18927 am_cv_make_support_nested_variables=yes
18928 else
18929 am_cv_make_support_nested_variables=no
18930 fi
18931 fi
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18933 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18934 if test $am_cv_make_support_nested_variables = yes; then
18935 AM_V='$(V)'
18936 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18937 else
18938 AM_V=$AM_DEFAULT_VERBOSITY
18939 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18940 fi
18941 AM_BACKSLASH='\'
18942
18943
18944
18945
18946 # Check whether --enable-specs was given.
18947 if test "${enable_specs+set}" = set; then :
18948 enableval=$enable_specs; build_specs=$enableval
18949 else
18950 build_specs=yes
18951 fi
18952
18953
18954 if test x$build_specs = xyes; then
18955 ENABLE_SPECS_TRUE=
18956 ENABLE_SPECS_FALSE='#'
18957 else
18958 ENABLE_SPECS_TRUE='#'
18959 ENABLE_SPECS_FALSE=
18960 fi
18961
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
18963 $as_echo_n "checking whether to build functional specifications... " >&6; }
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
18965 $as_echo "$build_specs" >&6; }
18966
18967
18968
18969
18970
18971 # Check whether --with-xmlto was given.
18972 if test "${with_xmlto+set}" = set; then :
18973 withval=$with_xmlto; use_xmlto=$withval
18974 else
18975 use_xmlto=auto
18976 fi
18977
18978
18979
18980 if test "x$use_xmlto" = x"auto"; then
18981 # Extract the first word of "xmlto", so it can be a program name with args.
18982 set dummy xmlto; ac_word=$2
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18984 $as_echo_n "checking for $ac_word... " >&6; }
18985 if ${ac_cv_path_XMLTO+:} false; then :
18986 $as_echo_n "(cached) " >&6
18987 else
18988 case $XMLTO in
18989 [\\/]* | ?:[\\/]*)
18990 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18991 ;;
18992 *)
18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18994 for as_dir in $PATH
18995 do
18996 IFS=$as_save_IFS
18997 test -z "$as_dir" && as_dir=.
18998 for ac_exec_ext in '' $ac_executable_extensions; do
18999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19000 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19002 break 2
19003 fi
19004 done
19005 done
19006 IFS=$as_save_IFS
19007
19008 ;;
19009 esac
19010 fi
19011 XMLTO=$ac_cv_path_XMLTO
19012 if test -n "$XMLTO"; then
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19014 $as_echo "$XMLTO" >&6; }
19015 else
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017 $as_echo "no" >&6; }
19018 fi
19019
19020
19021 if test "x$XMLTO" = "x"; then
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19023 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19024 have_xmlto=no
19025 else
19026 have_xmlto=yes
19027 fi
19028 elif test "x$use_xmlto" = x"yes" ; then
19029 # Extract the first word of "xmlto", so it can be a program name with args.
19030 set dummy xmlto; ac_word=$2
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19032 $as_echo_n "checking for $ac_word... " >&6; }
19033 if ${ac_cv_path_XMLTO+:} false; then :
19034 $as_echo_n "(cached) " >&6
19035 else
19036 case $XMLTO in
19037 [\\/]* | ?:[\\/]*)
19038 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19039 ;;
19040 *)
19041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042 for as_dir in $PATH
19043 do
19044 IFS=$as_save_IFS
19045 test -z "$as_dir" && as_dir=.
19046 for ac_exec_ext in '' $ac_executable_extensions; do
19047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
19049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050 break 2
19051 fi
19052 done
19053 done
19054 IFS=$as_save_IFS
19055
19056 ;;
19057 esac
19058 fi
19059 XMLTO=$ac_cv_path_XMLTO
19060 if test -n "$XMLTO"; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19062 $as_echo "$XMLTO" >&6; }
19063 else
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19065 $as_echo "no" >&6; }
19066 fi
19067
19068
19069 if test "x$XMLTO" = "x"; then
19070 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19071 fi
19072 have_xmlto=yes
19073 elif test "x$use_xmlto" = x"no" ; then
19074 if test "x$XMLTO" != "x"; then
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19076 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19077 fi
19078 have_xmlto=no
19079 else
19080 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19081 fi
19082
19083 # Test for a minimum version of xmlto, if provided.
19084 if test "$have_xmlto" = yes; then
19085 # scrape the xmlto version
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19087 $as_echo_n "checking the xmlto version... " >&6; }
19088 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19090 $as_echo "$xmlto_version" >&6; }
19091 as_arg_v1=$xmlto_version
19092 as_arg_v2=0.0.22
19093 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19094 case $? in #(
19095 1) :
19096 if test "x$use_xmlto" = xauto; then
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19098 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19099 have_xmlto=no
19100 else
19101 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19102 fi ;; #(
19103 0) :
19104 ;; #(
19105 2) :
19106 ;; #(
19107 *) :
19108 ;;
19109 esac
19110 fi
19111
19112 # Test for the ability of xmlto to generate a text target
19113 #
19114 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19115 # following test for empty XML docbook files.
19116 # For compatibility reasons use the following empty XML docbook file and if
19117 # it fails try it again with a non-empty XML file.
19118 have_xmlto_text=no
19119 cat > conftest.xml << "EOF"
19120 EOF
19121 if test "$have_xmlto" = yes; then :
19122 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19123 have_xmlto_text=yes
19124 else
19125 # Try it again with a non-empty XML file.
19126 cat > conftest.xml << "EOF"
19127 <x></x>
19128 EOF
19129 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
19130 have_xmlto_text=yes
19131 else
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19133 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19134 fi
19135 fi
19136 fi
19137 rm -f conftest.xml
19138 if test $have_xmlto_text = yes; then
19139 HAVE_XMLTO_TEXT_TRUE=
19140 HAVE_XMLTO_TEXT_FALSE='#'
19141 else
19142 HAVE_XMLTO_TEXT_TRUE='#'
19143 HAVE_XMLTO_TEXT_FALSE=
19144 fi
19145
19146 if test "$have_xmlto" = yes; then
19147 HAVE_XMLTO_TRUE=
19148 HAVE_XMLTO_FALSE='#'
19149 else
19150 HAVE_XMLTO_TRUE='#'
19151 HAVE_XMLTO_FALSE=
19152 fi
19153
19154
19155
19156
19157
19158
19159 # Check whether --with-fop was given.
19160 if test "${with_fop+set}" = set; then :
19161 withval=$with_fop; use_fop=$withval
19162 else
19163 use_fop=no
19164 fi
19165
19166
19167
19168 if test "x$use_fop" = x"auto"; then
19169 # Extract the first word of "fop", so it can be a program name with args.
19170 set dummy fop; ac_word=$2
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19172 $as_echo_n "checking for $ac_word... " >&6; }
19173 if ${ac_cv_path_FOP+:} false; then :
19174 $as_echo_n "(cached) " >&6
19175 else
19176 case $FOP in
19177 [\\/]* | ?:[\\/]*)
19178 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19179 ;;
19180 *)
19181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19182 for as_dir in $PATH
19183 do
19184 IFS=$as_save_IFS
19185 test -z "$as_dir" && as_dir=.
19186 for ac_exec_ext in '' $ac_executable_extensions; do
19187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19188 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19190 break 2
19191 fi
19192 done
19193 done
19194 IFS=$as_save_IFS
19195
19196 ;;
19197 esac
19198 fi
19199 FOP=$ac_cv_path_FOP
19200 if test -n "$FOP"; then
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19202 $as_echo "$FOP" >&6; }
19203 else
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19205 $as_echo "no" >&6; }
19206 fi
19207
19208
19209 if test "x$FOP" = "x"; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19211 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19212 have_fop=no
19213 else
19214 have_fop=yes
19215 fi
19216 elif test "x$use_fop" = x"yes" ; then
19217 # Extract the first word of "fop", so it can be a program name with args.
19218 set dummy fop; ac_word=$2
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19220 $as_echo_n "checking for $ac_word... " >&6; }
19221 if ${ac_cv_path_FOP+:} false; then :
19222 $as_echo_n "(cached) " >&6
19223 else
19224 case $FOP in
19225 [\\/]* | ?:[\\/]*)
19226 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19227 ;;
19228 *)
19229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230 for as_dir in $PATH
19231 do
19232 IFS=$as_save_IFS
19233 test -z "$as_dir" && as_dir=.
19234 for ac_exec_ext in '' $ac_executable_extensions; do
19235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19236 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
19237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19238 break 2
19239 fi
19240 done
19241 done
19242 IFS=$as_save_IFS
19243
19244 ;;
19245 esac
19246 fi
19247 FOP=$ac_cv_path_FOP
19248 if test -n "$FOP"; then
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19250 $as_echo "$FOP" >&6; }
19251 else
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253 $as_echo "no" >&6; }
19254 fi
19255
19256
19257 if test "x$FOP" = "x"; then
19258 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19259 fi
19260 have_fop=yes
19261 elif test "x$use_fop" = x"no" ; then
19262 if test "x$FOP" != "x"; then
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19264 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19265 fi
19266 have_fop=no
19267 else
19268 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19269 fi
19270
19271 # Test for a minimum version of fop, if provided.
19272
19273 if test "$have_fop" = yes; then
19274 HAVE_FOP_TRUE=
19275 HAVE_FOP_FALSE='#'
19276 else
19277 HAVE_FOP_TRUE='#'
19278 HAVE_FOP_FALSE=
19279 fi
19280
19281
19282
19283
19284 # Preserves the interface, should it be implemented later
19285
19286
19287
19288 # Check whether --with-xsltproc was given.
19289 if test "${with_xsltproc+set}" = set; then :
19290 withval=$with_xsltproc; use_xsltproc=$withval
19291 else
19292 use_xsltproc=auto
19293 fi
19294
19295
19296
19297 if test "x$use_xsltproc" = x"auto"; then
19298 # Extract the first word of "xsltproc", so it can be a program name with args.
19299 set dummy xsltproc; ac_word=$2
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19301 $as_echo_n "checking for $ac_word... " >&6; }
19302 if ${ac_cv_path_XSLTPROC+:} false; then :
19303 $as_echo_n "(cached) " >&6
19304 else
19305 case $XSLTPROC in
19306 [\\/]* | ?:[\\/]*)
19307 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19308 ;;
19309 *)
19310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19311 for as_dir in $PATH
19312 do
19313 IFS=$as_save_IFS
19314 test -z "$as_dir" && as_dir=.
19315 for ac_exec_ext in '' $ac_executable_extensions; do
19316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19317 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19319 break 2
19320 fi
19321 done
19322 done
19323 IFS=$as_save_IFS
19324
19325 ;;
19326 esac
19327 fi
19328 XSLTPROC=$ac_cv_path_XSLTPROC
19329 if test -n "$XSLTPROC"; then
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19331 $as_echo "$XSLTPROC" >&6; }
19332 else
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19335 fi
19336
19337
19338 if test "x$XSLTPROC" = "x"; then
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
19340 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
19341 have_xsltproc=no
19342 else
19343 have_xsltproc=yes
19344 fi
19345 elif test "x$use_xsltproc" = x"yes" ; then
19346 # Extract the first word of "xsltproc", so it can be a program name with args.
19347 set dummy xsltproc; ac_word=$2
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349 $as_echo_n "checking for $ac_word... " >&6; }
19350 if ${ac_cv_path_XSLTPROC+:} false; then :
19351 $as_echo_n "(cached) " >&6
19352 else
19353 case $XSLTPROC in
19354 [\\/]* | ?:[\\/]*)
19355 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19356 ;;
19357 *)
19358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19359 for as_dir in $PATH
19360 do
19361 IFS=$as_save_IFS
19362 test -z "$as_dir" && as_dir=.
19363 for ac_exec_ext in '' $ac_executable_extensions; do
19364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19365 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19367 break 2
19368 fi
19369 done
19370 done
19371 IFS=$as_save_IFS
19372
19373 ;;
19374 esac
19375 fi
19376 XSLTPROC=$ac_cv_path_XSLTPROC
19377 if test -n "$XSLTPROC"; then
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19379 $as_echo "$XSLTPROC" >&6; }
19380 else
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382 $as_echo "no" >&6; }
19383 fi
19384
19385
19386 if test "x$XSLTPROC" = "x"; then
19387 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
19388 fi
19389 have_xsltproc=yes
19390 elif test "x$use_xsltproc" = x"no" ; then
19391 if test "x$XSLTPROC" != "x"; then
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
19393 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
19394 fi
19395 have_xsltproc=no
19396 else
19397 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
19398 fi
19399
19400 if test "$have_xsltproc" = yes; then
19401 HAVE_XSLTPROC_TRUE=
19402 HAVE_XSLTPROC_FALSE='#'
19403 else
19404 HAVE_XSLTPROC_TRUE='#'
19405 HAVE_XSLTPROC_FALSE=
19406 fi
19407
19408
19409
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.10" >&5
19411 $as_echo_n "checking for X.Org SGML entities >= 1.10... " >&6; }
19412 XORG_SGML_PATH=
19413 if test -n "$PKG_CONFIG" && \
19414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.10\""; } >&5
19415 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.10") 2>&5
19416 ac_status=$?
19417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19418 test $ac_status = 0; }; then
19419 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19420 else
19421 :
19422
19423 fi
19424
19425 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19426 # the path and the name of the doc stylesheet
19427 if test "x$XORG_SGML_PATH" != "x" ; then
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
19429 $as_echo "$XORG_SGML_PATH" >&6; }
19430 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
19431 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
19432 else
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19434 $as_echo "no" >&6; }
19435 fi
19436
19437
19438
19439
19440 if test "x$XSL_STYLESHEET" != "x"; then
19441 HAVE_STYLESHEETS_TRUE=
19442 HAVE_STYLESHEETS_FALSE='#'
19443 else
19444 HAVE_STYLESHEETS_TRUE='#'
19445 HAVE_STYLESHEETS_FALSE=
19446 fi
19447
19448
19449
19450
19451 for ac_prog in cpp
19452 do
19453 # Extract the first word of "$ac_prog", so it can be a program name with args.
19454 set dummy $ac_prog; ac_word=$2
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19456 $as_echo_n "checking for $ac_word... " >&6; }
19457 if ${ac_cv_path_RAWCPP+:} false; then :
19458 $as_echo_n "(cached) " >&6
19459 else
19460 case $RAWCPP in
19461 [\\/]* | ?:[\\/]*)
19462 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
19463 ;;
19464 *)
19465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19466 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
19467 for as_dir in $as_dummy
19468 do
19469 IFS=$as_save_IFS
19470 test -z "$as_dir" && as_dir=.
19471 for ac_exec_ext in '' $ac_executable_extensions; do
19472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19473 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
19474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19475 break 2
19476 fi
19477 done
19478 done
19479 IFS=$as_save_IFS
19480
19481 ;;
19482 esac
19483 fi
19484 RAWCPP=$ac_cv_path_RAWCPP
19485 if test -n "$RAWCPP"; then
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
19487 $as_echo "$RAWCPP" >&6; }
19488 else
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19490 $as_echo "no" >&6; }
19491 fi
19492
19493
19494 test -n "$RAWCPP" && break
19495 done
19496 test -n "$RAWCPP" || RAWCPP="${CPP}"
19497
19498
19499 # Check for flag to avoid builtin definitions - assumes unix is predefined,
19500 # which is not the best choice for supporting other OS'es, but covers most
19501 # of the ones we need for now.
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
19503 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19506 Does cpp redefine unix ?
19507 _ACEOF
19508 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19510 $as_echo "no" >&6; }
19511 else
19512 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19513 RAWCPPFLAGS=-undef
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19515 $as_echo "yes" >&6; }
19516 # under Cygwin unix is still defined even with -undef
19517 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
19518 RAWCPPFLAGS="-undef -ansi"
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
19520 $as_echo "yes, with -ansi" >&6; }
19521 else
19522 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
19523 fi
19524 fi
19525 rm -f conftest.$ac_ext
19526
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
19528 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19530 /* end confdefs.h. */
19531 Does cpp preserve "whitespace"?
19532 _ACEOF
19533 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 $as_echo "no" >&6; }
19536 else
19537 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
19538 TRADITIONALCPPFLAGS="-traditional"
19539 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 $as_echo "yes" >&6; }
19542 else
19543 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
19544 fi
19545 fi
19546 rm -f conftest.$ac_ext
19547
19548
19549
19550
19551
19552 # Preserves the interface, should it be implemented later
19553
19554
19555
19556 # Check whether --with-perl was given.
19557 if test "${with_perl+set}" = set; then :
19558 withval=$with_perl; use_perl=$withval
19559 else
19560 use_perl=auto
19561 fi
19562
19563
19564
19565 if test "x$use_perl" = x"auto"; then
19566 # Extract the first word of "perl", so it can be a program name with args.
19567 set dummy perl; ac_word=$2
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19569 $as_echo_n "checking for $ac_word... " >&6; }
19570 if ${ac_cv_path_PERL+:} false; then :
19571 $as_echo_n "(cached) " >&6
19572 else
19573 case $PERL in
19574 [\\/]* | ?:[\\/]*)
19575 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19576 ;;
19577 *)
19578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19579 for as_dir in $PATH
19580 do
19581 IFS=$as_save_IFS
19582 test -z "$as_dir" && as_dir=.
19583 for ac_exec_ext in '' $ac_executable_extensions; do
19584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19585 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19587 break 2
19588 fi
19589 done
19590 done
19591 IFS=$as_save_IFS
19592
19593 ;;
19594 esac
19595 fi
19596 PERL=$ac_cv_path_PERL
19597 if test -n "$PERL"; then
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19599 $as_echo "$PERL" >&6; }
19600 else
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19602 $as_echo "no" >&6; }
19603 fi
19604
19605
19606 if test "x$PERL" = "x"; then
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5
19608 $as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;}
19609 have_perl=no
19610 else
19611 have_perl=yes
19612 fi
19613 elif test "x$use_perl" = x"yes" ; then
19614 # Extract the first word of "perl", so it can be a program name with args.
19615 set dummy perl; ac_word=$2
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19617 $as_echo_n "checking for $ac_word... " >&6; }
19618 if ${ac_cv_path_PERL+:} false; then :
19619 $as_echo_n "(cached) " >&6
19620 else
19621 case $PERL in
19622 [\\/]* | ?:[\\/]*)
19623 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19624 ;;
19625 *)
19626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19627 for as_dir in $PATH
19628 do
19629 IFS=$as_save_IFS
19630 test -z "$as_dir" && as_dir=.
19631 for ac_exec_ext in '' $ac_executable_extensions; do
19632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19633 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19635 break 2
19636 fi
19637 done
19638 done
19639 IFS=$as_save_IFS
19640
19641 ;;
19642 esac
19643 fi
19644 PERL=$ac_cv_path_PERL
19645 if test -n "$PERL"; then
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19647 $as_echo "$PERL" >&6; }
19648 else
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19650 $as_echo "no" >&6; }
19651 fi
19652
19653
19654 if test "x$PERL" = "x"; then
19655 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5
19656 fi
19657 have_perl=yes
19658 elif test "x$use_perl" = x"no" ; then
19659 if test "x$PERL" != "x"; then
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5
19661 $as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;}
19662 fi
19663 have_perl=no
19664 else
19665 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5
19666 fi
19667
19668 if test "$have_perl" = yes; then
19669 HAVE_PERL_TRUE=
19670 HAVE_PERL_FALSE='#'
19671 else
19672 HAVE_PERL_TRUE='#'
19673 HAVE_PERL_FALSE=
19674 fi
19675
19676
19677
19678 # Required when PKG_CHECK_MODULES called within an if statement
19679
19680
19681
19682
19683
19684
19685
19686 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19687 if test -n "$ac_tool_prefix"; then
19688 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19689 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19691 $as_echo_n "checking for $ac_word... " >&6; }
19692 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19693 $as_echo_n "(cached) " >&6
19694 else
19695 case $PKG_CONFIG in
19696 [\\/]* | ?:[\\/]*)
19697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19698 ;;
19699 *)
19700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19701 for as_dir in $PATH
19702 do
19703 IFS=$as_save_IFS
19704 test -z "$as_dir" && as_dir=.
19705 for ac_exec_ext in '' $ac_executable_extensions; do
19706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19707 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19709 break 2
19710 fi
19711 done
19712 done
19713 IFS=$as_save_IFS
19714
19715 ;;
19716 esac
19717 fi
19718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19719 if test -n "$PKG_CONFIG"; then
19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19721 $as_echo "$PKG_CONFIG" >&6; }
19722 else
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19724 $as_echo "no" >&6; }
19725 fi
19726
19727
19728 fi
19729 if test -z "$ac_cv_path_PKG_CONFIG"; then
19730 ac_pt_PKG_CONFIG=$PKG_CONFIG
19731 # Extract the first word of "pkg-config", so it can be a program name with args.
19732 set dummy pkg-config; ac_word=$2
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19734 $as_echo_n "checking for $ac_word... " >&6; }
19735 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19736 $as_echo_n "(cached) " >&6
19737 else
19738 case $ac_pt_PKG_CONFIG in
19739 [\\/]* | ?:[\\/]*)
19740 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19741 ;;
19742 *)
19743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19744 for as_dir in $PATH
19745 do
19746 IFS=$as_save_IFS
19747 test -z "$as_dir" && as_dir=.
19748 for ac_exec_ext in '' $ac_executable_extensions; do
19749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19750 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19752 break 2
19753 fi
19754 done
19755 done
19756 IFS=$as_save_IFS
19757
19758 ;;
19759 esac
19760 fi
19761 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19762 if test -n "$ac_pt_PKG_CONFIG"; then
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19764 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19765 else
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19767 $as_echo "no" >&6; }
19768 fi
19769
19770 if test "x$ac_pt_PKG_CONFIG" = x; then
19771 PKG_CONFIG=""
19772 else
19773 case $cross_compiling:$ac_tool_warned in
19774 yes:)
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19777 ac_tool_warned=yes ;;
19778 esac
19779 PKG_CONFIG=$ac_pt_PKG_CONFIG
19780 fi
19781 else
19782 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19783 fi
19784
19785 fi
19786 if test -n "$PKG_CONFIG"; then
19787 _pkg_min_version=0.9.0
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19789 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19790 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19792 $as_echo "yes" >&6; }
19793 else
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19795 $as_echo "no" >&6; }
19796 PKG_CONFIG=""
19797 fi
19798 fi
19799
19800 if test x"$CC_FOR_BUILD" = x; then
19801 if test x"$cross_compiling" = xyes; then
19802 for ac_prog in gcc cc
19803 do
19804 # Extract the first word of "$ac_prog", so it can be a program name with args.
19805 set dummy $ac_prog; ac_word=$2
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19807 $as_echo_n "checking for $ac_word... " >&6; }
19808 if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 if test -n "$CC_FOR_BUILD"; then
19812 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
19813 else
19814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19815 for as_dir in $PATH
19816 do
19817 IFS=$as_save_IFS
19818 test -z "$as_dir" && as_dir=.
19819 for ac_exec_ext in '' $ac_executable_extensions; do
19820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19821 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
19822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19823 break 2
19824 fi
19825 done
19826 done
19827 IFS=$as_save_IFS
19828
19829 fi
19830 fi
19831 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
19832 if test -n "$CC_FOR_BUILD"; then
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
19834 $as_echo "$CC_FOR_BUILD" >&6; }
19835 else
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19837 $as_echo "no" >&6; }
19838 fi
19839
19840
19841 test -n "$CC_FOR_BUILD" && break
19842 done
19843
19844 else
19845 CC_FOR_BUILD="$CC"
19846 fi
19847 fi
19848
19849
19850 if test x"$CPPFLAGS_FOR_BUILD" = x; then
19851 if test ! x"$cross_compiling" = xyes; then
19852 CPPFLAGS_FOR_BUILD=${CPPFLAGS}
19853 fi
19854 fi
19855
19856
19857 if test x"$CFLAGS_FOR_BUILD" = x; then
19858 if test ! x"$cross_compiling" = xyes; then
19859 CFLAGS_FOR_BUILD=${CFLAGS}
19860 fi
19861 fi
19862
19863
19864 if test x"$LDFLAGS_FOR_BUILD" = x; then
19865 if test ! x"$cross_compiling" = xyes; then
19866 LDFLAGS_FOR_BUILD=${LDFLAGS}
19867 fi
19868 fi
19869
19870
19871 if test x"$EXEEXT_FOR_BUILD" = x; then
19872 if test x"$cross_compiling" = xno; then
19873 EXEEXT_FOR_BUILD=${EXEEXT}
19874 fi
19875 # If cross-compiling and not provided, assume EXEEXT_FOR_BUILD is empty
19876 fi
19877
19878
19879 # Checks for pkg-config packages
19880
19881 # Always required
19882 X11_REQUIRES='xproto >= 7.0.25 xextproto xtrans xcb >= 1.11.1'
19883 X11_EXTRA_DEPS="xcb >= 1.11.1"
19884
19885
19886
19887
19888
19889
19890
19891
19892 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19893 if test -n "$ac_tool_prefix"; then
19894 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19895 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19897 $as_echo_n "checking for $ac_word... " >&6; }
19898 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19899 $as_echo_n "(cached) " >&6
19900 else
19901 case $PKG_CONFIG in
19902 [\\/]* | ?:[\\/]*)
19903 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19904 ;;
19905 *)
19906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19907 for as_dir in $PATH
19908 do
19909 IFS=$as_save_IFS
19910 test -z "$as_dir" && as_dir=.
19911 for ac_exec_ext in '' $ac_executable_extensions; do
19912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19913 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19915 break 2
19916 fi
19917 done
19918 done
19919 IFS=$as_save_IFS
19920
19921 ;;
19922 esac
19923 fi
19924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19925 if test -n "$PKG_CONFIG"; then
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19927 $as_echo "$PKG_CONFIG" >&6; }
19928 else
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19930 $as_echo "no" >&6; }
19931 fi
19932
19933
19934 fi
19935 if test -z "$ac_cv_path_PKG_CONFIG"; then
19936 ac_pt_PKG_CONFIG=$PKG_CONFIG
19937 # Extract the first word of "pkg-config", so it can be a program name with args.
19938 set dummy pkg-config; ac_word=$2
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19940 $as_echo_n "checking for $ac_word... " >&6; }
19941 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19942 $as_echo_n "(cached) " >&6
19943 else
19944 case $ac_pt_PKG_CONFIG in
19945 [\\/]* | ?:[\\/]*)
19946 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19947 ;;
19948 *)
19949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19950 for as_dir in $PATH
19951 do
19952 IFS=$as_save_IFS
19953 test -z "$as_dir" && as_dir=.
19954 for ac_exec_ext in '' $ac_executable_extensions; do
19955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19956 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19958 break 2
19959 fi
19960 done
19961 done
19962 IFS=$as_save_IFS
19963
19964 ;;
19965 esac
19966 fi
19967 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19968 if test -n "$ac_pt_PKG_CONFIG"; then
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19970 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19971 else
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19973 $as_echo "no" >&6; }
19974 fi
19975
19976 if test "x$ac_pt_PKG_CONFIG" = x; then
19977 PKG_CONFIG=""
19978 else
19979 case $cross_compiling:$ac_tool_warned in
19980 yes:)
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19983 ac_tool_warned=yes ;;
19984 esac
19985 PKG_CONFIG=$ac_pt_PKG_CONFIG
19986 fi
19987 else
19988 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19989 fi
19990
19991 fi
19992 if test -n "$PKG_CONFIG"; then
19993 _pkg_min_version=0.9.0
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19995 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19996 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19998 $as_echo "yes" >&6; }
19999 else
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20001 $as_echo "no" >&6; }
20002 PKG_CONFIG=""
20003 fi
20004 fi
20005
20006
20007
20008 # Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
20009 # was not expanded, since libX11 with no transport types is rather useless.
20010 #
20011 # If you're seeing an error here, be sure you installed the lib/xtrans module
20012 # first and if it's not in the default location, that you set the ACLOCAL
20013 # environment variable to find it, such as:
20014 # ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
20015
20016
20017 # Transport selection macro from xtrans.m4
20018
20019
20020 case $host_os in
20021 mingw*) unixdef="no" ;;
20022 *) unixdef="yes" ;;
20023 esac
20024 # Check whether --enable-unix-transport was given.
20025 if test "${enable_unix_transport+set}" = set; then :
20026 enableval=$enable_unix_transport; UNIXCONN=$enableval
20027 else
20028 UNIXCONN=$unixdef
20029 fi
20030
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
20032 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
20033 if test "$UNIXCONN" = "yes"; then
20034
20035 $as_echo "#define UNIXCONN 1" >>confdefs.h
20036
20037 fi
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
20039 $as_echo "$UNIXCONN" >&6; }
20040 # Check whether --enable-tcp-transport was given.
20041 if test "${enable_tcp_transport+set}" = set; then :
20042 enableval=$enable_tcp_transport; TCPCONN=$enableval
20043 else
20044 TCPCONN=yes
20045 fi
20046
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
20048 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
20050 $as_echo "$TCPCONN" >&6; }
20051 if test "$TCPCONN" = "yes"; then
20052
20053 $as_echo "#define TCPCONN 1" >>confdefs.h
20054
20055
20056 # SVR4 hides these in libraries other than libc
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20058 $as_echo_n "checking for library containing socket... " >&6; }
20059 if ${ac_cv_search_socket+:} false; then :
20060 $as_echo_n "(cached) " >&6
20061 else
20062 ac_func_search_save_LIBS=$LIBS
20063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065
20066 /* Override any GCC internal prototype to avoid an error.
20067 Use char because int might match the return type of a GCC
20068 builtin and then its argument prototype would still apply. */
20069 #ifdef __cplusplus
20070 extern "C"
20071 #endif
20072 char socket ();
20073 int
20074 main ()
20075 {
20076 return socket ();
20077 ;
20078 return 0;
20079 }
20080 _ACEOF
20081 for ac_lib in '' socket; do
20082 if test -z "$ac_lib"; then
20083 ac_res="none required"
20084 else
20085 ac_res=-l$ac_lib
20086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20087 fi
20088 if ac_fn_c_try_link "$LINENO"; then :
20089 ac_cv_search_socket=$ac_res
20090 fi
20091 rm -f core conftest.err conftest.$ac_objext \
20092 conftest$ac_exeext
20093 if ${ac_cv_search_socket+:} false; then :
20094 break
20095 fi
20096 done
20097 if ${ac_cv_search_socket+:} false; then :
20098
20099 else
20100 ac_cv_search_socket=no
20101 fi
20102 rm conftest.$ac_ext
20103 LIBS=$ac_func_search_save_LIBS
20104 fi
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20106 $as_echo "$ac_cv_search_socket" >&6; }
20107 ac_res=$ac_cv_search_socket
20108 if test "$ac_res" != no; then :
20109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20110
20111 fi
20112
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20114 $as_echo_n "checking for library containing gethostbyname... " >&6; }
20115 if ${ac_cv_search_gethostbyname+:} false; then :
20116 $as_echo_n "(cached) " >&6
20117 else
20118 ac_func_search_save_LIBS=$LIBS
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20121
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20125 #ifdef __cplusplus
20126 extern "C"
20127 #endif
20128 char gethostbyname ();
20129 int
20130 main ()
20131 {
20132 return gethostbyname ();
20133 ;
20134 return 0;
20135 }
20136 _ACEOF
20137 for ac_lib in '' nsl; do
20138 if test -z "$ac_lib"; then
20139 ac_res="none required"
20140 else
20141 ac_res=-l$ac_lib
20142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20143 fi
20144 if ac_fn_c_try_link "$LINENO"; then :
20145 ac_cv_search_gethostbyname=$ac_res
20146 fi
20147 rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext
20149 if ${ac_cv_search_gethostbyname+:} false; then :
20150 break
20151 fi
20152 done
20153 if ${ac_cv_search_gethostbyname+:} false; then :
20154
20155 else
20156 ac_cv_search_gethostbyname=no
20157 fi
20158 rm conftest.$ac_ext
20159 LIBS=$ac_func_search_save_LIBS
20160 fi
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20162 $as_echo "$ac_cv_search_gethostbyname" >&6; }
20163 ac_res=$ac_cv_search_gethostbyname
20164 if test "$ac_res" != no; then :
20165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20166
20167 fi
20168
20169 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
20171 $as_echo_n "checking for main in -lws2_32... " >&6; }
20172 if ${ac_cv_lib_ws2_32_main+:} false; then :
20173 $as_echo_n "(cached) " >&6
20174 else
20175 ac_check_lib_save_LIBS=$LIBS
20176 LIBS="-lws2_32 $LIBS"
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h. */
20179
20180
20181 int
20182 main ()
20183 {
20184 return main ();
20185 ;
20186 return 0;
20187 }
20188 _ACEOF
20189 if ac_fn_c_try_link "$LINENO"; then :
20190 ac_cv_lib_ws2_32_main=yes
20191 else
20192 ac_cv_lib_ws2_32_main=no
20193 fi
20194 rm -f core conftest.err conftest.$ac_objext \
20195 conftest$ac_exeext conftest.$ac_ext
20196 LIBS=$ac_check_lib_save_LIBS
20197 fi
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
20199 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
20200 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
20201 cat >>confdefs.h <<_ACEOF
20202 #define HAVE_LIBWS2_32 1
20203 _ACEOF
20204
20205 LIBS="-lws2_32 $LIBS"
20206
20207 fi
20208
20209 fi
20210
20211 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
20212 # Check whether --enable-ipv6 was given.
20213 if test "${enable_ipv6+set}" = set; then :
20214 enableval=$enable_ipv6; IPV6CONN=$enableval
20215 else
20216 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
20217 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
20218 IPV6CONN=yes
20219 else
20220 IPV6CONN=no
20221 fi
20222
20223 fi
20224
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
20226 $as_echo_n "checking if IPv6 support should be built... " >&6; }
20227 if test "$IPV6CONN" = "yes"; then
20228
20229 $as_echo "#define IPv6 1" >>confdefs.h
20230
20231 fi
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
20233 $as_echo "$IPV6CONN" >&6; }
20234
20235 # 4.3BSD-Reno added a new member to struct sockaddr_in
20236 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
20237 #include <sys/types.h>
20238 #include <sys/socket.h>
20239 #include <netinet/in.h>
20240
20241 "
20242 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
20243
20244 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
20245
20246 fi
20247
20248
20249 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
20250 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
20251 $ac_includes_default
20252 #include <sys/socket.h>
20253 "
20254 if test "x$ac_cv_type_socklen_t" = xyes; then :
20255
20256 cat >>confdefs.h <<_ACEOF
20257 #define HAVE_SOCKLEN_T 1
20258 _ACEOF
20259
20260
20261 fi
20262
20263
20264 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
20265 # _XOPEN_SOURCE to get it (such as on Solaris)
20266 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20267 $ac_includes_default
20268 #include <sys/socket.h>
20269
20270 "
20271 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20272
20273 fi
20274
20275 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
20276 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20277 unset ac_cv_member_struct_msghdr_msg_control
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
20279 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
20280 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20281 #define _XOPEN_SOURCE 600
20282 $ac_includes_default
20283 #include <sys/socket.h>
20284
20285 "
20286 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20287
20288 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
20289
20290
20291 fi
20292
20293 fi
20294 # If that didn't work, fall back to XPG5/UNIX98 with C89
20295 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
20296 unset ac_cv_member_struct_msghdr_msg_control
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
20298 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
20299 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
20300 #define _XOPEN_SOURCE 500
20301 $ac_includes_default
20302 #include <sys/socket.h>
20303
20304 "
20305 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
20306
20307 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
20308
20309
20310 fi
20311
20312 fi
20313
20314
20315
20316 fi
20317 case $host_os in
20318 solaris*|sco*|sysv4*) localdef="yes" ;;
20319 *) localdef="no" ;;
20320 esac
20321 # Check whether --enable-local-transport was given.
20322 if test "${enable_local_transport+set}" = set; then :
20323 enableval=$enable_local_transport; LOCALCONN=$enableval
20324 else
20325 LOCALCONN=$localdef
20326 fi
20327
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
20329 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
20331 $as_echo "$LOCALCONN" >&6; }
20332 if test "$LOCALCONN" = "yes"; then
20333
20334 $as_echo "#define LOCALCONN 1" >>confdefs.h
20335
20336 fi
20337
20338
20339
20340 # Check for dlopen
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5
20342 $as_echo_n "checking if run-time linking is supported... " >&6; }
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20344 $as_echo_n "checking for library containing dlopen... " >&6; }
20345 if ${ac_cv_search_dlopen+:} false; then :
20346 $as_echo_n "(cached) " >&6
20347 else
20348 ac_func_search_save_LIBS=$LIBS
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char dlopen ();
20359 int
20360 main ()
20361 {
20362 return dlopen ();
20363 ;
20364 return 0;
20365 }
20366 _ACEOF
20367 for ac_lib in '' dl svld; do
20368 if test -z "$ac_lib"; then
20369 ac_res="none required"
20370 else
20371 ac_res=-l$ac_lib
20372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20373 fi
20374 if ac_fn_c_try_link "$LINENO"; then :
20375 ac_cv_search_dlopen=$ac_res
20376 fi
20377 rm -f core conftest.err conftest.$ac_objext \
20378 conftest$ac_exeext
20379 if ${ac_cv_search_dlopen+:} false; then :
20380 break
20381 fi
20382 done
20383 if ${ac_cv_search_dlopen+:} false; then :
20384
20385 else
20386 ac_cv_search_dlopen=no
20387 fi
20388 rm conftest.$ac_ext
20389 LIBS=$ac_func_search_save_LIBS
20390 fi
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20392 $as_echo "$ac_cv_search_dlopen" >&6; }
20393 ac_res=$ac_cv_search_dlopen
20394 if test "$ac_res" != no; then :
20395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20396
20397 fi
20398
20399 if test "x$ac_cv_search_dlopen" = xno; then
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
20401 $as_echo_n "checking for library containing shl_load... " >&6; }
20402 if ${ac_cv_search_shl_load+:} false; then :
20403 $as_echo_n "(cached) " >&6
20404 else
20405 ac_func_search_save_LIBS=$LIBS
20406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20407 /* end confdefs.h. */
20408
20409 /* Override any GCC internal prototype to avoid an error.
20410 Use char because int might match the return type of a GCC
20411 builtin and then its argument prototype would still apply. */
20412 #ifdef __cplusplus
20413 extern "C"
20414 #endif
20415 char shl_load ();
20416 int
20417 main ()
20418 {
20419 return shl_load ();
20420 ;
20421 return 0;
20422 }
20423 _ACEOF
20424 for ac_lib in '' dld; do
20425 if test -z "$ac_lib"; then
20426 ac_res="none required"
20427 else
20428 ac_res=-l$ac_lib
20429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20430 fi
20431 if ac_fn_c_try_link "$LINENO"; then :
20432 ac_cv_search_shl_load=$ac_res
20433 fi
20434 rm -f core conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext
20436 if ${ac_cv_search_shl_load+:} false; then :
20437 break
20438 fi
20439 done
20440 if ${ac_cv_search_shl_load+:} false; then :
20441
20442 else
20443 ac_cv_search_shl_load=no
20444 fi
20445 rm conftest.$ac_ext
20446 LIBS=$ac_func_search_save_LIBS
20447 fi
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
20449 $as_echo "$ac_cv_search_shl_load" >&6; }
20450 ac_res=$ac_cv_search_shl_load
20451 if test "$ac_res" != no; then :
20452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20453
20454 fi
20455
20456 if test "x$ac_cv_search_shl_load" != xno; then
20457
20458 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20459
20460 for ac_header in dl.h
20461 do :
20462 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
20463 if test "x$ac_cv_header_dl_h" = xyes; then :
20464 cat >>confdefs.h <<_ACEOF
20465 #define HAVE_DL_H 1
20466 _ACEOF
20467
20468 fi
20469
20470 done
20471
20472 fi
20473 else
20474
20475 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20476
20477 for ac_header in dlfcn.h
20478 do :
20479 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20480 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
20481 cat >>confdefs.h <<_ACEOF
20482 #define HAVE_DLFCN_H 1
20483 _ACEOF
20484
20485 fi
20486
20487 done
20488
20489 fi
20490 if test "x$ac_cv_header_dlfcn_h" = xyes -o "x$ac_cv_header_dl_h" = xyes; then
20491 HAVE_LOADABLE_MODULES=yes
20492 else
20493 HAVE_LOADABLE_MODULES=no
20494 fi
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5
20496 $as_echo "$HAVE_LOADABLE_MODULES" >&6; }
20497
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5
20499 $as_echo_n "checking if loadable i18n module support should be enabled... " >&6; }
20500 # Check whether --enable-loadable-i18n was given.
20501 if test "${enable_loadable_i18n+set}" = set; then :
20502 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval
20503 else
20504 XLIB_LOADABLE_I18N="no"
20505 fi
20506
20507 if test x$XLIB_LOADABLE_I18N = xyes; then
20508 if test x$HAVE_LOADABLE_MODULES = xno; then
20509 as_fn_error $? "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5
20510 fi
20511
20512 $as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h
20513
20514 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la'
20515
20516 fi
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5
20518 $as_echo "$XLIB_LOADABLE_I18N" >&6; }
20519
20520 if test x$XLIB_LOADABLE_I18N = xyes; then
20521 XLIB_LOADABLE_I18N_TRUE=
20522 XLIB_LOADABLE_I18N_FALSE='#'
20523 else
20524 XLIB_LOADABLE_I18N_TRUE='#'
20525 XLIB_LOADABLE_I18N_FALSE=
20526 fi
20527
20528
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5
20530 $as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; }
20531 # Check whether --enable-loadable-xcursor was given.
20532 if test "${enable_loadable_xcursor+set}" = set; then :
20533 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval
20534 else
20535 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES
20536 fi
20537
20538 if test x$XLIB_LOADABLE_XCURSOR = xyes; then
20539
20540 $as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h
20541
20542 fi
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5
20544 $as_echo "$XLIB_LOADABLE_XCURSOR" >&6; }
20545
20546 # Check whether --enable-thread-safety-constructor was given.
20547 if test "${enable_thread_safety_constructor+set}" = set; then :
20548 enableval=$enable_thread_safety_constructor; USE_THREAD_SAFETY_CONSTRUCTOR=$enableval
20549 else
20550 USE_THREAD_SAFETY_CONSTRUCTOR="yes"
20551 fi
20552
20553 if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
20554
20555 $as_echo "#define USE_THREAD_SAFETY_CONSTRUCTOR 1" >>confdefs.h
20556
20557 fi
20558
20559 # Checks for header files.
20560 for ac_header in sys/filio.h sys/select.h sys/ioctl.h sys/socket.h
20561 do :
20562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20565 cat >>confdefs.h <<_ACEOF
20566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20567 _ACEOF
20568
20569 fi
20570
20571 done
20572
20573
20574 # Checks for typedefs, structures, and compiler characteristics.
20575
20576
20577
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountl" >&5
20579 $as_echo_n "checking for __builtin_popcountl... " >&6; }
20580 if ${ax_cv_have___builtin_popcountl+:} false; then :
20581 $as_echo_n "(cached) " >&6
20582 else
20583
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586
20587 int
20588 main ()
20589 {
20590
20591 __builtin_popcountl(0)
20592
20593 ;
20594 return 0;
20595 }
20596 _ACEOF
20597 if ac_fn_c_try_link "$LINENO"; then :
20598 ax_cv_have___builtin_popcountl=yes
20599 else
20600 ax_cv_have___builtin_popcountl=no
20601 fi
20602 rm -f core conftest.err conftest.$ac_objext \
20603 conftest$ac_exeext conftest.$ac_ext
20604
20605 fi
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountl" >&5
20607 $as_echo "$ax_cv_have___builtin_popcountl" >&6; }
20608
20609 if test yes = $ax_cv_have___builtin_popcountl; then :
20610
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE___BUILTIN_POPCOUNTL 1
20613 _ACEOF
20614
20615 fi
20616
20617
20618
20619
20620 # Checks for library functions.
20621 for ac_func in strtol seteuid
20622 do :
20623 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20624 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20625 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20626 cat >>confdefs.h <<_ACEOF
20627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20628 _ACEOF
20629
20630 fi
20631 done
20632
20633 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20634 if test "x$ac_cv_func_reallocarray" = xyes; then :
20635 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20636
20637 else
20638 case " $LIBOBJS " in
20639 *" reallocarray.$ac_objext "* ) ;;
20640 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20641 ;;
20642 esac
20643
20644 fi
20645
20646
20647 # Used in lcFile.c (see also --enable-xlocaledir settings below)
20648 XLOCALEDIR_IS_SAFE="no"
20649 ac_fn_c_check_decl "$LINENO" "issetugid" "ac_cv_have_decl_issetugid" "$ac_includes_default"
20650 if test "x$ac_cv_have_decl_issetugid" = xyes; then :
20651
20652 fi
20653
20654 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
20655 if test "x$ac_cv_func_issetugid" = xyes; then :
20656
20657 fi
20658
20659 if test "$ac_cv_have_decl_issetugid" = yes && test "$ac_cv_func_issetugid" = yes; then
20660 XLOCALEDIR_IS_SAFE="yes"
20661
20662 $as_echo "#define HASSETUGID 1" >>confdefs.h
20663
20664 fi
20665 ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
20666 if test "x$ac_cv_func_getresuid" = xyes; then :
20667 XLOCALEDIR_IS_SAFE="yes"
20668
20669 $as_echo "#define HASGETRESUID 1" >>confdefs.h
20670
20671 fi
20672
20673 # Used in Font.c
20674 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20675 if test "x$ac_cv_func_shmat" = xyes; then :
20676
20677 $as_echo "#define HAS_SHM 1" >>confdefs.h
20678
20679 fi
20680
20681
20682 # Checks for system services
20683 # AC_PATH_XTRA
20684
20685 # arch specific things
20686 WCHAR32="1"
20687 case $host_os in
20688 os2*) os2="true" ; WCHAR32="0" ;;
20689 *) ;;
20690 esac
20691
20692
20693 if test x$os2 = xtrue; then
20694 OS2_TRUE=
20695 OS2_FALSE='#'
20696 else
20697 OS2_TRUE='#'
20698 OS2_FALSE=
20699 fi
20700
20701
20702
20703 # Check whether --with-launchd was given.
20704 if test "${with_launchd+set}" = set; then :
20705 withval=$with_launchd; LAUNCHD=$withval
20706 else
20707 LAUNCHD=auto
20708 fi
20709
20710 if test "x$LAUNCHD" = xauto; then
20711 unset LAUNCHD
20712 # Extract the first word of "launchd", so it can be a program name with args.
20713 set dummy launchd; ac_word=$2
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20715 $as_echo_n "checking for $ac_word... " >&6; }
20716 if ${ac_cv_prog_LAUNCHD+:} false; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 if test -n "$LAUNCHD"; then
20720 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20721 else
20722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20723 for as_dir in $PATH$PATH_SEPARATOR/sbin
20724 do
20725 IFS=$as_save_IFS
20726 test -z "$as_dir" && as_dir=.
20727 for ac_exec_ext in '' $ac_executable_extensions; do
20728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20729 ac_cv_prog_LAUNCHD="yes"
20730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20731 break 2
20732 fi
20733 done
20734 done
20735 IFS=$as_save_IFS
20736
20737 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20738 fi
20739 fi
20740 LAUNCHD=$ac_cv_prog_LAUNCHD
20741 if test -n "$LAUNCHD"; then
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20743 $as_echo "$LAUNCHD" >&6; }
20744 else
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20746 $as_echo "no" >&6; }
20747 fi
20748
20749
20750 fi
20751
20752 if test "x$LAUNCHD" = xyes ; then
20753
20754 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20755
20756
20757 $as_echo "#define TRANS_REOPEN 1" >>confdefs.h
20758
20759 fi
20760
20761 # Check whether --enable-xthreads was given.
20762 if test "${enable_xthreads+set}" = set; then :
20763 enableval=$enable_xthreads; xthreads=$enableval
20764 else
20765 xthreads=yes
20766 fi
20767
20768
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5
20770 $as_echo_n "checking for getpwuid_r in -lc... " >&6; }
20771 if ${ac_cv_lib_c_getpwuid_r+:} false; then :
20772 $as_echo_n "(cached) " >&6
20773 else
20774 ac_check_lib_save_LIBS=$LIBS
20775 LIBS="-lc $LIBS"
20776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20777 /* end confdefs.h. */
20778
20779 /* Override any GCC internal prototype to avoid an error.
20780 Use char because int might match the return type of a GCC
20781 builtin and then its argument prototype would still apply. */
20782 #ifdef __cplusplus
20783 extern "C"
20784 #endif
20785 char getpwuid_r ();
20786 int
20787 main ()
20788 {
20789 return getpwuid_r ();
20790 ;
20791 return 0;
20792 }
20793 _ACEOF
20794 if ac_fn_c_try_link "$LINENO"; then :
20795 ac_cv_lib_c_getpwuid_r=yes
20796 else
20797 ac_cv_lib_c_getpwuid_r=no
20798 fi
20799 rm -f core conftest.err conftest.$ac_objext \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20802 fi
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5
20804 $as_echo "$ac_cv_lib_c_getpwuid_r" >&6; }
20805 if test "x$ac_cv_lib_c_getpwuid_r" = xyes; then :
20806 mtsafeapi="yes"
20807 else
20808 mtsafeapi="no"
20809 fi
20810
20811
20812 case x$xthreads in
20813 xyes)
20814
20815 $as_echo "#define XTHREADS 1" >>confdefs.h
20816
20817 if test x$mtsafeapi = xyes
20818 then
20819
20820 $as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h
20821
20822 fi
20823 ;;
20824 *)
20825 ;;
20826 esac
20827
20828 # XXX incomplete, please fill this in
20829 if test x$xthreads = xyes ; then
20830 case $host_os in
20831 linux*|gnu*|k*bsd*-gnu)
20832 XTHREADLIB=-lpthread ;;
20833 netbsd*)
20834 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS"
20835 XTHREADLIB="-lpthread" ;;
20836 freebsd*)
20837 XTHREAD_CFLAGS="-D_THREAD_SAFE"
20838 XTHREADLIB="-pthread" ;;
20839 dragonfly*|openbsd*)
20840 XTHREADLIB="-pthread" ;;
20841 solaris*)
20842 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;;
20843 esac
20844 fi
20845
20846
20847
20848 if test "x$USE_THREAD_SAFETY_CONSTRUCTOR" = "xyes"; then
20849 USE_THREAD_LIBS="$XTHREADLIB"
20850 else
20851 # This should be kept in sync with libxcb
20852 case $host_os in
20853 linux*|darwin*|solaris*) ;;
20854 *) X11_REQUIRES="$X11_REQUIRES pthread-stubs" ;;
20855 esac
20856 fi
20857
20858
20859 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20860 if test "x$ac_cv_func_poll" = xyes; then :
20861
20862 $as_echo "#define USE_POLL 1" >>confdefs.h
20863
20864 fi
20865
20866
20867 #
20868 # Find keysymdef.h
20869 #
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking keysym definitions" >&5
20871 $as_echo_n "checking keysym definitions... " >&6; }
20872
20873 # Check whether --with-keysymdefdir was given.
20874 if test "${with_keysymdefdir+set}" = set; then :
20875 withval=$with_keysymdefdir; KEYSYMDEFDIR=$withval
20876 else
20877 KEYSYMDEFDIR=`$PKG_CONFIG --variable=includedir xproto`/X11
20878 fi
20879
20880
20881 if test ! -d "$KEYSYMDEFDIR"; then
20882 as_fn_error $? "$KEYSYMDEFDIR doesn't exist or isn't a directory" "$LINENO" 5
20883 fi
20884
20885 FILES="keysymdef.h XF86keysym.h Sunkeysym.h DECkeysym.h HPkeysym.h"
20886 for i in $FILES; do
20887 if test -f "$KEYSYMDEFDIR/$i"; then
20888 KEYSYMDEFS="$KEYSYMDEFS $KEYSYMDEFDIR/$i"
20889 elif test "x$i" = "xkeysymdef.h"; then
20890 as_fn_error $? "Cannot find keysymdef.h" "$LINENO" 5
20891 fi
20892 done
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEFS" >&5
20894 $as_echo "$KEYSYMDEFS" >&6; }
20895
20896
20897 # Check whether --enable-xcms was given.
20898 if test "${enable_xcms+set}" = set; then :
20899 enableval=$enable_xcms; XCMS=$enableval
20900 else
20901 XCMS=yes
20902 fi
20903
20904 if test x$XCMS = xyes ; then
20905 XCMS_TRUE=
20906 XCMS_FALSE='#'
20907 else
20908 XCMS_TRUE='#'
20909 XCMS_FALSE=
20910 fi
20911
20912 if test x"$XCMS" = "xyes"; then
20913
20914 $as_echo "#define XCMS 1" >>confdefs.h
20915
20916 fi
20917
20918 # Check whether --enable-xlocale was given.
20919 if test "${enable_xlocale+set}" = set; then :
20920 enableval=$enable_xlocale; XLOCALE=$enableval
20921 else
20922 XLOCALE=yes
20923 fi
20924
20925
20926 if test x$XLOCALE = xyes ; then
20927 XLOCALE_TRUE=
20928 XLOCALE_FALSE='#'
20929 else
20930 XLOCALE_TRUE='#'
20931 XLOCALE_FALSE=
20932 fi
20933
20934 if test x"$XLOCALE" = "xyes"; then
20935
20936 $as_echo "#define XLOCALE 1" >>confdefs.h
20937
20938 fi
20939
20940 # This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n,
20941 # don't have either issetugid() or getresuid(), and you need to protect
20942 # clients that are setgid or setuid to an id other than 0.
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5
20944 $as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; }
20945 # Check whether --enable-xlocaledir was given.
20946 if test "${enable_xlocaledir+set}" = set; then :
20947 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval
20948 else
20949 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE
20950 fi
20951
20952 if test "x$ENABLE_XLOCALEDIR" = "xno"; then
20953
20954 $as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h
20955
20956 fi
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5
20958 $as_echo "$ENABLE_XLOCALEDIR" >&6; }
20959
20960 # Check whether --enable-xf86bigfont was given.
20961 if test "${enable_xf86bigfont+set}" = set; then :
20962 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
20963 else
20964 XF86BIGFONT="yes"
20965 fi
20966
20967 if test "x$XF86BIGFONT" = "xyes"; then
20968
20969 pkg_failed=no
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5
20971 $as_echo_n "checking for BIGFONT... " >&6; }
20972
20973 if test -n "$BIGFONT_CFLAGS"; then
20974 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS"
20975 elif test -n "$PKG_CONFIG"; then
20976 if test -n "$PKG_CONFIG" && \
20977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
20978 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
20979 ac_status=$?
20980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20981 test $ac_status = 0; }; then
20982 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto >= 1.2.0" 2>/dev/null`
20983 test "x$?" != "x0" && pkg_failed=yes
20984 else
20985 pkg_failed=yes
20986 fi
20987 else
20988 pkg_failed=untried
20989 fi
20990 if test -n "$BIGFONT_LIBS"; then
20991 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS"
20992 elif test -n "$PKG_CONFIG"; then
20993 if test -n "$PKG_CONFIG" && \
20994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto >= 1.2.0\""; } >&5
20995 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto >= 1.2.0") 2>&5
20996 ac_status=$?
20997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20998 test $ac_status = 0; }; then
20999 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto >= 1.2.0" 2>/dev/null`
21000 test "x$?" != "x0" && pkg_failed=yes
21001 else
21002 pkg_failed=yes
21003 fi
21004 else
21005 pkg_failed=untried
21006 fi
21007
21008
21009
21010 if test $pkg_failed = yes; then
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21012 $as_echo "no" >&6; }
21013
21014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21015 _pkg_short_errors_supported=yes
21016 else
21017 _pkg_short_errors_supported=no
21018 fi
21019 if test $_pkg_short_errors_supported = yes; then
21020 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
21021 else
21022 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86bigfontproto >= 1.2.0" 2>&1`
21023 fi
21024 # Put the nasty error message in config.log where it belongs
21025 echo "$BIGFONT_PKG_ERRORS" >&5
21026
21027 XF86BIGFONT="no"
21028 elif test $pkg_failed = untried; then
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21030 $as_echo "no" >&6; }
21031 XF86BIGFONT="no"
21032 else
21033 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS
21034 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21036 $as_echo "yes" >&6; }
21037
21038 $as_echo "#define XF86BIGFONT 1" >>confdefs.h
21039
21040 fi
21041 fi
21042
21043 # Check whether --enable-xkb was given.
21044 if test "${enable_xkb+set}" = set; then :
21045 enableval=$enable_xkb; XKB=$enableval
21046 else
21047 XKB=yes
21048 fi
21049
21050
21051 if test x$XKB = xyes ; then
21052 XKB_TRUE=
21053 XKB_FALSE='#'
21054 else
21055 XKB_TRUE='#'
21056 XKB_FALSE=
21057 fi
21058
21059 if test x"$XKB" = "xyes"; then
21060 XKBPROTO_REQUIRES="kbproto"
21061 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto"
21062
21063 $as_echo "#define XKB 1" >>confdefs.h
21064
21065 else
21066 XKBPROTO_REQUIRES=""
21067 fi
21068
21069
21070
21071
21072
21073 for ac_header in $ac_header_list
21074 do :
21075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21077 "
21078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21079 cat >>confdefs.h <<_ACEOF
21080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21081 _ACEOF
21082
21083 fi
21084
21085 done
21086
21087
21088
21089
21090
21091
21092
21093
21094 for ac_func in getpagesize
21095 do :
21096 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21097 if test "x$ac_cv_func_getpagesize" = xyes; then :
21098 cat >>confdefs.h <<_ACEOF
21099 #define HAVE_GETPAGESIZE 1
21100 _ACEOF
21101
21102 fi
21103 done
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21106 $as_echo_n "checking for working mmap... " >&6; }
21107 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
21108 $as_echo_n "(cached) " >&6
21109 else
21110 if test "$cross_compiling" = yes; then :
21111 ac_cv_func_mmap_fixed_mapped=no
21112 else
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21115 $ac_includes_default
21116 /* malloc might have been renamed as rpl_malloc. */
21117 #undef malloc
21118
21119 /* Thanks to Mike Haertel and Jim Avera for this test.
21120 Here is a matrix of mmap possibilities:
21121 mmap private not fixed
21122 mmap private fixed at somewhere currently unmapped
21123 mmap private fixed at somewhere already mapped
21124 mmap shared not fixed
21125 mmap shared fixed at somewhere currently unmapped
21126 mmap shared fixed at somewhere already mapped
21127 For private mappings, we should verify that changes cannot be read()
21128 back from the file, nor mmap's back from the file at a different
21129 address. (There have been systems where private was not correctly
21130 implemented like the infamous i386 svr4.0, and systems where the
21131 VM page cache was not coherent with the file system buffer cache
21132 like early versions of FreeBSD and possibly contemporary NetBSD.)
21133 For shared mappings, we should conversely verify that changes get
21134 propagated back to all the places they're supposed to be.
21135
21136 Grep wants private fixed already mapped.
21137 The main things grep needs to know about mmap are:
21138 * does it exist and is it safe to write into the mmap'd area
21139 * how to use it (BSD variants) */
21140
21141 #include <fcntl.h>
21142 #include <sys/mman.h>
21143
21144 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21145 char *malloc ();
21146 #endif
21147
21148 /* This mess was copied from the GNU getpagesize.h. */
21149 #ifndef HAVE_GETPAGESIZE
21150 # ifdef _SC_PAGESIZE
21151 # define getpagesize() sysconf(_SC_PAGESIZE)
21152 # else /* no _SC_PAGESIZE */
21153 # ifdef HAVE_SYS_PARAM_H
21154 # include <sys/param.h>
21155 # ifdef EXEC_PAGESIZE
21156 # define getpagesize() EXEC_PAGESIZE
21157 # else /* no EXEC_PAGESIZE */
21158 # ifdef NBPG
21159 # define getpagesize() NBPG * CLSIZE
21160 # ifndef CLSIZE
21161 # define CLSIZE 1
21162 # endif /* no CLSIZE */
21163 # else /* no NBPG */
21164 # ifdef NBPC
21165 # define getpagesize() NBPC
21166 # else /* no NBPC */
21167 # ifdef PAGESIZE
21168 # define getpagesize() PAGESIZE
21169 # endif /* PAGESIZE */
21170 # endif /* no NBPC */
21171 # endif /* no NBPG */
21172 # endif /* no EXEC_PAGESIZE */
21173 # else /* no HAVE_SYS_PARAM_H */
21174 # define getpagesize() 8192 /* punt totally */
21175 # endif /* no HAVE_SYS_PARAM_H */
21176 # endif /* no _SC_PAGESIZE */
21177
21178 #endif /* no HAVE_GETPAGESIZE */
21179
21180 int
21181 main ()
21182 {
21183 char *data, *data2, *data3;
21184 const char *cdata2;
21185 int i, pagesize;
21186 int fd, fd2;
21187
21188 pagesize = getpagesize ();
21189
21190 /* First, make a file with some known garbage in it. */
21191 data = (char *) malloc (pagesize);
21192 if (!data)
21193 return 1;
21194 for (i = 0; i < pagesize; ++i)
21195 *(data + i) = rand ();
21196 umask (0);
21197 fd = creat ("conftest.mmap", 0600);
21198 if (fd < 0)
21199 return 2;
21200 if (write (fd, data, pagesize) != pagesize)
21201 return 3;
21202 close (fd);
21203
21204 /* Next, check that the tail of a page is zero-filled. File must have
21205 non-zero length, otherwise we risk SIGBUS for entire page. */
21206 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21207 if (fd2 < 0)
21208 return 4;
21209 cdata2 = "";
21210 if (write (fd2, cdata2, 1) != 1)
21211 return 5;
21212 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21213 if (data2 == MAP_FAILED)
21214 return 6;
21215 for (i = 0; i < pagesize; ++i)
21216 if (*(data2 + i))
21217 return 7;
21218 close (fd2);
21219 if (munmap (data2, pagesize))
21220 return 8;
21221
21222 /* Next, try to mmap the file at a fixed address which already has
21223 something else allocated at it. If we can, also make sure that
21224 we see the same garbage. */
21225 fd = open ("conftest.mmap", O_RDWR);
21226 if (fd < 0)
21227 return 9;
21228 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21229 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21230 return 10;
21231 for (i = 0; i < pagesize; ++i)
21232 if (*(data + i) != *(data2 + i))
21233 return 11;
21234
21235 /* Finally, make sure that changes to the mapped area do not
21236 percolate back to the file as seen by read(). (This is a bug on
21237 some variants of i386 svr4.0.) */
21238 for (i = 0; i < pagesize; ++i)
21239 *(data2 + i) = *(data2 + i) + 1;
21240 data3 = (char *) malloc (pagesize);
21241 if (!data3)
21242 return 12;
21243 if (read (fd, data3, pagesize) != pagesize)
21244 return 13;
21245 for (i = 0; i < pagesize; ++i)
21246 if (*(data + i) != *(data3 + i))
21247 return 14;
21248 close (fd);
21249 return 0;
21250 }
21251 _ACEOF
21252 if ac_fn_c_try_run "$LINENO"; then :
21253 ac_cv_func_mmap_fixed_mapped=yes
21254 else
21255 ac_cv_func_mmap_fixed_mapped=no
21256 fi
21257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21258 conftest.$ac_objext conftest.beam conftest.$ac_ext
21259 fi
21260
21261 fi
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21263 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21264 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21265
21266 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
21267
21268 fi
21269 rm -f conftest.mmap conftest.txt
21270
21271 composecache_default=$ac_cv_func_mmap_fixed_mapped
21272 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
21273 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
21274
21275 else
21276 composecache_default=no
21277 fi
21278
21279 # Check whether --enable-composecache was given.
21280 if test "${enable_composecache+set}" = set; then :
21281 enableval=$enable_composecache; COMPOSECACHE=$enableval
21282 else
21283 COMPOSECACHE=$composecache_default
21284 fi
21285
21286 if test x"$COMPOSECACHE" = "xyes"; then
21287
21288 $as_echo "#define COMPOSECACHE 1" >>confdefs.h
21289
21290 fi
21291
21292 # Allow checking code with lint, sparse, etc.
21293
21294
21295
21296
21297
21298 # Check whether --with-lint was given.
21299 if test "${with_lint+set}" = set; then :
21300 withval=$with_lint; use_lint=$withval
21301 else
21302 use_lint=no
21303 fi
21304
21305
21306 # Obtain platform specific info like program name and options
21307 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
21308 case $host_os in
21309 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21310 lint_name=splint
21311 lint_options="-badflag"
21312 ;;
21313 *freebsd* | *netbsd*)
21314 lint_name=lint
21315 lint_options="-u -b"
21316 ;;
21317 *solaris*)
21318 lint_name=lint
21319 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21320 ;;
21321 esac
21322
21323 # Test for the presence of the program (either guessed by the code or spelled out by the user)
21324 if test "x$use_lint" = x"yes" ; then
21325 # Extract the first word of "$lint_name", so it can be a program name with args.
21326 set dummy $lint_name; ac_word=$2
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21328 $as_echo_n "checking for $ac_word... " >&6; }
21329 if ${ac_cv_path_LINT+:} false; then :
21330 $as_echo_n "(cached) " >&6
21331 else
21332 case $LINT in
21333 [\\/]* | ?:[\\/]*)
21334 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21335 ;;
21336 *)
21337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21338 for as_dir in $PATH
21339 do
21340 IFS=$as_save_IFS
21341 test -z "$as_dir" && as_dir=.
21342 for ac_exec_ext in '' $ac_executable_extensions; do
21343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21344 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
21345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21346 break 2
21347 fi
21348 done
21349 done
21350 IFS=$as_save_IFS
21351
21352 ;;
21353 esac
21354 fi
21355 LINT=$ac_cv_path_LINT
21356 if test -n "$LINT"; then
21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21358 $as_echo "$LINT" >&6; }
21359 else
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21361 $as_echo "no" >&6; }
21362 fi
21363
21364
21365 if test "x$LINT" = "x"; then
21366 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21367 fi
21368 elif test "x$use_lint" = x"no" ; then
21369 if test "x$LINT" != "x"; then
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21371 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21372 fi
21373 else
21374 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21375 fi
21376
21377 # User supplied flags override default flags
21378 if test "x$LINT_FLAGS" != "x"; then
21379 lint_options=$LINT_FLAGS
21380 fi
21381
21382 LINT_FLAGS=$lint_options
21383
21384 if test "x$LINT" != x; then
21385 LINT_TRUE=
21386 LINT_FALSE='#'
21387 else
21388 LINT_TRUE='#'
21389 LINT_FALSE=
21390 fi
21391
21392
21393
21394
21395
21396 # Check whether --enable-lint-library was given.
21397 if test "${enable_lint_library+set}" = set; then :
21398 enableval=$enable_lint_library; make_lint_lib=$enableval
21399 else
21400 make_lint_lib=no
21401 fi
21402
21403
21404 if test "x$make_lint_lib" = x"yes" ; then
21405 LINTLIB=llib-lX11.ln
21406 if test "x$LINT" = "x"; then
21407 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5
21408 fi
21409 elif test "x$make_lint_lib" != x"no" ; then
21410 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5
21411 fi
21412
21413
21414 if test x$make_lint_lib != xno; then
21415 MAKE_LINT_LIB_TRUE=
21416 MAKE_LINT_LIB_FALSE='#'
21417 else
21418 MAKE_LINT_LIB_TRUE='#'
21419 MAKE_LINT_LIB_FALSE=
21420 fi
21421
21422
21423
21424
21425 X11_DATADIR="${datadir}/X11"
21426
21427 prefix_NONE=
21428 exec_prefix_NONE=
21429 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21430 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21431 eval ax_define_dir="\"$X11_DATADIR\""
21432 eval ax_define_dir="\"$ax_define_dir\""
21433 X11_DATADIR="$ax_define_dir"
21434
21435
21436 cat >>confdefs.h <<_ACEOF
21437 #define X11_DATADIR "$ax_define_dir"
21438 _ACEOF
21439
21440 test "$prefix_NONE" && prefix=NONE
21441 test "$exec_prefix_NONE" && exec_prefix=NONE
21442
21443
21444
21445 X11_LIBDIR="${libdir}/X11"
21446
21447 prefix_NONE=
21448 exec_prefix_NONE=
21449 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21450 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21451 eval ax_define_dir="\"$X11_LIBDIR\""
21452 eval ax_define_dir="\"$ax_define_dir\""
21453 X11_LIBDIR="$ax_define_dir"
21454
21455
21456 cat >>confdefs.h <<_ACEOF
21457 #define X11_LIBDIR "$ax_define_dir"
21458 _ACEOF
21459
21460 test "$prefix_NONE" && prefix=NONE
21461 test "$exec_prefix_NONE" && exec_prefix=NONE
21462
21463
21464
21465
21466 pkg_failed=no
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
21468 $as_echo_n "checking for X11... " >&6; }
21469
21470 if test -n "$X11_CFLAGS"; then
21471 pkg_cv_X11_CFLAGS="$X11_CFLAGS"
21472 elif test -n "$PKG_CONFIG"; then
21473 if test -n "$PKG_CONFIG" && \
21474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21475 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21476 ac_status=$?
21477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21478 test $ac_status = 0; }; then
21479 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null`
21480 test "x$?" != "x0" && pkg_failed=yes
21481 else
21482 pkg_failed=yes
21483 fi
21484 else
21485 pkg_failed=untried
21486 fi
21487 if test -n "$X11_LIBS"; then
21488 pkg_cv_X11_LIBS="$X11_LIBS"
21489 elif test -n "$PKG_CONFIG"; then
21490 if test -n "$PKG_CONFIG" && \
21491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5
21492 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5
21493 ac_status=$?
21494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21495 test $ac_status = 0; }; then
21496 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null`
21497 test "x$?" != "x0" && pkg_failed=yes
21498 else
21499 pkg_failed=yes
21500 fi
21501 else
21502 pkg_failed=untried
21503 fi
21504
21505
21506
21507 if test $pkg_failed = yes; then
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21509 $as_echo "no" >&6; }
21510
21511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21512 _pkg_short_errors_supported=yes
21513 else
21514 _pkg_short_errors_supported=no
21515 fi
21516 if test $_pkg_short_errors_supported = yes; then
21517 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21518 else
21519 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$X11_REQUIRES" 2>&1`
21520 fi
21521 # Put the nasty error message in config.log where it belongs
21522 echo "$X11_PKG_ERRORS" >&5
21523
21524 as_fn_error $? "Package requirements ($X11_REQUIRES) were not met:
21525
21526 $X11_PKG_ERRORS
21527
21528 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21529 installed software in a non-standard prefix.
21530
21531 Alternatively, you may set the environment variables X11_CFLAGS
21532 and X11_LIBS to avoid the need to call pkg-config.
21533 See the pkg-config man page for more details." "$LINENO" 5
21534 elif test $pkg_failed = untried; then
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 $as_echo "no" >&6; }
21537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21539 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21540 is in your PATH or set the PKG_CONFIG environment variable to the full
21541 path to pkg-config.
21542
21543 Alternatively, you may set the environment variables X11_CFLAGS
21544 and X11_LIBS to avoid the need to call pkg-config.
21545 See the pkg-config man page for more details.
21546
21547 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21548 See \`config.log' for more details" "$LINENO" 5; }
21549 else
21550 X11_CFLAGS=$pkg_cv_X11_CFLAGS
21551 X11_LIBS=$pkg_cv_X11_LIBS
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21553 $as_echo "yes" >&6; }
21554
21555 fi
21556 X11_CFLAGS="$X11_CFLAGS $XTHREAD_CFLAGS"
21557
21558 #
21559 # Yes, it would be nice to put the locale data in
21560 # /usr/share, but the locale stuff includes loadable
21561 # libraries which must be located in the same directory
21562 # as the other locale data, so for now, everything lives
21563 # in ${libdir}
21564 #
21565
21566 X11_LOCALEDATADIR="${X11_DATADIR}/locale"
21567
21568 prefix_NONE=
21569 exec_prefix_NONE=
21570 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21571 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21572 eval ax_define_dir="\"$X11_LOCALEDATADIR\""
21573 eval ax_define_dir="\"$ax_define_dir\""
21574 XLOCALEDATADIR="$ax_define_dir"
21575
21576
21577 cat >>confdefs.h <<_ACEOF
21578 #define XLOCALEDATADIR "$ax_define_dir"
21579 _ACEOF
21580
21581 test "$prefix_NONE" && prefix=NONE
21582 test "$exec_prefix_NONE" && exec_prefix=NONE
21583
21584
21585
21586
21587 # Check whether --with-locale-lib-dir was given.
21588 if test "${with_locale_lib_dir+set}" = set; then :
21589 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval"
21590 else
21591 X11_LOCALELIBDIR="${X11_LIBDIR}/locale"
21592 fi
21593
21594
21595 prefix_NONE=
21596 exec_prefix_NONE=
21597 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21598 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21599 eval ax_define_dir="\"$X11_LOCALELIBDIR\""
21600 eval ax_define_dir="\"$ax_define_dir\""
21601 XLOCALELIBDIR="$ax_define_dir"
21602
21603
21604 cat >>confdefs.h <<_ACEOF
21605 #define XLOCALELIBDIR "$ax_define_dir"
21606 _ACEOF
21607
21608 test "$prefix_NONE" && prefix=NONE
21609 test "$exec_prefix_NONE" && exec_prefix=NONE
21610
21611
21612
21613 X11_LOCALEDIR="${X11_LOCALEDATADIR}"
21614
21615 prefix_NONE=
21616 exec_prefix_NONE=
21617 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21618 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21619 eval ax_define_dir="\"$X11_LOCALEDIR\""
21620 eval ax_define_dir="\"$ax_define_dir\""
21621 XLOCALEDIR="$ax_define_dir"
21622
21623
21624 cat >>confdefs.h <<_ACEOF
21625 #define XLOCALEDIR "$ax_define_dir"
21626 _ACEOF
21627
21628 test "$prefix_NONE" && prefix=NONE
21629 test "$exec_prefix_NONE" && exec_prefix=NONE
21630
21631
21632
21633 locales="\
21634 am_ET.UTF-8 armscii-8 C cs_CZ.UTF-8 el_GR.UTF-8 en_US.UTF-8 \
21635 fi_FI.UTF-8 georgian-academy georgian-ps ibm-cp1133 iscii-dev \
21636 isiri-3342 iso8859-1 iso8859-10 iso8859-11 iso8859-13 iso8859-14 \
21637 iso8859-15 iso8859-2 iso8859-3 iso8859-4 iso8859-5 iso8859-6 \
21638 iso8859-7 iso8859-8 iso8859-9 iso8859-9e ja ja.JIS \
21639 ja_JP.UTF-8 ja.SJIS km_KH.UTF-8 ko koi8-c koi8-r \
21640 koi8-u ko_KR.UTF-8 microsoft-cp1251 microsoft-cp1255 \
21641 microsoft-cp1256 mulelao-1 nokhchi-1 pt_BR.UTF-8 pt_PT.UTF-8 \
21642 ru_RU.UTF-8 sr_RS.UTF-8 tatar-cyr th_TH th_TH.UTF-8 tscii-0 \
21643 vi_VN.tcvn vi_VN.viscii zh_CN zh_CN.gb18030 \
21644 zh_CN.gbk zh_CN.UTF-8 zh_HK.big5 zh_HK.big5hkscs zh_HK.UTF-8 \
21645 zh_TW zh_TW.big5 zh_TW.UTF-8"
21646
21647
21648 XKEYSYMDB="${X11_DATADIR}/XKeysymDB"
21649
21650 prefix_NONE=
21651 exec_prefix_NONE=
21652 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21653 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21654 eval ax_define_dir="\"$XKEYSYMDB\""
21655 eval ax_define_dir="\"$ax_define_dir\""
21656 XKEYSYMDB="$ax_define_dir"
21657
21658
21659 cat >>confdefs.h <<_ACEOF
21660 #define XKEYSYMDB "$ax_define_dir"
21661 _ACEOF
21662
21663 test "$prefix_NONE" && prefix=NONE
21664 test "$exec_prefix_NONE" && exec_prefix=NONE
21665
21666
21667 XERRORDB="${X11_DATADIR}/XErrorDB"
21668
21669 prefix_NONE=
21670 exec_prefix_NONE=
21671 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
21672 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
21673 eval ax_define_dir="\"$XERRORDB\""
21674 eval ax_define_dir="\"$ax_define_dir\""
21675 XERRORDB="$ax_define_dir"
21676
21677
21678 cat >>confdefs.h <<_ACEOF
21679 #define XERRORDB "$ax_define_dir"
21680 _ACEOF
21681
21682 test "$prefix_NONE" && prefix=NONE
21683 test "$exec_prefix_NONE" && exec_prefix=NONE
21684
21685
21686
21687 # Check whether --enable-malloc0returnsnull was given.
21688 if test "${enable_malloc0returnsnull+set}" = set; then :
21689 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
21690 else
21691 MALLOC_ZERO_RETURNS_NULL=auto
21692 fi
21693
21694
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
21696 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
21697 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
21698 if ${xorg_cv_malloc0_returns_null+:} false; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 if test "$cross_compiling" = yes; then :
21702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21704 as_fn_error $? "cannot run test program while cross compiling
21705 See \`config.log' for more details" "$LINENO" 5; }
21706 else
21707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21708 /* end confdefs.h. */
21709
21710 #include <stdlib.h>
21711
21712 int
21713 main ()
21714 {
21715
21716 char *m0, *r0, *c0, *p;
21717 m0 = malloc(0);
21718 p = malloc(10);
21719 r0 = realloc(p,0);
21720 c0 = calloc(0,10);
21721 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
21722
21723 ;
21724 return 0;
21725 }
21726 _ACEOF
21727 if ac_fn_c_try_run "$LINENO"; then :
21728 xorg_cv_malloc0_returns_null=yes
21729 else
21730 xorg_cv_malloc0_returns_null=no
21731 fi
21732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21733 conftest.$ac_objext conftest.beam conftest.$ac_ext
21734 fi
21735
21736 fi
21737
21738 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
21739 fi
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
21741 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
21742
21743 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
21744 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
21745 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
21746 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
21747 else
21748 MALLOC_ZERO_CFLAGS=""
21749 XMALLOC_ZERO_CFLAGS=""
21750 XTMALLOC_ZERO_CFLAGS=""
21751 fi
21752
21753
21754
21755
21756
21757
21758 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"
21759
21760 cat >confcache <<\_ACEOF
21761 # This file is a shell script that caches the results of configure
21762 # tests run on this system so they can be shared between configure
21763 # scripts and configure runs, see configure's option --config-cache.
21764 # It is not useful on other systems. If it contains results you don't
21765 # want to keep, you may remove or edit it.
21766 #
21767 # config.status only pays attention to the cache file if you give it
21768 # the --recheck option to rerun configure.
21769 #
21770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21772 # following values.
21773
21774 _ACEOF
21775
21776 # The following way of writing the cache mishandles newlines in values,
21777 # but we know of no workaround that is simple, portable, and efficient.
21778 # So, we kill variables containing newlines.
21779 # Ultrix sh set writes to stderr and can't be redirected directly,
21780 # and sets the high bit in the cache file unless we assign to the vars.
21781 (
21782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21783 eval ac_val=\$$ac_var
21784 case $ac_val in #(
21785 *${as_nl}*)
21786 case $ac_var in #(
21787 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21789 esac
21790 case $ac_var in #(
21791 _ | IFS | as_nl) ;; #(
21792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21793 *) { eval $ac_var=; unset $ac_var;} ;;
21794 esac ;;
21795 esac
21796 done
21797
21798 (set) 2>&1 |
21799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21800 *${as_nl}ac_space=\ *)
21801 # `set' does not quote correctly, so add quotes: double-quote
21802 # substitution turns \\\\ into \\, and sed turns \\ into \.
21803 sed -n \
21804 "s/'/'\\\\''/g;
21805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21806 ;; #(
21807 *)
21808 # `set' quotes correctly as required by POSIX, so do not add quotes.
21809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21810 ;;
21811 esac |
21812 sort
21813 ) |
21814 sed '
21815 /^ac_cv_env_/b end
21816 t clear
21817 :clear
21818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21819 t end
21820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21821 :end' >>confcache
21822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21823 if test -w "$cache_file"; then
21824 if test "x$cache_file" != "x/dev/null"; then
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21826 $as_echo "$as_me: updating cache $cache_file" >&6;}
21827 if test ! -f "$cache_file" || test -h "$cache_file"; then
21828 cat confcache >"$cache_file"
21829 else
21830 case $cache_file in #(
21831 */* | ?:*)
21832 mv -f confcache "$cache_file"$$ &&
21833 mv -f "$cache_file"$$ "$cache_file" ;; #(
21834 *)
21835 mv -f confcache "$cache_file" ;;
21836 esac
21837 fi
21838 fi
21839 else
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21841 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21842 fi
21843 fi
21844 rm -f confcache
21845
21846 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21847 # Let make expand exec_prefix.
21848 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21849
21850 DEFS=-DHAVE_CONFIG_H
21851
21852 ac_libobjs=
21853 ac_ltlibobjs=
21854 U=
21855 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21856 # 1. Remove the extension, and $U if already installed.
21857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21858 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21860 # will be set to the directory where LIBOBJS objects are built.
21861 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21862 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21863 done
21864 LIBOBJS=$ac_libobjs
21865
21866 LTLIBOBJS=$ac_ltlibobjs
21867
21868
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21870 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21871 if test -n "$am_sleep_pid"; then
21872 # Hide warnings about reused PIDs.
21873 wait $am_sleep_pid 2>/dev/null
21874 fi
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21876 $as_echo "done" >&6; }
21877 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21878 as_fn_error $? "conditional \"AMDEP\" was never defined.
21879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21880 fi
21881 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21882 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21884 fi
21885 if test -n "$EXEEXT"; then
21886 am__EXEEXT_TRUE=
21887 am__EXEEXT_FALSE='#'
21888 else
21889 am__EXEEXT_TRUE='#'
21890 am__EXEEXT_FALSE=
21891 fi
21892
21893 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
21894 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
21895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21896 fi
21897 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21898 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21900 fi
21901 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21902 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21904 fi
21905 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21906 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21908 fi
21909 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
21910 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
21911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21912 fi
21913 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21914 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21916 fi
21917 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
21918 as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
21919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21920 fi
21921 if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then
21922 as_fn_error $? "conditional \"XLIB_LOADABLE_I18N\" was never defined.
21923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21924 fi
21925 if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then
21926 as_fn_error $? "conditional \"OS2\" was never defined.
21927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21928 fi
21929 if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then
21930 as_fn_error $? "conditional \"XCMS\" was never defined.
21931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21932 fi
21933 if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then
21934 as_fn_error $? "conditional \"XLOCALE\" was never defined.
21935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21936 fi
21937 if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then
21938 as_fn_error $? "conditional \"XKB\" was never defined.
21939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21940 fi
21941 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21942 as_fn_error $? "conditional \"LINT\" was never defined.
21943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21944 fi
21945 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
21946 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined.
21947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21948 fi
21949
21950 : "${CONFIG_STATUS=./config.status}"
21951 ac_write_fail=0
21952 ac_clean_files_save=$ac_clean_files
21953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21955 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21956 as_write_fail=0
21957 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21958 #! $SHELL
21959 # Generated by $as_me.
21960 # Run this file to recreate the current configuration.
21961 # Compiler output produced by configure, useful for debugging
21962 # configure, is in config.log if it exists.
21963
21964 debug=false
21965 ac_cs_recheck=false
21966 ac_cs_silent=false
21967
21968 SHELL=\${CONFIG_SHELL-$SHELL}
21969 export SHELL
21970 _ASEOF
21971 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21972 ## -------------------- ##
21973 ## M4sh Initialization. ##
21974 ## -------------------- ##
21975
21976 # Be more Bourne compatible
21977 DUALCASE=1; export DUALCASE # for MKS sh
21978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21979 emulate sh
21980 NULLCMD=:
21981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21982 # is contrary to our usage. Disable this feature.
21983 alias -g '${1+"$@"}'='"$@"'
21984 setopt NO_GLOB_SUBST
21985 else
21986 case `(set -o) 2>/dev/null` in #(
21987 *posix*) :
21988 set -o posix ;; #(
21989 *) :
21990 ;;
21991 esac
21992 fi
21993
21994
21995 as_nl='
21996 '
21997 export as_nl
21998 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21999 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22000 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22002 # Prefer a ksh shell builtin over an external printf program on Solaris,
22003 # but without wasting forks for bash or zsh.
22004 if test -z "$BASH_VERSION$ZSH_VERSION" \
22005 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22006 as_echo='print -r --'
22007 as_echo_n='print -rn --'
22008 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22009 as_echo='printf %s\n'
22010 as_echo_n='printf %s'
22011 else
22012 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22013 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22014 as_echo_n='/usr/ucb/echo -n'
22015 else
22016 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22017 as_echo_n_body='eval
22018 arg=$1;
22019 case $arg in #(
22020 *"$as_nl"*)
22021 expr "X$arg" : "X\\(.*\\)$as_nl";
22022 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22023 esac;
22024 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22025 '
22026 export as_echo_n_body
22027 as_echo_n='sh -c $as_echo_n_body as_echo'
22028 fi
22029 export as_echo_body
22030 as_echo='sh -c $as_echo_body as_echo'
22031 fi
22032
22033 # The user is always right.
22034 if test "${PATH_SEPARATOR+set}" != set; then
22035 PATH_SEPARATOR=:
22036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22038 PATH_SEPARATOR=';'
22039 }
22040 fi
22041
22042
22043 # IFS
22044 # We need space, tab and new line, in precisely that order. Quoting is
22045 # there to prevent editors from complaining about space-tab.
22046 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22047 # splitting by setting IFS to empty value.)
22048 IFS=" "" $as_nl"
22049
22050 # Find who we are. Look in the path if we contain no directory separator.
22051 as_myself=
22052 case $0 in #((
22053 *[\\/]* ) as_myself=$0 ;;
22054 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22055 for as_dir in $PATH
22056 do
22057 IFS=$as_save_IFS
22058 test -z "$as_dir" && as_dir=.
22059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22060 done
22061 IFS=$as_save_IFS
22062
22063 ;;
22064 esac
22065 # We did not find ourselves, most probably we were run as `sh COMMAND'
22066 # in which case we are not to be found in the path.
22067 if test "x$as_myself" = x; then
22068 as_myself=$0
22069 fi
22070 if test ! -f "$as_myself"; then
22071 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22072 exit 1
22073 fi
22074
22075 # Unset variables that we do not need and which cause bugs (e.g. in
22076 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22077 # suppresses any "Segmentation fault" message there. '((' could
22078 # trigger a bug in pdksh 5.2.14.
22079 for as_var in BASH_ENV ENV MAIL MAILPATH
22080 do eval test x\${$as_var+set} = xset \
22081 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22082 done
22083 PS1='$ '
22084 PS2='> '
22085 PS4='+ '
22086
22087 # NLS nuisances.
22088 LC_ALL=C
22089 export LC_ALL
22090 LANGUAGE=C
22091 export LANGUAGE
22092
22093 # CDPATH.
22094 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22095
22096
22097 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22098 # ----------------------------------------
22099 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22100 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22101 # script with STATUS, using 1 if that was 0.
22102 as_fn_error ()
22103 {
22104 as_status=$1; test $as_status -eq 0 && as_status=1
22105 if test "$4"; then
22106 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22107 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22108 fi
22109 $as_echo "$as_me: error: $2" >&2
22110 as_fn_exit $as_status
22111 } # as_fn_error
22112
22113
22114 # as_fn_set_status STATUS
22115 # -----------------------
22116 # Set $? to STATUS, without forking.
22117 as_fn_set_status ()
22118 {
22119 return $1
22120 } # as_fn_set_status
22121
22122 # as_fn_exit STATUS
22123 # -----------------
22124 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22125 as_fn_exit ()
22126 {
22127 set +e
22128 as_fn_set_status $1
22129 exit $1
22130 } # as_fn_exit
22131
22132 # as_fn_unset VAR
22133 # ---------------
22134 # Portably unset VAR.
22135 as_fn_unset ()
22136 {
22137 { eval $1=; unset $1;}
22138 }
22139 as_unset=as_fn_unset
22140 # as_fn_append VAR VALUE
22141 # ----------------------
22142 # Append the text in VALUE to the end of the definition contained in VAR. Take
22143 # advantage of any shell optimizations that allow amortized linear growth over
22144 # repeated appends, instead of the typical quadratic growth present in naive
22145 # implementations.
22146 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22147 eval 'as_fn_append ()
22148 {
22149 eval $1+=\$2
22150 }'
22151 else
22152 as_fn_append ()
22153 {
22154 eval $1=\$$1\$2
22155 }
22156 fi # as_fn_append
22157
22158 # as_fn_arith ARG...
22159 # ------------------
22160 # Perform arithmetic evaluation on the ARGs, and store the result in the
22161 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22162 # must be portable across $(()) and expr.
22163 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22164 eval 'as_fn_arith ()
22165 {
22166 as_val=$(( $* ))
22167 }'
22168 else
22169 as_fn_arith ()
22170 {
22171 as_val=`expr "$@" || test $? -eq 1`
22172 }
22173 fi # as_fn_arith
22174
22175
22176 if expr a : '\(a\)' >/dev/null 2>&1 &&
22177 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22178 as_expr=expr
22179 else
22180 as_expr=false
22181 fi
22182
22183 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22184 as_basename=basename
22185 else
22186 as_basename=false
22187 fi
22188
22189 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22190 as_dirname=dirname
22191 else
22192 as_dirname=false
22193 fi
22194
22195 as_me=`$as_basename -- "$0" ||
22196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22197 X"$0" : 'X\(//\)$' \| \
22198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22199 $as_echo X/"$0" |
22200 sed '/^.*\/\([^/][^/]*\)\/*$/{
22201 s//\1/
22202 q
22203 }
22204 /^X\/\(\/\/\)$/{
22205 s//\1/
22206 q
22207 }
22208 /^X\/\(\/\).*/{
22209 s//\1/
22210 q
22211 }
22212 s/.*/./; q'`
22213
22214 # Avoid depending upon Character Ranges.
22215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22218 as_cr_digits='0123456789'
22219 as_cr_alnum=$as_cr_Letters$as_cr_digits
22220
22221 ECHO_C= ECHO_N= ECHO_T=
22222 case `echo -n x` in #(((((
22223 -n*)
22224 case `echo 'xy\c'` in
22225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22226 xy) ECHO_C='\c';;
22227 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22228 ECHO_T=' ';;
22229 esac;;
22230 *)
22231 ECHO_N='-n';;
22232 esac
22233
22234 rm -f conf$$ conf$$.exe conf$$.file
22235 if test -d conf$$.dir; then
22236 rm -f conf$$.dir/conf$$.file
22237 else
22238 rm -f conf$$.dir
22239 mkdir conf$$.dir 2>/dev/null
22240 fi
22241 if (echo >conf$$.file) 2>/dev/null; then
22242 if ln -s conf$$.file conf$$ 2>/dev/null; then
22243 as_ln_s='ln -s'
22244 # ... but there are two gotchas:
22245 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22246 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22247 # In both cases, we have to default to `cp -pR'.
22248 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22249 as_ln_s='cp -pR'
22250 elif ln conf$$.file conf$$ 2>/dev/null; then
22251 as_ln_s=ln
22252 else
22253 as_ln_s='cp -pR'
22254 fi
22255 else
22256 as_ln_s='cp -pR'
22257 fi
22258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22259 rmdir conf$$.dir 2>/dev/null
22260
22261
22262 # as_fn_mkdir_p
22263 # -------------
22264 # Create "$as_dir" as a directory, including parents if necessary.
22265 as_fn_mkdir_p ()
22266 {
22267
22268 case $as_dir in #(
22269 -*) as_dir=./$as_dir;;
22270 esac
22271 test -d "$as_dir" || eval $as_mkdir_p || {
22272 as_dirs=
22273 while :; do
22274 case $as_dir in #(
22275 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22276 *) as_qdir=$as_dir;;
22277 esac
22278 as_dirs="'$as_qdir' $as_dirs"
22279 as_dir=`$as_dirname -- "$as_dir" ||
22280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22281 X"$as_dir" : 'X\(//\)[^/]' \| \
22282 X"$as_dir" : 'X\(//\)$' \| \
22283 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22284 $as_echo X"$as_dir" |
22285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22286 s//\1/
22287 q
22288 }
22289 /^X\(\/\/\)[^/].*/{
22290 s//\1/
22291 q
22292 }
22293 /^X\(\/\/\)$/{
22294 s//\1/
22295 q
22296 }
22297 /^X\(\/\).*/{
22298 s//\1/
22299 q
22300 }
22301 s/.*/./; q'`
22302 test -d "$as_dir" && break
22303 done
22304 test -z "$as_dirs" || eval "mkdir $as_dirs"
22305 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22306
22307
22308 } # as_fn_mkdir_p
22309 if mkdir -p . 2>/dev/null; then
22310 as_mkdir_p='mkdir -p "$as_dir"'
22311 else
22312 test -d ./-p && rmdir ./-p
22313 as_mkdir_p=false
22314 fi
22315
22316
22317 # as_fn_executable_p FILE
22318 # -----------------------
22319 # Test if FILE is an executable regular file.
22320 as_fn_executable_p ()
22321 {
22322 test -f "$1" && test -x "$1"
22323 } # as_fn_executable_p
22324 as_test_x='test -x'
22325 as_executable_p=as_fn_executable_p
22326
22327 # Sed expression to map a string onto a valid CPP name.
22328 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22329
22330 # Sed expression to map a string onto a valid variable name.
22331 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22332
22333
22334 exec 6>&1
22335 ## ----------------------------------- ##
22336 ## Main body of $CONFIG_STATUS script. ##
22337 ## ----------------------------------- ##
22338 _ASEOF
22339 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22340
22341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22342 # Save the log message, to keep $0 and so on meaningful, and to
22343 # report actual input values of CONFIG_FILES etc. instead of their
22344 # values after options handling.
22345 ac_log="
22346 This file was extended by libX11 $as_me 1.8.4, which was
22347 generated by GNU Autoconf 2.69. Invocation command line was
22348
22349 CONFIG_FILES = $CONFIG_FILES
22350 CONFIG_HEADERS = $CONFIG_HEADERS
22351 CONFIG_LINKS = $CONFIG_LINKS
22352 CONFIG_COMMANDS = $CONFIG_COMMANDS
22353 $ $0 $@
22354
22355 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22356 "
22357
22358 _ACEOF
22359
22360 case $ac_config_files in *"
22361 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22362 esac
22363
22364 case $ac_config_headers in *"
22365 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22366 esac
22367
22368
22369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22370 # Files that config.status was made for.
22371 config_files="$ac_config_files"
22372 config_headers="$ac_config_headers"
22373 config_commands="$ac_config_commands"
22374
22375 _ACEOF
22376
22377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22378 ac_cs_usage="\
22379 \`$as_me' instantiates files and other configuration actions
22380 from templates according to the current configuration. Unless the files
22381 and actions are specified as TAGs, all are instantiated by default.
22382
22383 Usage: $0 [OPTION]... [TAG]...
22384
22385 -h, --help print this help, then exit
22386 -V, --version print version number and configuration settings, then exit
22387 --config print configuration, then exit
22388 -q, --quiet, --silent
22389 do not print progress messages
22390 -d, --debug don't remove temporary files
22391 --recheck update $as_me by reconfiguring in the same conditions
22392 --file=FILE[:TEMPLATE]
22393 instantiate the configuration file FILE
22394 --header=FILE[:TEMPLATE]
22395 instantiate the configuration header FILE
22396
22397 Configuration files:
22398 $config_files
22399
22400 Configuration headers:
22401 $config_headers
22402
22403 Configuration commands:
22404 $config_commands
22405
22406 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues>."
22407
22408 _ACEOF
22409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22410 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22411 ac_cs_version="\\
22412 libX11 config.status 1.8.4
22413 configured by $0, generated by GNU Autoconf 2.69,
22414 with options \\"\$ac_cs_config\\"
22415
22416 Copyright (C) 2012 Free Software Foundation, Inc.
22417 This config.status script is free software; the Free Software Foundation
22418 gives unlimited permission to copy, distribute and modify it."
22419
22420 ac_pwd='$ac_pwd'
22421 srcdir='$srcdir'
22422 INSTALL='$INSTALL'
22423 MKDIR_P='$MKDIR_P'
22424 AWK='$AWK'
22425 test -n "\$AWK" || AWK=awk
22426 _ACEOF
22427
22428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22429 # The default lists apply if the user does not specify any file.
22430 ac_need_defaults=:
22431 while test $# != 0
22432 do
22433 case $1 in
22434 --*=?*)
22435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22436 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22437 ac_shift=:
22438 ;;
22439 --*=)
22440 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22441 ac_optarg=
22442 ac_shift=:
22443 ;;
22444 *)
22445 ac_option=$1
22446 ac_optarg=$2
22447 ac_shift=shift
22448 ;;
22449 esac
22450
22451 case $ac_option in
22452 # Handling of the options.
22453 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22454 ac_cs_recheck=: ;;
22455 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22456 $as_echo "$ac_cs_version"; exit ;;
22457 --config | --confi | --conf | --con | --co | --c )
22458 $as_echo "$ac_cs_config"; exit ;;
22459 --debug | --debu | --deb | --de | --d | -d )
22460 debug=: ;;
22461 --file | --fil | --fi | --f )
22462 $ac_shift
22463 case $ac_optarg in
22464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22465 '') as_fn_error $? "missing file argument" ;;
22466 esac
22467 as_fn_append CONFIG_FILES " '$ac_optarg'"
22468 ac_need_defaults=false;;
22469 --header | --heade | --head | --hea )
22470 $ac_shift
22471 case $ac_optarg in
22472 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22473 esac
22474 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22475 ac_need_defaults=false;;
22476 --he | --h)
22477 # Conflict between --help and --header
22478 as_fn_error $? "ambiguous option: \`$1'
22479 Try \`$0 --help' for more information.";;
22480 --help | --hel | -h )
22481 $as_echo "$ac_cs_usage"; exit ;;
22482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22483 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22484 ac_cs_silent=: ;;
22485
22486 # This is an error.
22487 -*) as_fn_error $? "unrecognized option: \`$1'
22488 Try \`$0 --help' for more information." ;;
22489
22490 *) as_fn_append ac_config_targets " $1"
22491 ac_need_defaults=false ;;
22492
22493 esac
22494 shift
22495 done
22496
22497 ac_configure_extra_args=
22498
22499 if $ac_cs_silent; then
22500 exec 6>/dev/null
22501 ac_configure_extra_args="$ac_configure_extra_args --silent"
22502 fi
22503
22504 _ACEOF
22505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22506 if \$ac_cs_recheck; then
22507 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22508 shift
22509 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22510 CONFIG_SHELL='$SHELL'
22511 export CONFIG_SHELL
22512 exec "\$@"
22513 fi
22514
22515 _ACEOF
22516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22517 exec 5>>config.log
22518 {
22519 echo
22520 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22521 ## Running $as_me. ##
22522 _ASBOX
22523 $as_echo "$ac_log"
22524 } >&5
22525
22526 _ACEOF
22527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22528 #
22529 # INIT-COMMANDS
22530 #
22531 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22532
22533
22534 # The HP-UX ksh and POSIX shell print the target directory to stdout
22535 # if CDPATH is set.
22536 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22537
22538 sed_quote_subst='$sed_quote_subst'
22539 double_quote_subst='$double_quote_subst'
22540 delay_variable_subst='$delay_variable_subst'
22541 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22542 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22543 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22544 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22545 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22546 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22547 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22548 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22549 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22550 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22551 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22552 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22553 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22554 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22555 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22556 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22557 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22558 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22559 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22560 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22561 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22562 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22563 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22564 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22565 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22566 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22567 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22568 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22569 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22570 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22571 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22572 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22573 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22574 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22575 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22576 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22577 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22578 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22579 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22580 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22581 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22582 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22583 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22584 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22585 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22586 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22587 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22588 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22589 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22590 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22591 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22592 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22593 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22594 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22595 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22596 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22597 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22598 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22599 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"`'
22600 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22601 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22602 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22603 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22604 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22605 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22606 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22607 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22608 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22609 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22610 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22611 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22612 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22613 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22614 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22615 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22616 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22617 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22618 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22619 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22620 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22621 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22622 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22623 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22624 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22625 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22626 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22627 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22628 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22629 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22630 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22631 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22632 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22633 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22634 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22635 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22636 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22637 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22638 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22639 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22640 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22641 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22642 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22643 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22644 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22645 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22646 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22647 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22648 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22649 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22650 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22651 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22652 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22653 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22654 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22655 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22656 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22657 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22658 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22659 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22660 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22661 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22662 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22663 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22664 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22665 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22666 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22667 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22668 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22669 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22670 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22671 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22672 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22673 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22674 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22675 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22676
22677 LTCC='$LTCC'
22678 LTCFLAGS='$LTCFLAGS'
22679 compiler='$compiler_DEFAULT'
22680
22681 # A function that is used when there is no print builtin or printf.
22682 func_fallback_echo ()
22683 {
22684 eval 'cat <<_LTECHO_EOF
22685 \$1
22686 _LTECHO_EOF'
22687 }
22688
22689 # Quote evaled strings.
22690 for var in SHELL \
22691 ECHO \
22692 PATH_SEPARATOR \
22693 SED \
22694 GREP \
22695 EGREP \
22696 FGREP \
22697 LD \
22698 NM \
22699 LN_S \
22700 lt_SP2NL \
22701 lt_NL2SP \
22702 reload_flag \
22703 OBJDUMP \
22704 deplibs_check_method \
22705 file_magic_cmd \
22706 file_magic_glob \
22707 want_nocaseglob \
22708 DLLTOOL \
22709 sharedlib_from_linklib_cmd \
22710 AR \
22711 AR_FLAGS \
22712 archiver_list_spec \
22713 STRIP \
22714 RANLIB \
22715 CC \
22716 CFLAGS \
22717 compiler \
22718 lt_cv_sys_global_symbol_pipe \
22719 lt_cv_sys_global_symbol_to_cdecl \
22720 lt_cv_sys_global_symbol_to_import \
22721 lt_cv_sys_global_symbol_to_c_name_address \
22722 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22723 lt_cv_nm_interface \
22724 nm_file_list_spec \
22725 lt_cv_truncate_bin \
22726 lt_prog_compiler_no_builtin_flag \
22727 lt_prog_compiler_pic \
22728 lt_prog_compiler_wl \
22729 lt_prog_compiler_static \
22730 lt_cv_prog_compiler_c_o \
22731 need_locks \
22732 MANIFEST_TOOL \
22733 DSYMUTIL \
22734 NMEDIT \
22735 LIPO \
22736 OTOOL \
22737 OTOOL64 \
22738 shrext_cmds \
22739 export_dynamic_flag_spec \
22740 whole_archive_flag_spec \
22741 compiler_needs_object \
22742 with_gnu_ld \
22743 allow_undefined_flag \
22744 no_undefined_flag \
22745 hardcode_libdir_flag_spec \
22746 hardcode_libdir_separator \
22747 exclude_expsyms \
22748 include_expsyms \
22749 file_list_spec \
22750 variables_saved_for_relink \
22751 libname_spec \
22752 library_names_spec \
22753 soname_spec \
22754 install_override_mode \
22755 finish_eval \
22756 old_striplib \
22757 striplib; do
22758 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22759 *[\\\\\\\`\\"\\\$]*)
22760 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22761 ;;
22762 *)
22763 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22764 ;;
22765 esac
22766 done
22767
22768 # Double-quote double-evaled strings.
22769 for var in reload_cmds \
22770 old_postinstall_cmds \
22771 old_postuninstall_cmds \
22772 old_archive_cmds \
22773 extract_expsyms_cmds \
22774 old_archive_from_new_cmds \
22775 old_archive_from_expsyms_cmds \
22776 archive_cmds \
22777 archive_expsym_cmds \
22778 module_cmds \
22779 module_expsym_cmds \
22780 export_symbols_cmds \
22781 prelink_cmds \
22782 postlink_cmds \
22783 postinstall_cmds \
22784 postuninstall_cmds \
22785 finish_cmds \
22786 sys_lib_search_path_spec \
22787 configure_time_dlsearch_path \
22788 configure_time_lt_sys_library_path; do
22789 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22790 *[\\\\\\\`\\"\\\$]*)
22791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22792 ;;
22793 *)
22794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22795 ;;
22796 esac
22797 done
22798
22799 ac_aux_dir='$ac_aux_dir'
22800
22801 # See if we are running on zsh, and set the options that allow our
22802 # commands through without removal of \ escapes INIT.
22803 if test -n "\${ZSH_VERSION+set}"; then
22804 setopt NO_GLOB_SUBST
22805 fi
22806
22807
22808 PACKAGE='$PACKAGE'
22809 VERSION='$VERSION'
22810 RM='$RM'
22811 ofile='$ofile'
22812
22813
22814
22815
22816 _ACEOF
22817
22818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22819
22820 # Handling of arguments.
22821 for ac_config_target in $ac_config_targets
22822 do
22823 case $ac_config_target in
22824 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22825 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;;
22826 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22827 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22829 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22830 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22831 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;;
22832 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22833 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
22834 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;;
22835 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;;
22836 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
22837 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;;
22838 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;;
22839 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;;
22840 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;;
22841 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;;
22842 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;;
22843 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;;
22844 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;;
22845 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;;
22846 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;;
22847 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
22848 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;;
22849 "specs/i18n/compose/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/compose/Makefile" ;;
22850 "specs/i18n/framework/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/framework/Makefile" ;;
22851 "specs/i18n/localedb/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/localedb/Makefile" ;;
22852 "specs/i18n/trans/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/trans/Makefile" ;;
22853 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;;
22854 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;;
22855 "specs/XKB/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XKB/Makefile" ;;
22856 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;;
22857 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;;
22858
22859 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22860 esac
22861 done
22862
22863
22864 # If the user did not use the arguments to specify the items to instantiate,
22865 # then the envvar interface is used. Set only those that are not.
22866 # We use the long form for the default assignment because of an extremely
22867 # bizarre bug on SunOS 4.1.3.
22868 if $ac_need_defaults; then
22869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22871 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22872 fi
22873
22874 # Have a temporary directory for convenience. Make it in the build tree
22875 # simply because there is no reason against having it here, and in addition,
22876 # creating and moving files from /tmp can sometimes cause problems.
22877 # Hook for its removal unless debugging.
22878 # Note that there is a small window in which the directory will not be cleaned:
22879 # after its creation but before its name has been assigned to `$tmp'.
22880 $debug ||
22881 {
22882 tmp= ac_tmp=
22883 trap 'exit_status=$?
22884 : "${ac_tmp:=$tmp}"
22885 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22886 ' 0
22887 trap 'as_fn_exit 1' 1 2 13 15
22888 }
22889 # Create a (secure) tmp directory for tmp files.
22890
22891 {
22892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22893 test -d "$tmp"
22894 } ||
22895 {
22896 tmp=./conf$$-$RANDOM
22897 (umask 077 && mkdir "$tmp")
22898 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22899 ac_tmp=$tmp
22900
22901 # Set up the scripts for CONFIG_FILES section.
22902 # No need to generate them if there are no CONFIG_FILES.
22903 # This happens for instance with `./config.status config.h'.
22904 if test -n "$CONFIG_FILES"; then
22905
22906
22907 ac_cr=`echo X | tr X '\015'`
22908 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22909 # But we know of no other shell where ac_cr would be empty at this
22910 # point, so we can use a bashism as a fallback.
22911 if test "x$ac_cr" = x; then
22912 eval ac_cr=\$\'\\r\'
22913 fi
22914 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22915 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22916 ac_cs_awk_cr='\\r'
22917 else
22918 ac_cs_awk_cr=$ac_cr
22919 fi
22920
22921 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22922 _ACEOF
22923
22924
22925 {
22926 echo "cat >conf$$subs.awk <<_ACEOF" &&
22927 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22928 echo "_ACEOF"
22929 } >conf$$subs.sh ||
22930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22931 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22932 ac_delim='%!_!# '
22933 for ac_last_try in false false false false false :; do
22934 . ./conf$$subs.sh ||
22935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22936
22937 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22938 if test $ac_delim_n = $ac_delim_num; then
22939 break
22940 elif $ac_last_try; then
22941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22942 else
22943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22944 fi
22945 done
22946 rm -f conf$$subs.sh
22947
22948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22949 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22950 _ACEOF
22951 sed -n '
22952 h
22953 s/^/S["/; s/!.*/"]=/
22954 p
22955 g
22956 s/^[^!]*!//
22957 :repl
22958 t repl
22959 s/'"$ac_delim"'$//
22960 t delim
22961 :nl
22962 h
22963 s/\(.\{148\}\)..*/\1/
22964 t more1
22965 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22966 p
22967 n
22968 b repl
22969 :more1
22970 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22971 p
22972 g
22973 s/.\{148\}//
22974 t nl
22975 :delim
22976 h
22977 s/\(.\{148\}\)..*/\1/
22978 t more2
22979 s/["\\]/\\&/g; s/^/"/; s/$/"/
22980 p
22981 b
22982 :more2
22983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22984 p
22985 g
22986 s/.\{148\}//
22987 t delim
22988 ' <conf$$subs.awk | sed '
22989 /^[^""]/{
22990 N
22991 s/\n//
22992 }
22993 ' >>$CONFIG_STATUS || ac_write_fail=1
22994 rm -f conf$$subs.awk
22995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22996 _ACAWK
22997 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22998 for (key in S) S_is_set[key] = 1
22999 FS = ""
23000
23001 }
23002 {
23003 line = $ 0
23004 nfields = split(line, field, "@")
23005 substed = 0
23006 len = length(field[1])
23007 for (i = 2; i < nfields; i++) {
23008 key = field[i]
23009 keylen = length(key)
23010 if (S_is_set[key]) {
23011 value = S[key]
23012 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23013 len += length(value) + length(field[++i])
23014 substed = 1
23015 } else
23016 len += 1 + keylen
23017 }
23018
23019 print line
23020 }
23021
23022 _ACAWK
23023 _ACEOF
23024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23025 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23027 else
23028 cat
23029 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23030 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23031 _ACEOF
23032
23033 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23034 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23035 # trailing colons and then remove the whole line if VPATH becomes empty
23036 # (actually we leave an empty line to preserve line numbers).
23037 if test "x$srcdir" = x.; then
23038 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23039 h
23040 s///
23041 s/^/:/
23042 s/[ ]*$/:/
23043 s/:\$(srcdir):/:/g
23044 s/:\${srcdir}:/:/g
23045 s/:@srcdir@:/:/g
23046 s/^:*//
23047 s/:*$//
23048 x
23049 s/\(=[ ]*\).*/\1/
23050 G
23051 s/\n//
23052 s/^[^=]*=[ ]*$//
23053 }'
23054 fi
23055
23056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23057 fi # test -n "$CONFIG_FILES"
23058
23059 # Set up the scripts for CONFIG_HEADERS section.
23060 # No need to generate them if there are no CONFIG_HEADERS.
23061 # This happens for instance with `./config.status Makefile'.
23062 if test -n "$CONFIG_HEADERS"; then
23063 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23064 BEGIN {
23065 _ACEOF
23066
23067 # Transform confdefs.h into an awk script `defines.awk', embedded as
23068 # here-document in config.status, that substitutes the proper values into
23069 # config.h.in to produce config.h.
23070
23071 # Create a delimiter string that does not exist in confdefs.h, to ease
23072 # handling of long lines.
23073 ac_delim='%!_!# '
23074 for ac_last_try in false false :; do
23075 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23076 if test -z "$ac_tt"; then
23077 break
23078 elif $ac_last_try; then
23079 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23080 else
23081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23082 fi
23083 done
23084
23085 # For the awk script, D is an array of macro values keyed by name,
23086 # likewise P contains macro parameters if any. Preserve backslash
23087 # newline sequences.
23088
23089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23090 sed -n '
23091 s/.\{148\}/&'"$ac_delim"'/g
23092 t rset
23093 :rset
23094 s/^[ ]*#[ ]*define[ ][ ]*/ /
23095 t def
23096 d
23097 :def
23098 s/\\$//
23099 t bsnl
23100 s/["\\]/\\&/g
23101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23102 D["\1"]=" \3"/p
23103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23104 d
23105 :bsnl
23106 s/["\\]/\\&/g
23107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23108 D["\1"]=" \3\\\\\\n"\\/p
23109 t cont
23110 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23111 t cont
23112 d
23113 :cont
23114 n
23115 s/.\{148\}/&'"$ac_delim"'/g
23116 t clear
23117 :clear
23118 s/\\$//
23119 t bsnlc
23120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23121 d
23122 :bsnlc
23123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23124 b cont
23125 ' <confdefs.h | sed '
23126 s/'"$ac_delim"'/"\\\
23127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23128
23129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23130 for (key in D) D_is_set[key] = 1
23131 FS = ""
23132 }
23133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23134 line = \$ 0
23135 split(line, arg, " ")
23136 if (arg[1] == "#") {
23137 defundef = arg[2]
23138 mac1 = arg[3]
23139 } else {
23140 defundef = substr(arg[1], 2)
23141 mac1 = arg[2]
23142 }
23143 split(mac1, mac2, "(") #)
23144 macro = mac2[1]
23145 prefix = substr(line, 1, index(line, defundef) - 1)
23146 if (D_is_set[macro]) {
23147 # Preserve the white space surrounding the "#".
23148 print prefix "define", macro P[macro] D[macro]
23149 next
23150 } else {
23151 # Replace #undef with comments. This is necessary, for example,
23152 # in the case of _POSIX_SOURCE, which is predefined and required
23153 # on some systems where configure will not decide to define it.
23154 if (defundef == "undef") {
23155 print "/*", prefix defundef, macro, "*/"
23156 next
23157 }
23158 }
23159 }
23160 { print }
23161 _ACAWK
23162 _ACEOF
23163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23164 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23165 fi # test -n "$CONFIG_HEADERS"
23166
23167
23168 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23169 shift
23170 for ac_tag
23171 do
23172 case $ac_tag in
23173 :[FHLC]) ac_mode=$ac_tag; continue;;
23174 esac
23175 case $ac_mode$ac_tag in
23176 :[FHL]*:*);;
23177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23178 :[FH]-) ac_tag=-:-;;
23179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23180 esac
23181 ac_save_IFS=$IFS
23182 IFS=:
23183 set x $ac_tag
23184 IFS=$ac_save_IFS
23185 shift
23186 ac_file=$1
23187 shift
23188
23189 case $ac_mode in
23190 :L) ac_source=$1;;
23191 :[FH])
23192 ac_file_inputs=
23193 for ac_f
23194 do
23195 case $ac_f in
23196 -) ac_f="$ac_tmp/stdin";;
23197 *) # Look for the file first in the build tree, then in the source tree
23198 # (if the path is not absolute). The absolute path cannot be DOS-style,
23199 # because $ac_f cannot contain `:'.
23200 test -f "$ac_f" ||
23201 case $ac_f in
23202 [\\/$]*) false;;
23203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23204 esac ||
23205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23206 esac
23207 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23208 as_fn_append ac_file_inputs " '$ac_f'"
23209 done
23210
23211 # Let's still pretend it is `configure' which instantiates (i.e., don't
23212 # use $as_me), people would be surprised to read:
23213 # /* config.h. Generated by config.status. */
23214 configure_input='Generated from '`
23215 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23216 `' by configure.'
23217 if test x"$ac_file" != x-; then
23218 configure_input="$ac_file. $configure_input"
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23220 $as_echo "$as_me: creating $ac_file" >&6;}
23221 fi
23222 # Neutralize special characters interpreted by sed in replacement strings.
23223 case $configure_input in #(
23224 *\&* | *\|* | *\\* )
23225 ac_sed_conf_input=`$as_echo "$configure_input" |
23226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23227 *) ac_sed_conf_input=$configure_input;;
23228 esac
23229
23230 case $ac_tag in
23231 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23233 esac
23234 ;;
23235 esac
23236
23237 ac_dir=`$as_dirname -- "$ac_file" ||
23238 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23239 X"$ac_file" : 'X\(//\)[^/]' \| \
23240 X"$ac_file" : 'X\(//\)$' \| \
23241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23242 $as_echo X"$ac_file" |
23243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23244 s//\1/
23245 q
23246 }
23247 /^X\(\/\/\)[^/].*/{
23248 s//\1/
23249 q
23250 }
23251 /^X\(\/\/\)$/{
23252 s//\1/
23253 q
23254 }
23255 /^X\(\/\).*/{
23256 s//\1/
23257 q
23258 }
23259 s/.*/./; q'`
23260 as_dir="$ac_dir"; as_fn_mkdir_p
23261 ac_builddir=.
23262
23263 case "$ac_dir" in
23264 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23265 *)
23266 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23267 # A ".." for each directory in $ac_dir_suffix.
23268 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23269 case $ac_top_builddir_sub in
23270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23272 esac ;;
23273 esac
23274 ac_abs_top_builddir=$ac_pwd
23275 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23276 # for backward compatibility:
23277 ac_top_builddir=$ac_top_build_prefix
23278
23279 case $srcdir in
23280 .) # We are building in place.
23281 ac_srcdir=.
23282 ac_top_srcdir=$ac_top_builddir_sub
23283 ac_abs_top_srcdir=$ac_pwd ;;
23284 [\\/]* | ?:[\\/]* ) # Absolute name.
23285 ac_srcdir=$srcdir$ac_dir_suffix;
23286 ac_top_srcdir=$srcdir
23287 ac_abs_top_srcdir=$srcdir ;;
23288 *) # Relative name.
23289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23290 ac_top_srcdir=$ac_top_build_prefix$srcdir
23291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23292 esac
23293 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23294
23295
23296 case $ac_mode in
23297 :F)
23298 #
23299 # CONFIG_FILE
23300 #
23301
23302 case $INSTALL in
23303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23305 esac
23306 ac_MKDIR_P=$MKDIR_P
23307 case $MKDIR_P in
23308 [\\/$]* | ?:[\\/]* ) ;;
23309 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23310 esac
23311 _ACEOF
23312
23313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23314 # If the template does not know about datarootdir, expand it.
23315 # FIXME: This hack should be removed a few years after 2.60.
23316 ac_datarootdir_hack=; ac_datarootdir_seen=
23317 ac_sed_dataroot='
23318 /datarootdir/ {
23319 p
23320 q
23321 }
23322 /@datadir@/p
23323 /@docdir@/p
23324 /@infodir@/p
23325 /@localedir@/p
23326 /@mandir@/p'
23327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23328 *datarootdir*) ac_datarootdir_seen=yes;;
23329 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23331 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23332 _ACEOF
23333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23334 ac_datarootdir_hack='
23335 s&@datadir@&$datadir&g
23336 s&@docdir@&$docdir&g
23337 s&@infodir@&$infodir&g
23338 s&@localedir@&$localedir&g
23339 s&@mandir@&$mandir&g
23340 s&\\\${datarootdir}&$datarootdir&g' ;;
23341 esac
23342 _ACEOF
23343
23344 # Neutralize VPATH when `$srcdir' = `.'.
23345 # Shell code in configure.ac might set extrasub.
23346 # FIXME: do we really want to maintain this feature?
23347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23348 ac_sed_extra="$ac_vpsub
23349 $extrasub
23350 _ACEOF
23351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23352 :t
23353 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23354 s|@configure_input@|$ac_sed_conf_input|;t t
23355 s&@top_builddir@&$ac_top_builddir_sub&;t t
23356 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23357 s&@srcdir@&$ac_srcdir&;t t
23358 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23359 s&@top_srcdir@&$ac_top_srcdir&;t t
23360 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23361 s&@builddir@&$ac_builddir&;t t
23362 s&@abs_builddir@&$ac_abs_builddir&;t t
23363 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23364 s&@INSTALL@&$ac_INSTALL&;t t
23365 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23366 $ac_datarootdir_hack
23367 "
23368 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23369 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23370
23371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23372 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23373 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23374 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23376 which seems to be undefined. Please make sure it is defined" >&5
23377 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23378 which seems to be undefined. Please make sure it is defined" >&2;}
23379
23380 rm -f "$ac_tmp/stdin"
23381 case $ac_file in
23382 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23383 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23384 esac \
23385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23386 ;;
23387 :H)
23388 #
23389 # CONFIG_HEADER
23390 #
23391 if test x"$ac_file" != x-; then
23392 {
23393 $as_echo "/* $configure_input */" \
23394 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23395 } >"$ac_tmp/config.h" \
23396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23397 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23399 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23400 else
23401 rm -f "$ac_file"
23402 mv "$ac_tmp/config.h" "$ac_file" \
23403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23404 fi
23405 else
23406 $as_echo "/* $configure_input */" \
23407 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23408 || as_fn_error $? "could not create -" "$LINENO" 5
23409 fi
23410 # Compute "$ac_file"'s index in $config_headers.
23411 _am_arg="$ac_file"
23412 _am_stamp_count=1
23413 for _am_header in $config_headers :; do
23414 case $_am_header in
23415 $_am_arg | $_am_arg:* )
23416 break ;;
23417 * )
23418 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23419 esac
23420 done
23421 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23422 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23423 X"$_am_arg" : 'X\(//\)[^/]' \| \
23424 X"$_am_arg" : 'X\(//\)$' \| \
23425 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23426 $as_echo X"$_am_arg" |
23427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23428 s//\1/
23429 q
23430 }
23431 /^X\(\/\/\)[^/].*/{
23432 s//\1/
23433 q
23434 }
23435 /^X\(\/\/\)$/{
23436 s//\1/
23437 q
23438 }
23439 /^X\(\/\).*/{
23440 s//\1/
23441 q
23442 }
23443 s/.*/./; q'`/stamp-h$_am_stamp_count
23444 ;;
23445
23446 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23447 $as_echo "$as_me: executing $ac_file commands" >&6;}
23448 ;;
23449 esac
23450
23451
23452 case $ac_file$ac_mode in
23453 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23454 # Older Autoconf quotes --file arguments for eval, but not when files
23455 # are listed without --file. Let's play safe and only enable the eval
23456 # if we detect the quoting.
23457 case $CONFIG_FILES in
23458 *\'*) eval set x "$CONFIG_FILES" ;;
23459 *) set x $CONFIG_FILES ;;
23460 esac
23461 shift
23462 for mf
23463 do
23464 # Strip MF so we end up with the name of the file.
23465 mf=`echo "$mf" | sed -e 's/:.*$//'`
23466 # Check whether this is an Automake generated Makefile or not.
23467 # We used to match only the files named 'Makefile.in', but
23468 # some people rename them; so instead we look at the file content.
23469 # Grep'ing the first line is not enough: some people post-process
23470 # each Makefile.in and add a new line on top of each file to say so.
23471 # Grep'ing the whole file is not good either: AIX grep has a line
23472 # limit of 2048, but all sed's we know have understand at least 4000.
23473 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23474 dirpart=`$as_dirname -- "$mf" ||
23475 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23476 X"$mf" : 'X\(//\)[^/]' \| \
23477 X"$mf" : 'X\(//\)$' \| \
23478 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23479 $as_echo X"$mf" |
23480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23481 s//\1/
23482 q
23483 }
23484 /^X\(\/\/\)[^/].*/{
23485 s//\1/
23486 q
23487 }
23488 /^X\(\/\/\)$/{
23489 s//\1/
23490 q
23491 }
23492 /^X\(\/\).*/{
23493 s//\1/
23494 q
23495 }
23496 s/.*/./; q'`
23497 else
23498 continue
23499 fi
23500 # Extract the definition of DEPDIR, am__include, and am__quote
23501 # from the Makefile without running 'make'.
23502 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23503 test -z "$DEPDIR" && continue
23504 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23505 test -z "$am__include" && continue
23506 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23507 # Find all dependency output files, they are included files with
23508 # $(DEPDIR) in their names. We invoke sed twice because it is the
23509 # simplest approach to changing $(DEPDIR) to its actual value in the
23510 # expansion.
23511 for file in `sed -n "
23512 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23513 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23514 # Make sure the directory exists.
23515 test -f "$dirpart/$file" && continue
23516 fdir=`$as_dirname -- "$file" ||
23517 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23518 X"$file" : 'X\(//\)[^/]' \| \
23519 X"$file" : 'X\(//\)$' \| \
23520 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23521 $as_echo X"$file" |
23522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23523 s//\1/
23524 q
23525 }
23526 /^X\(\/\/\)[^/].*/{
23527 s//\1/
23528 q
23529 }
23530 /^X\(\/\/\)$/{
23531 s//\1/
23532 q
23533 }
23534 /^X\(\/\).*/{
23535 s//\1/
23536 q
23537 }
23538 s/.*/./; q'`
23539 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23540 # echo "creating $dirpart/$file"
23541 echo '# dummy' > "$dirpart/$file"
23542 done
23543 done
23544 }
23545 ;;
23546 "libtool":C)
23547
23548 # See if we are running on zsh, and set the options that allow our
23549 # commands through without removal of \ escapes.
23550 if test -n "${ZSH_VERSION+set}"; then
23551 setopt NO_GLOB_SUBST
23552 fi
23553
23554 cfgfile=${ofile}T
23555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23556 $RM "$cfgfile"
23557
23558 cat <<_LT_EOF >> "$cfgfile"
23559 #! $SHELL
23560 # Generated automatically by $as_me ($PACKAGE) $VERSION
23561 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23562 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23563
23564 # Provide generalized library-building support services.
23565 # Written by Gordon Matzigkeit, 1996
23566
23567 # Copyright (C) 2014 Free Software Foundation, Inc.
23568 # This is free software; see the source for copying conditions. There is NO
23569 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23570
23571 # GNU Libtool is free software; you can redistribute it and/or modify
23572 # it under the terms of the GNU General Public License as published by
23573 # the Free Software Foundation; either version 2 of of the License, or
23574 # (at your option) any later version.
23575 #
23576 # As a special exception to the GNU General Public License, if you
23577 # distribute this file as part of a program or library that is built
23578 # using GNU Libtool, you may include this file under the same
23579 # distribution terms that you use for the rest of that program.
23580 #
23581 # GNU Libtool is distributed in the hope that it will be useful, but
23582 # WITHOUT ANY WARRANTY; without even the implied warranty of
23583 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23584 # GNU General Public License for more details.
23585 #
23586 # You should have received a copy of the GNU General Public License
23587 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23588
23589
23590 # The names of the tagged configurations supported by this script.
23591 available_tags=''
23592
23593 # Configured defaults for sys_lib_dlsearch_path munging.
23594 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23595
23596 # ### BEGIN LIBTOOL CONFIG
23597
23598 # Which release of libtool.m4 was used?
23599 macro_version=$macro_version
23600 macro_revision=$macro_revision
23601
23602 # Whether or not to build shared libraries.
23603 build_libtool_libs=$enable_shared
23604
23605 # Whether or not to build static libraries.
23606 build_old_libs=$enable_static
23607
23608 # What type of objects to build.
23609 pic_mode=$pic_mode
23610
23611 # Whether or not to optimize for fast installation.
23612 fast_install=$enable_fast_install
23613
23614 # Shared archive member basename,for filename based shared library versioning on AIX.
23615 shared_archive_member_spec=$shared_archive_member_spec
23616
23617 # Shell to use when invoking shell scripts.
23618 SHELL=$lt_SHELL
23619
23620 # An echo program that protects backslashes.
23621 ECHO=$lt_ECHO
23622
23623 # The PATH separator for the build system.
23624 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23625
23626 # The host system.
23627 host_alias=$host_alias
23628 host=$host
23629 host_os=$host_os
23630
23631 # The build system.
23632 build_alias=$build_alias
23633 build=$build
23634 build_os=$build_os
23635
23636 # A sed program that does not truncate output.
23637 SED=$lt_SED
23638
23639 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23640 Xsed="\$SED -e 1s/^X//"
23641
23642 # A grep program that handles long lines.
23643 GREP=$lt_GREP
23644
23645 # An ERE matcher.
23646 EGREP=$lt_EGREP
23647
23648 # A literal string matcher.
23649 FGREP=$lt_FGREP
23650
23651 # A BSD- or MS-compatible name lister.
23652 NM=$lt_NM
23653
23654 # Whether we need soft or hard links.
23655 LN_S=$lt_LN_S
23656
23657 # What is the maximum length of a command?
23658 max_cmd_len=$max_cmd_len
23659
23660 # Object file suffix (normally "o").
23661 objext=$ac_objext
23662
23663 # Executable file suffix (normally "").
23664 exeext=$exeext
23665
23666 # whether the shell understands "unset".
23667 lt_unset=$lt_unset
23668
23669 # turn spaces into newlines.
23670 SP2NL=$lt_lt_SP2NL
23671
23672 # turn newlines into spaces.
23673 NL2SP=$lt_lt_NL2SP
23674
23675 # convert \$build file names to \$host format.
23676 to_host_file_cmd=$lt_cv_to_host_file_cmd
23677
23678 # convert \$build files to toolchain format.
23679 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23680
23681 # An object symbol dumper.
23682 OBJDUMP=$lt_OBJDUMP
23683
23684 # Method to check whether dependent libraries are shared objects.
23685 deplibs_check_method=$lt_deplibs_check_method
23686
23687 # Command to use when deplibs_check_method = "file_magic".
23688 file_magic_cmd=$lt_file_magic_cmd
23689
23690 # How to find potential files when deplibs_check_method = "file_magic".
23691 file_magic_glob=$lt_file_magic_glob
23692
23693 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23694 want_nocaseglob=$lt_want_nocaseglob
23695
23696 # DLL creation program.
23697 DLLTOOL=$lt_DLLTOOL
23698
23699 # Command to associate shared and link libraries.
23700 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23701
23702 # The archiver.
23703 AR=$lt_AR
23704
23705 # Flags to create an archive.
23706 AR_FLAGS=$lt_AR_FLAGS
23707
23708 # How to feed a file listing to the archiver.
23709 archiver_list_spec=$lt_archiver_list_spec
23710
23711 # A symbol stripping program.
23712 STRIP=$lt_STRIP
23713
23714 # Commands used to install an old-style archive.
23715 RANLIB=$lt_RANLIB
23716 old_postinstall_cmds=$lt_old_postinstall_cmds
23717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23718
23719 # Whether to use a lock for old archive extraction.
23720 lock_old_archive_extraction=$lock_old_archive_extraction
23721
23722 # A C compiler.
23723 LTCC=$lt_CC
23724
23725 # LTCC compiler flags.
23726 LTCFLAGS=$lt_CFLAGS
23727
23728 # Take the output of nm and produce a listing of raw symbols and C names.
23729 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23730
23731 # Transform the output of nm in a proper C declaration.
23732 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23733
23734 # Transform the output of nm into a list of symbols to manually relocate.
23735 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23736
23737 # Transform the output of nm in a C name address pair.
23738 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23739
23740 # Transform the output of nm in a C name address pair when lib prefix is needed.
23741 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23742
23743 # The name lister interface.
23744 nm_interface=$lt_lt_cv_nm_interface
23745
23746 # Specify filename containing input files for \$NM.
23747 nm_file_list_spec=$lt_nm_file_list_spec
23748
23749 # The root where to search for dependent libraries,and where our libraries should be installed.
23750 lt_sysroot=$lt_sysroot
23751
23752 # Command to truncate a binary pipe.
23753 lt_truncate_bin=$lt_lt_cv_truncate_bin
23754
23755 # The name of the directory that contains temporary libtool files.
23756 objdir=$objdir
23757
23758 # Used to examine libraries when file_magic_cmd begins with "file".
23759 MAGIC_CMD=$MAGIC_CMD
23760
23761 # Must we lock files when doing compilation?
23762 need_locks=$lt_need_locks
23763
23764 # Manifest tool.
23765 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23766
23767 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23768 DSYMUTIL=$lt_DSYMUTIL
23769
23770 # Tool to change global to local symbols on Mac OS X.
23771 NMEDIT=$lt_NMEDIT
23772
23773 # Tool to manipulate fat objects and archives on Mac OS X.
23774 LIPO=$lt_LIPO
23775
23776 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23777 OTOOL=$lt_OTOOL
23778
23779 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23780 OTOOL64=$lt_OTOOL64
23781
23782 # Old archive suffix (normally "a").
23783 libext=$libext
23784
23785 # Shared library suffix (normally ".so").
23786 shrext_cmds=$lt_shrext_cmds
23787
23788 # The commands to extract the exported symbol list from a shared archive.
23789 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23790
23791 # Variables whose values should be saved in libtool wrapper scripts and
23792 # restored at link time.
23793 variables_saved_for_relink=$lt_variables_saved_for_relink
23794
23795 # Do we need the "lib" prefix for modules?
23796 need_lib_prefix=$need_lib_prefix
23797
23798 # Do we need a version for libraries?
23799 need_version=$need_version
23800
23801 # Library versioning type.
23802 version_type=$version_type
23803
23804 # Shared library runtime path variable.
23805 runpath_var=$runpath_var
23806
23807 # Shared library path variable.
23808 shlibpath_var=$shlibpath_var
23809
23810 # Is shlibpath searched before the hard-coded library search path?
23811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23812
23813 # Format of library name prefix.
23814 libname_spec=$lt_libname_spec
23815
23816 # List of archive names. First name is the real one, the rest are links.
23817 # The last name is the one that the linker finds with -lNAME
23818 library_names_spec=$lt_library_names_spec
23819
23820 # The coded name of the library, if different from the real name.
23821 soname_spec=$lt_soname_spec
23822
23823 # Permission mode override for installation of shared libraries.
23824 install_override_mode=$lt_install_override_mode
23825
23826 # Command to use after installation of a shared archive.
23827 postinstall_cmds=$lt_postinstall_cmds
23828
23829 # Command to use after uninstallation of a shared archive.
23830 postuninstall_cmds=$lt_postuninstall_cmds
23831
23832 # Commands used to finish a libtool library installation in a directory.
23833 finish_cmds=$lt_finish_cmds
23834
23835 # As "finish_cmds", except a single script fragment to be evaled but
23836 # not shown.
23837 finish_eval=$lt_finish_eval
23838
23839 # Whether we should hardcode library paths into libraries.
23840 hardcode_into_libs=$hardcode_into_libs
23841
23842 # Compile-time system search path for libraries.
23843 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23844
23845 # Detected run-time system search path for libraries.
23846 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23847
23848 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23849 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23850
23851 # Whether dlopen is supported.
23852 dlopen_support=$enable_dlopen
23853
23854 # Whether dlopen of programs is supported.
23855 dlopen_self=$enable_dlopen_self
23856
23857 # Whether dlopen of statically linked programs is supported.
23858 dlopen_self_static=$enable_dlopen_self_static
23859
23860 # Commands to strip libraries.
23861 old_striplib=$lt_old_striplib
23862 striplib=$lt_striplib
23863
23864
23865 # The linker used to build libraries.
23866 LD=$lt_LD
23867
23868 # How to create reloadable object files.
23869 reload_flag=$lt_reload_flag
23870 reload_cmds=$lt_reload_cmds
23871
23872 # Commands used to build an old-style archive.
23873 old_archive_cmds=$lt_old_archive_cmds
23874
23875 # A language specific compiler.
23876 CC=$lt_compiler
23877
23878 # Is the compiler the GNU compiler?
23879 with_gcc=$GCC
23880
23881 # Compiler flag to turn off builtin functions.
23882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23883
23884 # Additional compiler flags for building library objects.
23885 pic_flag=$lt_lt_prog_compiler_pic
23886
23887 # How to pass a linker flag through the compiler.
23888 wl=$lt_lt_prog_compiler_wl
23889
23890 # Compiler flag to prevent dynamic linking.
23891 link_static_flag=$lt_lt_prog_compiler_static
23892
23893 # Does compiler simultaneously support -c and -o options?
23894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23895
23896 # Whether or not to add -lc for building shared libraries.
23897 build_libtool_need_lc=$archive_cmds_need_lc
23898
23899 # Whether or not to disallow shared libs when runtime libs are static.
23900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23901
23902 # Compiler flag to allow reflexive dlopens.
23903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23904
23905 # Compiler flag to generate shared objects directly from archives.
23906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23907
23908 # Whether the compiler copes with passing no objects directly.
23909 compiler_needs_object=$lt_compiler_needs_object
23910
23911 # Create an old-style archive from a shared archive.
23912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23913
23914 # Create a temporary old-style archive to link instead of a shared archive.
23915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23916
23917 # Commands used to build a shared archive.
23918 archive_cmds=$lt_archive_cmds
23919 archive_expsym_cmds=$lt_archive_expsym_cmds
23920
23921 # Commands used to build a loadable module if different from building
23922 # a shared archive.
23923 module_cmds=$lt_module_cmds
23924 module_expsym_cmds=$lt_module_expsym_cmds
23925
23926 # Whether we are building with GNU ld or not.
23927 with_gnu_ld=$lt_with_gnu_ld
23928
23929 # Flag that allows shared libraries with undefined symbols to be built.
23930 allow_undefined_flag=$lt_allow_undefined_flag
23931
23932 # Flag that enforces no undefined symbols.
23933 no_undefined_flag=$lt_no_undefined_flag
23934
23935 # Flag to hardcode \$libdir into a binary during linking.
23936 # This must work even if \$libdir does not exist
23937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23938
23939 # Whether we need a single "-rpath" flag with a separated argument.
23940 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23941
23942 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23943 # DIR into the resulting binary.
23944 hardcode_direct=$hardcode_direct
23945
23946 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23947 # DIR into the resulting binary and the resulting library dependency is
23948 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23949 # library is relocated.
23950 hardcode_direct_absolute=$hardcode_direct_absolute
23951
23952 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23953 # into the resulting binary.
23954 hardcode_minus_L=$hardcode_minus_L
23955
23956 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23957 # into the resulting binary.
23958 hardcode_shlibpath_var=$hardcode_shlibpath_var
23959
23960 # Set to "yes" if building a shared library automatically hardcodes DIR
23961 # into the library and all subsequent libraries and executables linked
23962 # against it.
23963 hardcode_automatic=$hardcode_automatic
23964
23965 # Set to yes if linker adds runtime paths of dependent libraries
23966 # to runtime path list.
23967 inherit_rpath=$inherit_rpath
23968
23969 # Whether libtool must link a program against all its dependency libraries.
23970 link_all_deplibs=$link_all_deplibs
23971
23972 # Set to "yes" if exported symbols are required.
23973 always_export_symbols=$always_export_symbols
23974
23975 # The commands to list exported symbols.
23976 export_symbols_cmds=$lt_export_symbols_cmds
23977
23978 # Symbols that should not be listed in the preloaded symbols.
23979 exclude_expsyms=$lt_exclude_expsyms
23980
23981 # Symbols that must always be exported.
23982 include_expsyms=$lt_include_expsyms
23983
23984 # Commands necessary for linking programs (against libraries) with templates.
23985 prelink_cmds=$lt_prelink_cmds
23986
23987 # Commands necessary for finishing linking programs.
23988 postlink_cmds=$lt_postlink_cmds
23989
23990 # Specify filename containing input files.
23991 file_list_spec=$lt_file_list_spec
23992
23993 # How to hardcode a shared library path into an executable.
23994 hardcode_action=$hardcode_action
23995
23996 # ### END LIBTOOL CONFIG
23997
23998 _LT_EOF
23999
24000 cat <<'_LT_EOF' >> "$cfgfile"
24001
24002 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24003
24004 # func_munge_path_list VARIABLE PATH
24005 # -----------------------------------
24006 # VARIABLE is name of variable containing _space_ separated list of
24007 # directories to be munged by the contents of PATH, which is string
24008 # having a format:
24009 # "DIR[:DIR]:"
24010 # string "DIR[ DIR]" will be prepended to VARIABLE
24011 # ":DIR[:DIR]"
24012 # string "DIR[ DIR]" will be appended to VARIABLE
24013 # "DIRP[:DIRP]::[DIRA:]DIRA"
24014 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24015 # "DIRA[ DIRA]" will be appended to VARIABLE
24016 # "DIR[:DIR]"
24017 # VARIABLE will be replaced by "DIR[ DIR]"
24018 func_munge_path_list ()
24019 {
24020 case x$2 in
24021 x)
24022 ;;
24023 *:)
24024 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24025 ;;
24026 x:*)
24027 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24028 ;;
24029 *::*)
24030 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24031 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24032 ;;
24033 *)
24034 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24035 ;;
24036 esac
24037 }
24038
24039
24040 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
24041 func_cc_basename ()
24042 {
24043 for cc_temp in $*""; do
24044 case $cc_temp in
24045 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24046 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24047 \-*) ;;
24048 *) break;;
24049 esac
24050 done
24051 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24052 }
24053
24054
24055 # ### END FUNCTIONS SHARED WITH CONFIGURE
24056
24057 _LT_EOF
24058
24059 case $host_os in
24060 aix3*)
24061 cat <<\_LT_EOF >> "$cfgfile"
24062 # AIX sometimes has problems with the GCC collect2 program. For some
24063 # reason, if we set the COLLECT_NAMES environment variable, the problems
24064 # vanish in a puff of smoke.
24065 if test set != "${COLLECT_NAMES+set}"; then
24066 COLLECT_NAMES=
24067 export COLLECT_NAMES
24068 fi
24069 _LT_EOF
24070 ;;
24071 esac
24072
24073
24074 ltmain=$ac_aux_dir/ltmain.sh
24075
24076
24077 # We use sed instead of cat because bash on DJGPP gets confused if
24078 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24079 # text mode, it properly converts lines to CR/LF. This bash problem
24080 # is reportedly fixed, but why not run on old versions too?
24081 sed '$q' "$ltmain" >> "$cfgfile" \
24082 || (rm -f "$cfgfile"; exit 1)
24083
24084 mv -f "$cfgfile" "$ofile" ||
24085 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24086 chmod +x "$ofile"
24087
24088 ;;
24089
24090 esac
24091 done # for ac_tag
24092
24093
24094 as_fn_exit 0
24095 _ACEOF
24096 ac_clean_files=$ac_clean_files_save
24097
24098 test $ac_write_fail = 0 ||
24099 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24100
24101
24102 # configure is writing to config.log, and then calls config.status.
24103 # config.status does its own redirection, appending to config.log.
24104 # Unfortunately, on DOS this fails, as config.log is still kept open
24105 # by configure, so config.status won't be able to write to it; its
24106 # output is simply discarded. So we exec the FD to /dev/null,
24107 # effectively closing config.log, so it can be properly (re)opened and
24108 # appended to by config.status. When coming back to configure, we
24109 # need to make the FD available again.
24110 if test "$no_create" != yes; then
24111 ac_cs_success=:
24112 ac_config_status_args=
24113 test "$silent" = yes &&
24114 ac_config_status_args="$ac_config_status_args --quiet"
24115 exec 5>/dev/null
24116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24117 exec 5>>config.log
24118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24119 # would make configure fail if this is the last instruction.
24120 $ac_cs_success || as_fn_exit 1
24121 fi
24122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24125 fi
24126
24127
24128 echo ""
24129 echo "$PACKAGE_STRING will be built with the following settings:"
24130 echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N
24131 echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR
24132 echo " Threading support: "$xthreads
24133 echo " Use Threads safe API: "$mtsafeapi
24134 echo " Use thread safety constructor: "$USE_THREAD_SAFETY_CONSTRUCTOR
24135 echo " XCMS: "$XCMS
24136 echo " Internationalization support: "$XLOCALE
24137 echo " XF86BigFont support: "$XF86BIGFONT
24138 echo " XKB support: "$XKB
24139 echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR
24140 echo " Compose table cache enabled: "$COMPOSECACHE
24141 echo " Functional specs building enabled: "$build_specs
24142 echo ""
24143